/* ============================================================
   Top Knot Hair Studio — Design System
   Warm ivory · charcoal · muted gold | Playfair Display + Mulish
   Edit the tokens below to re-theme the entire site.
   ============================================================ */

:root {
  /* Color tokens */
  --ivory:      #FAF6EF;   /* page background */
  --ivory-2:    #F2EBDE;   /* alternate band */
  --paper:      #FFFDF8;   /* cards */
  --char:       #2A2622;   /* primary text / dark sections */
  --char-2:     #5C544A;   /* secondary text */
  --char-3:     #847A6D;   /* faint text on ivory */
  --gold:       #B08D57;   /* decorative accent */
  --gold-deep:  #8A6A3F;   /* accessible gold for text/links */
  --gold-soft:  #E9DDC6;   /* gold tint backgrounds */
  --line:       #E6DCCB;   /* hairline borders */
  --on-dark:    #F6F0E5;   /* text on charcoal */
  --on-dark-2:  #BDB2A2;   /* secondary text on charcoal */

  /* Type */
  --serif: 'Playfair Display', 'Georgia', serif;
  --sans:  'Mulish', -apple-system, 'Segoe UI', sans-serif;

  /* Rhythm */
  --container: 1200px;
  --gutter: 20px;
  --radius: 2px;            /* editorial = near-square corners */
  --shadow: 0 18px 50px -22px rgba(42,38,34,.28);
  --ease: cubic-bezier(.22,.61,.36,1);

  /* Layers */
  --z-head: 100;
  --z-drawer: 1000;
  --z-mobilebar: 90;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--char);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--char); }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
::selection { background: var(--gold-soft); color: var(--char); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 7vw, 76px); }
h2 { font-size: clamp(30px, 4.6vw, 52px); }
h3 { font-size: clamp(21px, 2.6vw, 28px); }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--gold-deep); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 36px; } }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--char); color: var(--on-dark); padding: 10px 18px; z-index: 2000; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.eyebrow--center::after { content: ""; width: 34px; height: 1px; background: var(--gold); }

.lede { font-size: clamp(17px, 2vw, 19.5px); color: var(--char-2); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 32px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  touch-action: manipulation; cursor: pointer;
}
.btn svg { width: 16px; height: 16px; }
.btn--dark { background: var(--char); color: var(--on-dark); }
.btn--dark:hover { background: #3C362F; color: var(--on-dark); transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: #FFFDF8; }
.btn--gold:hover { background: var(--gold-deep); color: #FFFDF8; transform: translateY(-2px); }
.btn--line { background: transparent; color: var(--char); border-color: var(--char); }
.btn--line:hover { background: var(--char); color: var(--on-dark); }
.btn--line-light { background: transparent; color: var(--on-dark); border-color: var(--on-dark-2); }
.btn--line-light:hover { background: var(--on-dark); color: var(--char); }
.btn--block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--char); border-bottom: 1px solid var(--gold); padding-bottom: 4px;
}
.text-link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translateX(5px); }

/* ---------- Header ---------- */
.topbar { background: var(--char); color: var(--on-dark); font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 14px; }
.topbar a { color: var(--on-dark); display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--gold); }
.topbar svg { width: 14px; height: 14px; color: var(--gold); }
.tb-promo { color: var(--on-dark-2); letter-spacing: .04em; }
.tb-promo b { color: var(--gold); font-weight: 700; }

.site-head { position: sticky; top: 0; z-index: var(--z-head); background: rgba(250,246,239,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-head.is-stuck { box-shadow: 0 10px 30px -18px rgba(42,38,34,.35); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; }

.brand { display: flex; flex-direction: column; line-height: 1; color: var(--char); }
.brand b { font-family: var(--serif); font-size: 27px; font-weight: 700; letter-spacing: .01em; }
.brand span { font-size: 10px; font-weight: 700; letter-spacing: .42em; text-transform: uppercase; color: var(--gold-deep); margin-top: 5px; }

.nav-links { display: none; align-items: center; gap: 30px; }
.nav-links a { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--char-2); padding: 8px 0; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width .25s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--char); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { display: none; align-items: center; gap: 10px; color: var(--char); }
.nav-phone svg { width: 19px; height: 19px; color: var(--gold-deep); }
.nav-phone span { display: flex; flex-direction: column; line-height: 1.25; font-weight: 800; font-size: 15px; }
.nav-phone small { font-weight: 600; font-size: 11px; color: var(--char-3); letter-spacing: .06em; }
.nav-book { display: none; }
.burger { width: 46px; height: 46px; display: grid; place-items: center; color: var(--char); }
.burger svg { width: 26px; height: 26px; }

@media (min-width: 700px)  { .nav-book { display: inline-flex; min-height: 46px; padding: 11px 24px; } }
@media (min-width: 1060px) {
  .nav-links { display: flex; }
  .nav-phone { display: flex; }
  .burger { display: none; }
}
.hide-sm { display: none; } @media (min-width: 600px) { .hide-sm { display: inline-flex; } }

/* ---------- Mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); pointer-events: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(42,38,34,.55); opacity: 0; transition: opacity .3s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(360px, 88vw);
  background: var(--ivory); padding: 22px 26px 40px; overflow-y: auto;
  transform: translateX(100%); transition: transform .35s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer.open .drawer-panel { transform: translateX(0); }
.dh { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.drawer-close { width: 44px; height: 44px; display: grid; place-items: center; }
.drawer-close svg { width: 24px; height: 24px; }
.dl { display: block; padding: 15px 2px; font-family: var(--serif); font-size: 21px; color: var(--char); border-bottom: 1px solid var(--line); }
.dl:hover { color: var(--gold-deep); padding-left: 8px; transition: padding .2s; }
.drawer .btn { margin-top: 22px; }

/* ---------- Mobile bottom bar (call + book) ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-mobilebar);
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--char); padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 58px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark); }
.mobile-bar a svg { width: 17px; height: 17px; }
.mobile-bar .mb-book { background: var(--gold); color: #FFFDF8; }
body { padding-bottom: 58px; }
@media (min-width: 1060px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section--tight { padding: clamp(52px, 7vw, 90px) 0; }
.section--ivory2 { background: var(--ivory-2); }
.section--dark { background: var(--char); color: var(--on-dark); }
.section--dark .lede, .section--dark p { color: var(--on-dark-2); }
.section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--dark .eyebrow { color: var(--gold); }

.sec-head { max-width: 700px; margin-bottom: clamp(38px, 5vw, 64px); }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--center .lede { margin-left: auto; margin-right: auto; }
.sec-head h2 { margin-bottom: 16px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--char); color: var(--on-dark); overflow: hidden; }
.page-hero .container { position: relative; z-index: 2; padding-top: clamp(80px, 12vw, 150px); padding-bottom: clamp(60px, 9vw, 110px); }
.page-hero h1 { color: var(--on-dark); max-width: 16ch; }
.page-hero .lede { color: var(--on-dark-2); margin-top: 20px; }
.ph-media { position: absolute; inset: 0; z-index: 1; }
.ph-media img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.ph-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(42,38,34,.92) 30%, rgba(42,38,34,.45)); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--on-dark-2); margin-bottom: 22px; }
.crumbs a { color: var(--gold); }
.crumbs span::before { content: "—"; margin-right: 8px; color: var(--on-dark-2); }

/* ---------- Quick answer (AEO) ---------- */
.quick-answer {
  background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold);
  padding: clamp(24px, 4vw, 38px); margin: 0 0 42px; box-shadow: var(--shadow);
}
.quick-answer h2, .quick-answer h3 { font-size: 20px; margin-bottom: 10px; }
.quick-answer p { color: var(--char-2); }
.key-facts { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15px; }
.key-facts th, .key-facts td { text-align: left; padding: 11px 14px; border: 1px solid var(--line); vertical-align: top; }
.key-facts th { background: var(--ivory-2); font-weight: 800; white-space: nowrap; width: 38%; }
.key-facts td { font-variant-numeric: tabular-nums; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
@media (min-width: 700px)  { .grid--2 { grid-template-columns: 1fr 1fr; } .grid--4 { grid-template-columns: 1fr 1fr; } .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--paper); border: 1px solid var(--line); padding: clamp(26px, 3.5vw, 38px); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--char-2); font-size: 15.5px; }

/* ---------- Price list (editorial menu) ---------- */
.menu-block { border-top: 1px solid var(--char); padding-top: 26px; }
.menu-block + .menu-block { margin-top: 52px; }
.menu-block > h3 { display: flex; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.menu-block > h3 .mb-note { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--char-3); text-transform: uppercase; }
.menu-intro { color: var(--char-2); font-size: 15.5px; max-width: 60ch; margin-bottom: 22px; }
.menu-item { display: flex; align-items: baseline; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.menu-item .mi-name { font-weight: 800; font-size: 16.5px; white-space: nowrap; }
.menu-item .mi-dots { flex: 1; border-bottom: 1px dotted var(--gold); transform: translateY(-4px); min-width: 30px; }
.menu-item .mi-price { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--gold-deep); white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-item .mi-desc { flex-basis: 100%; color: var(--char-2); font-size: 14.5px; margin-top: -8px; padding-bottom: 4px; }
.menu-item.has-desc { flex-wrap: wrap; }
.menu-foot { font-size: 13.5px; color: var(--char-3); margin-top: 16px; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 22px 2px; text-align: left;
  font-family: var(--serif); font-size: clamp(18px, 2.2vw, 21px); font-weight: 600; color: var(--char);
}
.faq-q svg { width: 20px; height: 20px; flex: none; color: var(--gold-deep); transition: transform .3s var(--ease); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a > div { padding: 0 2px 24px; color: var(--char-2); max-width: 68ch; }
.section--dark .faq-item { border-color: #463F37; }
.section--dark .faq-q { color: var(--on-dark); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .fw { grid-column: 1 / -1; } }
.field label { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--char-2); margin-bottom: 8px; }
.field label .req { color: var(--gold-deep); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  font: inherit; font-size: 16px; color: var(--char);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-deep); }
.field .err { display: none; font-size: 13.5px; color: #9B3324; margin-top: 6px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #9B3324; }
.field.invalid .err { display: block; }
.form-msg { display: none; padding: 18px 20px; margin-top: 20px; font-weight: 600; border: 1px solid; }
.form-msg.ok { display: block; background: #F1F5EC; border-color: #5F7A4D; color: #3F5532; }
.form-msg.bad { display: block; background: #F8EEE9; border-color: #9B3324; color: #7C2A1E; }

/* ---------- Footer ---------- */
.site-foot { background: var(--char); color: var(--on-dark-2); padding: clamp(60px, 8vw, 96px) 0 0; }
.foot-grid { display: grid; gap: 44px; padding-bottom: 56px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-foot .brand b { color: var(--on-dark); }
.site-foot .brand span { color: var(--gold); }
.foot-tag { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--on-dark-2); margin: 18px 0 22px; max-width: 30ch; }
.foot-h { font-size: 12px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.foot-links li { margin-bottom: 11px; }
.foot-links a { color: var(--on-dark-2); font-size: 15px; }
.foot-links a:hover { color: var(--gold); }
.foot-contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 15px; }
.foot-contact svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--gold); }
.foot-contact a { color: var(--on-dark); font-weight: 700; }
.foot-contact a:hover { color: var(--gold); }
.foot-hours { font-variant-numeric: tabular-nums; }
.foot-hours li { display: flex; justify-content: space-between; gap: 14px; font-size: 14.5px; padding: 6px 0; border-bottom: 1px solid #3E3831; }
.foot-hours li span:last-child { color: var(--on-dark); font-weight: 600; }
.foot-social { display: flex; gap: 12px; margin-top: 20px; }
.foot-social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #4A433B; color: var(--on-dark); }
.foot-social a:hover { border-color: var(--gold); color: var(--gold); }
.foot-social svg { width: 18px; height: 18px; }
.foot-base { border-top: 1px solid #3E3831; padding: 24px 0; font-size: 13.5px; }
.foot-base .container { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; }
.foot-base a { color: var(--on-dark-2); } .foot-base a:hover { color: var(--gold); }

/* ---------- Reveal animations ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; } .rv-d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 14px; } .mt-2 { margin-top: 28px; } .mt-3 { margin-top: 48px; }
.stars { display: inline-flex; gap: 3px; color: var(--gold); }
.stars svg { width: 16px; height: 16px; }
