/* ============================================================
   KS Beauty Hair — Salon de coiffure, Nice
   Composition: warm earth editorial · diagonal split · grain
   ============================================================ */

:root {
  --bg:        #f5efe4;
  --bg-deep:   #ece3d3;
  --surface:   #fbf7ef;
  --ink:       #2b1e14;
  --ink-soft:  #5a4a3c;
  --ink-faint: #8a7a6a;
  --accent:    #c25a37;
  --accent-dk: #a3472a;
  --secondary: #6a7a4a;
  --line:      #d9cdb9;
  --ink-bg:    #241a12;
  --ink-bg-2:  #2f2318;

  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;

  --measure: 68ch;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --radius: 3px;
  --shadow: 0 1px 2px rgba(43,30,20,.05), 0 12px 32px -18px rgba(43,30,20,.28);
}

/* Dark mode — same warm family, inverted */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #1c150f;
    --bg-deep:   #241b13;
    --surface:   #251c14;
    --ink:       #f2e8da;
    --ink-soft:  #cbbcaa;
    --ink-faint: #9b8b79;
    --accent:    #e07a52;
    --accent-dk: #f0906c;
    --secondary: #9aab74;
    --line:      #3d3025;
    --ink-bg:    #f2e8da;
    --ink-bg-2:  #e6d9c6;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -18px rgba(0,0,0,.7);
  }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dk); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); font-variation-settings: "SOFT" 0, "WONK" 1; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1.1em; max-width: var(--measure); }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
table { border-collapse: collapse; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- grain overlay ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
@media (prefers-color-scheme: dark) { body::before { opacity: .085; } }

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 1.1rem;
}
.eyebrow--light { color: #b9c79a; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.5rem;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.btn--solid { background: var(--accent); color: #fff8f2; }
.btn--solid:hover { background: var(--accent-dk); color: #fff8f2; transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--small { min-height: 44px; padding: .6rem 1.1rem; font-size: .88rem; }
.btn--big { font-size: 1.05rem; padding: 1rem 2rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .85rem var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: 0 0 42px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 50%;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.brand-text em { font-style: normal; font-size: .72rem; letter-spacing: .06em; color: var(--ink-faint); text-transform: uppercase; }

.site-nav { display: flex; gap: 1.6rem; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .9rem;
  padding: .5rem 0;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.site-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.phone-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
  text-decoration: none;
  padding: .45rem .95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease, background-color .2s ease;
}
.phone-pill:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.phone-label { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.phone-number { font-size: .95rem; font-weight: 500; color: var(--ink); }

/* ---------- hero: diagonal split ---------- */
.hero { padding: 0; }
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(88vh, 760px);
  position: relative;
}
.hero-panel { position: relative; }
.hero-panel--paper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 4vw, 4rem) clamp(3rem, 7vw, 6rem) var(--pad);
  background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  z-index: 2;
}
.hero-panel--photo {
  margin-left: -9%;
  overflow: hidden;
  background: var(--bg-deep);
}
.hero-panel--photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-panel--photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(43,30,20,.06), rgba(43,30,20,.34));
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.hero-lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; }
.accent-word { color: var(--accent); font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1rem; }
.hero-note { font-size: .85rem; color: var(--ink-faint); margin: 0; }

.hero-badge {
  position: absolute;
  left: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(1rem, 3vw, 2.5rem);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .7rem 1rem;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: .82rem;
  color: var(--ink-soft);
}
.hero-badge .stars { color: var(--accent); letter-spacing: .12em; font-size: .8rem; }
.hero-badge strong { color: var(--ink); }

/* ---------- strip ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 1.1rem var(--pad);
}
.strip-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .6rem 2rem;
  font-size: .88rem;
  color: var(--ink-soft);
}
.strip-list li { display: flex; flex-direction: column; gap: .1rem; }
.strip-list strong {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 500;
}

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 7rem) var(--pad); }
.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-intro { color: var(--ink-soft); }

/* ---------- services ---------- */
.services { display: flex; flex-direction: column; gap: clamp(2.5rem, 5vw, 4.5rem); }
.service {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.service--flip .service-media { order: 2; }
.service-media { overflow: hidden; border-radius: var(--radius); background: var(--bg-deep); }
.service-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.3,1);
}
.service:hover .service-media img { transform: scale(1.03); }
.service-body h3 { margin-bottom: .5em; }
.service-body p { color: var(--ink-soft); }
.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  margin: .9rem 0 0;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  letter-spacing: .04em;
  color: var(--ink-faint);
}
.service-meta span:first-child { color: var(--accent); font-weight: 500; }

/* ---------- diagonal split section ---------- */
.section--split { padding: 0; }
.split-diagonal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
}
.split-half { position: relative; }
.split-half--ink {
  background: var(--ink-bg);
  color: #f0e6d8;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 4vw, 4rem) clamp(3rem, 7vw, 6rem) var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
  z-index: 2;
}
.split-half--ink h2 { color: #fbf4e8; }
.split-half--ink p { color: #cdbfae; }
.split-half--ink a { color: #e8a184; }
.split-half--photo { margin-left: -8%; overflow: hidden; }
.split-half--photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}

/* ---------- quotes ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.quote {
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.quote blockquote { margin: 0 0 1.2rem; }
.quote blockquote p {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.quote figcaption {
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--ink);
  font-weight: 500;
}
.quote figcaption span { color: var(--ink-faint); font-weight: 400; }

/* ---------- infos ---------- */
.section--infos { background: var(--bg-deep); }
.infos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  box-shadow: var(--shadow);
}
.info-card h3 { font-size: 1.15rem; margin-bottom: .8rem; }
.info-card p { font-size: .95rem; color: var(--ink-soft); }
.info-big { margin: 0 0 .8rem; }
.info-big a {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  letter-spacing: -.01em;
}
.info-big a:hover { text-decoration: underline; }
.info-small { font-size: .87rem; color: var(--ink-faint); margin-bottom: 0; }
.info-card .btn { margin-top: 1rem; }

.hours { width: 100%; font-size: .93rem; }
.hours th, .hours td { padding: .42rem 0; text-align: left; font-weight: 400; }
.hours th { color: var(--ink-soft); }
.hours td { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.hours tr + tr th, .hours tr + tr td { border-top: 1px solid var(--line); }
.hours .closed { color: var(--ink-faint); font-style: italic; }

.address { font-size: 1.02rem; line-height: 1.6; color: var(--ink); margin-bottom: .8rem; }

.notes { display: flex; flex-direction: column; gap: .55rem; font-size: .92rem; color: var(--ink-soft); }
.notes li { position: relative; padding-left: 1.15rem; }
.notes li::before {
  content: '';
  position: absolute;
  left: 0; top: .68em;
  width: 6px; height: 6px;
  background: var(--secondary);
  border-radius: 50%;
}

/* ---------- final CTA ---------- */
.final {
  background: var(--ink-bg-2);
  color: #f0e6d8;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--pad);
  text-align: center;
}
.final-inner { max-width: 60ch; margin: 0 auto; }
.final h2 { color: #fbf4e8; }
.final p { color: #cdbfae; margin-left: auto; margin-right: auto; }
.final .btn--solid { background: var(--accent); margin-top: .6rem; }
.final .btn--solid:hover { background: #d96b45; }
.final-address { font-size: .84rem; color: #a2917e; margin: 1.6rem 0 0; letter-spacing: .03em; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad) 1.5rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.footer-brand { display: flex; gap: .9rem; align-items: flex-start; }
.footer-brand p { font-size: .9rem; color: var(--ink-soft); margin: 0; line-height: 1.65; }
.footer-brand strong { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; font-size: .9rem; }
.footer-nav a { color: var(--ink-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding-top: 1.2rem;
}
.claim-banner {
  display: inline-block;
  font-size: .78rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: .4rem .75rem;
  background: color-mix(in srgb, var(--secondary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--secondary) 30%, transparent);
  border-radius: var(--radius);
  transition: background-color .2s ease, color .2s ease;
}
.claim-banner:hover { background: color-mix(in srgb, var(--secondary) 22%, transparent); color: var(--ink); }

.attribution { margin: 0; font-size: .72rem; opacity: .55; }
.attribution a { color: inherit; text-decoration: none; }
.attribution a:hover { text-decoration: underline; }

/* ---------- motion: staggered line reveal ---------- */
@keyframes riseIn {
  from { opacity: 0; translate: 0 22px; }
  to   { opacity: 1; translate: 0 0; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-head > *,
    .service-body > *,
    .quote,
    .info-card,
    .split-half--ink > *,
    .final-inner > *,
    .strip-list li {
      animation: riseIn linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 38%;
    }
    .service-body > *:nth-child(2) { animation-range: entry 0% cover 46%; }
    .service-body > *:nth-child(3) { animation-range: entry 0% cover 54%; }
    .info-card:nth-child(2) { animation-range: entry 0% cover 46%; }
    .info-card:nth-child(3) { animation-range: entry 0% cover 54%; }
    .info-card:nth-child(4) { animation-range: entry 0% cover 62%; }
    .quote:nth-child(2) { animation-range: entry 0% cover 46%; }
    .quote:nth-child(3) { animation-range: entry 0% cover 54%; }
  }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-panel--paper {
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    padding-bottom: 4.5rem;
  }
  .hero-panel--photo { margin-left: 0; height: 58vw; min-height: 260px; }
  .hero-panel--photo img,
  .hero-panel--photo::after { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  .hero-badge { left: 1rem; bottom: 1rem; }

  .service { grid-template-columns: 1fr; gap: 1.25rem; }
  .service--flip .service-media { order: 0; }

  .split-diagonal { grid-template-columns: 1fr; min-height: 0; }
  .split-half--ink { clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%); padding-bottom: 4rem; }
  .split-half--photo { margin-left: 0; height: 62vw; min-height: 240px; }
  .split-half--photo img { clip-path: none; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand-text em { display: none; }
  .phone-pill { padding: .4rem .7rem; }
  .phone-label { display: none; }
  .hero-actions .btn { width: 100%; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

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