/* ==========================================================================
   Trang Beauty Salon — "Threaded"
   Concept: hair as thread — a three-strand braid that also nods to Lowell's
   textile-mill heritage. One bold move: a dark, editorial "gloss" hero with a
   self-drawing braid signature. Everything else stays light and disciplined.
   Type: Instrument Serif (display) + Instrument Sans (body) — one superfamily.
   ========================================================================== */

:root {
  /* palette — built from hair tones, not generic cream */
  --plum-900:  #241019;   /* deep warm mulberry-black — hero & reviews field */
  --plum-800:  #341826;   /* raised dark surfaces */
  --ink:       #2a1620;   /* warm near-black text */
  --ink-soft:  #6a5560;   /* muted mauve-brown body text */

  --porcelain: #f6efe9;   /* warm porcelain paper */
  --porcelain-2:#efe3db;  /* deeper paper band */
  --shell:     #fbf6f3;   /* card surface */

  --rose:      #c78791;   /* soft rose accent */
  --berry:     #9e2b4e;   /* deep raspberry — CTAs / prices (7.2:1 on white) */
  --berry-deep:#82213f;   /* pressed / hover */

  --champagne: #c39b53;   /* warm metallic — hairlines & braid signature */
  --champagne-soft:#e3c98f;

  /* type */
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

  --shadow-sm: 0 1px 2px rgba(36,16,25,.06), 0 4px 14px rgba(36,16,25,.06);
  --shadow-md: 0 10px 28px rgba(36,16,25,.12), 0 28px 64px rgba(36,16,25,.12);
  --shadow-glow: 0 24px 70px rgba(36,16,25,.45);
  --radius: 14px;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--porcelain);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.02; letter-spacing: -.015em; }
p { margin: 0; }
button { font-family: inherit; }

/* ---------- shared bits ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .7rem;
  font-weight: 600;
  color: var(--berry);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--champagne);
  display: inline-block;
}

.serif-i { font-style: italic; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  will-change: transform;
}
.btn:focus-visible { outline: 3px solid var(--champagne); outline-offset: 3px; }
.btn-primary { background: var(--berry); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--berry-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(42,22,32,.24); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--ink); }
.btn-gilt { background: var(--ink); color: var(--porcelain); }
.btn-gilt:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* section rhythm */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-head { max-width: 660px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  margin-top: .9rem;
}
.section-head p { color: var(--ink-soft); margin-top: 1rem; font-size: 1.08rem; }

/* the braid divider — signature, as a woven rule */
.braid-rule { display: block; width: 100%; height: 26px; color: var(--champagne); opacity: .7; }
.braid-rule svg { width: 100%; height: 100%; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,239,233,.82);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid rgba(195,155,83,.24);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: 74px; }
.brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 1.8rem; }
.nav-links a {
  font-size: .95rem; font-weight: 500; color: var(--ink);
  position: relative; padding: .2rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--champagne); transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { width: 100%; }
.nav-phone { font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: .4rem; }
.nav-cta { padding: .6rem 1.15rem; font-size: .92rem; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .3rem; color: var(--ink); }

@media (max-width: 860px) {
  .nav-links, .nav-phone { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu.open { display: flex; }
}
.mobile-menu {
  display: none; flex-direction: column; gap: .2rem;
  padding: .5rem var(--gutter) 1.25rem;
  background: var(--porcelain);
  border-bottom: 1px solid rgba(195,155,83,.24);
}
.mobile-menu a { padding: .75rem 0; border-bottom: 1px solid rgba(42,22,32,.07); font-weight: 500; }
.mobile-menu .btn { margin-top: .8rem; justify-content: center; }

/* ==========================================================================
   Hero — the one bold move: dark editorial gloss + self-drawing braid
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(158,43,78,.30), transparent 60%),
    radial-gradient(90% 80% at 12% 100%, rgba(195,155,83,.14), transparent 55%),
    var(--plum-900);
  color: var(--porcelain);
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(4rem, 9vw, 7.5rem);
}
.hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; position: relative; z-index: 2;
}
.hero .eyebrow { color: var(--champagne-soft); }
.hero .eyebrow::before { background: var(--champagne-soft); }
.hero-copy h1 {
  font-size: clamp(3rem, 8.4vw, 6rem);
  margin: 1.1rem 0 0; letter-spacing: -.02em; line-height: .98;
}
.hero-copy h1 .line { display: block; }
.hero-copy h1 .l3 { color: var(--champagne-soft); }
.hero-copy .sub {
  margin-top: 1.5rem; font-size: 1.18rem; color: rgba(246,239,233,.82);
  max-width: 36ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.1rem; }
.hero .btn-ghost { color: var(--porcelain); border-color: rgba(246,239,233,.35); }
.hero .btn-ghost:hover { border-color: var(--porcelain); background: rgba(246,239,233,.06); }
.hero-trust {
  margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; font-size: .9rem; color: rgba(246,239,233,.7);
}
.hero-trust b { color: var(--porcelain); font-weight: 600; }
.hero-trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--champagne); display: inline-block; margin-right: .55rem; vertical-align: middle; }

/* hero visual */
.hero-visual { position: relative; }
.hero-frame {
  position: relative; border-radius: 240px 240px 20px 20px;
  overflow: hidden; box-shadow: var(--shadow-glow);
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(227,201,143,.35);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -18px; bottom: 40px;
  background: var(--shell);
  border: 1px solid rgba(195,155,83,.4);
  border-radius: 14px; padding: .85rem 1.1rem;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .75rem;
  max-width: 230px; color: var(--ink);
}
.hero-badge .num { font-family: var(--display); font-size: 2.1rem; color: var(--berry); line-height: 1; }
.hero-badge .lbl { font-size: .78rem; color: var(--ink-soft); line-height: 1.3; }

/* the braid signature — a woven three-strand curve behind the visual */
.braid--hero {
  position: absolute; top: -6%; right: clamp(-40px, 4vw, 60px);
  height: 112%; width: min(340px, 40vw); z-index: 1;
  color: var(--champagne); opacity: .9; pointer-events: none;
}
.braid .strand {
  stroke: currentColor; stroke-width: 1.4; fill: none; stroke-linecap: round;
  stroke-dasharray: 1700; stroke-dashoffset: 1700;
}
.hero-loaded .braid .strand { animation: braid-draw 2.6s cubic-bezier(.22,.61,.36,1) forwards; }
.hero-loaded .braid .s2 { animation-delay: .18s; }
.hero-loaded .braid .s3 { animation-delay: .36s; }
@keyframes braid-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .braid .strand { stroke-dashoffset: 0; }
}

/* orchestrated headline rise (load) */
.hero-copy h1 .line { opacity: 0; transform: translateY(18px); }
.hero-loaded .hero-copy h1 .line { animation: rise .8s cubic-bezier(.22,.61,.36,1) forwards; }
.hero-loaded .hero-copy h1 .l1 { animation-delay: .05s; }
.hero-loaded .hero-copy h1 .l2 { animation-delay: .16s; }
.hero-loaded .hero-copy h1 .l3 { animation-delay: .27s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-copy h1 .line { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { max-width: 420px; margin-inline: auto; width: 100%; }
  .hero-copy .sub { max-width: none; }
  .braid--hero { opacity: .4; right: -30px; }
}

/* ==========================================================================
   Marquee / trust strip
   ========================================================================== */
.strip {
  background: var(--plum-800); color: var(--porcelain);
  overflow: hidden; white-space: nowrap;
  padding-block: .85rem;
  border-block: 1px solid rgba(195,155,83,.35);
}
.strip-track { display: inline-flex; gap: 3rem; animation: marquee 34s linear infinite; }
.strip-track span { font-family: var(--display); font-style: italic; font-size: 1.35rem; opacity: .94; }
.strip-track span::before { content: "✦"; color: var(--champagne-soft); margin-right: 3rem; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }

/* ==========================================================================
   Services menu
   ========================================================================== */
#services { background: var(--porcelain); }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 5rem); }
.menu-col h3 {
  font-size: 1.9rem; display: flex; align-items: center; gap: .7rem;
  padding-bottom: .9rem; margin-bottom: 1.1rem;
  border-bottom: 1px solid rgba(195,155,83,.42);
}
/* knot: a tied-thread marker for a category (not a sequence number) */
.menu-col h3 .knot {
  position: relative; width: 24px; height: 0; flex: none;
  border-top: 1.5px solid var(--champagne);
}
.menu-col h3 .knot::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 6px; height: 6px; background: var(--champagne);
  transform: translate(-50%, -50%) rotate(45deg);
}
.menu-item { display: flex; align-items: baseline; gap: .6rem; padding: .5rem 0; }
.menu-item .name { font-weight: 500; }
.menu-item .lead-dots { flex: 1; border-bottom: 1px dotted rgba(106,85,96,.4); transform: translateY(-4px); }
.menu-item .price { font-weight: 700; color: var(--berry); white-space: nowrap; }
.menu-note { grid-column: 1 / -1; font-size: .85rem; color: var(--ink-soft); font-style: italic; margin-top: .5rem; }
@media (max-width: 720px) { .menu-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Gallery
   ========================================================================== */
#gallery { background: var(--porcelain-2); }
.gallery-grid { columns: 3; column-gap: 16px; }
.gallery-grid figure {
  margin: 0 0 16px; break-inside: avoid;
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(195,155,83,.25);
  transition: transform .3s ease, box-shadow .3s ease;
  background: #fff;
}
.gallery-grid figure:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-md); }
.gallery-grid img { width: 100%; height: auto; }
@media (max-width: 860px) { .gallery-grid { columns: 2; } }
@media (max-width: 520px) { .gallery-grid { columns: 1; } }

/* ==========================================================================
   About / the space
   ========================================================================== */
#about { background: var(--porcelain); }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-photo { position: relative; }
.about-photo img { border-radius: 18px; box-shadow: var(--shadow-md); border: 1px solid rgba(195,155,83,.3); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about-photo .tag {
  position: absolute; bottom: -16px; right: -12px;
  background: var(--ink); color: var(--porcelain);
  font-family: var(--display); font-style: italic; font-size: 1.2rem;
  padding: .55rem 1.1rem; border-radius: 10px; box-shadow: var(--shadow-md);
}
.about-copy h2 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); }
.about-copy p { color: var(--ink-soft); margin-top: 1.2rem; font-size: 1.08rem; }
.about-list { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .7rem; }
.about-list li { display: flex; gap: .7rem; align-items: flex-start; }
.about-list li::before { content: "✦"; color: var(--champagne); flex: none; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 460px; } }

/* ==========================================================================
   Reviews
   ========================================================================== */
#reviews { background: var(--plum-900); color: var(--porcelain); }
#reviews .eyebrow { color: var(--champagne-soft); }
#reviews .eyebrow::before { background: var(--champagne-soft); }
#reviews .section-head h2 { color: var(--porcelain); }
#reviews .section-head p { color: rgba(246,239,233,.75); }
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 3rem; }
.stat { text-align: center; padding: 1.5rem 1rem; border: 1px solid rgba(227,201,143,.3); border-radius: 14px; background: rgba(255,255,255,.03); }
.stat .n { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--champagne-soft); line-height: 1; }
.stat .l { font-size: .82rem; letter-spacing: .04em; color: rgba(246,239,233,.72); margin-top: .5rem; }
.praise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.praise blockquote {
  margin: 0; padding: 1.6rem; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(227,201,143,.22);
}
.praise blockquote p { font-family: var(--display); font-style: italic; font-size: 1.3rem; line-height: 1.35; color: var(--porcelain); }
.praise .stars { color: var(--champagne-soft); letter-spacing: .15em; margin-bottom: .7rem; }
.praise cite { display: block; margin-top: 1rem; font-style: normal; font-size: .82rem; color: rgba(246,239,233,.6); }
.reviews-src { margin-top: 2rem; font-size: .82rem; color: rgba(246,239,233,.5); }
.reviews-src a { color: var(--champagne-soft); text-decoration: underline; }
@media (max-width: 820px) { .stat-band { grid-template-columns: 1fr 1fr; } .praise { grid-template-columns: 1fr; } }

/* ==========================================================================
   Booking
   ========================================================================== */
#book { background: var(--porcelain); position: relative; }
.book-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.book-pitch h2 { font-size: clamp(2.2rem, 5.4vw, 3.5rem); }
.book-pitch p { color: var(--ink-soft); margin-top: 1.2rem; font-size: 1.08rem; }
.ai-chip {
  margin-top: 2rem; display: flex; gap: .9rem; align-items: center;
  padding: 1rem 1.2rem; border-radius: 14px;
  background: linear-gradient(120deg, rgba(195,155,83,.14), rgba(158,43,78,.1));
  border: 1px solid rgba(195,155,83,.35);
}
.ai-chip .ico { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--champagne-soft); display: grid; place-items: center; flex: none; }
.ai-chip b { display: block; font-size: .98rem; }
.ai-chip > div span { font-size: .84rem; color: var(--ink-soft); }
.ai-chip .soon { margin-left: auto; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; background: var(--champagne); color: #3a2410; padding: .25rem .55rem; border-radius: 999px; font-weight: 700; align-self: flex-start; }

.book-card {
  background: var(--shell); border: 1px solid rgba(195,155,83,.35);
  border-radius: 20px; padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-md);
}
.book-card h3 { font-size: 1.8rem; margin-bottom: 1.3rem; }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .03em; margin-bottom: .4rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid rgba(106,85,96,.28); border-radius: 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--berry); box-shadow: 0 0 0 3px rgba(158,43,78,.16);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.book-card .btn-primary { width: 100%; justify-content: center; margin-top: .4rem; }
.book-success { display: none; text-align: center; padding: 2rem 1rem; }
.book-success.show { display: block; }
.book-success .check { width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 50%; background: var(--berry); color: #fff; display: grid; place-items: center; }
.book-success h3 { color: var(--ink); font-size: 1.8rem; }
.book-success p { color: var(--ink-soft); margin-top: .7rem; }
.form-hint { font-size: .78rem; color: var(--ink-soft); text-align: center; margin-top: 1rem; }
@media (max-width: 820px) { .book-grid { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } }

/* ==========================================================================
   Visit
   ========================================================================== */
#visit { background: var(--porcelain-2); }
.visit-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.hours-table td { padding: .7rem 0; border-bottom: 1px solid rgba(195,155,83,.28); font-size: 1rem; }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.hours-table tr.closed td { color: var(--ink-soft); }
.hours-table tr.today td { color: var(--berry); }
.hours-table tr.today td:first-child::after { content: " · Today"; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--champagne); }
.visit-contact { margin-top: 2rem; display: grid; gap: 1rem; }
.visit-contact a, .visit-contact div { display: flex; gap: .8rem; align-items: flex-start; font-size: 1rem; }
.visit-contact .ico { color: var(--champagne); flex: none; margin-top: 2px; }
.map-frame { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid rgba(195,155,83,.3); min-height: 360px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: saturate(.9) contrast(1.02); }
@media (max-width: 820px) { .visit-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(246,239,233,.8); padding-block: 3.5rem 2rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer-brand img { height: 46px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { max-width: 30ch; margin-top: 1rem; font-size: .9rem; color: rgba(246,239,233,.6); }
.footer-col h4 { font-family: var(--body); font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; color: var(--champagne-soft); margin: 0 0 .9rem; }
.footer-col a, .footer-col p { display: block; font-size: .92rem; color: rgba(246,239,233,.8); padding: .22rem 0; }
.footer-col a:hover { color: var(--porcelain); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(227,201,143,.2); font-size: .8rem; color: rgba(246,239,233,.5); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
