/* ═══════════════════════════════════════════════
   Scalar Digital Services — Design System
   ═══════════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
    --bg-primary:    #0a0e17;
    --bg-secondary:  #111827;
    --bg-card:       #1a2035;
    --bg-card-hover: #1f2847;

    --text-primary:   #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted:     #64748b;

    --accent-blue:   #3b82f6;
    --accent-cyan:   #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-emerald:#10b981;

    --gradient-brand: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan), var(--accent-purple));
    --gradient-card:  linear-gradient(145deg, rgba(59,130,246,0.08), rgba(6,182,212,0.04));
    --gradient-hero:  linear-gradient(180deg, rgba(10,14,23,0.5) 0%, var(--bg-primary) 100%);

    --glass-bg:    rgba(17, 24, 39, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);

    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  28px;

    --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-lift: 0 12px 40px rgba(0,0,0,0.4);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --nav-height: 72px;
}

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

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

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: clamp(0.938rem, 0.9rem + 0.2vw, 1.063rem);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--accent-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-cyan); }

img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-primary);
}


/* ── Layout ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.container-narrow { max-width: 800px; }

.text-center { text-align: center; }

.section {
    padding: clamp(3rem, 6vw, 6rem) 0;
}

.section-alt {
    background: var(--bg-secondary);
}


/* ── Typography ── */
.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: clamp(1.75rem, 2.5vw, 2.5rem);
    margin-bottom: 0.5em;
}

.section-subtitle {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.section-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    font-weight: 600;
}


/* ═══════════════════════════════════
   Navigation (Glassmorphism)
   ═══════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: transparent;
    transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.site-header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
}
.nav-logo:hover { color: var(--text-primary); }
.logo-scalar { background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 800; }

/* Desktop Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-item { position: relative; }

.nav-link {
    display: block;
    padding: 0.5rem 0.85rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.85rem;
    right: 0.85rem;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: 1px;
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    box-shadow: var(--shadow-card);
}

.has-dropdown.dropdown-open > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-link {
    display: block;
    padding: 0.55rem 1.2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color 0.2s, background 0.2s;
}
.nav-dropdown-link:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.nav-toggle.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ═══════════════════════════════════
   Hero
   ═══════════════════════════════════ */
.hero {
    position: relative;
    padding: calc(var(--nav-height) + clamp(2rem, 4vw, 3rem)) 0 clamp(2rem, 4vw, 3rem);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-home {
    min-height: 70vh;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 30%, rgba(59,130,246,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 80% 60%, rgba(139,92,246,0.08) 0%, transparent 70%),
        var(--bg-primary);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Per-page hero backgrounds */
.hero-home .hero-bg   { background-image: linear-gradient(180deg, rgba(10,14,23,0.55) 0%, rgba(10,14,23,0.85) 60%, var(--bg-primary) 100%), url('/images/hero-home.webp'); }
.hero-inner .hero-bg  { background-image: linear-gradient(180deg, rgba(10,14,23,0.6) 0%, rgba(10,14,23,0.9) 70%, var(--bg-primary) 100%), var(--hero-img, none); }

body[data-page="about"]                .hero-inner .hero-bg { --hero-img: url('/images/hero-about.webp'); }
body[data-page="services"]             .hero-inner .hero-bg { --hero-img: url('/images/hero-services.webp'); }
body[data-page="digital-advertising"]  .hero-inner .hero-bg { --hero-img: url('/images/hero-digital-advertising.webp'); }
body[data-page="lead-generation"]      .hero-inner .hero-bg { --hero-img: url('/images/hero-lead-generation.webp'); }
body[data-page="media-network"]        .hero-inner .hero-bg { --hero-img: url('/images/hero-media-network.webp'); }
body[data-page="industries"]           .hero-inner .hero-bg { --hero-img: url('/images/hero-industries.webp'); }
body[data-page="how-it-works"]         .hero-inner .hero-bg { --hero-img: url('/images/hero-how-it-works.webp'); }
body[data-page="contact"]              .hero-inner .hero-bg { --hero-img: url('/images/hero-contact.webp'); }

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(transparent, var(--bg-primary));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
    max-width: 800px;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-inner .hero-title { max-width: 700px; }
.hero-inner .hero-subtitle { max-width: 560px; }

.hero-404 .hero-title { font-size: clamp(4rem, 10vw, 8rem); }


/* ═══════════════════════════════════
   Buttons
   ═══════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}
.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(59,130,246,0.45);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}
.btn-outline:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-lg { padding: 0.8rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; }


/* ═══════════════════════════════════
   Cards
   ═══════════════════════════════════ */
.card-grid {
    display: grid;
    gap: 1.5rem;
}

.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: clamp(1.5rem, 2.5vw, 2rem);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(59,130,246,0.2);
}

.card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.25rem;
    color: var(--accent-blue);
}

.card-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.925rem;
    line-height: 1.65;
}

.card-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

/* Service card as link */
a.service-card { text-decoration: none; color: inherit; display: block; }
a.service-card:hover { color: inherit; }
a.service-card:hover .card-link { color: var(--accent-blue); }

/* Service detail cards */
.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 2rem;
}

.service-detail-card {
    display: flex;
    flex-direction: column;
}

.service-detail-card .btn { align-self: flex-start; margin-top: auto; }

/* Feature list */
.feature-list {
    margin: 1rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-list li {
    padding-left: 1.25rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
}

/* Value card */
.value-card { background-image: var(--gradient-card); }

/* Industry card */
.industry-card { text-align: center; }
.industry-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--accent-cyan);
}

/* Platform grid */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
}

.platform-card { background-image: var(--gradient-card); }


/* ═══════════════════════════════════
   Timeline
   ═══════════════════════════════════ */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple));
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 2px solid var(--bg-primary);
    transform: translateX(-50%);
    left: -2.5rem;
    margin-left: 1px;
}

.timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.925rem;
}

/* Numbered timeline (How It Works) */
.timeline-numbered { padding-left: 5rem; }
.timeline-numbered::before { left: calc(20px - 1px); }

.timeline-number {
    position: absolute;
    left: -5rem;
    top: -0.15rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
}


/* ═══════════════════════════════════
   Funnel (Lead Generation)
   ═══════════════════════════════════ */
.funnel {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.funnel-stage {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
}

.funnel-bar {
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-blue));
    border-radius: 2px;
    flex-shrink: 0;
}

.funnel-content {
    padding: 1.5rem 0;
}

.funnel-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
    color: var(--accent-cyan);
}

.funnel-content p {
    color: var(--text-secondary);
    font-size: 0.925rem;
}


/* ═══════════════════════════════════
   Process Steps (Media Network)
   ═══════════════════════════════════ */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.process-step { text-align: center; }

.process-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: #fff;
    margin: 0 auto 1rem;
}

.process-step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.process-step p { color: var(--text-secondary); font-size: 0.925rem; }


/* ═══════════════════════════════════
   Industry Tags (Home)
   ═══════════════════════════════════ */
.industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.industry-tag {
    padding: 0.45rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    background: rgba(59,130,246,0.06);
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s;
}

.industry-tag:hover {
    border-color: var(--accent-blue);
    color: var(--text-primary);
}


/* ═══════════════════════════════════
   Mission Block (About)
   ═══════════════════════════════════ */
.mission-block {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.mission-text {
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 400;
}

.content-block p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.75;
}

.content-block p:last-child { margin-bottom: 0; }


/* ═══════════════════════════════════
   CTA Section
   ═══════════════════════════════════ */
.cta-section {
    background:
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(59,130,246,0.08) 0%, transparent 70%),
        var(--bg-primary);
}

.cta-section .section-title { margin-bottom: 0.5rem; }
.cta-section .section-subtitle { margin-bottom: 2rem; }


/* ═══════════════════════════════════
   Contact
   ═══════════════════════════════════ */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.required { color: var(--accent-blue); }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.input-error { border-color: #ef4444 !important; }

.field-error {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: #ef4444;
}

.form-errors {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.form-errors p { margin-bottom: 0.5rem; color: #fca5a5; }
.form-errors ul { margin-left: 1rem; }
.form-errors li { color: #fca5a5; font-size: 0.875rem; list-style: disc; }

.form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    color: var(--accent-emerald);
    margin: 0 auto 1.5rem;
}

.form-success h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.form-success p { color: var(--text-secondary); margin-bottom: 1.5rem; }

.contact-info h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.info-block {
    margin-bottom: 1.5rem;
}

.info-block h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-block p {
    color: var(--text-secondary);
    font-size: 0.925rem;
    line-height: 1.65;
}

.info-block ul { display: flex; flex-direction: column; gap: 0.35rem; }
.info-block li a { font-size: 0.925rem; }


/* ═══════════════════════════════════
   Footer
   ═══════════════════════════════════ */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: clamp(2.5rem, 5vw, 4rem) 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 0.75rem;
}
.footer-logo:hover { color: var(--text-primary); }

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-address {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-style: normal;
    line-height: 1.6;
    margin-top: 0.75rem;
}

.footer-links h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.footer-links ul { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links li a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color 0.2s;
}
.footer-links li a:hover { color: var(--text-primary); }

.footer-cta-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}


/* ═══════════════════════════════════
   Animations
   ═══════════════════════════════════ */
.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for cards in a grid */
.card-grid .animate-in:nth-child(2) { transition-delay: 0.08s; }
.card-grid .animate-in:nth-child(3) { transition-delay: 0.16s; }
.card-grid .animate-in:nth-child(4) { transition-delay: 0.24s; }
.card-grid .animate-in:nth-child(5) { transition-delay: 0.32s; }
.card-grid .animate-in:nth-child(6) { transition-delay: 0.4s; }
.card-grid .animate-in:nth-child(7) { transition-delay: 0.48s; }
.card-grid .animate-in:nth-child(8) { transition-delay: 0.56s; }

.timeline-item.animate-in:nth-child(2) { transition-delay: 0.1s; }
.timeline-item.animate-in:nth-child(3) { transition-delay: 0.2s; }
.timeline-item.animate-in:nth-child(4) { transition-delay: 0.3s; }
.timeline-item.animate-in:nth-child(5) { transition-delay: 0.4s; }
.timeline-item.animate-in:nth-child(6) { transition-delay: 0.5s; }


/* ═══════════════════════════════════
   Responsive
   ═══════════════════════════════════ */

/* ≤ 1024px */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ≤ 768px */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 85vw);
        background: var(--bg-secondary);
        border-left: 1px solid var(--glass-border);
        flex-direction: column;
        align-items: stretch;
        padding: calc(var(--nav-height) + 1rem) 1.5rem 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-link {
        padding: 0.75rem 0;
        font-size: 1rem;
    }

    .nav-link.active::after { display: none; }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: none;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 0 0 0 1rem;
    }

    .nav-dropdown-link {
        padding: 0.5rem 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .timeline-numbered { padding-left: 4rem; }
    .timeline-numbered::before { left: calc(17px - 1px); }
    .timeline-number { left: -4rem; width: 34px; height: 34px; font-size: 0.75rem; }
}

/* ≤ 640px */
@media (max-width: 640px) {
    .hero-home { min-height: 60vh; }

    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { width: 100%; }

    .section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
}
