/* ==========================================================================
   Kim Catalano Salon — kc.v1.css · Lilac Studio
   One stylesheet for every page. Load once in <head>:
     <link rel="stylesheet" href="/css/kc.v1.css">
   When you edit this file, rename it kc.v2.css (and update the <link>)
   so returning visitors get the new version instead of a cached copy.
   Sections: 1 tokens · 2 brand font · 3 base · 4 layout · 5 header/nav
             6 buttons · 7 hero · 8 cards · 9 menu page · 10 info/footer
             11 motion (hover + scroll) · 12 utilities
   ========================================================================== */

/* 1. TOKENS ------------------------------------------------------------- */
:root {
  /* Brand palette (taken from the current kimcatalano.com) */
  --kc-navy: #272c5a;
  --kc-navy-deep: #1d2148;
  --kc-ink: #28104e;
  --kc-plum: #4c1165;
  --kc-violet: #5d388e;
  --kc-lilac: #a38bc7;
  --kc-peri: #bdbee3;
  --kc-blush: #f8eefd;
  --kc-white: #ffffff;

  /* Type scale (fluid, 360px → 1280px) */
  --step--1: 0.875rem;
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --step-2: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.45rem + 2vw, 3rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.6vw, 5.25rem);

  /* Space + layout */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 72rem;
  --section: clamp(3.5rem, 2rem + 6vw, 7rem);
  --gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font-brand: "Sacramento", "Snell Roundhand", "Segoe Script", cursive;
  --focus: var(--kc-lilac);

  /* Lilac Studio theme */
  color-scheme: light;
  --bg: var(--kc-blush);
  --bg-alt: #efe3f8;
  --surface: var(--kc-white);
  --text: var(--kc-navy);
  --muted: #5a5782;
  --line: rgb(39 44 90 / 0.12);
  --accent: var(--kc-plum);
  --accent-ink: var(--kc-white);
  --accent-hover: var(--kc-violet);
  --link: var(--kc-plum);
  --hero-bg: var(--kc-blush);
  --hero-text: var(--kc-navy);
  --band-bg: var(--kc-navy);
  --band-text: var(--kc-blush);
  --header-bg: rgb(248 238 253 / 0.78);
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: var(--font-display);
  --display-weight: 750;
  --display-track: -0.035em;
  --radius: 22px;
  --radius-btn: 14px;
  --media-shape: 28px;
  --shadow: 0 20px 40px -22px rgb(39 44 90 / 0.35);
}

/* 2. BRAND FONT --------------------------------------------------------- */
/* The only web font: the script used for the "Kim Catalano" wordmark.
   Everything else uses the visitor's built-in system font (0 downloads). */
@font-face {
  font-family: "Sacramento";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/sacramento-v13-latin-400.woff2") format("woff2");
}

/* 3. BASE --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  font: 400 var(--step-0) / 1.65 var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.2; }
p { margin: 0; text-wrap: pretty; max-width: 65ch; }
em { font-style: italic; }
a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color 0.2s var(--ease); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--kc-lilac); color: var(--kc-ink); }
ul { margin: 0; padding: 0; list-style: none; }

/* 4. LAYOUT ------------------------------------------------------------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--alt { background: var(--bg-alt); }
.stack { display: grid; gap: var(--gap); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head > div { display: grid; gap: 0.75rem; }
.eyebrow {
  font: 600 0.75rem / 1.2 var(--font-body);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.lede { font-size: var(--step-1); color: var(--muted); }
/* Below-the-fold sections skip rendering until needed (faster first paint) */
.section, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 720px; }

/* 5. HEADER + NAV (no JavaScript: uses the popover attribute) ----------- */
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; z-index: 99; background: var(--surface); padding: 0.5rem 1rem; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
}
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 4.5rem; }

/* KIM'S BRAND */
.brand {
  font: 400 clamp(2.5rem, 1.4rem + 1vw, 5.25rem) / 1 var(--font-brand);
  color: var(--text); text-decoration: none; margin-right: auto; white-space: nowrap;
}
.nav-toggle {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 1.1rem; }
.nav-list {
  /* mobile: a popover sheet */
  inset: 4.75rem var(--gutter) auto auto; margin: 0; width: min(20rem, 100vw - 2 * var(--gutter));
  padding: 0.75rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
.nav-list:popover-open { display: grid; gap: 0.125rem; }
.nav-list a {
  display: block; padding: 0.6rem 0.75rem; color: inherit; text-decoration: none;
  font-weight: 500; border-radius: calc(var(--radius) / 2);
}
.nav-list a:hover { background: var(--bg-alt); }
.nav-list a[aria-current="page"] { color: var(--link); }
.sub { padding-left: 0.75rem; font-size: var(--step--1); }

@media (max-width: 26em) {
  .header-inner { gap: 0.6rem; }
  .brand { font-size: 1.6rem; }
  .header-cta { padding-inline: 0.8rem; }
}

@media (min-width: 60em) {
  .nav-toggle { display: none; }
  .nav-list,
  .nav-list:popover-open {
    /* desktop: override the popover so the list is always inline */
    display: flex; position: static; inset: auto; width: auto; padding: 0; margin: 0;
    border: 0; background: none; box-shadow: none; overflow: visible; gap: 0.25rem;
  }
  .nav-list > li { position: relative; }
  .nav-list a { position: relative; padding: 0.5rem 0.8rem; font-size: 0.95rem; }
  .nav-list a:hover { background: none; }
  /* underline that draws in from the left */
  .nav-list > li > a::after {
    content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.3rem; height: 1.5px;
    background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
  }
  .nav-list > li > a:hover::after,
  .nav-list > li > a[aria-current="page"]::after { transform: scaleX(1); }
  /* Services dropdown */
  .sub {
    position: absolute; top: 100%; left: 0; min-width: 14rem; padding: 0.5rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; translate: 0 0.5rem;
    transition: opacity 0.25s var(--ease), translate 0.25s var(--ease), visibility 0.25s;
  }
  .has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; translate: 0 0; }
  .sub a:hover { background: var(--bg-alt); }
}

/* 6. BUTTONS ------------------------------------------------------------ */
.btn {
  --_bg: var(--accent); --_fg: var(--accent-ink); --_fill: var(--accent-hover);
  display: inline-flex; align-items: center; gap: 0.6rem; white-space: nowrap;
  padding: 0.85rem 1.4rem; border: 1px solid var(--_bg); border-radius: var(--radius-btn);
  font: 600 0.95rem / 1 var(--font-body); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  color: var(--_fg);
  /* fill that sweeps in from the left on hover */
  background: linear-gradient(var(--_fill) 0 0) no-repeat left / 0% 100%, var(--_bg);
  transition: background-size 0.45s var(--ease), color 0.25s, border-color 0.45s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background-size: 100% 100%; border-color: var(--_fill); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn .arrow { transition: translate 0.3s var(--ease); }
.btn:hover .arrow { translate: 0.25rem 0; }
.btn--ghost { --_bg: transparent; --_fg: currentColor; --_fill: var(--line); border-color: var(--line); }
.btn--ghost:hover { border-color: currentColor; }
.btn--sm { padding: 0.65rem 1.1rem; font-size: 0.875rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.link-arrow { display: inline-flex; gap: 0.4rem; align-items: center; font-weight: 600; text-decoration: none; }
.link-arrow span { transition: translate 0.3s var(--ease); }
.link-arrow:hover span { translate: 0.3rem 0; }

/* 7. HERO --------------------------------------------------------------- */
.hero { background: var(--hero-bg); color: var(--hero-text); padding-block: clamp(3rem, 2rem + 5vw, 6.5rem); overflow: clip; }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.5rem; justify-items: start; }
.hero-copy .lede { color: inherit; opacity: 0.85; }
.hero h1 em { color: var(--link); }
.hero-media { position: relative; margin: 0; justify-self: center; width: min(100%, 26rem); }
.hero-media > img, .hero-media > .media {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--media-shape); box-shadow: var(--shadow);
}
.badge {
  position: absolute; left: -0.75rem; bottom: 1.5rem;
  display: grid; gap: 0.1rem; padding: 0.85rem 1.1rem; max-width: 13rem;
  background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: var(--step--1); line-height: 1.35;
}
.badge strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: var(--display-weight); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: var(--step--1); opacity: 0.85; }
.hero-meta b { font-weight: 600; }
.hero-meta a { color: inherit; }
@media (min-width: 52em) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero-media { justify-self: end; }
}
.hero-media::before {
  content: ""; position: absolute; inset: 8% -8% -6% 10%; z-index: -1;
  border-radius: var(--radius); background: var(--kc-peri);
}
.hero-media { isolation: isolate; }

/* 8. SERVICE CARDS ------------------------------------------------------ */
.cards { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.card {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  background: var(--surface); color: var(--text); text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.card-media { overflow: hidden; aspect-ratio: 4 / 3; }
.card-media > img, .card-media > .media {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease);
}
.card-body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.4rem 1.5rem 1.6rem; }
.card-body p { color: var(--muted); font-size: 0.975rem; }
.card-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.price { font-variant-numeric: tabular-nums lining-nums; font-weight: 600; }
.card .link-arrow { color: var(--link); font-size: 0.9rem; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; text-decoration: none; }
.card:hover .card-media > * { transform: scale(1.06); }
.card:hover .link-arrow span { translate: 0.3rem 0; }

/* CTA band */
.band { background: var(--band-bg); color: var(--band-text); }
.band .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.band h2 { font-size: var(--step-3); max-width: 18ch; }
.band .btn { --_bg: var(--band-text); --_fg: var(--band-bg); --_fill: var(--kc-lilac); }

/* Service area chips */
.area { margin-top: 3rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.45rem 0.95rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--step--1); color: var(--text); text-decoration: none; background: var(--surface);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
a.chip:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* 9. SALON MENU PAGE ---------------------------------------------------- */
.page-hero { background: var(--hero-bg); color: var(--hero-text); padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.page-hero .wrap { display: grid; gap: 1rem; }
.page-hero .chips { margin-top: 1rem; }
.menu-layout { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.menu-group { display: grid; gap: 0.25rem; }
.menu-group > h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.menu-item { display: grid; gap: 0.2rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.menu-row { display: flex; align-items: baseline; gap: 0.75rem; }
.menu-row h3 { font-family: var(--font-body); font-size: var(--step-1); font-weight: 600; letter-spacing: 0; }
.leader { flex: 1; min-width: 1.5rem; border-bottom: 1.5px dotted var(--line); translate: 0 -0.3em; }
.menu-item p { color: var(--muted); font-size: 0.95rem; }
.menu-item .price { white-space: nowrap; font-size: var(--step-1); }
.menu-item { transition: background 0.25s; border-radius: 4px; }
.menu-item:hover .leader { border-bottom-color: var(--link); }
.menu-group > .actions { margin-top: 1.5rem; }
.note {
  padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--bg-alt);
  border: 1px solid var(--line); font-size: 0.95rem;
}
.note strong { font-family: var(--font-display); font-size: var(--step-2); font-weight: var(--display-weight); display: block; }
@media (min-width: 60em) {
  .menu-layout { grid-template-columns: 1fr 1fr; column-gap: clamp(3rem, 6vw, 6rem); }
}

/* 10. VISIT + FOOTER ---------------------------------------------------- */
.info-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.info-grid > div { display: grid; gap: 0.5rem; align-content: start; }
.info-grid dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; font-variant-numeric: tabular-nums; }
.info-grid dd { margin: 0; }
.info-grid address { font-style: normal; }
.site-footer { background: var(--kc-navy-deep); color: var(--kc-peri); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: 0.95rem; }
.footer-inner { display: grid; gap: 2.5rem; }
.footer-top { display: grid; gap: 2rem var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.footer-top > div { display: grid; gap: 0.6rem; align-content: start; justify-items: start; }
.footer-about { grid-column: 1 / -1; max-width: 40rem; }
@media (min-width: 60em) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-about { grid-column: auto; } }
.site-footer .eyebrow { color: var(--kc-lilac); }
.site-footer dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1rem; font-variant-numeric: tabular-nums; }
.site-footer dd { margin: 0; }
.site-footer address { font-style: normal; }
.footer-phone { font-size: var(--step-1); font-weight: 600; }
.site-footer .btn { --_bg: var(--kc-blush); --_fg: var(--kc-navy); --_fill: var(--kc-lilac); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid rgb(189 190 227 / 0.2); font-size: var(--step--1); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer a:not(.btn) { color: var(--kc-peri); text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--kc-white); text-decoration: underline; }
.site-footer .brand { color: var(--kc-blush); margin: 0; }

/* 10b. PAGE CONTENT (service pages, articles, press, testimonials) ------- */
.prose { display: grid; gap: 1.25rem; justify-items: start; }
.prose > * { max-width: 100%; }
.prose h2 { font-size: var(--step-2); margin-top: 1.5rem; }
.prose h3 { font-size: var(--step-1); letter-spacing: -0.01em; margin-top: 0.75rem; }
.prose h5 { margin: 0; font-size: var(--step-1); font-weight: 600; }
.prose h6 { margin: 0; font: italic 400 var(--step-3) / 1.1 var(--font-brand); color: var(--kc-violet); }
.prose p, .prose li { max-width: 68ch; }
.prose p { margin: 0; }
.prose ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.prose ul li::marker { color: var(--kc-lilac); }
.prose .row { display: flex; flex-wrap: wrap; gap: var(--gap); align-items: flex-start; width: 100%; }
.prose .row > * { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.prose .column { flex: 1 1 14rem; }
.prose .double-column { flex: 2 1 18rem; }
.prose .triple-column { flex: 3 1 20rem; }
.prose .quad-column, .prose .hex-column, .prose .quatro-column { flex: 4 1 22rem; }
.prose figure { margin: 0; display: grid; gap: 0.5rem; justify-items: center; }
.prose img { border-radius: calc(var(--radius) * 0.6); height: auto; }
.prose figcaption { font-size: var(--step--1); color: var(--muted); text-align: center; }
.prose iframe { width: 100%; min-height: 22rem; border: 0; border-radius: var(--radius); }
.panel { padding: 1.5rem 1.75rem; border-radius: var(--radius); background: var(--kc-peri); color: var(--kc-navy); font-size: var(--step-1); }
.quote-card {
  position: relative; padding: 1.75rem 1.75rem 1.5rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); max-width: 42rem;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.quote-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quote-mark { display: block; font-size: 2.5rem; line-height: 1; color: var(--kc-lilac); }
.stars { color: #c99a2e; letter-spacing: 0.1em; }
.pill-note { display: inline-grid; place-items: center; padding: 0.6rem 1.25rem; border-radius: 999px; background: var(--kc-peri); }
.rule { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.prose .actions { margin-block: 0.5rem; }
.hidden { display: none !important; }

/* 11. MOTION ------------------------------------------------------------ */
@keyframes kc-in { from { opacity: 0; translate: 0 1.25rem; } }
@keyframes kc-rise { from { opacity: 0; translate: 0 2.5rem; } to { opacity: 1; translate: 0 0; } }
@keyframes kc-header { to { box-shadow: 0 8px 24px -16px rgb(0 0 0 / 0.35); border-bottom-color: var(--line); } }

@media (prefers-reduced-motion: no-preference) {
  /* one short load sequence on the hero */
  .hero-copy > *, .page-hero .wrap > * { animation: kc-in 0.8s var(--ease) both; }
  .hero-copy > :nth-child(2), .page-hero .wrap > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3), .page-hero .wrap > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(n + 4), .page-hero .wrap > :nth-child(n + 4) { animation-delay: 0.24s; }
  .hero-media { animation: kc-in 1s 0.15s var(--ease) both; }

  /* scroll-driven reveals: pure CSS, no JS; older browsers just show content */
  @supports (animation-timeline: view()) {
    .reveal, .cards > *, .menu-item, .info-grid > *, .prose > .row, .quote-card {
      animation: kc-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 28%;
    }
    .cards > :nth-child(2), .info-grid > :nth-child(2) { animation-range: entry 8% cover 34%; }
    .cards > :nth-child(3), .info-grid > :nth-child(3) { animation-range: entry 16% cover 40%; }
  }
  @supports (animation-timeline: scroll()) {
    .site-header { animation: kc-header linear both; animation-timeline: scroll(); animation-range: 0 8rem; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; scroll-behavior: auto !important; }
}

/* 12. UTILITIES --------------------------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
