/* ══════════════════════════════════════════════════════════════════════════════════
   MESAscale · the base main-nav and phone-menu rules, for pages that do not carry them inline (privacy, terms).
   Lifted verbatim from contact.html: its NAV / MOBILE NAV block, its small-screen fit rules and its #nm2 menu block.
   theme/nav.css (layout, button) and theme/light.css (light colours) load after this file and refine it, as on every other page.
   ══════════════════════════════════════════════════════════════════════════════════ */
/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 201;
  height: 64px;
  background: rgba(15,16,17,.88);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px; height: 100%;
  display: flex; align-items: center;
}
.nav-logo { text-decoration: none; flex-shrink: 0; display: inline-flex; align-items: center; }
.nav-links {
  display: flex; list-style: none; gap: 4px;
  margin-left: auto; margin-right: 16px;
}
.nav-links a {
  font-family: var(--font); font-size: 13px; font-weight: 400;
  color: var(--ash); text-decoration: none;
  padding: 6px 12px; border-radius: var(--r-btn);
  border: 1px solid transparent;
  transition: background var(--ease-fast), color var(--ease-fast), border-color var(--ease-fast);
}
.nav-links a:hover { background: rgba(255,255,255,.07); color: var(--cloud); border-color: rgba(255,255,255,.1); }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--cta); color: var(--pure);
  font-family: var(--font); font-size: 13px; font-weight: 500;
  padding: 9px 20px; border-radius: var(--r-pill);
  text-decoration: none; white-space: nowrap;
  transition: background var(--ease-fast), transform var(--ease-fast), box-shadow var(--ease-fast);
  box-shadow: 0 2px 16px rgba(240,90,40,.22);
  border: none; cursor: pointer; letter-spacing: .01em;
}
.btn:hover { background: var(--cta-hover); transform: translateY(-1px); box-shadow: 0 4px 24px rgba(240,90,40,.35); }
/* The copied rules resolve against the home page's tokens, which this page does not
   define. Scoped to the nav so nothing else on the contact page shifts. */
.nav, .nav-mobile { --font: 'Inter', sans-serif; --ash: #9f9fa0; --cloud: #f5f5f7;
  --pure: #ffffff; --r-btn: 8px; --r-pill: 9999px; --ease-fast: 0.2s ease;
  line-height: 1.5; font-family: var(--font); }

/* ─── MOBILE NAV ─── */
.nav-hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; width: 36px; height: 36px; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; flex-shrink: 0; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #9f9fa0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-mobile { display: none; position: fixed; inset: 0; z-index: 999; background: #0f1011; flex-direction: column; padding: 20px 24px 40px; overflow-y: auto; }
.nav-mobile.open { display: flex; }
.nav-mobile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 48px; }
.nav-mobile-logo { font-weight: 600; font-size: 17px; color: #f5f5f7; text-decoration: none; }
.nav-mobile-close { width: 36px; height: 36px; background: none; border: 1px solid rgba(255,255,255,.1); cursor: pointer; font-size: 22px; color: #9f9fa0; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background .2s ease; }
.nav-mobile-close:hover { background: rgba(255,255,255,.06); }
.nav-mobile-links { list-style: none; flex: 1; }
.nav-mobile-links li a { display: block; font-size: 28px; font-weight: 400; color: #f5f5f7; text-decoration: none; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.nav-mobile-links li a:hover { color: #9f9fa0; }
.nav-mobile-cta { margin-top: 32px; text-align: center; width: 100%; justify-content: center; font-size: 15px; padding: 14px 24px; }
@media(max-width:900px) { .nav-hamburger { display: flex; margin-left: auto; } .nav-links { display: none; } }
@media(max-width:560px) { .nav-inner { padding: 0 18px; } }

/* Compact nav on small screens: the CTA crosses to the right so it pairs with the
   hamburger instead of crowding the logo, and drops the word "Free" to fit. */
@media (max-width: 900px) {
  .nav-inner > .btn { margin-left: auto; font-size: 12.5px; font-weight: 600; padding: 9px 15px; }
  .nav-hamburger { margin-left: 10px !important; }
}
@media (max-width: 420px) {
  .nav-inner > .btn { font-size: 12px; padding: 8px 12px; }
}

/* Small-screen nav fit: the mark scales down, the CTA label shortens in two steps
   ("Book Free Diagnostic" > "Book Diagnostic" > "Book Free"), and nothing overflows. */
@media (max-width: 560px) {
  .nav-logo img { height: 21px !important; max-width: 46vw; }
  .nav-inner > .btn, .nav-hamburger { flex-shrink: 0; }
}
@media (max-width: 430px) {
  .nav-logo img { height: 18px !important; max-width: 44vw; }
  .nav-inner > .btn { font-size: 12px; padding: 8px 12px; }
  .nav-hamburger { width: 32px; margin-left: 8px !important; }
}

/* The CTA keeps its full label at every width; the mark and the button give up the room
   instead. Measured to clear a 360px viewport with the hamburger still on screen. */
@media (max-width: 560px) {
  .nav-logo img { height: 19px !important; max-width: 42vw; }
  .nav-inner > .btn { font-size: 11.5px; padding: 8px 12px; letter-spacing: -.01em; }
}
@media (max-width: 430px) {
  .nav-logo img { height: 15px !important; max-width: 40vw; }
  .nav-inner > .btn { font-size: 10.5px; padding: 7px 10px; gap: 4px; }
  .nav-hamburger { width: 28px; margin-left: 6px !important; }
  .nav-hamburger span { width: 19px; }
}

/* ── the phone menu (#nm2 on the other pages) ── */
  /* Mobile menu, measured off unusually.framer.website at 390: rgb(14,14,14) panel inset 16px on a
     rgb(244,244,244) ground with a 40px radius; 52px circular close at 10% white; items in Mona Sans
     narrow 31.36px +1.6px uppercase rgb(244,244,244) beside DM Mono 17.5px numbers in rgb(172,172,172),
     47px rows on 8px padding with 1px rules; full-width white pill CTA; DM Mono caption rgb(141,141,141). */
  .nav-mobile { display: none; position: fixed; inset: 0; z-index: 999; background: rgb(244,244,244); padding: 16px; overflow: hidden; }
  .nav-mobile.open { display: block; }
  .nm-panel { position: relative; height: 100%; background: rgb(14,14,14); border-radius: 40px; padding: 12px 24px 24px; display: flex; flex-direction: column; overflow: hidden; box-sizing: border-box; }
  .nm-top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
  .nm-logo { display: block; }
  .nm-logo img { height: 22px; width: auto; display: block; }
  .nav-mobile .nav-mobile-close { width: 52px; height: 52px; border-radius: 100px; background: rgba(255,255,255,.1); border: 0; padding: 0; margin: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0; color: transparent; transition: background .2s ease; }
  .nav-mobile .nav-mobile-close:hover { background: rgba(255,255,255,.16); }
  .nav-mobile .nav-mobile-close span { display: block; width: 18px; height: 2px; border-radius: 2px; background: rgb(244,244,244); }
  .nm-list { list-style: none; margin: auto 0; padding: 0; }
  .nm-list li a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 47px; padding: 8px 0; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.12); box-sizing: border-box; }
  .nm-list li a b { font-family: 'Mona Sans', 'Plus Jakarta Sans', sans-serif; font-stretch: 75%; font-weight: 700; font-size: 31.36px; line-height: 1; letter-spacing: 1.6px; text-transform: uppercase; color: rgb(244,244,244); }
  .nm-list li a i { font-style: normal; font-family: 'DM Mono', 'Roboto Mono', monospace; font-size: 17.5px; font-weight: 500; line-height: 1; color: rgb(172,172,172); }
  .nm-list li a:active b { color: rgb(172,172,172); }
  .nm-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 24px; }
  .nm-cta { width: 100%; height: 56px; border-radius: 999px; background: rgb(244,244,244); color: rgb(14,14,14); display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; box-sizing: border-box;
    font-family: 'Mona Sans', 'Plus Jakarta Sans', sans-serif; font-weight: 500; font-size: 16px; letter-spacing: -.32px; text-transform: uppercase; }
  .nm-cta span { font-size: 17px; line-height: 1; }
  .nm-cta:active { background: #fff; }
  .nm-cap { margin: 0; font-family: 'DM Mono', 'Roboto Mono', monospace; font-size: 12.25px; font-weight: 500; letter-spacing: .4px; line-height: 1.4; text-transform: uppercase; color: rgb(141,141,141); text-align: center; }
  @media (min-width: 901px) { .nav-mobile, .nav-mobile.open { display: none; } }

/* ══ CTA band into footer ══
   The band is pure black with a photograph fading out of it, so the footer is pure black
   too and the dune dissolves with no step. #0f1011 was only 6% lighter, invisible on a
   desktop panel but a clearly lighter block on an OLED phone where true black is off.
   Separation comes from the partner bar's hairline instead of a shift in ground. */
.site-footer, .site-footer.sf-footer-v2 { background: #000 !important; }
.cta-band::after { content: '' !important; position: absolute; left: 0; right: 0; bottom: 0; height: 260px;
  z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.42) 34%, rgba(0,0,0,.8) 62%, #000 88%, #000 100%) !important; }

/* ══ Footer partner bar ══ Copied verbatim from case-studies/apparel-brand.html.
   The only addition is the face, which the case study inherits from its body and
   these pages do not. */
.site-footer, .site-footer * { font-family: 'Plus Jakarta Sans', sans-serif; }
/* Home leaves the UA paragraph margin on this element, so its brand line sits 14px lower
   and the footer is 14px taller. This page resets p margins, so the offset is restored
   explicitly to keep the two footers the same height. */
.site-footer { line-height: 1.5; }
.site-footer .sf-brand-name { margin: 14px 0 8px; }
.site-footer .sf-copy-line { margin: 11.5px 0 0; }

.sf-badges-bar{border-top:1px solid rgba(255,255,255,.07);padding:0 40px;}
.sf-badges-inner{max-width:1200px;margin:0 auto;display:flex;align-items:stretch;}
.sfb{background:transparent;border:none;border-radius:0;padding:18px 32px;display:inline-flex;align-items:center;gap:14px;flex:1;min-width:0;transition:opacity .18s;position:relative;}
.sfb:hover{opacity:.75;}
.sf-badges-inner > *:not(:last-child){border-right:1px solid rgba(255,255,255,.07);}
.sfb-text{display:flex;flex-direction:column;gap:4px;}
.sfb-top{font-size:9px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:rgba(255,255,255,.5);line-height:1;}
.sfb-bot{font-size:15px;font-weight:800;color:#fff;letter-spacing:-.02em;line-height:1;}
.sfb-premier-em{font-size:8px;font-weight:700;letter-spacing:.14em;color:rgba(255,255,255,.38);margin-left:6px;vertical-align:middle;text-transform:uppercase;}
.sf-footer-v2 .sf-epa-wrap{flex:1;position:relative;}
.sf-footer-v2 .sf-epa-btn{background:transparent;border:none;cursor:pointer;padding:18px 32px;width:100%;height:100%;display:inline-flex;align-items:center;gap:14px;transition:opacity .18s;}
.sf-footer-v2 .sf-epa-btn:hover{opacity:.75;}
.sf-footer-v2 .sf-epa-btn:focus-visible{outline:2px solid rgba(255,255,255,.6);outline-offset:-4px;}
.sf-footer-v2 .sf-epa-hint{top:-18px;right:6px;}
@media(max-width:860px){
  .sf-footer-v2 .sf-wrap{flex-direction:column;align-items:flex-start;gap:22px;padding:32px 28px 28px;}
  .sf-right{align-items:flex-start;}
  .sf-badges-bar{padding:0 28px;}
  .sf-badges-inner{flex-wrap:wrap;}
  .sfb,.sf-footer-v2 .sf-epa-wrap{flex:0 0 50%;border-right:none!important;}
  .sfb{border-bottom:1px solid rgba(255,255,255,.07);}
}
@media(max-width:480px){
  .sf-footer-v2 .sf-wrap{padding:26px 20px 24px;}
  .sf-badges-bar{padding:0 20px;}
  .sfb{padding:16px 14px;gap:10px;}
  .sf-footer-v2 .sf-epa-btn{padding:16px 14px;gap:10px;}
  .sf-epa-hint{display:none;}
}

/* The CLICK cue is positioned for a single row of badges. They wrap to 2x2 at
   900px, so it is hidden from there down rather than floating over a neighbour. */
@media (max-width: 900px) { .sf-epa-hint { display: none !important; } }
