/* D:\MedSpa\website\css\styles.css
   Shared styles for the M2Aesthetic website. Uses the Rose Gold palette
   from Logos.html. */

:root {
  /* ---- Rose Gold palette (palette source vars; what the picker writes) ---- */
  --p-ink: #3c2e2c;        /* Mahogany — palette dark */
  --p-bg: #f4ece8;         /* Petal — palette page bg */
  --p-paper: #fdf9f7;      /* Silk — palette card surface */
  --p-line: #e8dcd6;       /* palette border */
  --p-muted: #a3938c;      /* palette muted */
  --sage-deep: #a9776a;    /* Copper Rose — accent (kept) */
  --sage: #c89a8a;         /* Rose Gold — accent (kept) */

  /* ---- Effective vars (light mode: 1:1 with palette source) ---- */
  --ink: var(--p-ink);
  --bg: var(--p-bg);
  --paper: var(--p-paper);
  --line: var(--p-line);
  --muted: var(--p-muted);

  /* ---- Typography stacks ---- */
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Jost", "Inter", -apple-system, sans-serif;
  --font-script: "Pinyon Script", cursive;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* ============================================================
   BRAND OVERRIDES (driven by the Identity page via localStorage)
   When the user picks a Weight or toggles Italic on logos.html,
   app.js sets these classes on <html> so the choice propagates
   through every typographic element on the page.
   ============================================================ */
.has-weight-override body,
.has-weight-override h1,
.has-weight-override h2,
.has-weight-override h3,
.has-weight-override h4,
.has-weight-override p,
.has-weight-override a,
.has-weight-override li,
.has-weight-override .brand-name,
.has-weight-override .eyebrow,
.has-weight-override .btn,
.has-weight-override svg text,
.has-weight-override svg tspan {
  font-weight: var(--font-weight) !important;
}
.has-italic body,
.has-italic h1,
.has-italic h2,
.has-italic h3,
.has-italic h4,
.has-italic p,
.has-italic a,
.has-italic li,
.has-italic .brand-name,
.has-italic .eyebrow,
.has-italic .btn,
.has-italic svg text,
.has-italic svg tspan {
  font-style: italic !important;
}

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.005em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 16px;
  display: inline-block;
}

.eyebrow-rule::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--sage);
  margin: 12px auto 0;
}

.script {
  font-family: var(--font-script);
  color: var(--sage-deep);
  font-weight: 400;
  line-height: 1;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 96px 0;
}

.section-divider {
  width: 1px;
  height: 60px;
  background: var(--sage);
  margin: 0 auto;
  opacity: 0.6;
}

/* ============================================================
   M² LOGO MARK (shared SVG class)
   The .lk-the element is hidden by default; visible only when
   <body class="use-the">. The .lk-frame, .lk-m, .lk-exp classes
   mirror Logos.html so the SVG markup ports directly.
   ============================================================ */

svg text,
svg tspan {
  font-family: var(--font-body);
}
.lk-frame {
  stroke: var(--ink);
  fill: none;
}
.lk-m {
  fill: var(--ink);
  stroke: none;
}
.lk-exp {
  fill: var(--sage);
}
.lk-word {
  fill: var(--ink);
}
.lk-sub {
  fill: var(--muted);
}
.lk-rule {
  stroke: var(--sage);
}
.lk-the {
  fill: var(--ink);
  font-family: var(--font-script) !important;
  font-style: normal !important;
  display: none; /* hidden until body.use-the */
}
body.use-the .lk-the {
  display: inline;
}
/* Dark/sage surface variants */
.surface-dark .lk-frame {
  stroke: var(--paper);
}
.surface-dark .lk-m {
  fill: var(--paper);
}
.surface-dark .lk-the {
  fill: var(--paper);
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition:
    background 0.4s ease,
    border-color 0.4s ease;
}

.nav-bar {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  gap: 24px;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-svg {
  width: 38px;
  height: 38px;
  overflow: visible;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  margin: 0 auto;
}

.nav-links a {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--sage);
  color: var(--sage-deep);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: nowrap;
  min-width: 0;
}

/* ---- The toggle (header) ---- */
.the-toggle {
  font-family: var(--font-script);
  font-size: 22px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 18px 6px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.25s ease, border-color 0.25s ease,
    background 0.25s ease;
}
.the-toggle:hover {
  color: var(--sage-deep);
  border-color: var(--sage);
}
.the-toggle[aria-pressed="true"] {
  background: var(--sage);
  color: var(--paper);
  border-color: var(--sage);
}

/* ---- dark/light theme toggle (sits next to The pill) ----
   Derives the dark surfaces from the palette's own --p-ink/--p-paper
   so each palette has a distinct dark variant (Rose Gold dark feels
   mahogany; Cool Clinic dark feels deep blue; Mono Noir dark feels
   pure black). Accents (--sage, --sage-deep) are unchanged. */
html.dark-mode {
  --bg: var(--p-ink) !important;
  --paper: color-mix(in srgb, var(--p-ink) 86%, white 14%) !important;
  --line: color-mix(in srgb, var(--p-ink) 72%, white 28%) !important;
  --ink: var(--p-paper) !important;
  --muted: color-mix(in srgb, var(--p-paper) 60%, transparent) !important;
}
.theme-toggle {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 14px 7px;
  cursor: pointer;
  line-height: 1.2;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}
.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.theme-toggle[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---- mobile hamburger (visible ≤880px) ---- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 42px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.25s ease;
}
.nav-hamburger:hover {
  border-color: var(--ink);
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}
.nav-mobile-open .nav-hamburger span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.nav-mobile-open .nav-hamburger span:nth-child(2) {
  opacity: 0;
}
.nav-mobile-open .nav-hamburger span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ============================================================
   BRAND STUDIO DRAWER
   A slide-out panel with palette + typeface + weight + italic that
   any page can open from its nav. Persists to the same localStorage
   keys as the Identity page so choices made here propagate everywhere.
   ============================================================ */
.brand-drawer-toggle {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0;
  height: 38px;
  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}
.brand-drawer-toggle:hover {
  border-color: var(--ink);
}
.brand-drawer-toggle .swatch-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  margin-left: -5px;
}
.brand-drawer-toggle .swatch-dot:first-child {
  margin-left: 0;
}

.brand-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(60, 46, 44, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 199;
}
.brand-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.brand-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 100vw;
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: -10px 0 40px rgba(60, 46, 44, 0.12);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 200;
  overflow-y: auto;
  padding: 0;
}
.brand-drawer.open {
  transform: translateX(0);
}
.brand-drawer-head {
  position: sticky;
  top: 0;
  background: var(--paper);
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}
.brand-drawer-head h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
}
.brand-drawer-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
}
.brand-drawer-close:hover {
  color: var(--ink);
}

.brand-drawer-section {
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.brand-drawer-section:last-child {
  border-bottom: none;
}
.brand-drawer-section .eyebrow {
  margin-bottom: 14px;
}

/* ---- palette grid (inside drawer) ---- */
.bd-palette-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bd-palette {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 14px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  text-align: left;
  font-family: var(--font-body);
}
.bd-palette:hover {
  border-color: var(--ink);
}
.bd-palette.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.bd-palette .dots {
  display: flex;
  flex-shrink: 0;
}
.bd-palette .dots span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  margin-left: -7px;
}
.bd-palette .dots span:first-child {
  margin-left: 0;
}
.bd-palette .pname {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- font list (inside drawer) ---- */
.bd-font-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bd-font-list li {
  display: flex;
}
.bd-font {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 12px;
  cursor: pointer;
  color: var(--ink);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.2;
  text-align: center;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.bd-font:hover {
  border-color: var(--ink);
}
.bd-font.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.bd-font .fo-tag {
  display: block;
  font-size: 7px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 400;
  font-family: var(--font-body);
}

/* ---- style row (weight + italic) ---- */
.bd-style-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
.bd-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.bd-select {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 10px;
  cursor: pointer;
}
.bd-italic {
  cursor: pointer;
}
.bd-italic input {
  margin-right: 6px;
  vertical-align: middle;
}

.bd-reset {
  width: 100%;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
.bd-reset:hover {
  color: var(--ink);
  border-color: var(--ink);
}

@media (max-width: 880px) {
  .brand-drawer {
    width: 100vw;
  }
}

/* ============================================================
   BUTTONS / CTAs
   ============================================================ */

.btn {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, transform 0.2s ease;
  display: inline-block;
  text-align: center;
}
.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-gold {
  background: var(--sage);
  color: var(--paper);
  border-color: var(--sage);
}
.btn-gold:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 32px 100px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 30%,
      color-mix(in srgb, var(--sage) 35%, transparent),
      transparent 55%
    ),
    radial-gradient(
      ellipse at 80% 70%,
      color-mix(in srgb, var(--sage-deep) 28%, transparent),
      transparent 55%
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-svg {
  max-width: 100%;
  height: auto;
  overflow: visible;
}

.hero-tagline {
  font-size: 11px;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-headline {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  margin-top: 8px;
}

.hero-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.8;
}

/* ============================================================
   SECTION: GENERIC
   ============================================================ */

.section-head {
  text-align: center;
  margin-bottom: 64px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  color: var(--ink);
  font-style: italic;
}

.section-head p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px 32px 36px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(60, 46, 44, 0.08);
  border-color: var(--sage);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sage);
  border-radius: 50%;
  color: var(--sage-deep);
}
.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 10px;
  font-style: italic;
}

.service-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 22px;
}

.service-card .btn {
  font-size: 10px;
  padding: 10px 22px;
}

/* ============================================================
   INTRO / ABOUT TEASER
   ============================================================ */

.intro {
  text-align: center;
}

.intro h2 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 20px;
}

.intro-text {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 620px;
  margin: 0 auto;
}

/* ============================================================
   SPLIT (image + text side by side)
   ============================================================ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-art {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(
    135deg,
    var(--sage) 0%,
    var(--sage-deep) 100%
  );
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-art::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(253, 249, 247, 0.4);
  border-radius: 4px;
  pointer-events: none;
}
.split-art .mark-overlay {
  color: var(--paper);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 64px;
}

.split-text h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 24px;
}
.split-text p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 18px;
}
.split-text .btn {
  margin-top: 12px;
}

/* ============================================================
   STATS / CREDENTIALS STRIP
   ============================================================ */

.stat-strip {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  color: var(--sage-deep);
  font-style: italic;
}
.stat-label {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* ============================================================
   CTA SECTION (big rose-gold panel)
   ============================================================ */

.cta-panel {
  background: linear-gradient(
    135deg,
    var(--sage) 0%,
    var(--sage-deep) 100%
  );
  color: var(--paper);
  border-radius: 10px;
  padding: 80px 40px;
  text-align: center;
}
.cta-panel h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 18px;
}
.cta-panel p {
  font-size: 15px;
  opacity: 0.92;
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.8;
}
.cta-panel .btn {
  background: var(--paper);
  color: var(--sage-deep);
  border-color: var(--paper);
}
.cta-panel .btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ============================================================
   TEAM / PROVIDER CARDS
   ============================================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.team-card {
  text-align: center;
}

.team-portrait {
  aspect-ratio: 3 / 4;
  background: linear-gradient(
    160deg,
    var(--sage) 0%,
    var(--sage-deep) 90%
  );
  border-radius: 6px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 48px;
}

.team-card h3 {
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
}

.team-card .role {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-top: 6px;
}

.team-card .bio {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 14px;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.contact-info dt {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 6px;
}
.contact-info dd {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
}

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px 36px;
}

.form-row {
  margin-bottom: 22px;
}
.form-row label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.25s ease;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-bottom-color: var(--sage-deep);
}
.form-row textarea {
  resize: vertical;
  min-height: 100px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--paper);
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
}
.site-footer .brand-name {
  color: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 18px;
  font-weight: 400;
}
.footer-col p,
.footer-col li {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  list-style: none;
}
.footer-col a {
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer-nav a:hover {
  color: var(--ink);
}

/* ============================================================
   UTILITIES
   ============================================================ */

.text-center {
  text-align: center;
}

.mb-sm {
  margin-bottom: 16px;
}
.mb-md {
  margin-bottom: 32px;
}
.mb-lg {
  margin-bottom: 56px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 880px) {
  section {
    padding: 64px 0;
  }
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .split-art {
    aspect-ratio: 16 / 10;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  /* ---- mobile nav drawer ----
     .nav-bar allows wrap so the .nav-links drawer (flex-basis: 100%)
     can drop below the brand+actions row. Brand and actions themselves
     stay on a single row because their children scale down to fit. */
  .nav-bar {
    position: relative;
    flex-wrap: wrap;
    gap: 12px;
  }
  .nav-hamburger {
    display: flex;
  }
  .nav-links {
    order: 99;
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    margin: 12px -32px 0;
    padding: 0 32px;
    background: var(--paper);
    border-top: 1px solid var(--line);
  }
  .nav-mobile-open .nav-links {
    display: flex;
  }
  .nav-links li {
    border-bottom: 1px solid var(--line);
  }
  .nav-links li:last-child {
    border-bottom: none;
  }
  .nav-links a {
    display: block;
    padding: 18px 0;
    font-size: 12px;
  }
  /* ---- scaled-down header controls so brand + actions never wrap ---- */
  .nav-actions {
    gap: 8px;
  }
  .brand-svg {
    width: 36px;
    height: 36px;
  }
  .the-toggle {
    font-size: 20px;
    padding: 3px 14px 5px;
  }
  .theme-toggle {
    font-size: 9px;
    letter-spacing: 0.18em;
    padding: 5px 10px 6px;
  }
  .brand-drawer-toggle {
    height: 32px;
    padding: 4px 8px;
  }
  .brand-drawer-toggle .swatch-dot {
    width: 11px;
    height: 11px;
  }
  .nav-hamburger {
    width: 36px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .nav-bar {
    padding: 12px 20px;
    gap: 8px;
  }
  .brand-name {
    font-size: 18px;
  }
  .container,
  .container-narrow {
    padding: 0 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  /* ---- tighter scale at phone widths ---- */
  .nav-actions {
    gap: 6px;
  }
  .brand-svg {
    width: 30px;
    height: 30px;
  }
  .the-toggle {
    font-size: 17px;
    padding: 2px 10px 3px;
  }
  .theme-toggle {
    font-size: 8px;
    letter-spacing: 0.14em;
    padding: 4px 7px 5px;
  }
  .brand-drawer-toggle {
    height: 28px;
    padding: 3px 6px;
  }
  .brand-drawer-toggle .swatch-dot {
    width: 9px;
    height: 9px;
    border-width: 1.5px;
  }
  .nav-hamburger {
    width: 32px;
    height: 28px;
  }
  .nav-links a {
    padding: 14px 0;
  }
  .nav-links {
    margin: 12px -20px 0;
    padding: 0 20px;
  }
}
