/* =============================================================================
   Style Plus — stylesheet
   Hand-written, no framework. Design tokens live on :root; dark mode is applied
   two ways so both the OS preference and an explicit toggle work:
     1. @media (prefers-color-scheme: dark), skipped when the user chose light
     2. [data-theme="dark"], which always wins
   Every colour has its light value defined on bare :root, so nothing depends on
   a media query being evaluated.
   ========================================================================== */

/* ── Tokens ───────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;

  --bg:            #f7f4f1;
  --bg-raised:     #ffffff;
  --bg-sunken:     #efe9e4;
  --text:          #1e1a1d;
  --text-muted:    #6a6169;
  --border:        #e0d7d0;
  --border-strong: #cabdb3;

  --accent:        #8a4f6d;
  --accent-hover:  #713f59;
  --accent-contrast: #ffffff;
  --accent-soft:   #f3e7ee;

  --success-bg:    #e7f4ec;
  --success-fg:    #1d5c37;
  --error-bg:      #fbeaea;
  --error-fg:      #96201f;

  --shadow: 0 1px 2px rgb(30 26 29 / 0.05), 0 8px 24px rgb(30 26 29 / 0.06);

  --radius:    12px;
  --radius-sm: 8px;
  --wrap:      1120px;

  --font: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, sans-serif;

  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.1rem);
}

/* Dark by OS preference — unless the visitor explicitly chose light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --bg:            #161418;
    --bg-raised:     #201d22;
    --bg-sunken:     #100e12;
    --text:          #f0eaee;
    --text-muted:    #a79ea6;
    --border:        #322d36;
    --border-strong: #4a434f;

    --accent:        #d99cbd;
    --accent-hover:  #eab5ce;
    --accent-contrast: #241220;
    --accent-soft:   #2c1f28;

    --success-bg:    #14301f;
    --success-fg:    #8fdcae;
    --error-bg:      #3a1a1a;
    --error-fg:      #f2a3a2;

    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
  }
}

/* Explicit dark choice always wins, whatever the OS says. */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:            #161418;
  --bg-raised:     #201d22;
  --bg-sunken:     #100e12;
  --text:          #f0eaee;
  --text-muted:    #a79ea6;
  --border:        #322d36;
  --border-strong: #4a434f;

  --accent:        #d99cbd;
  --accent-hover:  #eab5ce;
  --accent-contrast: #241220;
  --accent-soft:   #2c1f28;

  --success-bg:    #14301f;
  --success-fg:    #8fdcae;
  --error-bg:      #3a1a1a;
  --error-fg:      #f2a3a2;

  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font); line-height: 1.15; margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: var(--step-3); letter-spacing: -0.02em; }
h2 { font-size: var(--step-2); letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); }
p  { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

img, svg { max-width: 100%; }
address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-contrast);
  padding: 0.6rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-sunken); }

.section-head {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: baseline; justify-content: space-between;
  margin-bottom: 2rem;
}
.section-head h2 { margin: 0; }

.page-head {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1rem, 3vw, 2rem);
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--border);
}

.lede { font-size: var(--step-1); color: var(--text-muted); max-width: 60ch; }
.muted { color: var(--text-muted); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.75rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.75rem;
}
.prose { max-width: 68ch; }
.prose p { font-size: var(--step-0); }

.split {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-form { grid-template-columns: 1.35fr 1fr; }
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
/* color-mix is well supported, but keep a solid fallback for older engines. */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: var(--bg); }
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--text); }
.brand-mark {
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem; flex: none;
  background: var(--accent); color: var(--accent-contrast);
  border-radius: 50%; font-weight: 700; font-size: 0.85rem;
  font-family: var(--font-ui); letter-spacing: -0.02em;
}
.brand-name { font-family: var(--font); font-size: 1.2rem; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-list { display: flex; gap: 1.35rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
  color: var(--text); text-decoration: none; font-weight: 500;
  padding: 0.35rem 0; border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--accent); }
.nav-link.is-current { border-bottom-color: var(--accent); color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--border-strong); background: var(--bg-raised); }
.icon { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Show the sun in dark mode (click for light) and the moon in light mode. */
.icon-sun { display: none; }
.icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }

.nav-toggle { display: none; }

/* ── Mobile navigation ────────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--border); }
  .nav-link { display: block; padding: 0.85rem 0; border-bottom: none; }
  .nav-link.is-current { border-bottom: none; }
  .nav-call { margin-top: 1rem; text-align: center; }
}

/* JS disabled: never leave the menu unreachable behind a dead button. */
.no-js .nav { position: static; display: flex; flex-direction: row; flex-wrap: wrap; box-shadow: none; padding: 0; border: 0; background: none; }
.no-js .nav-toggle { display: none; }
/* Both header buttons are JS-only; hide rather than show dead controls. */
.no-js #theme-toggle { display: none; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-contrast); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: 0.45rem 0.9rem; font-size: 0.875rem; }

.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { text-decoration: underline; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { padding: clamp(3rem, 8vw, 6rem) 0; }
.hero-inner { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.1fr 0.9fr; } }
.hero-copy h1 { margin-bottom: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.hero-panel {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  display: grid; gap: 1.25rem; place-items: center;
  aspect-ratio: 4 / 3;
  align-content: center;
}
.hero-swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
.swatch { display: block; width: clamp(3.5rem, 9vw, 5.5rem); aspect-ratio: 1; border-radius: 50%; }
.s1 { background: #6f3f2a; } .s2 { background: #b8794a; }
.s3 { background: #d9b68c; } .s4 { background: var(--accent); }
.hero-panel-note { margin: 0; color: var(--text-muted); font-family: var(--font); font-size: 1.05rem; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); }

.tick-list { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.tick-list li { padding: 0.35rem 0 0.35rem 1.4rem; position: relative; border-bottom: 1px solid var(--border); }
.tick-list li:last-child { border-bottom: none; }
.tick-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.stylist-card .avatar {
  display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem; margin-bottom: 1rem;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-weight: 700; letter-spacing: 0.02em;
}
.role { color: var(--accent); font-weight: 600; margin-bottom: 0.5rem; }

/* ── Price list ───────────────────────────────────────────────────────────── */
.service-group { margin-bottom: 3.5rem; scroll-margin-top: 6rem; }
.service-group:last-of-type { margin-bottom: 2rem; }
.group-blurb { color: var(--text-muted); margin-top: -1rem; margin-bottom: 1.5rem; }

.price-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.price-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  align-items: baseline; justify-content: space-between;
  padding: 1.15rem 0; border-bottom: 1px solid var(--border);
}
.price-row-main { flex: 1 1 18rem; }
.price-row-main h3 { margin: 0 0 0.15rem; font-size: 1.05rem; font-family: var(--font-ui); font-weight: 600; }
.price-row-main p { margin: 0; color: var(--text-muted); font-size: 0.925rem; }
.price-row-meta { display: flex; align-items: baseline; gap: 0.85rem; flex: none; }
.price { font-family: var(--font); font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.duration { color: var(--text-muted); font-size: 0.875rem; white-space: nowrap; }

.note {
  margin-top: 2rem; padding: 1rem 1.25rem;
  background: var(--accent-soft); border-radius: var(--radius-sm);
  color: var(--text); font-size: 0.925rem;
}

/* ── CTA band ─────────────────────────────────────────────────────────────── */
.cta-band { background: var(--bg-sunken); border-top: 1px solid var(--border); }
.cta-inner {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: center; justify-content: space-between;
}
.cta-inner h2 { margin-bottom: 0.25rem; }
.cta-inner p { margin: 0; color: var(--text-muted); }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form { max-width: 34rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.925rem; }
.req { color: var(--accent); }
.optional { color: var(--text-muted); font-weight: 400; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit; font-size: 1rem;   /* 16px minimum stops iOS zooming on focus */
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
textarea { resize: vertical; min-height: 8rem; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error-fg); }

.field-error { margin: 0.4rem 0 0; color: var(--error-fg); font-size: 0.875rem; font-weight: 500; }
.form-note { margin-top: 1rem; color: var(--text-muted); font-size: 0.875rem; }

/* Honeypot: off-screen rather than display:none, which some bots detect. */
.hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.alert { padding: 1.25rem 1.5rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.alert p:last-child { margin-bottom: 0; }
.alert-success { background: var(--success-bg); color: var(--success-fg); }
.alert-success h2 { color: var(--success-fg); font-size: var(--step-1); }
.alert-success a { color: inherit; }
.alert-error { background: var(--error-bg); color: var(--error-fg); }

.contact-aside h2 { font-size: var(--step-1); margin-top: 0; }
.contact-aside h2 + * { margin-bottom: 2rem; }

/* ── Hours ────────────────────────────────────────────────────────────────── */
.hours { margin: 0; }
.hours-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.35rem 0; border-bottom: 1px solid var(--border);
}
.hours-row:last-child { border-bottom: none; }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.hours-row.is-closed dt, .hours-row.is-closed dd { color: var(--text-muted); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.footer-heading { font-size: 1rem; font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.75rem; }
.footer-tagline { color: var(--text-muted); margin-top: 0.75rem; max-width: 28ch; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }

.footer-map-card {
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt, rgba(255, 255, 255, 0.03));
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  max-width: 18rem;
}
.footer-map-iframe {
  width: 100%;
  height: 125px;
  border: 0;
  border-radius: 8px;
  filter: contrast(1.05) saturate(0.9);
}
.footer-directions-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  padding: 8px 12px;
  text-decoration: none !important;
}

.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }

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

/* ── Print ────────────────────────────────────────────────────────────────── */
@media print {
  .site-header, .cta-band, .hero-panel, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}

/* Holding page ------------------------------------------------------------ */
.holding { min-height: 80vh; display: grid; place-items: center; text-align: center; }
.holding-inner { max-width: 42rem; }
.holding h1 { margin-bottom: 1rem; }
.holding .lede { margin-inline: auto; }
.holding-actions {
  display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap;
  margin: 2rem 0 3rem;
}
.holding-details {
  display: grid; gap: 2rem; text-align: left;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  border-top: 1px solid var(--border); padding-top: 2rem;
}
.holding-details address a { color: var(--text); text-decoration: none; }
.holding-details address a:hover { color: var(--accent); }
