/*
Theme Name: Valens B2B
Theme URI: https://valens-health.com/
Author: Valens Int d.o.o.
Description: Custom classic theme for valens-health.com. Reproduces the approved
             single-file prototype (v27, 25 Aug 2026) as four real WordPress
             pages. Self-hosted Roboto + Bitter, no external requests.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: Proprietary - all rights reserved
Text Domain: valens
*/

/* ===================================================================
   Everything below is the prototype stylesheet, unchanged, except that
   the base64 @font-face sources were replaced with real files under
   assets/fonts/. Selectors scoped to .view / .view.active still work
   because header.php keeps a single <div class="view active"> wrapper.
   =================================================================== */


  /* Valens CGP typography — Roboto (sans) + Bitter (slab serif), self-hosted, SIL OFL 1.1 */
  @font-face{ font-family:'Roboto'; font-style:normal; font-weight:400; font-display:swap;
    src:url(assets/fonts/roboto-400-latin.woff2) format('woff2');
    unicode-range:U+0000-00FF,U+2013-2014,U+2018-201D,U+2022,U+2026,U+20AC; }
  @font-face{ font-family:'Roboto'; font-style:normal; font-weight:400; font-display:swap;
    src:url(assets/fonts/roboto-400-latin-ext.woff2) format('woff2');
    unicode-range:U+0100-017F; }
  @font-face{ font-family:'Roboto'; font-style:normal; font-weight:500; font-display:swap;
    src:url(assets/fonts/roboto-500-latin.woff2) format('woff2');
    unicode-range:U+0000-00FF,U+2013-2014,U+2018-201D,U+2022,U+2026,U+20AC; }
  @font-face{ font-family:'Roboto'; font-style:normal; font-weight:500; font-display:swap;
    src:url(assets/fonts/roboto-500-latin-ext.woff2) format('woff2');
    unicode-range:U+0100-017F; }
  @font-face{ font-family:'Roboto'; font-style:normal; font-weight:700; font-display:swap;
    src:url(assets/fonts/roboto-700-latin.woff2) format('woff2');
    unicode-range:U+0000-00FF,U+2013-2014,U+2018-201D,U+2022,U+2026,U+20AC; }
  @font-face{ font-family:'Roboto'; font-style:normal; font-weight:700; font-display:swap;
    src:url(assets/fonts/roboto-700-latin-ext.woff2) format('woff2');
    unicode-range:U+0100-017F; }
  @font-face{ font-family:'Bitter'; font-style:normal; font-weight:700; font-display:swap;
    src:url(assets/fonts/bitter-700-latin.woff2) format('woff2');
    unicode-range:U+0000-00FF,U+2013-2014,U+2018-201D,U+2022,U+2026,U+20AC; }
  @font-face{ font-family:'Bitter'; font-style:normal; font-weight:700; font-display:swap;
    src:url(assets/fonts/bitter-700-latin-ext.woff2) format('woff2');
    unicode-range:U+0100-017F; }

  :root{
    --navy:#0B2A3B; --teal:#0E8AA3; --teal-deep:#0A6B80; --teal-light:#E3F4F6;
    --ink:#16232B; --stone:#5B6B72; --line:#E3E7E9; --paper:#FFFFFF;
    --valens-blue:#0BA4C3;
  }
  *{ box-sizing:border-box; margin:0; padding:0; }
  button,input,select,textarea,optgroup{ font-family:inherit; }
  :focus-visible{ outline:2px solid var(--teal); outline-offset:2px; }
  body{ font-family:'Roboto',Arial,Helvetica,sans-serif; color:var(--ink); background:var(--paper); line-height:1.5; -webkit-font-smoothing:antialiased; }
  h1,h2,h3,h4{ font-family:'Bitter',Georgia,'Times New Roman',serif; font-weight:700; line-height:1.15; letter-spacing:-.01em; }
  a{ color:inherit; }
  .wrap{ max-width:1180px; margin:0 auto; padding:0 32px; }
  .mono{ font-family:'Roboto',Arial,Helvetica,sans-serif; font-weight:500; font-variant-numeric:tabular-nums; letter-spacing:.06em; }
  .view{ display:none; } .view.active{ display:block; }

  /* Info bar */
  .infobar{ background:var(--navy); color:#cfe7ec; font-size:13px; }
  .infobar .wrap{ display:flex; justify-content:space-between; align-items:center; padding:9px 32px; }
  .infobar a{ color:#fff; text-decoration:none; }
  .infobar .sep{ opacity:.4; margin:0 8px; }
  .infobar a[href^="tel"]{ white-space:nowrap; }

  /* Nav */
  nav{ border-bottom:1px solid var(--line); background:#fff; position:sticky; top:0; z-index:50; }
  nav .wrap{ display:flex; align-items:center; justify-content:space-between; padding:14px 32px; }
  .brand{ display:flex; align-items:center; gap:10px; font-family:'Bitter',Georgia,'Times New Roman',serif; font-weight:700; font-size:18px; text-decoration:none; color:var(--ink); }
  .brand .mark{ width:32px; height:32px; display:flex; align-items:center; justify-content:center; }
  .brand .tag{ font-size:11px; font-weight:500; font-family:'Roboto',Arial,Helvetica,sans-serif; color:var(--stone); letter-spacing:.02em; }
  .navlinks{ display:flex; align-items:center; gap:28px; font-size:14.5px; font-weight:500; }
  .navlinks a{ text-decoration:none; color:var(--ink); }
  .navlinks a:hover{ color:var(--teal-deep); }
  .navlinks a.active{ color:var(--teal-deep); }
  .navtoggle{ display:none; background:none; border:none; font-size:22px; cursor:pointer; color:var(--ink); }
  .btn{ display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:11px 22px; border-radius:999px; font-weight:500; font-size:14px; text-decoration:none; white-space:nowrap; border:none; cursor:pointer; font-family:'Roboto',Arial,Helvetica,sans-serif; }
  .btn-primary{ background:var(--teal); color:#fff; }
  .navlinks a.btn-primary, .navlinks a.btn-primary:hover, .navlinks a.btn-navy, .navlinks a.btn-navy:hover{ color:#fff; }
  .btn-primary:hover{ background:var(--teal-deep); }
  .btn-navy{ background:var(--navy); color:#fff; }
  .btn-navy:hover{ background:#08202c; }
  .btn-ghost{ background:#fff; color:var(--ink); border:1.5px solid var(--line); }
  .btn-ghost:hover{ border-color:var(--teal); color:var(--teal-deep); }
  @media (max-width:860px){
    .navtoggle{ display:block; }
    .navlinks{ display:none; position:absolute; top:100%; left:0; right:0; background:#fff; border-bottom:1px solid var(--line); flex-direction:column; align-items:stretch; gap:0; padding:8px 24px 18px; }
    .navlinks.open{ display:flex; }
    .navlinks a{ padding:12px 0; }
    .navlinks a.btn{ margin-top:8px; }
  }

  /* Hero */
  .hero{ position:relative; overflow:hidden; padding:64px 0 8px; background:linear-gradient(180deg,#F4FAFB 0%,#fff 100%); }
  .hero-top{ text-align:center; max-width:760px; margin:0 auto; }
  .eyebrow{ display:inline-flex; align-items:center; gap:8px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--teal-deep); background:var(--teal-light); padding:5px 12px; border-radius:999px; margin-bottom:14px; }
  .hero h1{ font-size:46px; margin-bottom:14px; }
  .hero h1 .accent{ color:var(--teal); display:block; font-size:.82em; margin-top:6px; }
  .hero .lede{ font-size:16px; color:var(--stone); max-width:640px; margin:0 auto 8px; }
  .hero-ctas{ display:flex; justify-content:center; gap:12px; flex-wrap:wrap; margin-bottom:8px; }
  .hero-note{ text-align:center; font-size:12px; color:var(--stone); padding-bottom:64px; }
  @media (max-width:860px){ .hero h1{ font-size:32px; } .hero{ padding-top:40px; } }

  /* 3 route cards */
  .routes{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin:44px 0 34px; }
  .route{ position:relative; background:#fff; border:1px solid var(--line); border-radius:16px; padding:26px; text-decoration:none; color:var(--ink); display:flex; flex-direction:column; gap:10px; text-align:left; transition:border-color .15s, transform .15s, box-shadow .15s; }
  .route:hover{ border-color:var(--teal); transform:translateY(-3px); box-shadow:0 18px 34px -20px rgba(14,138,163,.4); }
  .route .icon{ width:42px; height:42px; border-radius:11px; background:var(--teal); display:flex; align-items:center; justify-content:center; }
  .route .icon svg{ width:21px; height:21px; }
  .route .tag{ display:inline-flex; width:fit-content; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--teal-deep); background:var(--teal-light); padding:4px 10px; border-radius:999px; }
  .route h2{ font-size:19px; }
  .route p{ font-size:13.5px; color:var(--stone); flex:1; }
  .route .go{ font-size:13.5px; color:var(--teal-deep); font-weight:500; text-decoration:none; }
  .route .go:hover{ text-decoration:underline; }
  .route .links{ display:flex; flex-direction:column; gap:5px; font-size:13px; }
  .route .links a{ color:var(--teal-deep); font-weight:500; text-decoration:none; }
  .route .links a:hover{ text-decoration:underline; }
  .route-head{ display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:116px; }
  .route-head h2{ flex:1 1 auto; min-width:0; align-self:flex-start; min-height:44px; }
  .route-thumb{ flex:0 0 148px; width:148px; height:116px; display:flex; align-items:flex-end; justify-content:center; }
  .route-thumb.wide{ flex:0 0 180px; width:180px; }
  .route-thumb img{ max-width:100%; max-height:100%; width:auto; height:auto; display:block; }
  @media (max-width:900px){ .route-head{ min-height:92px; } .route-thumb{ flex:0 0 124px; width:124px; height:92px; } .route-thumb.wide{ flex:0 0 150px; width:150px; } }
  @media (max-width:900px){ .routes{ grid-template-columns:1fr; } }

  /* Two separate thresholds, each for its own reason.
     560px - info bar: below this both blocks do not fit side by side, so they stack into
     two centred rows: contacts on the first, the descriptive line on the second. Both are
     nowrap, so no value ever breaks mid-string (the phone number used to split after
     "+386 5 93 34"). At 12px the rows need 188px and 239px; a 320px screen leaves 292px.
     520px - route cards: the 150px thumbnail beside the heading pushes the card's
     min-content width to ~364px, wider than the 296px grid track, so content was
     clipped by .hero (overflow:hidden). Stacking the head removes the constraint. */
  @media (max-width:560px){
    .infobar{ font-size:12px; }
    .infobar .wrap{ flex-direction:column; align-items:center; gap:3px; padding:7px 14px; text-align:center; }
    .infobar .wrap > div{ white-space:nowrap; }
  }
  @media (max-width:520px){
    /* Tighter hero and the CTA pair lifted above the three cards, so the primary
       action is in the first screen instead of three scrolls down. Visual order only
       (flex order) — the DOM order, and therefore the desktop layout, is untouched. */
    .hero{ padding-top:24px; }
    .hero h1{ font-size:29px; }
    .hero .eyebrow{ margin-bottom:10px; }
    .hero .lede{ font-size:15.5px; }
    .hero .wrap{ display:flex; flex-direction:column; }
    .hero-top{ order:1; }
    .hero-ctas{ order:2; margin-top:18px; margin-bottom:4px; gap:10px; }
    .hero-ctas .btn{ padding:13px 13px; font-size:13.5px; }  /* 42px high, one row from 360px up */
    .hero-note{ order:3; padding-bottom:0; }
    .routes{ order:4; margin:26px 0 30px; }

    .route{ min-width:0; padding:22px; }
    .route-head{ flex-direction:column; align-items:stretch; gap:14px; min-height:0; }
    .route-head h2{ min-height:0; align-self:auto; }
    .route-thumb, .route-thumb.wide{ flex:0 0 auto; width:100%; height:150px; align-items:flex-end; justify-content:center; }
  }

  /* Our Story video */
  .story-video{ max-width:900px; margin:0 auto; }
  .video-frame{ position:relative; width:100%; aspect-ratio:16/9; border-radius:18px; overflow:hidden; background:var(--navy); box-shadow:0 26px 50px -26px rgba(11,42,59,.4); }
  .video-frame iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; display:block; }
  .video-cap{ text-align:center; font-size:13px; color:var(--stone); margin-top:14px; margin-bottom:34px; }
  .story-claim{ font-family:'Bitter',Georgia,'Times New Roman',serif; font-weight:700; font-size:25px; line-height:1.32; color:var(--valens-blue); text-align:center; max-width:860px; margin:0 auto; }
  @media (max-width:860px){ .story-claim{ font-size:19px; } }

  /* About us map */
  .about-map{ display:grid; grid-template-columns:1fr 1.15fr; gap:44px; align-items:center; margin-bottom:56px; }
  .about-map h2{ font-size:26px; margin-bottom:14px; }
  .about-map p{ color:var(--stone); font-size:15.5px; margin-bottom:18px; }
  .about-map-img img{ width:100%; height:auto; display:block; }
  .ticks{ list-style:none; display:flex; flex-direction:column; gap:10px; }
  .ticks li{ position:relative; padding-left:26px; font-size:14.5px; color:var(--ink); }
  .ticks li::before{ content:''; position:absolute; left:0; top:6px; width:14px; height:8px; border-left:2.5px solid var(--teal); border-bottom:2.5px solid var(--teal); transform:rotate(-45deg); }
  @media (max-width:900px){ .about-map{ grid-template-columns:1fr; gap:28px; } }

  /* Stats */
  .stats{ background:var(--navy); color:#fff; padding:38px 0; }
  .stats .wrap{ display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap; }
  .stat{ flex:1; min-width:150px; }
  .stat .num{ font-family:'Bitter',Georgia,'Times New Roman',serif; font-size:26px; font-weight:700; color:#6FE0F2; }
  .stat .label{ font-size:13px; color:#a9c6cd; margin-top:4px; }
  .cert-strip{ background:#08202c; padding:14px 0; text-align:center; font-size:12.5px; color:#a9c6cd; letter-spacing:.03em; }

  /* Generic blocks */
  .block{ padding:76px 0; }
  .block-head{ max-width:680px; margin-bottom:40px; }
  .block-head .eyebrow-plain{ font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--teal-deep); margin-bottom:12px; }
  .block-head h2{ font-size:30px; margin-bottom:12px; }
  .block-head p{ color:var(--stone); font-size:15.5px; }
  .block-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

  .offer-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
  .offer{ border:1px solid var(--line); border-radius:16px; padding:26px; display:flex; flex-direction:column; gap:10px; background:#fff; }
  .offer .oicon{ width:42px; height:42px; border-radius:11px; background:var(--teal-light); display:flex; align-items:center; justify-content:center; }
  .offer .oicon svg{ width:22px; height:22px; }
  .offer h3{ font-size:16px; text-transform:uppercase; letter-spacing:.02em; }
  .offer p{ font-size:13.5px; color:var(--stone); flex:1; }
  .offer .links{ display:flex; flex-direction:column; gap:4px; font-size:13px; }
  .offer .links a{ color:var(--teal-deep); font-weight:500; text-decoration:none; }
  .offer .links a:hover{ text-decoration:underline; }
  @media (max-width:900px){ .offer-grid{ grid-template-columns:repeat(2,1fr); } }
  @media (max-width:600px){ .offer-grid{ grid-template-columns:1fr; } }

  /* FAQ */
  .faq{ max-width:860px; margin:0 auto; }
  .faq details{ border-bottom:1px solid var(--line); padding:18px 0; }
  .faq summary{ cursor:pointer; font-family:'Bitter',Georgia,'Times New Roman',serif; font-weight:700; font-size:16.5px; list-style:none; display:flex; justify-content:space-between; gap:16px; }
  .faq summary::-webkit-details-marker{ display:none; }
  .faq summary::after{ content:'+'; color:var(--teal); font-weight:700; }
  .faq details[open] summary::after{ content:'\2013'; }
  .faq p{ font-size:14.5px; color:var(--stone); margin-top:12px; }

  /* CTA band */
  .ctaband{ background:var(--teal-light); padding:56px 0; text-align:center; }
  .ctaband h2{ font-size:26px; margin-bottom:10px; }
  .ctaband p{ color:var(--stone); font-size:15px; max-width:560px; margin:0 auto 22px; }

  /* Webshop */
  .webshop{ background:#F4FAFB; padding:40px 0; }
  .webshop .wrap{ display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; }
  .webshop h3{ font-size:18px; margin-bottom:6px; }
  .webshop p{ font-size:14px; color:var(--stone); max-width:560px; }
  .webshop a{ background:var(--navy); color:#fff; padding:12px 22px; border-radius:999px; text-decoration:none; font-weight:500; font-size:14px; white-space:nowrap; }

  /* Footer */
  footer{ background:var(--navy); color:#a9c6cd; padding:56px 0 24px; font-size:14px; }
  .foot-grid{ display:grid; grid-template-columns:2fr 1fr 1fr; gap:32px; margin-bottom:36px; }
  .foot-brand{ font-family:'Bitter',Georgia,'Times New Roman',serif; color:#fff; font-weight:700; font-size:18px; }
  .foot-brand p{ font-family:'Roboto',Arial,Helvetica,sans-serif; font-weight:400; color:#8fb0b8; font-size:13.5px; margin-top:10px; max-width:300px; }
  footer h4{ font-family:'Roboto',Arial,Helvetica,sans-serif; color:#fff; font-size:13px; text-transform:uppercase; letter-spacing:.05em; margin-bottom:14px; }
  footer ul{ list-style:none; display:flex; flex-direction:column; gap:9px; }
  footer a{ color:#a9c6cd; text-decoration:none; font-size:13.5px; }
  footer a:hover{ color:#fff; }
  .foot-bottom{ border-top:1px solid rgba(255,255,255,.12); padding-top:20px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; font-size:12.5px; color:#7fa3ab; }
  @media (max-width:800px){ .foot-grid{ grid-template-columns:1fr; } }

  /* Page head (subpages) */
  .page-head{ padding:52px 0 12px; text-align:center; background:linear-gradient(180deg,#F4FAFB 0%,#fff 100%); }
  .page-head .eyebrow{ margin-bottom:10px; }
  .page-head h1{ font-size:34px; margin-bottom:8px; }
  .page-head p{ color:var(--stone); font-size:15px; max-width:600px; margin:0 auto; }

  /* Timeline (Our Story) */
  .timeline{ max-width:820px; margin:0 auto; position:relative; padding-left:28px; }
  .timeline::before{ content:''; position:absolute; left:6px; top:6px; bottom:6px; width:2px; background:linear-gradient(180deg,var(--teal),var(--teal-light)); }
  .tl-item{ position:relative; padding:0 0 34px 22px; }
  .tl-item::before{ content:''; position:absolute; left:-28px; top:4px; width:14px; height:14px; border-radius:50%; background:#fff; border:3px solid var(--teal); }
  .tl-year{ font-family:'Roboto',Arial,Helvetica,sans-serif; font-weight:700; font-variant-numeric:tabular-nums; font-size:13px; color:var(--teal-deep); letter-spacing:.06em; }
  .tl-item h3{ font-size:18px; margin:4px 0 6px; }
  .tl-item p{ font-size:14.5px; color:var(--stone); }
  .tl-toggle{ max-width:820px; margin:0 auto; border:1px solid var(--line); border-radius:14px; background:#FAFCFC; }
  .tl-toggle > summary{ cursor:pointer; list-style:none; padding:18px 22px; font-family:'Bitter',Georgia,'Times New Roman',serif; font-weight:700; font-size:17px; display:flex; align-items:center; justify-content:space-between; gap:14px; }
  .tl-toggle > summary::-webkit-details-marker{ display:none; }
  .tl-toggle > summary::after{ content:'+'; color:var(--teal); font-weight:700; font-size:20px; }
  .tl-toggle[open] > summary::after{ content:'\2013'; }
  .tl-toggle .timeline{ padding:6px 22px 10px; }
  .tl-toggle .tl-item:last-child{ padding-bottom:8px; }

  /* About */
  .about-text{ max-width:860px; margin:0 0 44px; }
  .about-text p{ color:var(--stone); font-size:15.5px; margin-bottom:14px; }
  .mvv-tabs{ display:flex; gap:8px; border-bottom:1px solid var(--line); margin-bottom:24px; }
  .mvv-tab{ appearance:none; background:none; border:none; cursor:pointer; padding:12px 18px; font-family:'Roboto',Arial,Helvetica,sans-serif; font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--stone); border-bottom:2px solid transparent; margin-bottom:-1px; }
  .mvv-tab:hover{ color:var(--teal-deep); }
  .mvv-tab.active{ color:var(--teal-deep); border-bottom-color:var(--teal); }
  .mvv-panel{ border:1px solid var(--line); border-radius:14px; padding:28px; background:#fafcfc; margin-bottom:56px; }
  .mvv-content{ display:none; font-size:15px; color:var(--ink); }
  .mvv-content.active{ display:block; }
  .quality-intro{ max-width:720px; color:var(--stone); font-size:15.5px; margin-bottom:28px; }
  .certs-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-bottom:56px; }
  .cert-card{ border:1px solid var(--line); border-radius:16px; padding:26px; display:flex; flex-direction:column; gap:14px; }
  .cert-card .cert-badge img{ width:64px; height:64px; object-fit:contain; }
  .cert-card h3{ font-size:16.5px; }
  .cert-card p{ font-size:13.5px; color:var(--stone); }
  .cert-more{ flex-grow:1; }
  .cert-more > summary{ cursor:pointer; list-style:none; display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:500; color:var(--teal-deep); }
  .cert-more > summary::-webkit-details-marker{ display:none; }
  .cert-more > summary::after{ content:'+'; font-weight:700; font-size:15px; }
  .cert-more[open] > summary::after{ content:'\2013'; }
  .cert-more[open] > summary{ margin-bottom:10px; }
  .cert-card a.cert-link{ font-size:13px; font-weight:500; color:var(--teal-deep); text-decoration:none; }
  .cert-card a.cert-link:hover{ text-decoration:underline; }
  @media (max-width:1080px){ .certs-grid{ grid-template-columns:repeat(2,1fr); } }
  @media (max-width:620px){ .certs-grid{ grid-template-columns:1fr; } }
  .feature-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
  .feature{ border:1px solid var(--line); border-radius:14px; padding:22px; }
  .feature .ficon{ width:48px; height:48px; border-radius:12px; background:var(--teal-light); display:flex; align-items:center; justify-content:center; margin-bottom:14px; }
  .feature .ficon svg{ width:24px; height:24px; }
  .feature h4{ font-size:15.5px; margin-bottom:8px; }
  .feature p{ font-size:13.5px; color:var(--stone); }
  @media (max-width:900px){ .feature-grid{ grid-template-columns:repeat(2,1fr); } }


  /* Partner letter (About us) */
  .letter{ display:grid; grid-template-columns:1.4fr .85fr; gap:54px; align-items:start; }
  .letter-text .salut{ font-family:'Bitter',Georgia,'Times New Roman',serif; font-weight:700; font-size:21px; color:var(--ink); margin-bottom:16px; }
  .letter-text p{ color:var(--stone); font-size:15.5px; margin-bottom:13px; }
  .letter-text p.close{ color:var(--ink); font-weight:500; }
  .letter-sign{ margin-top:26px; padding-top:20px; border-top:1px solid var(--line); }
  .letter-sign .who{ font-family:'Bitter',Georgia,'Times New Roman',serif; font-weight:700; font-size:16.5px; color:var(--ink); }
  .letter-sign .role{ font-size:13.5px; color:var(--stone); margin-top:3px; }
  .letter-photo{ position:sticky; top:104px; }
  .letter-photo img{ width:100%; height:auto; max-width:344px; aspect-ratio:1/1; object-fit:cover; border-radius:50%; display:block; margin:4px auto 0; box-shadow:0 26px 52px -30px rgba(11,42,59,.5); }
  @media (max-width:900px){ .letter{ grid-template-columns:1fr; gap:30px; } .letter-photo{ position:static; order:-1; } .letter-photo img{ max-width:224px; } }

  /* Mobile sticky CTA — hidden unless the phone breakpoint applies */
  .stickycta{ display:none; }
  @media (max-width:520px){
    .stickycta{ position:fixed; left:0; right:0; bottom:0; z-index:60; display:flex; gap:10px;
      padding:10px 14px calc(10px + env(safe-area-inset-bottom));
      background:rgba(255,255,255,.97); border-top:1px solid var(--line);
      box-shadow:0 -10px 26px -18px rgba(11,42,59,.55);
      transform:translateY(115%); transition:transform .22s ease; }
    .stickycta.show{ transform:translateY(0); }
    .stickycta .btn{ padding:13px 12px; font-size:13.5px; }
    .stickycta .btn-navy{ flex:1.45; }
    .stickycta .btn-ghost{ flex:1; }
    body{ padding-bottom:76px; }
  }

  /* Modal + forms */
  dialog.modal{ margin:auto; border:none; border-radius:18px; padding:0; max-width:620px; width:calc(100% - 32px); box-shadow:0 40px 80px -30px rgba(11,42,59,.5); }
  dialog.modal::backdrop{ background:rgba(11,42,59,.55); backdrop-filter:blur(2px); }
  .modal-head{ padding:26px 30px 18px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
  .modal-head h2{ font-size:22px; margin-bottom:6px; }
  .modal-head p{ font-size:13.5px; color:var(--stone); }
  .modal-close{ background:none; border:none; font-size:26px; line-height:1; cursor:pointer; color:var(--stone); }
  .modal-body{ padding:24px 30px 30px; max-height:70vh; overflow-y:auto; }
  .field{ margin-bottom:18px; }
  .field label{ display:block; font-size:13px; font-weight:500; margin-bottom:6px; }
  .field .req{ color:#C0392B; }
  .field input[type=text], .field input[type=email], .field select, .field textarea{
    width:100%; padding:11px 13px; border:1.5px solid var(--line); border-radius:10px; font-family:'Roboto',Arial,Helvetica,sans-serif; font-size:14px; color:var(--ink); background:#fff; }
  .field textarea{ min-height:90px; resize:vertical; }
  .field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--teal); }
  .field-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
  @media (max-width:560px){ .field-row{ grid-template-columns:1fr; } }
  .radioset{ display:flex; flex-direction:column; gap:9px; }
  .radioset label, .field label.checkline{ display:flex; gap:10px; align-items:flex-start; font-size:13.5px; font-weight:400; color:var(--ink); cursor:pointer; }
  .radioset input, .checkline input{ margin-top:3px; flex-shrink:0; }
  .legal{ font-size:11.5px; color:var(--stone); line-height:1.55; margin-top:10px; }
  .legal a{ color:var(--teal-deep); }
  .hp{ position:absolute; left:-9999px; }
  .form-msg{ display:none; padding:16px 18px; border-radius:12px; background:var(--teal-light); color:var(--teal-deep); font-size:14px; font-weight:500; margin-bottom:16px; }
  .form-msg.err{ background:#FDECEA; color:#C0392B; }
  .form-msg.show{ display:block; }


.legal{ max-width:760px; }
.legal h2{ font-size:1.35rem; margin:34px 0 10px; }
.legal h3{ font-size:1.05rem; margin:22px 0 6px; }
.legal p{ margin:0 0 12px; line-height:1.65; }
.legal ul{ margin:0 0 14px 20px; line-height:1.65; }
.legal li{ margin:0 0 6px; }
.legal .legal-box{ border:1px solid rgba(0,0,0,.12); border-radius:10px; padding:16px 18px; margin:14px 0 20px; }
.legal .legal-box p{ margin:0 0 4px; }
.legal .legal-meta{ font-size:.9rem; opacity:.75; margin-top:28px; }
