/* Balcatta Pharmacy — global stylesheet
   Brand palette derived from logo: deep ink + warm amber/ember gradient. */

/* ============================================================
   PRE-RENDERED FALLBACK (crawlers, LLMs, no-JS visitors)
   The baked #root content is hidden once JS runs (the live React
   app replaces it). Crawlers read the raw HTML regardless of this.
   For no-JS visitors we show a clean, legible document.
   ============================================================ */
.pre-chrome, .pre-main { display: none; }
.no-js .pre-chrome, .no-js .pre-main { display: block; }
.no-js .pre-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  font-family: Manrope, system-ui, sans-serif;
  color: #1a1d28;
  line-height: 1.6;
}
.no-js .pre-chrome {
  max-width: 760px; margin: 0 auto; padding: 20px 24px;
  font-family: Manrope, system-ui, sans-serif; color: #424862;
  border-bottom: 1px solid #e7e3da;
}
.no-js footer.pre-chrome { border-bottom: 0; border-top: 1px solid #e7e3da; margin-top: 24px; }
.no-js .pre-nav { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0; }
.no-js .pre-main h1 { font-family: Sora, system-ui, sans-serif; font-size: 2rem; line-height: 1.1; margin: 0 0 16px; }
.no-js .pre-main h2 { font-family: Sora, system-ui, sans-serif; font-size: 1.4rem; margin: 32px 0 10px; }
.no-js .pre-main h3 { font-size: 1.1rem; margin: 20px 0 6px; }
.no-js .pre-main ul { padding-left: 20px; }
.no-js .pre-main li { margin: 8px 0; }
.no-js a { color: #c2410c; }

:root {
  /* Ink (foreground / wordmark color) */
  --ink-1000: #0c0e15;
  --ink-950: #14171f;
  --ink-900: #1a1d28;
  --ink-800: #232636;
  --ink-700: #2f3346;
  --ink-600: #424862;
  --ink-500: #5b6385;
  --ink-400: #7c84a6;
  --ink-300: #a6acc4;

  /* Amber → ember (from the cross mark) */
  --amber-300: #ffd28b;
  --amber-400: #ffb858;
  --amber-500: #f9a826;
  --amber-600: #ee8514;
  --amber-700: #e85420;
  --amber-800: #c33e10;
  --ember:    #d94817;

  /* Warm paper neutrals */
  --paper:     #fbf8f3;
  --paper-2:   #f6f1ea;
  --paper-3:   #ede5d8;
  --sand-100:  #ece4d4;
  --sand-200:  #ddd1bd;
  --sand-300:  #c2b59c;

  /* Glass / strokes */
  --glass-stroke:      rgba(255, 247, 235, 0.65);
  --glass-stroke-dark: rgba(20, 23, 31, 0.08);

  --r-card:   24px;
  --r-button: 14px;
  --r-chip:   999px;

  --shadow-soft:   0 24px 60px -28px rgba(20, 23, 31, 0.28), 0 6px 18px -8px rgba(20, 23, 31, 0.08);
  --shadow-lifted: 0 36px 80px -32px rgba(20, 23, 31, 0.40), 0 10px 24px -10px rgba(20, 23, 31, 0.14);
  --shadow-glass:  0 30px 80px -20px rgba(20, 23, 31, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --shadow-amber:  0 18px 40px -14px rgba(232, 84, 32, 0.55);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --content-max: 1240px;

  /* Signature gradient — match the mark */
  --grad-ember: linear-gradient(135deg, #f9a826 0%, #ee7414 55%, #e64a18 100%);
  --grad-ember-soft: linear-gradient(135deg, rgba(249, 168, 38, 0.18), rgba(232, 84, 32, 0.10));
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink-950);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html { overflow-x: clip; }
body {
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
  background:
    radial-gradient(1200px 800px at 85% -10%, rgba(249, 168, 38, 0.22), transparent 60%),
    radial-gradient(1100px 700px at -8% 14%, rgba(232, 84, 32, 0.10), transparent 55%),
    radial-gradient(900px 600px at 50% 110%, rgba(255, 184, 88, 0.14), transparent 60%),
    linear-gradient(180deg, #fbf8f3 0%, #f3ebdc 100%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5 {
  font-family: "Sora", "Manrope", system-ui, sans-serif;
  color: var(--ink-950);
  letter-spacing: -0.022em;
  margin: 0;
  line-height: 1.05;
  text-wrap: balance;
}

h1 { font-weight: 600; }
h2 { font-weight: 600; }

p { margin: 0; line-height: 1.6; color: var(--ink-600); }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* visible keyboard focus (mouse clicks stay clean via :focus-visible) */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--amber-600);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- layout helpers ---------- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

.eyebrow {
  font-family: "Sora", sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-700);
  font-weight: 600;
}

.section-title {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-600);
  max-width: 56ch;
}

.amber-text {
  background: var(--grad-ember);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-button);
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), background 0.3s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-ember);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -10px 24px rgba(120, 30, 0, 0.18),
    var(--shadow-amber),
    0 0 0 1px rgba(232, 84, 32, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -12px 30px rgba(120, 30, 0, 0.22),
    0 26px 50px -14px rgba(232, 84, 32, 0.65),
    0 0 0 1px rgba(232, 84, 32, 0.45);
}

.btn-ghost {
  background: rgba(255, 251, 245, 0.55);
  color: var(--ink-900);
  border: 1px solid rgba(20, 23, 31, 0.12);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  background: rgba(255, 251, 245, 0.92);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--ink-950);
  color: white;
  box-shadow: 0 14px 30px -12px rgba(20, 23, 31, 0.6);
}
.btn-dark:hover { background: var(--ink-800); transform: translateY(-2px); }

.btn-arrow::after {
  content: "→";
  font-weight: 400;
  transition: transform 0.3s var(--ease-out);
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ---------- glass panel ---------- */
.glass {
  position: relative;
  background: rgba(255, 250, 242, 0.62);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-glass);
}
.glass-dark {
  background: rgba(20, 23, 31, 0.62);
  border: 1px solid rgba(255, 184, 88, 0.18);
  color: white;
  backdrop-filter: blur(20px) saturate(140%);
}

/* ---------- chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-chip);
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 250, 242, 0.7);
  border: 1px solid rgba(20, 23, 31, 0.08);
  color: var(--ink-600);
  backdrop-filter: blur(8px);
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}
.chip.active {
  background: var(--ink-950);
  color: white;
  border-color: var(--ink-950);
}
.chip:hover:not(.active) {
  background: white;
  color: var(--ink-900);
  transform: translateY(-1px);
}
.chip-amber {
  background: var(--grad-ember-soft);
  border-color: rgba(232, 84, 32, 0.22);
  color: var(--amber-800);
}

/* ---------- utility bar ---------- */
.util-bar {
  position: relative;
  z-index: 80;
  background: rgba(20, 23, 31, 0.92);
  backdrop-filter: blur(14px);
  color: rgba(255, 247, 235, 0.85);
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 184, 88, 0.12);
}
.util-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 24px;
  flex-wrap: wrap;
}
.util-bar .util-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 247, 235, 0.78);
}
.util-bar .util-item strong { color: white; font-weight: 600; }
.util-bar .util-icon { color: var(--amber-400); display: inline-flex; }
.util-bar .util-dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--amber-500);
  box-shadow: 0 0 12px var(--amber-500);
  animation: pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  padding: 12px 0;
  /* always-present, near-opaque glass so the bar looks identical on every
     page — incl. the animated home hero, whose video must not bleed through */
  background: rgba(251, 248, 243, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
          backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(20, 23, 31, 0.07);
  transition: padding 0.4s var(--ease-out), background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.site-header.scrolled {
  padding: 9px 0;
  background: rgba(251, 248, 243, 0.94);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
          backdrop-filter: blur(22px) saturate(160%);
  border-bottom-color: rgba(20, 23, 31, 0.1);
  box-shadow: 0 10px 30px -20px rgba(20, 23, 31, 0.22);
}
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 52px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.005em;
  color: var(--ink-950);
}
.brand-label small {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-700);
  font-weight: 600;
  margin-top: 3px;
  background: var(--grad-ember);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Brand mark — SVG-based logo recreation */
.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-block;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 12px rgba(232, 84, 32, 0.35));
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
}
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-family: "Sora", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-600);
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--ink-950); background: rgba(20, 23, 31, 0.04); }
.nav-link.has-menu::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  margin-left: 6px;
  opacity: 0.6;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-cta .text-link {
  font-family: "Sora", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-900);
  position: relative;
  padding: 4px 0;
}
.nav-cta .text-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink-900);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.nav-cta .text-link:hover::after { transform: scaleX(1); }

/* mega menu */
.mega-wrap { position: relative; }
.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 760px;
  padding: 24px;
  background: rgba(251, 248, 243, 0.96);
  backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(20, 23, 31, 0.08);
  border-radius: 24px;
  box-shadow: 0 40px 80px -30px rgba(20, 23, 31, 0.30);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.3s var(--ease-out);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  z-index: 90;
}
.mega-wrap:hover .mega,
.mega-wrap:focus-within .mega {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.mega-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  transition: background 0.2s;
  align-items: start;
}
.mega-item:hover { background: rgba(249, 168, 38, 0.10); }
.mega-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(160deg, #fff3df, #ffe0b8);
  color: var(--amber-800);
  border: 1px solid rgba(232, 84, 32, 0.18);
}
.mega-item h5 {
  font-family: "Sora", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-950);
  margin-bottom: 2px;
}
.mega-item p { font-size: 12.5px; line-height: 1.4; color: var(--ink-500); }

/* ---------- hero / sections ---------- */
.section { position: relative; padding: 120px 0; }
.section-sm { padding: 80px 0; }

/* atmospheric gradient mesh */
.mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.mesh::before, .mesh::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: drift 18s var(--ease-in-out) infinite;
}
.mesh::before {
  width: 620px; height: 620px;
  top: -10%; left: -8%;
  background: radial-gradient(circle, rgba(249, 168, 38, 0.7), transparent 70%);
}
.mesh::after {
  width: 740px; height: 740px;
  top: 16%; right: -15%;
  background: radial-gradient(circle, rgba(232, 84, 32, 0.45), transparent 70%);
  animation-delay: -8s;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 30px) scale(1.05); }
  66% { transform: translate(-30px, 50px) scale(0.95); }
}

/* generic reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
/* No-JS / crawler fallback: when JavaScript never runs, the IntersectionObserver
   that adds `.in` never fires, so reveal content would stay invisible. Show it. */
.no-js .reveal { opacity: 1 !important; transform: none !important; }

/* ---------- cards ---------- */
.card {
  position: relative;
  padding: 32px;
  border-radius: var(--r-card);
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid rgba(20, 23, 31, 0.06);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lifted); }

.card-3d {
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  margin-top: -1px;
  padding: 100px 0 40px;
  color: rgba(255, 247, 235, 0.85);
  background:
    radial-gradient(820px 520px at 82% 52%, rgba(249, 168, 38, 0.15), transparent 58%),
    radial-gradient(680px 520px at 10% 100%, rgba(232, 84, 32, 0.30), transparent 60%),
    linear-gradient(180deg, #0c0e15 0%, #0c0e15 22%, #14171f 54%, #0c0e15 100%);
  overflow: hidden;
}
.site-footer > .container { position: relative; z-index: 2; }
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px 380px at 20% 70%, rgba(255, 184, 88, 0.12), transparent 70%),
    radial-gradient(500px 460px at 90% 86%, rgba(232, 84, 32, 0.10), transparent 70%);
  pointer-events: none;
  animation: drift 22s var(--ease-in-out) infinite;
}
.site-footer h6 {
  font-family: "Sora", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-400);
  margin-bottom: 18px;
}
.site-footer a {
  display: block;
  padding: 6px 0;
  color: rgba(255, 247, 235, 0.7);
  font-size: 14.5px;
  transition: color 0.2s, transform 0.2s;
}
.site-footer a:hover { color: white; transform: translateX(3px); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.footer-brand p { color: rgba(255, 247, 235, 0.6); margin-top: 16px; max-width: 28ch; font-size: 14px; }
.footer-bottom {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 247, 235, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 247, 235, 0.5);
  position: relative;
  z-index: 1;
}
.footer-social {
  display: flex; gap: 10px; margin-top: 16px;
}
.footer-social a {
  width: 36px; height: 36px; padding: 0;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255, 247, 235, 0.08);
  border: 1px solid rgba(255, 247, 235, 0.10);
}
.footer-social a:hover { background: var(--grad-ember); transform: none; }

/* ---------- decorative svg objects ---------- */
/* Parallax composition: scroll writes --py and --rotate,
   mouse writes --mx/--my, breathe writes --bo. All combine
   into one transform so animations don't fight. */
@property --py        { syntax: "<length>"; initial-value: 0px;  inherits: false; }
@property --mx        { syntax: "<length>"; initial-value: 0px;  inherits: false; }
@property --my        { syntax: "<length>"; initial-value: 0px;  inherits: false; }
@property --bo        { syntax: "<length>"; initial-value: 0px;  inherits: false; }
@property --tilt-lift { syntax: "<length>"; initial-value: 0px;  inherits: false; }
@property --rotate    { syntax: "<angle>";  initial-value: 0deg; inherits: false; }
@property --tilt-x    { syntax: "<angle>";  initial-value: 0deg; inherits: false; }
@property --tilt-y    { syntax: "<angle>";  initial-value: 0deg; inherits: false; }
@property --pscale    { syntax: "<number>"; initial-value: 1;    inherits: false; }

[data-depth],
[data-parallax],
.tilt-card {
  transform:
    perspective(900px)
    translate3d(
      var(--mx, 0px),
      calc(var(--py, 0px) + var(--my, 0px) + var(--bo, 0px) + var(--tilt-lift, 0px)),
      0
    )
    rotate(var(--rotate, 0deg))
    rotateY(var(--tilt-y, 0deg))
    rotateX(var(--tilt-x, 0deg))
    scale(var(--pscale, 1));
  will-change: transform;
  transition:
    --tilt-x 0.4s var(--ease-out),
    --tilt-y 0.4s var(--ease-out),
    --tilt-lift 0.4s var(--ease-out);
}

.float {
  will-change: transform;
}
.breathe {
  animation: breathe 6s var(--ease-in-out) infinite;
}
@keyframes breathe {
  0%, 100% { --bo: 0px; }
  50%      { --bo: -14px; }
}

/* ---------- forms ---------- */
.field {
  position: relative;
  margin-bottom: 18px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 22px 16px 12px;
  font-family: inherit;
  font-size: 15px;
  background: rgba(255, 250, 242, 0.7);
  border: 1px solid rgba(20, 23, 31, 0.12);
  border-radius: 14px;
  color: var(--ink-950);
  outline: none;
  transition: all 0.3s var(--ease-out);
  backdrop-filter: blur(10px);
  appearance: none;
}
.field textarea { min-height: 130px; resize: vertical; }
.field label {
  position: absolute;
  left: 16px;
  top: 18px;
  font-size: 14px;
  color: var(--ink-500);
  pointer-events: none;
  transition: all 0.25s var(--ease-out);
  padding: 0 4px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--amber-600);
  background: rgba(255, 250, 242, 0.95);
  box-shadow: 0 0 0 4px rgba(249, 168, 38, 0.22);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field.filled label {
  top: 6px;
  font-size: 10.5px;
  font-family: "Sora", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-800);
  font-weight: 600;
}

/* scroll progress */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--grad-ember);
  z-index: 200;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(232, 84, 32, 0.5);
}

/* ---------- mobile nav ---------- */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(20, 23, 31, 0.04);
  border: 1px solid rgba(20, 23, 31, 0.08);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(20, 23, 31, 0.07); }
.nav-toggle span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink-900);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mnav { position: fixed; inset: 0; z-index: 300; visibility: hidden; pointer-events: none; }
.mnav.open { visibility: visible; pointer-events: auto; }
.mnav__scrim {
  position: absolute; inset: 0;
  background: rgba(12, 14, 21, 0.5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.35s var(--ease-out);
}
.mnav.open .mnav__scrim { opacity: 1; }
.mnav__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(360px, 86vw);
  background: var(--paper);
  box-shadow: -20px 0 60px -20px rgba(20, 23, 31, 0.45);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.42s var(--ease-out);
  overflow-y: auto;
}
.mnav.open .mnav__panel { transform: translateX(0); }
.mnav__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid rgba(20, 23, 31, 0.07);
  position: sticky; top: 0; background: var(--paper); z-index: 2;
}
.mnav__close {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; color: var(--ink-700);
  background: rgba(20, 23, 31, 0.04);
}
.mnav__close:hover { background: rgba(20, 23, 31, 0.08); }
.mnav__links { display: flex; flex-direction: column; padding: 14px 14px 4px; gap: 2px; }
.mnav__link {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 12px;
  font-family: "Sora", sans-serif; font-size: 17px; font-weight: 600;
  color: var(--ink-900);
}
.mnav__link:hover, .mnav__link.active { background: rgba(232, 84, 32, 0.08); color: var(--amber-800); }
.mnav__link--sub { font-size: 14.5px; font-weight: 500; color: var(--ink-600); padding: 10px 14px; }
.mnav__sub {
  margin: 2px 0 6px 10px; padding-left: 10px;
  border-left: 1.5px solid rgba(232, 84, 32, 0.18);
  display: flex; flex-direction: column; gap: 2px;
}
.mnav__ico { color: var(--amber-700); display: inline-flex; flex-shrink: 0; }
.mnav__foot {
  margin-top: auto; padding: 18px 20px 24px;
  border-top: 1px solid rgba(20, 23, 31, 0.07);
  display: flex; flex-direction: column; gap: 14px;
}
.mnav__foot .btn { justify-content: center; }
.mnav__phone {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: "Sora", sans-serif; font-weight: 600; color: var(--ink-800);
}

/* responsive */
/* Intermediate range: keep the full nav on ONE tidy line as the window
   narrows (prevents the links wrapping to a second row / overlapping the
   brand + CTA, which read as "misaligned"). */
@media (max-width: 1300px) and (min-width: 1025px) {
  .nav-inner { gap: 14px; }
  .nav-links { gap: 2px; }
  .nav-link { padding: 8px 10px; font-size: 13px; }
  .nav-link.has-menu::after { margin-left: 4px; }
  .nav-cta .btn { padding-left: 14px; padding-right: 14px; }
}

/* Hide the brand subtitle on ALL narrow widths (not just the intermediate
   range) so it doesn't disappear then reappear as the window shrinks. */
@media (max-width: 1300px) {
  .brand-label small { display: none; }
}
.brand-label { white-space: nowrap; }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-cta .text-link { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { gap: 10px; }
}

@media (max-width: 600px) {
  .nav-cta .btn-primary { display: none; }
  .util-bar .container { justify-content: center; gap: 16px; }
  /* trim the top bar to the essentials on phones */
  .util-bar .container > .util-item { display: none; }
  .util-bar .container > div:first-child > .util-item:nth-child(3) { display: none; }
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .section { padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
