/* ============================================================
   Joana Cunha — Estética de Unhas · Oeiras
   Design system
   ============================================================ */

:root {
  /* Editorial Luxe (default) */
  --bg: #f8f3ef;
  --bg-alt: #f0e6df;
  --bg-deep: #2a2024;
  --ink: #2a2024;
  --ink-soft: #6b5a5e;
  --ink-mute: #9a8a8e;
  --line: #e6d8d0;
  --line-soft: #efe4dc;

  --rose: #d4a5a5;       /* dusty rose */
  --rose-deep: #b88488;
  --lilac: #c9b8d4;
  --lilac-deep: #9c87ad;
  --terracotta: #c08568;
  --gold: #b89968;
  --cream: #faf6f2;

  --serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(42, 32, 36, 0.04), 0 2px 8px rgba(42, 32, 36, 0.04);
  --shadow-md: 0 6px 24px rgba(42, 32, 36, 0.08);
  --shadow-lg: 0 24px 60px rgba(42, 32, 36, 0.12);

  --container: 1280px;
  --pad: clamp(20px, 4vw, 56px);
}

/* Clean Minimal variant */
[data-theme="minimal"] {
  --bg: #ffffff;
  --bg-alt: #f7f6f5;
  --bg-deep: #1a1a1a;
  --ink: #1a1a1a;
  --ink-soft: #555;
  --ink-mute: #999;
  --line: #ececec;
  --line-soft: #f3f3f3;

  --rose: #e9c8c8;
  --rose-deep: #c89898;
  --lilac: #d8cee0;
  --lilac-deep: #ad9cbd;
  --terracotta: #d49b7e;
  --gold: #c0a878;
}

/* ---------------- Reset ---------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------------- Type ---------------- */
.serif { font-family: var(--serif); font-weight: 400; }
.italic { font-style: italic; }
.mono { font-family: var(--mono); font-size: 0.78em; letter-spacing: 0.04em; text-transform: uppercase; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(48px, 8vw, 112px); }
h2 { font-size: clamp(36px, 5.5vw, 72px); }
h3 { font-size: clamp(24px, 3vw, 36px); }

p { color: var(--ink-soft); text-wrap: pretty; }

/* ---------------- Layout ---------------- */
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 9vw, 140px); }
.divider { height: 1px; background: var(--line); }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad);
}
.brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: 8px;
}
.brand-mark {
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  position: relative;
  padding-block: 4px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--rose-deep);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-size: 14px;
  letter-spacing: 0.02em;
  font-weight: 500;
  transition: transform .15s ease, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--rose-deep); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-rose { background: var(--rose-deep); color: white; }
.btn-rose:hover { background: var(--ink); }
.btn-wa {
  background: #25d366; color: white;
}
.btn-wa:hover { background: #1faa53; transform: translateY(-1px); }

.btn-sm { padding: 10px 18px; font-size: 12px; }

.arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------------- Hero ---------------- */
.hero {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(48px, 8vw, 100px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-headline {
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.94;
  letter-spacing: -0.025em;
}
.hero-headline .accent {
  font-style: italic;
  color: var(--rose-deep);
}
.hero-sub {
  margin-top: 28px;
  font-size: 17px;
  max-width: 38ch;
  color: var(--ink-soft);
  line-height: 1.55;
}
.hero-meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 36px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-meta strong { color: var(--ink); font-weight: 500; }
.hero-cta { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-image {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}

/* ---------------- Placeholder ---------------- */
.ph {
  background:
    repeating-linear-gradient(
      45deg,
      color-mix(in oklab, var(--rose) 22%, var(--bg-alt)) 0 2px,
      var(--bg-alt) 2px 14px
    );
  border: 1px solid var(--line);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
  border-radius: var(--r-md);
}
.ph::before {
  content: "";
  position: absolute; inset: 12px;
  border: 1px dashed color-mix(in oklab, var(--rose-deep) 40%, transparent);
  border-radius: 6px;
  pointer-events: none;
}
.ph span { position: relative; z-index: 1; line-height: 1.5; max-width: 80%; }
.ph-rose { background:
  repeating-linear-gradient(45deg,
    color-mix(in oklab, var(--rose) 35%, var(--bg)) 0 2px,
    color-mix(in oklab, var(--rose) 12%, var(--bg)) 2px 14px); }
.ph-lilac { background:
  repeating-linear-gradient(45deg,
    color-mix(in oklab, var(--lilac) 35%, var(--bg)) 0 2px,
    color-mix(in oklab, var(--lilac) 12%, var(--bg)) 2px 14px); }
.ph-terra { background:
  repeating-linear-gradient(45deg,
    color-mix(in oklab, var(--terracotta) 28%, var(--bg)) 0 2px,
    color-mix(in oklab, var(--terracotta) 10%, var(--bg)) 2px 14px); }

/* ---------------- Marquee ---------------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
  overflow: hidden;
  padding-block: 22px;
}
.marquee-track {
  display: flex; gap: 56px;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 32px);
  color: var(--ink);
}
.marquee-track span { display: flex; align-items: center; gap: 56px; }
.marquee-track .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rose-deep);
  display: inline-block;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------------- Sections ---------------- */
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  margin-bottom: 56px;
  align-items: end;
}
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; } }
.section-head .lead { max-width: 48ch; font-size: 17px; }

/* ---------------- Service cards ---------------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 720px) { .services { grid-template-columns: 1fr; } }
.svc {
  background: var(--bg);
  padding: 36px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  transition: background .25s;
}
.svc:hover { background: var(--bg-alt); }
.svc-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--rose-deep);
  letter-spacing: 0.12em;
}
.svc-title { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.svc-desc { color: var(--ink-soft); font-size: 14.5px; max-width: 36ch; }
.svc-meta {
  margin-top: auto;
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}
.svc-price { color: var(--ink); font-size: 13px; }

/* ---------------- Reviews ---------------- */
.review-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 880px) { .review-grid { grid-template-columns: 1fr; } }
.review {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
.review .stars { color: var(--gold); letter-spacing: 4px; font-size: 14px; }
.review p { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.4; color: var(--ink); }
.review .meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }

/* ---------------- Footer ---------------- */
footer {
  background: var(--bg-deep);
  color: #d6c8c2;
  padding: 80px 0 40px;
  margin-top: 80px;
}
footer h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: #9a8a8e; margin-bottom: 18px;
}
footer a { color: #d6c8c2; transition: color .15s; }
footer a:hover { color: white; }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-brand {
  font-family: var(--serif); font-style: italic;
  font-size: 56px; line-height: 0.95; color: white;
}
.foot-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid #3d2f33;
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #8a7a7e;
  flex-wrap: wrap;
}

/* ---------------- WhatsApp float ---------------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }

/* ---------------- Pages ---------------- */
.page-hero {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.page-title { font-size: clamp(48px, 7vw, 92px); line-height: 1; }
.page-title .italic { color: var(--rose-deep); }
.crumbs {
  display: flex; gap: 8px; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 28px;
}
.crumbs a:hover { color: var(--ink); }

/* ---------------- Gallery ---------------- */
.gallery-grid {
  columns: 3;
  column-gap: 18px;
}
@media (max-width: 900px) { .gallery-grid { columns: 2; } }
@media (max-width: 540px) { .gallery-grid { columns: 1; } }
.gal-item {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform .25s;
}
.gal-item:hover { transform: translateY(-3px); }
.gal-item .ph { border: none; border-radius: 0; }

/* before/after */
.ba {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  user-select: none;
  aspect-ratio: 4 / 3;
}
.ba .ba-img { position: absolute; inset: 0; }
.ba .ba-after { clip-path: inset(0 0 0 var(--split, 50%)); }
.ba .ba-handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--split, 50%); width: 2px; background: white;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
  cursor: ew-resize;
}
.ba .ba-knob {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: white; box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--ink);
}
.ba-label {
  position: absolute; top: 12px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: rgba(0,0,0,0.55); color: white;
  padding: 6px 10px; border-radius: var(--r-sm);
}
.ba-label.left { left: 12px; }
.ba-label.right { right: 12px; }

/* ---------------- Forms ---------------- */
.form-grid { display: grid; gap: 18px; }
.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft);
}
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--ink);
  transition: border-color .15s, background .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--rose-deep);
  background: var(--cream);
}

/* ---------------- Booking ---------------- */
.booking {
  display: grid; grid-template-columns: 1fr 380px; gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .booking { grid-template-columns: 1fr; } }
.steps {
  display: flex; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 36px;
  flex-wrap: wrap;
}
.steps .step { padding: 6px 0; }
.steps .step.active { color: var(--ink); }
.steps .step.done { color: var(--rose-deep); }
.steps .sep { color: var(--line); }

.svc-pick {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (max-width: 600px) { .svc-pick { grid-template-columns: 1fr; } }
.svc-pick button {
  text-align: left;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  display: flex; flex-direction: column; gap: 4px;
  transition: all .15s;
}
.svc-pick button:hover { border-color: var(--ink-soft); }
.svc-pick button.selected { border-color: var(--ink); background: var(--bg-alt); }
.svc-pick .t { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.svc-pick .m { font-family: var(--mono); font-size: 10.5px; color: var(--ink-mute); letter-spacing: 0.12em; text-transform: uppercase; }

.cal {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
}
.cal .dow { font-family: var(--mono); font-size: 10px; color: var(--ink-mute); text-align: center; padding: 6px 0; letter-spacing: 0.12em; text-transform: uppercase; }
.cal .day {
  aspect-ratio: 1; border: 1px solid transparent;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; transition: all .12s;
}
.cal .day:hover:not(.disabled) { background: var(--bg-alt); }
.cal .day.disabled { color: var(--ink-mute); opacity: 0.35; cursor: not-allowed; }
.cal .day.today { font-weight: 600; }
.cal .day.selected { background: var(--ink); color: var(--cream); }

.slots {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
@media (max-width: 540px) { .slots { grid-template-columns: repeat(3, 1fr); } }
.slot {
  padding: 10px 0; text-align: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--mono); font-size: 12px;
  background: var(--bg); transition: all .12s;
}
.slot:hover { border-color: var(--ink-soft); }
.slot.selected { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.slot.taken { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.summary-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  background: var(--bg-alt);
  position: sticky; top: 96px;
  display: flex; flex-direction: column; gap: 16px;
}
.summary-card h4 { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.summary-row:last-of-type { border-bottom: none; }
.summary-row .l { color: var(--ink-soft); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.summary-row .v { color: var(--ink); text-align: right; }

/* ---------------- Map ---------------- */
.map-wrap {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------------- Briefing ---------------- */
.brief {
  max-width: 880px;
  margin: 0 auto;
  padding: 60px var(--pad);
  font-size: 15.5px;
  line-height: 1.65;
}
.brief h2 { margin-top: 56px; margin-bottom: 18px; font-size: 36px; }
.brief h3 { margin-top: 32px; margin-bottom: 12px; font-size: 22px; color: var(--rose-deep); font-style: italic; }
.brief p { margin-bottom: 14px; }
.brief ul { margin: 12px 0 24px 22px; }
.brief li { margin-bottom: 6px; color: var(--ink); }
.brief blockquote {
  border-left: 2px solid var(--rose-deep);
  padding: 6px 18px;
  margin: 16px 0;
  font-style: italic;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}
.swatch-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.swatch {
  width: 120px; padding: 14px;
  border-radius: var(--r-md);
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; flex-direction: column; gap: 4px; min-height: 96px;
  border: 1px solid var(--line);
}
.swatch .h { font-size: 11px; }
.swatch .v { opacity: 0.7; font-size: 9.5px; }
.kvtable {
  width: 100%; border-collapse: collapse; margin: 18px 0;
}
.kvtable td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.kvtable td:first-child { width: 30%; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); padding-right: 16px; }

/* ---------------- Tweaks visibility ---------------- */
[data-theme="minimal"] h1, [data-theme="minimal"] h2, [data-theme="minimal"] h3 {
  font-family: var(--sans); font-weight: 300; letter-spacing: -0.02em;
}
[data-theme="minimal"] .hero-headline .accent { font-style: normal; font-weight: 500; }
[data-theme="minimal"] .brand { font-family: var(--sans); font-style: normal; font-weight: 500; letter-spacing: -0.02em; }
[data-theme="minimal"] .marquee-track { font-family: var(--sans); font-style: normal; font-weight: 300; }
[data-theme="minimal"] .review p { font-family: var(--sans); font-style: normal; font-weight: 400; }
[data-theme="minimal"] .foot-brand { font-family: var(--sans); font-style: normal; font-weight: 300; }
[data-theme="minimal"] .svc-title { font-family: var(--sans); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
[data-theme="minimal"] .page-title .italic { font-style: normal; }
[data-theme="minimal"] .summary-card h4 { font-family: var(--sans); font-weight: 500; }
[data-theme="minimal"] .svc-pick .t { font-family: var(--sans); font-weight: 500; font-size: 17px; }
[data-theme="minimal"] .brief blockquote { font-family: var(--sans); font-style: normal; }
[data-theme="minimal"] .review { border-radius: 6px; }
[data-theme="minimal"] .services { border-radius: 6px; }
[data-theme="minimal"] .hero-image { border-radius: 6px; }

/* utility */
.flex { display: flex; }
.gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.center { text-align: center; }
.muted { color: var(--ink-mute); }
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   RESPONSIVE — additions
   ============================================================ */

/* --- Mobile nav hamburger --- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  transition: background .15s;
}
.nav-hamburger:hover { background: var(--bg-alt); }
.nav-hamburger:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 2px; }
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transform-origin: center;
  transition: transform .22s ease, opacity .15s ease;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav { position: relative; }
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 8px var(--pad) 20px;
    gap: 0;
    box-shadow: 0 16px 40px rgba(42,32,36,.1);
    z-index: 49;
  }
  .nav-links.nav-open { display: flex; }

  .nav-links a {
    font-size: 15px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line-soft);
    width: 100%;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
  }
  .nav-links a:hover,
  .nav-links a.active { color: var(--ink); }
  .nav-links a.active::after { display: none; }

  .nav-links .btn-primary {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
    border-bottom: none;
    text-align: center;
  }
}

/* --- Contact page --- */
.contact-section { padding-top: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-aside { position: static !important; }
}

.fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .fields-row { grid-template-columns: 1fr; }
}

.field-optional {
  font-style: italic;
  opacity: .65;
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: 10px;
  margin-left: 4px;
}

.form-success {
  padding: 32px;
  border: 1px solid var(--rose-deep);
  border-radius: var(--r-lg);
  background: var(--bg-alt);
}

/* --- About + BA grids (override inline styles via !important) --- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr !important; }
  .ba-grid { grid-template-columns: 1fr !important; }
}

/* --- CTA banner grid --- */
.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 768px) {
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cta-grid .row { justify-content: flex-start; }
}

/* --- Hero mobile --- */
@media (max-width: 520px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-meta { flex-direction: column; gap: 8px; }
}

/* --- Page hero mobile --- */
@media (max-width: 520px) {
  .page-title { font-size: clamp(40px, 11vw, 72px); }
}

/* --- Footer --- */
@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
