/* ============================================================
   script.med — shared design system
   Refined warm editorial brand: cream neutrals, deep green,
   serif display type, restrained motion, real imagery.
   ============================================================ */

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

:root {
    /* Warm neutrals */
    --warm-50:  #FDFCFA;
    --warm-100: #F8F6F1;
    --warm-200: #EFECE4;
    --warm-300: #E2DDD2;
    --warm-400: #C8C1B4;
    --warm-500: #A69E90;
    --warm-600: #857C6E;
    --warm-700: #635B4F;
    --warm-800: #433C33;
    --warm-900: #2A2520;
    --warm-950: #1A1714;

    /* Brand green */
    --green:       #1A6B4A;
    --green-dark:  #145539;
    --green-deep:  #0E3B29;
    --green-ink:   #122B20;
    --green-light: #E9F3EE;
    --green-line:  #CFE3D9;

    /* Gold — sparingly */
    --gold:       #A8874F;
    --gold-light: #F4EDDF;

    --text:           var(--warm-950);
    --text-secondary: var(--warm-700);
    --text-muted:     var(--warm-500);

    --bg:      var(--warm-50);
    --bg-alt:  var(--warm-100);

    --border:      #E7E3D9;
    --shadow-sm: 0 1px 2px rgba(26,23,20,0.05);
    --shadow-md: 0 6px 24px -8px rgba(26,23,20,0.10);
    --shadow-lg: 0 20px 50px -20px rgba(26,23,20,0.18);

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --nav-h: 72px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.15; color: var(--warm-950); font-weight: 600; letter-spacing: -0.015em; }
h4, h5 { font-family: var(--font-sans); font-weight: 600; line-height: 1.35; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--green); }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; }

::selection { background: var(--green-light); color: var(--green-deep); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------
   Motion — one restrained pattern, honours reduced motion
   ------------------------------------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 26px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn svg { flex: 0 0 auto; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--warm-800); border-color: var(--warm-300); }
.btn-ghost:hover { border-color: var(--warm-500); color: var(--warm-950); }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-light:hover { background: var(--warm-100); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-outline-light:hover { border-color: rgba(255,255,255,0.7); }
.btn-lg { padding: 15px 32px; font-size: 0.98rem; }

.text-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--green); font-weight: 600; font-size: 0.92rem;
}
.text-link svg { transition: transform 0.25s; }
.text-link:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex; align-items: center;
    background: rgba(253,252,250,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav .container-wide { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links > a:not(.btn) {
    font-size: 0.9rem; font-weight: 500;
    color: var(--warm-700);
    transition: color 0.25s;
    padding: 4px 0;
}
.nav-links > a:not(.btn):hover { color: var(--warm-950); }
.nav-links > a[aria-current="page"] { color: var(--green-deep); font-weight: 600; }
.lang-toggle {
    font-size: 0.78rem !important; font-weight: 700 !important;
    letter-spacing: 0.06em;
    color: var(--warm-600) !important;
    border: 1px solid var(--warm-300);
    border-radius: 999px;
    padding: 6px 12px !important;
    cursor: pointer;
    background: none;
    transition: border-color 0.25s, color 0.25s;
}
.lang-toggle:hover { border-color: var(--green); color: var(--green) !important; }

.mobile-toggle {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: none; padding: 8px; cursor: pointer;
}
.mobile-toggle span { width: 22px; height: 2px; background: var(--warm-950); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   Section scaffolding
   ------------------------------------------------------------ */
main { padding-top: var(--nav-h); }

.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); }
.section-tight { padding: 72px 0; }

.eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 16px;
}
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 16px; }
.lede { font-size: 1.06rem; color: var(--text-secondary); line-height: 1.7; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ------------------------------------------------------------
   Cards & lists
   ------------------------------------------------------------ */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 32px;
}
.card h4 { font-size: 1.02rem; margin-bottom: 8px; }
.card p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.65; }
.card-icon {
    width: 42px; height: 42px;
    border-radius: var(--r-sm);
    background: var(--green-light);
    color: var(--green-deep);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.card-icon svg { width: 20px; height: 20px; }

.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li {
    display: flex; align-items: flex-start; gap: 11px;
    font-size: 0.94rem; color: var(--warm-800); line-height: 1.55;
}
.check-list li svg {
    flex: 0 0 auto; width: 17px; height: 17px;
    margin-top: 3px; color: var(--green);
}

/* Numbered editorial list */
.num-list { counter-reset: num; display: flex; flex-direction: column; }
.num-list > li {
    counter-increment: num;
    display: grid; grid-template-columns: 56px 1fr; gap: 20px;
    padding: 28px 0;
    border-top: 1px solid var(--border);
}
.num-list > li:last-child { border-bottom: 1px solid var(--border); }
.num-list > li::before {
    content: "0" counter(num);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--warm-400);
    line-height: 1.2;
}
.num-list h4 { font-size: 1.05rem; margin-bottom: 6px; }
.num-list p { font-size: 0.94rem; color: var(--text-secondary); }

/* ------------------------------------------------------------
   Stats — editorial, hairline separated
   ------------------------------------------------------------ */
.stat-row {
    display: grid; grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stat {
    padding: 40px 32px;
    text-align: center;
}
.stat + .stat { border-left: 1px solid var(--border); }
.stat-num {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--green-deep);
    line-height: 1.1;
    margin-bottom: 8px;
}
.stat-label { font-size: 0.88rem; color: var(--text-secondary); }
.stat-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 14px; text-align: center; }

/* ------------------------------------------------------------
   Photography
   ------------------------------------------------------------ */
.photo {
    border-radius: var(--r-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(26,23,20,0.08);
    pointer-events: none;
}
.photo-caption {
    font-size: 0.78rem; color: var(--text-muted);
    margin-top: 12px;
}

/* ------------------------------------------------------------
   Product mockup window — quiet, credible
   ------------------------------------------------------------ */
.mock {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    font-size: 0.85rem;
}
.mock-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--warm-50);
}
.mock-brand { font-family: var(--font-serif); font-size: 0.95rem; color: var(--warm-950); }
.mock-brand span { color: var(--green); }
.mock-status {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 0.72rem; font-weight: 600; color: var(--warm-700);
    background: #fff; border: 1px solid var(--border);
    padding: 4px 10px; border-radius: 999px;
}
.mock-status .rec-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #C0392B;
    animation: recPulse 1.6s ease-in-out infinite;
}
@keyframes recPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .mock-status .rec-dot { animation: none; } }

.mock-cols { display: grid; grid-template-columns: 1fr 1fr; }
.mock-col { padding: 18px; }
.mock-col + .mock-col { border-left: 1px solid var(--border); background: var(--warm-50); }
.mock-col-title {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 7px;
}
.mock-col-title svg { width: 13px; height: 13px; }

.mock-line { margin-bottom: 13px; }
.mock-speaker {
    font-size: 0.64rem; font-weight: 700; letter-spacing: 0.09em;
    text-transform: uppercase; margin-bottom: 2px;
}
.mock-speaker.doc { color: var(--green); }
.mock-speaker.pat { color: var(--gold); }
.mock-line p { font-size: 0.8rem; line-height: 1.55; color: var(--warm-800); }

.mock-note-block { margin-bottom: 14px; }
.mock-note-label {
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--green-deep);
    margin-bottom: 3px;
}
.mock-note-block p { font-size: 0.78rem; line-height: 1.55; color: var(--warm-800); }
.mock-note-block .icd {
    display: inline-block;
    font-size: 0.68rem; font-weight: 600;
    background: var(--green-light); color: var(--green-deep);
    border-radius: 4px; padding: 0 5px;
}

/* ------------------------------------------------------------
   Live demo animation (mock with id="liveDemo")
   ------------------------------------------------------------ */
.mock-cols.has-video { grid-template-columns: 0.85fr 1.15fr; align-items: stretch; }
.mock-video {
    position: relative;
    background: var(--warm-950);
    aspect-ratio: 3/4;
}
.mock-video video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.mock-video-badge {
    position: absolute;
    left: 14px; bottom: 14px;
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(253,252,250,0.94);
    border-radius: 999px;
    padding: 6px 13px;
    font-size: 0.72rem; font-weight: 600; color: var(--warm-800);
    box-shadow: var(--shadow-sm);
}
.mock-feed { position: relative; padding: 0; }
.demo-phases { position: absolute; inset: 0; }
.demo-phase {
    position: absolute; inset: 0;
    padding: 24px 26px;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}
.demo-phase.active { opacity: 1; pointer-events: auto; }
.mock-feed .mock-line { margin-bottom: 16px; }
.mock-feed .mock-line p { font-size: 0.9rem; }
.mock-feed .mock-note-block {
    border-left: 2px solid var(--green-line);
    padding-left: 12px;
    margin-bottom: 16px;
}
.mock-feed .mock-note-block p { font-size: 0.86rem; }
@media (max-width: 768px) {
    .mock-cols.has-video { grid-template-columns: 1fr; }
    .mock-video { aspect-ratio: 4/3; }
    .mock-video video { object-position: center 30%; }
    .mock-feed { min-height: 380px; }
}

.mock-note-block { position: relative; }
.demo-anim .mock-line,
.demo-anim .mock-note-block {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.demo-anim .mock-line.shown,
.demo-anim .mock-note-block.shown,
.demo-anim .mock-note-block.generating { opacity: 1; transform: none; }
.demo-anim .mock-note-block.generating p { visibility: hidden; }
.demo-anim .mock-note-block.generating::after {
    content: '';
    position: absolute;
    left: 0; right: 32%; top: 21px;
    height: 9px; border-radius: 5px;
    background: linear-gradient(90deg, var(--warm-200), var(--green-line), var(--warm-200));
    background-size: 200% 100%;
    animation: demoShimmer 1.1s linear infinite;
}
@keyframes demoShimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

/* ------------------------------------------------------------
   Steps — typographic, oversized numerals
   ------------------------------------------------------------ */
.steps-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 32px; flex-wrap: wrap; margin-bottom: 72px;
}
.steps-head h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.steps-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: clamp(32px, 5vw, 72px);
}
.step-col {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 34px 32px 36px;
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s;
}
.step-col:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px;
    border-radius: 16px;
    background: var(--green-light);
    color: var(--green-deep);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 22px;
    user-select: none;
}
.step-col h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em;
    margin: 0 0 10px;
}
.step-col p { font-size: 0.95rem; color: var(--text-secondary); }
@media (max-width: 768px) {
    .steps-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ------------------------------------------------------------
   Dark ink section with serif facts
   ------------------------------------------------------------ */
.sec-ink { background: var(--green-ink); padding: 116px 0; }
.sec-ink .eyebrow { color: #8FBCA6; }
.sec-ink h2 { color: #fff; font-size: clamp(2.1rem, 3.8vw, 2.9rem); margin-bottom: 14px; }
.sec-ink h2 em { color: #C9E3D6; }
.sec-ink .sec-ink-lede { color: rgba(255,255,255,0.72); font-size: 1.04rem; max-width: 46ch; }
.sec-ink-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center; }
.sec-facts {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 40px 44px; margin-top: 52px;
}
.sec-facts.cols-4 { grid-template-columns: repeat(4, 1fr); }
.sec-fact { border-top: 1px solid rgba(255,255,255,0.16); padding-top: 20px; }
.sec-fact h3 {
    font-family: var(--font-serif);
    font-size: 1.45rem; font-weight: 600; letter-spacing: 0;
    color: #EAF4EE; margin-bottom: 6px;
}
.sec-fact p { font-size: 0.88rem; color: rgba(255,255,255,0.62); line-height: 1.6; }
.sec-ink .text-link { color: #C9E3D6; margin-top: 44px; display: inline-flex; }
.sec-ink-photo {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
    aspect-ratio: 4/4.7;
}
.sec-ink-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1024px) {
    .sec-ink-grid { grid-template-columns: 1fr; gap: 52px; }
    .sec-ink-photo { max-width: 520px; aspect-ratio: 3/2; }
    .sec-facts.cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .sec-facts, .sec-facts.cols-4 { grid-template-columns: 1fr; gap: 28px; }
}

/* ------------------------------------------------------------
   Logo strip (PVS)
   ------------------------------------------------------------ */
.logo-strip {
    display: flex; align-items: center; justify-content: center;
    gap: clamp(32px, 6vw, 72px);
    flex-wrap: wrap;
}
.logo-strip img {
    height: 30px; width: auto;
    opacity: 0.65;
    filter: grayscale(1);
    transition: opacity 0.25s, filter 0.25s;
}
.logo-strip a:hover img { opacity: 1; filter: none; }
.logo-strip-label {
    text-align: center;
    font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-muted); font-weight: 600;
    margin-bottom: 28px;
}

/* ------------------------------------------------------------
   FAQ — semantic accordion
   ------------------------------------------------------------ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details { border-top: 1px solid var(--border); }
.faq-list details:last-child { border-bottom: 1px solid var(--border); }
.faq-list summary {
    list-style: none;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 22px 4px;
    font-weight: 600; font-size: 1rem;
    cursor: pointer;
    color: var(--warm-900);
    transition: color 0.2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--green-deep); }
.faq-list summary .faq-chevron {
    flex: 0 0 auto;
    width: 18px; height: 18px;
    color: var(--warm-500);
    transition: transform 0.3s;
}
.faq-list details[open] summary .faq-chevron { transform: rotate(45deg); color: var(--green); }
.faq-list .faq-body {
    padding: 0 4px 24px;
    font-size: 0.94rem; color: var(--text-secondary); line-height: 1.7;
    max-width: 680px;
}

/* ------------------------------------------------------------
   CTA band — premium ink card with still-life photo
   ------------------------------------------------------------ */
.cta-band { padding: 48px 0 120px; }
.cta-card {
    position: relative;
    background: var(--green-ink);
    border-radius: 28px;
    overflow: hidden;
    padding: clamp(52px, 7vw, 92px) clamp(28px, 6vw, 88px);
    box-shadow: 0 40px 90px -40px rgba(18,43,32,0.55);
}
.cta-card-img { position: absolute; inset: 0; }
.cta-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: right center;
    opacity: 0.55;
}
.cta-card-img::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, #122B20 32%, rgba(18,43,32,0.72) 62%, rgba(18,43,32,0.3) 100%);
}
.cta-card-content { position: relative; z-index: 1; max-width: 580px; }
.cta-card .eyebrow { color: #9FC7B3; }
.cta-card h2 {
    color: #fff;
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    max-width: 640px;
    margin-bottom: 18px;
}
.cta-card h2 em { color: #C9E3D6; }
.cta-card p { color: rgba(255,255,255,0.78); max-width: 540px; font-size: 1.02rem; margin-bottom: 28px; }
.cta-card .check-list li { color: rgba(255,255,255,0.85); }
.cta-card .check-list li svg { color: #8FBCA6; }
.cta-card .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-card .cta-small { margin-top: 20px; font-size: 0.82rem; color: rgba(255,255,255,0.55); }

/* ------------------------------------------------------------
   Page hero (subpages)
   ------------------------------------------------------------ */
.page-hero { padding: 88px 0 0; }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.4rem); max-width: 720px; margin-bottom: 22px; }
.page-hero .lede { max-width: 620px; font-size: 1.12rem; }

/* ------------------------------------------------------------
   Footer — ink
   ------------------------------------------------------------ */
.footer { background: var(--warm-950); color: var(--warm-400); margin-top: 0; }
.footer a { transition: color 0.2s; }
.footer a:hover { color: #fff; }
.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding: 72px 0 56px;
}
.footer-brand img { height: 40px; width: auto; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-tagline { font-size: 0.88rem; line-height: 1.65; color: var(--warm-500); max-width: 260px; }
.footer-col-title {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--warm-600);
    margin-bottom: 18px;
}
.footer-col a { display: block; font-size: 0.88rem; color: var(--warm-400); margin-bottom: 11px; }
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 26px 0 34px;
    font-size: 0.8rem; color: var(--warm-600);
}
.footer-badge { display: inline-flex; align-items: center; gap: 8px; }
.footer-badge svg { width: 14px; height: 14px; color: #7FAE97; }

/* ------------------------------------------------------------
   Modal (contact)
   ------------------------------------------------------------ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(26,23,20,0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    display: none;
    align-items: center; justify-content: center;
    padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: #fff;
    border-radius: var(--r-lg);
    padding: 44px;
    max-width: 480px; width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
    max-height: 90vh; overflow-y: auto;
}
.modal h2 { font-size: 1.6rem; margin-bottom: 8px; }
.modal-sub { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 26px; }
.modal-close {
    position: absolute; top: 16px; right: 20px;
    background: none; border: none;
    font-size: 1.6rem; color: var(--warm-500);
    cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--warm-950); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--warm-300);
    border-radius: var(--r-sm);
    font-family: var(--font-sans);
    font-size: 0.92rem; color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color 0.25s;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(26,107,74,0.12);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.modal .btn { width: 100%; margin-top: 6px; }
.modal-status { margin-top: 12px; font-size: 0.85rem; min-height: 1.2em; }
.modal-status.ok { color: var(--green); }
.modal-status.err { color: #B03A2E; }

/* Premium two-panel contact modal */
.modal-contact {
    max-width: 880px;
    padding: 0;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    overflow: hidden;
}
.modal-contact-aside {
    position: relative;
    background: var(--green-ink);
    padding: 46px 42px;
    display: flex; flex-direction: column;
    overflow: hidden;
}
.modal-aside-bg { position: absolute; inset: 0; pointer-events: none; }
.modal-aside-bg video { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.modal-aside-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(18,43,32,0.85), rgba(18,43,32,0.65));
}
.modal-contact-aside > * { position: relative; z-index: 1; }
.modal-contact-aside .eyebrow { color: #8FBCA6; }
.modal-contact-aside h2 {
    color: #fff;
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 14px;
}
.modal-contact-aside p {
    color: rgba(255,255,255,0.75);
    font-size: 0.93rem;
    line-height: 1.65;
    margin-bottom: 28px;
}
.modal-contact-aside .check-list { margin-top: auto; gap: 14px; }
.modal-contact-aside .check-list li { color: rgba(255,255,255,0.85); font-size: 0.88rem; }
.modal-contact-aside .check-list li svg { color: #8FBCA6; }
.modal-contact-form { padding: 46px 42px; }
@media (max-width: 720px) {
    .modal-contact { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
    .modal-contact-aside { padding: 34px 30px 28px; }
    .modal-contact-aside .check-list { display: none; }
    .modal-contact-form { padding: 30px; }
}

.modal-legal { max-width: 720px; }
.modal-legal h1 { font-size: 1.7rem; margin-bottom: 24px; }
.modal-legal h2 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; margin: 24px 0 8px; }
.modal-legal p, .modal-legal li { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 8px; }
.modal-legal ul { padding-left: 20px; list-style: disc; }
.modal-legal a { color: var(--green); text-decoration: underline; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .grid-2 { gap: 44px; }
}

@media (max-width: 768px) {
    .section { padding: 72px 0; }
    .nav-links {
        display: none;
        position: absolute; top: var(--nav-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 12px 24px 24px;
    }
    .nav-links.open { display: flex; }
    .nav-links > a:not(.btn) { padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--border); }
    .nav-links .btn { margin-top: 16px; }
    .nav-links .lang-toggle { align-self: flex-start; margin-top: 16px; border-bottom: none; }
    .mobile-toggle { display: flex; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: 1fr; }
    .stat + .stat { border-left: none; border-top: 1px solid var(--border); }
    .mock-cols { grid-template-columns: 1fr; }
    .mock-col + .mock-col { border-left: none; border-top: 1px solid var(--border); }
    .num-list > li { grid-template-columns: 40px 1fr; gap: 14px; }
    .page-hero h1 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
    .grid-4 { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 36px; }
    .modal { padding: 32px 24px; }
    .cta-card .cta-actions { flex-direction: column; align-items: stretch; }
}
