/* ═══════════════════════════════════════════
   EFFUSION MEDIA — DESIGN SYSTEM
   Mobile-first • All base styles target <480px
   ═══════════════════════════════════════════ */

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

/* ── TOKENS ── */
:root {
    --ink: #0b0d12;
    --paper: #f5f2ed;
    --warm: #ebe7df;
    --cream: #faf8f5;
    --accent: #b8860b;
    --accent-deep: #956d09;
    --accent-light: #d4a843;
    --accent-glow: rgba(184, 134, 11, 0.10);
    --text: #2d2f35;
    --text-mid: #52555d;
    --text-light: #6e717a;
    --white: #ffffff;
    --border: rgba(10, 12, 16, 0.07);
    --border-strong: rgba(10, 12, 16, 0.12);
    --shadow-sm: 0 2px 8px rgba(10,12,16,0.04);
    --shadow-md: 0 8px 30px rgba(10,12,16,0.06);
    --shadow-lg: 0 20px 60px rgba(10,12,16,0.08);
    --serif: 'DM Serif Display', Georgia, serif;
    --sans: 'Outfit', system-ui, -apple-system, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 70px;
}

body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--paper);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── UTILITY ── */
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.sr-only {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ══════════════════════════════════════
   NAVIGATION — Mobile base
   ══════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0.9rem 0;
    transition: background 0.4s, box-shadow 0.4s, padding 0.3s;
}
.nav.scrolled {
    background: rgba(245, 242, 237, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
    padding: 0.6rem 0;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-family: var(--serif);
    font-size: 1.35rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.02em;
    z-index: 101;
}
.nav-logo span { color: var(--accent); }

/* Hamburger */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}
.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--ink);
    border-radius: 1px;
    transition: all 0.3s var(--ease);
    transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -6px); }

/* Mobile menu */
.nav-links {
    position: fixed;
    inset: 0;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
}
.nav-links.open {
    opacity: 1;
    visibility: visible;
}
.nav-links a {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--accent); }
.nav-links a.active { color: var(--accent); }
.nav-cta-link {
    background: var(--ink) !important;
    color: var(--paper) !important;
    padding: 0.7rem 1.75rem !important;
    border-radius: 2px;
    font-size: 0.85rem !important;
    letter-spacing: 0.06em !important;
    transition: background 0.3s !important;
}
.nav-cta-link:hover,
.nav-cta-link:focus-visible { background: var(--accent) !important; }

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.35s var(--ease);
    width: 100%;
    text-align: center;
}
.btn-primary {
    background: var(--ink);
    color: var(--paper);
}
.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184,134,11,0.2);
}
.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink);
}
.btn-outline:hover,
.btn-outline:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}
.btn-arrow::after {
    content: '→';
    transition: transform 0.3s;
}
.btn-arrow:hover::after { transform: translateX(4px); }
.btn-light {
    background: rgba(244,241,236,0.12);
    color: var(--paper);
    border: 1.5px solid rgba(244,241,236,0.2);
}
.btn-light:hover,
.btn-light:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ══════════════════════════════════════
   SECTION COMPONENTS
   ══════════════════════════════════════ */
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.section-title {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}
.section-title em {
    font-style: italic;
    color: var(--accent);
}
.section-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 2.5rem;
}

/* ══════════════════════════════════════
   HERO — Mobile base
   ══════════════════════════════════════ */
.hero {
    padding: 7rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -20%; right: -40%;
    width: 100vw; height: 80vw;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 65%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: lineGrow 1.5s 0.6s var(--ease) both;
}
.hero-content { position: relative; z-index: 1; }
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
    animation: fadeUp 0.7s 0.15s var(--ease) both;
}
.hero-tag::before {
    content: '';
    width: 24px; height: 2px;
    background: var(--accent);
}
.hero h1 {
    font-family: var(--serif);
    font-size: 2.4rem;
    line-height: 1.1;
    color: var(--ink);
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
    animation: fadeUp 0.7s 0.25s var(--ease) both;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-mid);
    margin-bottom: 2rem;
    animation: fadeUp 0.7s 0.35s var(--ease) both;
}
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: fadeUp 0.7s 0.45s var(--ease) both;
}

/* ══════════════════════════════════════
   PAGE HERO (Services, Process subpages)
   ══════════════════════════════════════ */
.page-hero {
    padding: 7rem 0 3.5rem;
    background: var(--ink);
    color: var(--paper);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(184,134,11,0.07) 0%, transparent 65%);
    pointer-events: none;
}
.page-hero .section-title {
    color: var(--paper);
    font-size: 2.2rem;
    animation: fadeUp 0.7s 0.15s var(--ease) both;
}
.page-hero .section-subtitle {
    color: rgba(244,241,236,0.6);
    max-width: 540px;
    animation: fadeUp 0.7s 0.3s var(--ease) both;
}
.page-hero .section-label {
    animation: fadeUp 0.7s 0.05s var(--ease) both;
}

/* ══════════════════════════════════════
   TRUST BAR
   ══════════════════════════════════════ */
.trust-bar {
    padding: 2.5rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    text-align: center;
}
.trust-number {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--ink);
    line-height: 1;
}
.trust-label {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-top: 0.15rem;
}

/* ══════════════════════════════════════
   SERVICE CARDS
   ══════════════════════════════════════ */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease);
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 0;
    background: var(--accent);
    transition: height 0.4s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card:hover::before { height: 100%; }
.card-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-glow);
    border-radius: 2px;
    margin-bottom: 1.25rem;
}
.card-icon svg {
    width: 22px; height: 22px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.card h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--ink);
    margin-bottom: 0.6rem;
}
.card p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.6;
}
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    transition: gap 0.3s;
}
.card-link:hover { gap: 0.6rem; }
.card-link::after { content: '→'; }

/* ══════════════════════════════════════
   DARK SECTION (Process, Alt-bands)
   ══════════════════════════════════════ */
.dark-section {
    padding: 4.5rem 0;
    background: var(--ink);
    color: var(--paper);
    position: relative;
    overflow: hidden;
}
.dark-section::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(184,134,11,0.05) 0%, transparent 65%);
    pointer-events: none;
}
.dark-section .section-title { color: var(--paper); }
.dark-section .section-subtitle { color: rgba(244,241,236,0.55); }

/* ══════════════════════════════════════
   STEPS
   ══════════════════════════════════════ */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.step { position: relative; }
.step-number {
    font-family: var(--serif);
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.step h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--paper);
    margin-bottom: 0.4rem;
}
.step p {
    font-size: 0.9rem;
    color: rgba(244,241,236,0.5);
    line-height: 1.6;
}

/* ══════════════════════════════════════
   WARM SECTION
   ══════════════════════════════════════ */
.warm-section {
    padding: 4.5rem 0;
    background: var(--warm);
}

/* ══════════════════════════════════════
   RESULT / STAT CARDS
   ══════════════════════════════════════ */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.stat-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border: 1px solid var(--border);
}

/* Warm-section text (reuse text-content styles without wrapper) */
.warm-section h2 {
    font-family: var(--serif);
    font-size: 1.75rem;
    color: var(--ink);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.warm-section p {
    color: var(--text-mid);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.warm-section p:last-child { margin-bottom: 0; }
.warm-section strong { color: var(--ink); }
.stat-number {
    font-family: var(--serif);
    font-size: 2.5rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.35rem;
}
.stat-headline {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.5rem;
}
.stat-detail {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ══════════════════════════════════════
   TEXT SECTION (long-form content blocks)
   ══════════════════════════════════════ */
.text-block {
    padding: 4.5rem 0;
}
.text-content {
    max-width: 680px;
}
.text-content h2 {
    font-family: var(--serif);
    font-size: 1.75rem;
    color: var(--ink);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.text-content p {
    color: var(--text-mid);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.text-content p:last-child { margin-bottom: 0; }
.text-content strong { color: var(--ink); }

/* Bullet list variant */
.check-list {
    list-style: none;
    margin: 1.5rem 0;
}
.check-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.55;
}
.check-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.35rem;
    width: 14px; height: 14px;
    border: 1.5px solid var(--accent);
    border-radius: 2px;
    background: var(--accent-glow);
}
.check-list li::after {
    content: '✓';
    position: absolute;
    left: 2.5px; top: 0.18rem;
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 700;
}

/* ══════════════════════════════════════
   CTA / GOOGLE FORM SECTION
   ══════════════════════════════════════ */
.cta-section {
    padding: 4.5rem 0;
    text-align: center;
}
.cta-section .section-title {
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}
.cta-section .section-subtitle {
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}
.form-wrapper {
    max-width: 680px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 0.35rem;
    box-shadow: var(--shadow-md);
}
.form-wrapper iframe {
    width: 100%;
    min-height: 560px;
    border: none;
    display: block;
}
.form-note {
    margin-top: 1.25rem;
    font-size: 0.78rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}
.form-note svg {
    width: 13px; height: 13px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
}

/* ══════════════════════════════════════
   INLINE CTA BAND
   ══════════════════════════════════════ */
.cta-band {
    padding: 3.5rem 0;
    background: var(--ink);
    text-align: center;
}
.cta-band h2 {
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--paper);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.cta-band p {
    color: rgba(244,241,236,0.5);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.cta-band .btn { width: auto; }

.center-cta { text-align: center; margin-top: 2.5rem; }

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}
.footer-brand {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--ink);
}
.footer-brand span { color: var(--accent); }
.footer-links {
    display: flex;
    gap: 1.5rem;
}
.footer-links a {
    font-size: 0.78rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes lineGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════
   ACCESSIBILITY
   ══════════════════════════════════════ */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════
   TABLET — min-width: 640px
   ══════════════════════════════════════ */
@media (min-width: 640px) {
    .container { padding: 0 2rem; }

    .hero { padding: 8rem 0 5rem; }
    .hero h1 { font-size: 3rem; }
    .hero-actions { flex-direction: row; }
    .btn { width: auto; }

    .page-hero .section-title { font-size: 2.6rem; }

    .trust-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
    .trust-number { font-size: 2.25rem; }

    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

    .steps-grid { grid-template-columns: repeat(2, 1fr); }

    .section-title { font-size: 2.25rem; }

    .cta-band h2 { font-size: 1.85rem; }

    .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }

    .form-wrapper iframe { min-height: 520px; }
}

/* ══════════════════════════════════════
   DESKTOP — min-width: 1024px
   ══════════════════════════════════════ */
@media (min-width: 1024px) {
    .container { padding: 0 3rem; }

    /* Nav: horizontal links, hide hamburger */
    .nav-toggle { display: none; }
    .nav-links {
        position: static;
        flex-direction: row;
        opacity: 1;
        visibility: visible;
        background: none;
        gap: 2.25rem;
    }
    .nav-links a {
        font-size: 0.8rem;
    }

    .hero { padding: 10rem 0 6rem; min-height: 85vh; display: flex; align-items: center; }
    .hero h1 { font-size: 3.75rem; }
    .hero p { font-size: 1.15rem; max-width: 560px; }
    .hero-content { max-width: 700px; }

    .page-hero { padding: 10rem 0 4.5rem; }
    .page-hero .section-title { font-size: 3rem; }

    .card-grid { grid-template-columns: repeat(4, 1fr); }

    .stat-grid { grid-template-columns: repeat(3, 1fr); }

    .warm-section h2 { font-size: 1.85rem; }

    .steps-grid { grid-template-columns: repeat(4, 1fr); }

    .section-title { font-size: 2.75rem; }

    .text-block { padding: 6rem 0; }
    .dark-section { padding: 6rem 0; }
    .warm-section { padding: 6rem 0; }
    .cta-section { padding: 6rem 0; }

    .trust-bar { padding: 3rem 0; }
    .trust-number { font-size: 2.5rem; }
}
