/* ═══════════════════════════════════════════════════════════════
   EXPO CYPRUS — Design System v1.0
   Brand: Unifex Fuarcılık Organizasyon Ltd.
   Colors: Red #E30613 | Black #0A0A0A | White #FFFFFF
   Font: Inter (Google Fonts)
═══════════════════════════════════════════════════════════════ */

/* ── 1. CSS Custom Properties ─────────────────────────────────── */
:root {
    /* Brand Colors */
    --red:           #E30613;
    --red-dark:      #C0050F;
    --red-light:     #FFF5F5;
    --black:         #0A0A0A;
    --white:         #FFFFFF;

    /* Gray Scale */
    --gray-50:       #F8FAFC;
    --gray-100:      #F1F5F9;
    --gray-200:      #E2E8F0;
    --gray-300:      #CBD5E1;
    --gray-400:      #94A3B8;
    --gray-500:      #64748B;
    --gray-600:      #475569;
    --gray-700:      #334155;
    --gray-800:      #1E293B;
    --gray-900:      #0F172A;

    /* Semantic */
    --bg:            #FFFFFF;
    --bg-alt:        #F8FAFC;
    --bg-dark:       #0A0A0A;
    --text:          #0F172A;
    --text-muted:    #64748B;
    --border:        #E2E8F0;

    /* Typography */
    --font:          'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs:  0.75rem;
    --font-size-sm:  0.875rem;
    --font-size-base:1rem;
    --font-size-lg:  1.125rem;
    --font-size-xl:  1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl:3rem;
    --space-3xl:4rem;
    --space-4xl:6rem;

    /* Layout */
    --container: 1280px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.10), 0 8px 10px -6px rgba(0,0,0,.05);

    /* Transitions */
    --transition: 0.2s ease;
    --transition-slow: 0.35s ease;

    /* Header */
    --header-height: 72px;
}

/* ── 2. Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--red);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--red-dark); }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -.02em;
}

/* ── 3. Container ─────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}
@media (max-width: 768px) {
    .container { padding: 0 var(--space-md); }
}

/* ── 4. Typography Utilities ──────────────────────────────────── */
.text-white  { color: var(--white) !important; }
.text-muted  { color: var(--text-muted) !important; }
.text-red    { color: var(--red) !important; }
.text-center { text-align: center; }
.fw-bold     { font-weight: 700; }
.mt-4        { margin-top: var(--space-xl); }

/* ── 5. Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .375rem;
    padding: .625rem 1.375rem;
    font-family: var(--font);
    font-size: var(--font-size-sm);
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-lg { padding: .875rem 2rem; font-size: var(--font-size-base); border-radius: var(--radius-lg); }
.btn-sm { padding: .4rem .875rem; font-size: var(--font-size-xs); }

.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(227,6,19,.35);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.5);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,.1);
    border-color: var(--white);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--red);
    border-color: var(--white);
}
.btn-white:hover {
    background: var(--gray-100);
    color: var(--red-dark);
    transform: translateY(-1px);
}

.btn-block { width: 100%; }
.mt-2 { margin-top: .5rem; }

/* ── 6. Site Header ───────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}
.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    height: var(--header-height);
    gap: var(--space-xl);
}

.site-logo img {
    height: 40px;
    width: auto;
}

/* Desktop Nav */
.main-nav { flex: 1; }
.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    list-style: none;
}
.nav-link {
    padding: .5rem .75rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-700);
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: .25rem;
}
.nav-link:hover, .nav-link.active { color: var(--red); background: var(--red-light); }
.chevron { font-size: 1rem; transition: transform var(--transition); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: .5rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
    z-index: 100;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.has-dropdown:hover .chevron { transform: rotate(180deg); }
.dropdown-menu a {
    display: block;
    padding: .5rem .75rem;
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.dropdown-menu a:hover { background: var(--red-light); color: var(--red); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: var(--space-md); flex-shrink: 0; }
.lang-switch {
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--gray-500);
    letter-spacing: .08em;
    padding: .25rem .5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.lang-switch:hover { border-color: var(--red); color: var(--red); }

/* Header Cart */
.header-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    color: var(--text);
    border-radius: 50%;
    transition: all .2s;
    text-decoration: none;
}
.header-cart:hover { background: var(--bg-alt); color: var(--red); }
.header-cart-count {
    position: absolute;
    top: 2px; right: 2px;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    background: var(--red);
    color: var(--white);
    font-size: .6875rem;
    font-weight: 700;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ── 7. Mobile Navigation ─────────────────────────────────────── */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}
.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}
.mobile-nav {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(340px, 85vw);
    background: var(--white);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    padding: var(--header-height) var(--space-lg) var(--space-lg);
}
.mobile-menu-overlay.open .mobile-nav { transform: translateX(0); }
.mobile-nav ul { list-style: none; }
.mobile-nav ul a {
    display: block;
    padding: .65rem 0;
    font-size: var(--font-size-base);
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: color var(--transition);
}
.mobile-nav ul a:hover { color: var(--red); }
.mobile-section-title {
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: var(--space-md) 0 .25rem;
}
.mobile-nav-footer { margin-top: var(--space-xl); }

/* ── 8. Sections ──────────────────────────────────────────────── */
.section {
    padding: var(--space-4xl) 0;
}
@media (max-width: 768px) {
    .section { padding: var(--space-3xl) 0; }
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.section-title {
    font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-4xl));
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: .75rem;
}
.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    max-width: 600px;
}
.section-link {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--red);
    margin-top: .5rem;
}

.bg-light { background: var(--bg-alt); }
.bg-dark   { background: var(--bg-dark); }

/* ── 9. Hero Section ──────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10,10,10,.82) 0%,
        rgba(10,10,10,.60) 50%,
        rgba(10,10,10,.40) 100%
    );
}

.hero > .container {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + var(--space-4xl));
    padding-bottom: var(--space-4xl);
}
.hero-content { max-width: 680px; }

.hero-kicker {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--red);
    background: rgba(227,6,19,.15);
    border: 1px solid rgba(227,6,19,.3);
    padding: .35rem .875rem;
    border-radius: 100px;
    margin-bottom: var(--space-lg);
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: var(--space-lg);
}
.hero-subtitle {
    font-size: clamp(var(--font-size-base), 2vw, var(--font-size-xl));
    color: rgba(255,255,255,.75);
    line-height: 1.6;
    margin-bottom: var(--space-2xl);
    max-width: 560px;
}
.hero-ctas { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* Trust Bar */
.trust-bar {
    position: relative;
    z-index: 1;
    background: var(--white);
    border-top: 3px solid var(--red);
    box-shadow: 0 -4px 30px rgba(0,0,0,.15);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-xl) var(--space-lg);
    border-right: 1px solid var(--border);
    text-align: center;
}
.trust-item:last-child { border-right: none; }
.trust-num {
    font-size: clamp(var(--font-size-2xl), 3vw, var(--font-size-4xl));
    font-weight: 900;
    color: var(--red);
    letter-spacing: -.04em;
    line-height: 1;
}
.trust-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: .375rem;
}

/* ── 10. Services Grid ────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .services-grid { grid-template-columns: 1fr; } }

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}
.service-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    flex: 1;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}
.service-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card-icon {
    width: 56px;
    height: 56px;
    background: var(--red-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
}
.service-card-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
}
.service-card-text {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}
.service-card-link {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    margin-top: auto;
}
.service-card-link:hover { gap: .5rem; }

/* ── 11. Fair Cards ───────────────────────────────────────────── */
.fairs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}
@media (max-width: 768px) { .fairs-grid { grid-template-columns: 1fr; } }

.fair-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
}
.fair-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }

.fair-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.fair-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.fair-card:hover .fair-card-img img { transform: scale(1.05); }
.fair-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-100));
}
.fair-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,.5) 0%, transparent 60%);
}

.fair-card-body {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1;
}
.fair-card-title { font-size: var(--font-size-lg); font-weight: 700; }
.fair-card-summary { font-size: var(--font-size-sm); color: var(--text-muted); }
.fair-card-date {
    display: flex;
    align-items: center;
    gap: .375rem;
    font-size: var(--font-size-xs);
    color: var(--red);
    font-weight: 600;
}
.fair-card-link {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--red);
    margin-top: auto;
}

/* ── 12. Why Section ──────────────────────────────────────────── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
}
@media (max-width: 768px) { .why-grid { grid-template-columns: 1fr; gap: var(--space-xl); } }

.why-item { text-align: center; }
.why-icon {
    width: 72px;
    height: 72px;
    background: var(--red-light);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    margin: 0 auto var(--space-lg);
}
.why-item h3 { font-size: var(--font-size-xl); margin-bottom: .75rem; }
.why-item p  { color: var(--text-muted); line-height: 1.7; }

/* ── 13. Stats Section ────────────────────────────────────────── */
.section-stats { padding: var(--space-4xl) 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
}
@media (max-width: 1024px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-item {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    border-right: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.stat-num {
    display: block;
    font-size: clamp(var(--font-size-2xl), 3vw, var(--font-size-4xl));
    font-weight: 900;
    color: var(--white);
    letter-spacing: -.04em;
    line-height: 1;
    margin-bottom: .5rem;
}
.stat-label {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* ── 14. Blog Cards ───────────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}
@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-slow);
}
.blog-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }

.blog-card-img-wrap { display: block; height: 200px; overflow: hidden; }
.blog-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-img-wrap img { transform: scale(1.05); }

.blog-card-body  { padding: var(--space-xl); }
.blog-card-date  { font-size: var(--font-size-xs); color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.blog-card-title { font-size: var(--font-size-lg); font-weight: 700; margin: .5rem 0 .75rem; }
.blog-card-title a { color: var(--text); }
.blog-card-title a:hover { color: var(--red); }
.blog-card-excerpt { font-size: var(--font-size-sm); color: var(--text-muted); line-height: 1.65; }

/* ── 15. CTA Banner ───────────────────────────────────────────── */
.section-cta-banner {
    background: var(--red);
    padding: var(--space-4xl) 0;
    text-align: center;
}
.cta-banner-title {
    font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-4xl));
    font-weight: 900;
    color: var(--white);
    letter-spacing: -.03em;
    margin-bottom: var(--space-md);
}
.cta-banner-text {
    font-size: var(--font-size-lg);
    color: rgba(255,255,255,.8);
    margin-bottom: var(--space-2xl);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.cta-banner-actions { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }

/* ── 16. Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--black); color: rgba(255,255,255,.7); }

.footer-top { padding: var(--space-4xl) 0 var(--space-3xl); }
.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1.4fr 1.1fr;
    gap: var(--space-2xl);
    align-items: start;
}
@media (max-width: 1200px) { .footer-grid { grid-template-columns: 1.8fr 1fr 1.2fr 1fr; gap: var(--space-xl); } }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: var(--space-2xl); } }
@media (max-width: 768px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px)  { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { font-size: var(--font-size-sm); margin-top: var(--space-lg); line-height: 1.7; }
.footer-tagline {
    color: rgba(255,255,255,.45);
    font-style: italic;
    margin-top: var(--space-md);
    margin-bottom: 0;
}
.footer-about {
    color: rgba(255,255,255,.55);
    font-size: var(--font-size-sm);
    line-height: 1.65;
    margin-top: var(--space-md);
    max-width: 520px;
}

.footer-partners {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-md);
}
.footer-partner {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    background: transparent;
    border: 0;
    padding: 0;
    transition: opacity .25s;
}
.footer-partner:hover { opacity: 1; }
.footer-partner img {
    max-width: 220px;
    max-height: 80px;
    height: auto;
    width: auto;
    opacity: .9;
    transition: opacity .25s;
}
.footer-partner:hover img { opacity: 1; }
.footer-partner:hover img { opacity: 1; }

.footer-social { display: flex; gap: var(--space-md); margin-top: var(--space-xl); }
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.6);
    transition: all var(--transition);
}
.footer-social a:hover { background: var(--red); color: var(--white); }

.footer-col-title {
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: var(--space-lg);
}
.mt-4 { margin-top: var(--space-xl); }

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul a { font-size: var(--font-size-sm); color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--white); }

.footer-contact-list li { font-size: var(--font-size-sm); color: rgba(255,255,255,.55); }
.footer-contact-list a { color: rgba(255,255,255,.55); }
.footer-contact-list a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.07);
    padding: var(--space-lg) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-md); }
.footer-legal { font-size: var(--font-size-xs); color: rgba(255,255,255,.35); }
.footer-legal-nav { display: flex; gap: var(--space-lg); }
.footer-legal-nav a { font-size: var(--font-size-xs); color: rgba(255,255,255,.35); transition: color var(--transition); }
.footer-legal-nav a:hover { color: rgba(255,255,255,.7); }

/* ── 17. Cookie Banner ────────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: var(--space-lg);
    left: var(--space-lg);
    right: var(--space-lg);
    max-width: 700px;
    margin: 0 auto;
    background: var(--gray-900);
    color: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    border: 1px solid var(--gray-700);
}
.cookie-inner {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-lg) var(--space-xl);
    flex-wrap: wrap;
}
.cookie-inner strong { display: block; margin-bottom: .25rem; }
.cookie-inner p  { font-size: var(--font-size-sm); color: rgba(255,255,255,.65); margin: 0; }
.cookie-inner a  { color: var(--red); }
.cookie-actions  { display: flex; gap: var(--space-sm); flex-shrink: 0; }
.cookie-actions .btn-outline { border-color: var(--gray-600); color: rgba(255,255,255,.7); }
.cookie-actions .btn-outline:hover { border-color: var(--white); color: var(--white); }

/* ── 18. Error Page ───────────────────────────────────────────── */
.error-page { padding: var(--space-4xl) 0; text-align: center; min-height: 60vh; display: flex; align-items: center; }
.error-content { max-width: 500px; margin: 0 auto; }
.error-code {
    display: block;
    font-size: 8rem;
    font-weight: 900;
    letter-spacing: -.05em;
    color: var(--red);
    line-height: 1;
    margin-bottom: var(--space-lg);
}
.error-title { font-size: var(--font-size-3xl); margin-bottom: var(--space-md); }
.error-text  { color: var(--text-muted); margin-bottom: var(--space-2xl); }

/* ── 19. Responsive Header ────────────────────────────────────── */
@media (max-width: 1024px) {
    .main-nav, .header-cta { display: none; }
    .mobile-menu-toggle    { display: flex; }
}

/* ── 20. Section-specific responsive ─────────────────────────── */
@media (max-width: 768px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-item { border-bottom: 1px solid var(--border); }

    .hero-title   { font-size: 2.5rem; }
    .hero-ctas    { flex-direction: column; align-items: flex-start; }
    .btn-lg       { padding: .75rem 1.5rem; }
    .cta-banner-actions { flex-direction: column; align-items: center; }
}

/* ── 21. Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp .6s ease forwards; }
.animate-delay-1    { animation-delay: .1s; opacity: 0; }
.animate-delay-2    { animation-delay: .2s; opacity: 0; }
.animate-delay-3    { animation-delay: .3s; opacity: 0; }

/* ── 22. Print ────────────────────────────────────────────────── */
@media print {
    .site-header, .site-footer, .mobile-menu-overlay, .cookie-banner { display: none !important; }
}


/* ═══════════════════════════════════════════════════════════════
   MOBİL & TABLET RESPONSIVE FIXES
═══════════════════════════════════════════════════════════════ */

/* Touch target minimum 44x44 (WCAG) */
@media (hover: none) and (pointer: coarse) {
    .btn, .nav-link, button, a.cta, input[type="submit"] {
        min-height: 44px;
    }
}

/* Improved touch scrolling */
.qf-cards, .qf-tv-grid, .qf-qty-grid,
.cat-quick-nav, .ab-timeline, .pd-board,
.kanban-wrap, .kanban-col, .sl-others-grid {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Sticky safe-area for iPhone notch */
@supports (padding: max(0px)) {
    .site-header { padding-top: max(.75rem, env(safe-area-inset-top)); }
    .mobile-menu-overlay { padding-top: max(0px, env(safe-area-inset-top)); }
}

/* Tablet (768-1024px) */
@media (max-width: 1024px) {
    .container { padding-left: 1.5rem; padding-right: 1.5rem; }
    h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
    h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
    .hero-title { font-size: clamp(2.25rem, 6vw, 4rem); }
}

/* Mobile (≤768px) — comprehensive overrides */
@media (max-width: 768px) {
    /* Layout */
    .container { padding-left: 1rem; padding-right: 1rem; }
    body { font-size: 15px; }

    /* Heading scaling */
    h1 { font-size: 1.625rem !important; line-height: 1.2; }
    h2 { font-size: 1.375rem !important; line-height: 1.25; }
    h3 { font-size: 1.125rem !important; }

    /* Forms — bigger touch targets */
    input, select, textarea, .form-input, .form-control {
        font-size: 16px !important; /* iOS zoom prevention */
        min-height: 44px;
    }
    button, .btn { min-height: 44px; padding-left: 1rem; padding-right: 1rem; }

    /* Tables -> cards on tiny screens */
    .table-responsive { -webkit-overflow-scrolling: touch; }

    /* Hide non-essential sidebar elements */
    .sidebar-card { padding: 1rem; }

    /* Navbar mobile */
    .main-nav { display: none; }
    .mobile-menu-toggle { display: flex !important; }

    /* CTA banner */
    .cta-banner-actions { flex-direction: column; gap: .75rem; }
    .cta-banner-actions .btn { width: 100%; max-width: 320px; justify-content: center; }

    /* Catalog grid */
    .model-grid { grid-template-columns: 1fr; }
    .cat-quick-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .5rem; }
    .cat-quick { flex: 0 0 180px; }

    /* Quote/forms */
    .qf-grid, .qf-grid-3, .qf-grid-4 { grid-template-columns: 1fr !important; }
    .qf-col-2, .qf-col-3 { grid-column: auto !important; }
    .qf-cards { grid-template-columns: repeat(2, 1fr) !important; }
    .qf-cards--4 { grid-template-columns: repeat(2, 1fr) !important; }
    .qf-checkbox-grid, .qf-checkbox-grid--6 { grid-template-columns: repeat(2, 1fr) !important; }

    /* Page hero */
    .page-hero { min-height: 280px; padding: 4rem 0 2rem; }
    .page-hero-title { font-size: clamp(1.5rem, 6vw, 2.25rem) !important; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }

    /* Cart / Checkout */
    .cart-grid { grid-template-columns: 1fr !important; }
    .checkout-grid { grid-template-columns: 1fr !important; }

    /* Modals fullscreen on tiny */
    .modal-dialog { margin: 0; max-width: 100%; }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
    .container { padding-left: .85rem; padding-right: .85rem; }
    h1 { font-size: 1.5rem !important; }
    .qf-cards, .qf-cards--4 { grid-template-columns: 1fr !important; }
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
    .page-hero { min-height: 260px; }
}

/* High DPI screens — sharper images */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img { image-rendering: -webkit-optimize-contrast; }
}

/* Reduced data — disable bg images for slow connections */
@media (prefers-reduced-data: reduce) {
    .ab-hero-img, .fa-card-img, .sd-hero-bg, .sl-card-img,
    .sd-showcase-img, .sd-other-img { background-image: none !important; background: #1d1d1f !important; }
}

/* Print */
@media print {
    .site-header, .site-footer, .mobile-menu-overlay,
    .cookie-banner, .header-actions, .qf-submit,
    .ab-cta, .fa-cta, .sl-cta { display: none !important; }
    body { font-size: 11pt; color: #000; background: #fff; }
    a { color: #000; text-decoration: underline; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
    .container { max-width: 100%; padding: 0; }
}



/* ═══════════════════════════════════════════════════════════════
   ADMIN PANEL — MOBILE/TABLET RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    /* Pipedrive board scrollable */
    .pd-board, .kanban-wrap { overflow-x: auto; padding-bottom: 1rem; }
    .pd-col { flex: 0 0 260px !important; min-width: 260px !important; }
    .pd-summary { grid-template-columns: repeat(2, 1fr) !important; gap: .75rem; }

    /* Stat cards stack on tablet */
    .row-deck > .col-md { flex: 0 0 50%; max-width: 50%; }

    /* Tables scrollable */
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 768px) {
    /* Sidebar: collapse on mobile (Tabler default) */
    .navbar-vertical { width: 100% !important; }

    /* Filters wrap */
    .card-body form.d-flex { flex-wrap: wrap; gap: .5rem; }
    .card-body form.d-flex select,
    .card-body form.d-flex input { flex: 1 1 100% !important; max-width: 100% !important; }

    /* Pipeline */
    .pd-summary { grid-template-columns: 1fr !important; }
    .pd-col { flex: 0 0 240px !important; min-width: 240px !important; }

    /* Production Order checklists */
    .poi-row .col-md-1, .poi-row .col-md-2, .poi-row .col-md-4 { flex: 0 0 100%; max-width: 100%; }
    .poi-row { flex-wrap: wrap !important; }

    /* Admin cards padding */
    .card-body { padding: 1rem !important; }
    .card-header { padding: .75rem 1rem !important; flex-wrap: wrap; gap: .5rem; }

    /* Forms */
    .form-control, .form-select { font-size: 16px !important; }

    /* Stats counter cards */
    .row.row-deck.row-cards > [class*="col-md"] { margin-bottom: .5rem; }
}

@media (max-width: 480px) {
    .pd-card { padding: .5rem; }
    .pd-card-name strong { font-size: .8rem; }
    .pd-card-value { font-size: .7rem; }

    /* Member portal mobile */
    .mp-stats { grid-template-columns: 1fr !important; }
    .mp-orders-grid { grid-template-columns: 1fr !important; }
    .mp-od-grid { grid-template-columns: 1fr !important; }
    .mp-msg { max-width: 100% !important; }
    .mp-od-title { flex-direction: column !important; align-items: flex-start !important; }

    /* Crew form on tiny */
    .qf-checkbox-grid { grid-template-columns: 1fr !important; }
    .qf-tv-grid { grid-template-columns: repeat(3, 1fr) !important; }

    /* Navigation cart count */
    .header-cart-count { font-size: .65rem !important; }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    input[type="date"],
    input[type="time"],
    input[type="datetime-local"] {
        -webkit-appearance: none;
        line-height: 1.5;
        min-height: 44px;
    }

    /* Safari rendering fix */
    textarea, input { -webkit-appearance: none; border-radius: var(--radius-md); }
}

/* ═══════════════════════════════════════════════════════════════
   MEMBER PORTAL — MOBILE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .mp-header-inner { flex-wrap: wrap; gap: .75rem !important; }
    .mp-nav { width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
    .mp-nav a { flex-shrink: 0; }
    .mp-user { display: none; }
    .mp-card { padding: 1.25rem !important; border-radius: 12px; }
    .mp-form-grid { grid-template-columns: 1fr !important; }
    .mp-progress-bar { transition: width .3s; }
    .mp-timeline-item { padding-left: 1rem; }
}

/* ═══════════════════════════════════════════════════════════════
   APPLE-STYLE PAGES — MOBILE TUNING
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Hero titles */
    .ab-hero-title, .fa-hero-title, .sd-hero-title, .sl-hero-title {
        font-size: clamp(2rem, 9vw, 3.5rem) !important;
    }
    .ab-big-title, .fa-section-title, .sl-section-title {
        font-size: clamp(1.5rem, 6vw, 2.25rem) !important;
        margin-bottom: 2rem !important;
    }

    /* Stats grids */
    .ab-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem !important; }
    .sd-stats-grid { gap: 1.5rem !important; }

    /* Service detail content padding */
    .sd-section { padding: 3rem 0 !important; }
    .sd-prose { font-size: 1rem; }
    .sd-prose h2 { font-size: 1.5rem !important; }

    /* Hero scroll indicators - smaller */
    .ab-scroll-indicator,
    .sl-hero-scroll,
    .sd-hero-scroll { transform: translateX(-50%) scale(.8); }

    /* Disable 3D tilts on touch (avoid jank) */
    .ab-3d-card, [data-fair-card], [data-tilt-card] {
        transform: none !important;
    }

    /* Other services grid 1 column */
    .sd-others-grid { grid-template-columns: 1fr !important; }
    .sd-other-card { aspect-ratio: 16/9 !important; }
}

