/* =========================================================
   Young Hair Co. landing page
   Brand colors and fonts live here. Change them in one place.
   ========================================================= */
:root {
  --warm-white: #F7F4F1;
  --linen: #E9E3D8;
  --soft-black: #111111;
  --charcoal: #333333;
  --warm-oak: #C69C6F;   /* waves and hairlines only, never text on light backgrounds */
  --brass: #C5AB6A;      /* accents; readable as text only on Soft Black */

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "sofia-pro", "Nunito Sans", "Helvetica Neue", Arial, sans-serif;

  --max: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-pad: clamp(64px, 10vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--warm-white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; color: var(--soft-black); }
h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.2vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h3 { font-family: var(--font-body); font-weight: 600; font-size: 17px; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--warm-oak); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--warm-white); color: var(--soft-black);
  padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-pad) 0; }
.section-linen { background: var(--linen); }
.kicker {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--charcoal); margin-bottom: 14px;
}
.kicker-brass { color: var(--brass); }
.section-intro { max-width: 560px; margin-top: 18px; font-size: 18px; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: 0.06em;
  text-decoration: none; border: 1px solid transparent; border-radius: 2px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-light { background: var(--warm-white); color: var(--soft-black); }
.btn-light:hover { background: var(--linen); }
.btn-outline-light { border-color: rgba(247,244,241,.5); color: var(--warm-white); }
.btn-outline-light:hover { border-color: var(--warm-white); }
.text-link { text-decoration: none; border-bottom: 1px solid var(--warm-oak); padding-bottom: 2px; }
.text-link-light { color: var(--warm-white); border-color: var(--brass); }
.text-link:hover { border-bottom-width: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  color: var(--warm-white);
}
.logo { width: 150px; height: 36px; color: var(--warm-white); display: block; }
.header-link {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid var(--brass); padding-bottom: 2px;
}

/* ---------- 1. Hero (dark, floor-mat look) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--soft-black); color: var(--warm-white);
  padding: 96px 0 72px;
}
.hero-strands {
  position: absolute; inset: 0;
  background: url("assets/hero-strands-sm.webp") right -120px top 0 / auto 50% no-repeat;
  -webkit-mask-image: linear-gradient(to bottom left, #000 22%, transparent 58%);
          mask-image: linear-gradient(to bottom left, #000 22%, transparent 58%);
  opacity: .85; pointer-events: none;
}
.hero-inner {
  position: relative; max-width: var(--max); margin: 0 auto;
  padding: 150px var(--gutter) 0;
  display: grid; gap: 40px;
}
.eyebrow {
  font-family: var(--font-body); font-size: 12px; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.6;
  color: var(--linen); margin-bottom: 18px; max-width: 340px;
}
.display {
  font-family: var(--font-display); font-size: clamp(42px, 11vw, 76px);
  line-height: 1.05; letter-spacing: -0.015em; color: var(--warm-white); margin: 0;
}
.hero-wave { width: 170px; height: auto; margin: 18px 0 22px; }
.lede { font-size: 18px; max-width: 440px; color: var(--linen); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.open-status { margin-top: 22px; font-size: 14px; color: var(--linen); }
.open-status::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brass); margin-right: 10px; vertical-align: 2px;
}

/* ---------- 2. Tiles ---------- */
.tiles { display: grid; gap: 20px; margin-top: 44px; }
.tile { background: var(--warm-white); display: flex; flex-direction: column; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 20%; }
.tile-body { padding: 22px 24px 26px; }
.tile-body h3 { margin-bottom: 8px; }
.tile-body p { margin: 0; }
.tile-body ul { margin: 0; padding: 0; list-style: none; }
.tile-body li { padding: 6px 0; border-top: 1px solid var(--linen); }
.tile-body li:first-child { border-top: 0; }
.tile-essentials { background: var(--soft-black); color: var(--warm-white); }
.tile-essentials h3 { color: var(--warm-white); }
.tile-essentials li { border-color: #2a2a2a; color: var(--linen); }
.tile-mark { aspect-ratio: 4 / 3; display: grid; place-items: center; border-bottom: 1px solid #2a2a2a; }
.tile-mark svg { width: 46%; height: 30%; color: var(--brass); }

/* ---------- 3. Moments ---------- */
.moments { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 44px; }
.moment img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; margin-bottom: 20px; }
.moment-num {
  display: block; font-family: var(--font-display); font-size: 15px; color: var(--charcoal);
  padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--warm-oak); width: 48px;
}
.moment h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin-bottom: 8px; }

/* ---------- 4. Founder ---------- */
.section-pattern {
  background-color: var(--linen);
  background-image: url("assets/monogram-pattern.svg");
  background-size: 220px auto;
  position: relative;
}
.founder { position: relative; display: grid; gap: 40px; align-items: center; }
.founder-photo { margin: 0; }
.founder-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; }
.founder-placeholder {
  aspect-ratio: 1 / 1; background: var(--warm-white); display: grid; place-items: center;
}
.founder-placeholder svg { width: 52%; height: 52%; color: var(--warm-oak); }
.founder-copy h2 { margin-bottom: 22px; }
.signature { font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--soft-black); margin-top: 24px; }

/* ---------- 5. Visit (dark) ---------- */
.visit {
  position: relative; overflow: hidden;
  background: var(--soft-black); color: var(--linen);
  padding: var(--section-pad) 0;
}
.visit-strands {
  display: none; position: absolute; left: -35%; bottom: -10%; width: 110%; height: 70%;
  background: url("assets/hero-strands-sm.webp") left bottom / contain no-repeat;
  transform: scaleX(-1) rotate(180deg); opacity: .22; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 35%);
          mask-image: linear-gradient(to left, transparent 0, #000 35%);
}
.visit-inner { position: relative; display: grid; gap: 48px; }
.visit h2 { color: var(--warm-white); }
.visit h3 {
  color: var(--brass); font-weight: 400; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 8px;
}
.visit-lede { font-size: 18px; margin: 18px 0 36px; max-width: 460px; }
.visit-details { display: grid; gap: 28px; margin-bottom: 36px; }
.visit-details p, address { margin: 0; font-style: normal; color: var(--warm-white); }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 16px; max-width: 340px; padding: 4px 0; color: var(--warm-white); }
.hours dd { margin: 0; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.social { display: flex; gap: 24px; list-style: none; padding: 0; margin: 32px 0 0; }
.social[hidden] { display: none; }
.social a { color: var(--warm-white); text-decoration: none; border-bottom: 1px solid var(--brass); }
.map { min-height: 320px; border: 1px solid #2a2a2a; }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: grayscale(.6) contrast(.95); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--soft-black); color: #b9b3aa; text-align: center;
  padding: 56px var(--gutter) 120px; border-top: 1px solid #222;
}
.footer-seal { width: 72px; height: 72px; color: var(--brass); margin-bottom: 20px; }
.footer-line { font-family: var(--font-display); font-size: 18px; color: var(--linen); max-width: 420px; margin: 0 auto 20px; }
.footer-meta { font-size: 13px; margin: 4px 0; }
.footer-meta a { color: inherit; }

/* ---------- Mobile sticky bar ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--soft-black); border-top: 1px solid var(--brass);
  transform: translateY(110%); transition: transform .3s ease;
}
.sticky-bar.is-visible { transform: none; }
.sticky-bar a {
  min-height: 56px; display: grid; place-items: center; text-decoration: none;
  font-size: 15px; font-weight: 600; letter-spacing: 0.06em;
}
.sticky-primary { background: var(--warm-white); color: var(--soft-black); }
.sticky-secondary { color: var(--warm-white); }
.sticky-secondary + .sticky-secondary { border-left: 1px solid #333; }

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

/* ---------- Tablet and up ---------- */
@media (min-width: 700px) {
  .tiles, .moments { grid-template-columns: repeat(3, 1fr); }
  .tile img, .tile-mark, .moment img { aspect-ratio: 4 / 5; }
  .visit-details { grid-template-columns: 1fr 1fr; }
  .visit-details > div:nth-child(3) { grid-column: 1 / -1; }
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .logo { width: 190px; height: 46px; }
  .hero { padding: 0; }
  .hero-strands {
    inset: 0 -4% 0 auto; width: 70%; height: 100%; opacity: .9;
    background-image: url("assets/hero-strands.webp");
    background-size: auto 112%; background-position: left 20% center;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 45%);
            mask-image: linear-gradient(to right, transparent 0, #000 45%);
  }
  .hero-inner { align-items: center; padding-top: 140px; padding-bottom: 120px; min-height: 720px; }
  .hero-copy { max-width: 560px; }
  .founder { grid-template-columns: .8fr 1fr; gap: 80px; }
  .visit-strands { display: block; }
  .visit-inner { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 64px; }
  .map, .map iframe { min-height: 100%; }
  .sticky-bar { display: none; }
  .site-footer { padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .sticky-bar { transition: none; }
}
