/* =====================================================================
   J.Car.los' Hair SPA, demo v3. Palette and type: see DESIGN-v3.md
   ===================================================================== */

@font-face { font-family: 'Bodoni Moda'; src: url('../fonts/bodoni-moda-400_700-normal.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bodoni Moda'; src: url('../fonts/bodoni-moda-400_700-italic.woff2') format('woff2'); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('../fonts/archivo-100_900-normal.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }

:root {
  /* palette (C+D mood: warm taupe, umber, calce) */
  --taupe: #8E8478;      /* main ground: objects were composited on it */
  --taupe-hi: #A1978A;   /* light pool behind objects */
  --umber: #2B2723;      /* the dark field */
  --calce: #ECE6DC;      /* cards, panels */
  --calce-hi: #F2EDE6;   /* giant display words: 3.15:1 on Tortora */
  --ink: #171411;        /* text on taupe (5.0:1) and calce (14.6:1) */
  --fumo: #4A423B;       /* muted text, ONLY on calce (7.9:1) */
  --green: #1F3A2E;      /* verde tintorio: pill fills, booking card, rules on calce */
  --calce-dim: #BDB3A6;  /* muted text on umber (7.2:1) */
  --line: rgb(23 20 17 / .24);
  --line-l: rgb(236 230 220 / .22);

  --f-display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --f-text: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --t-giant: clamp(5.5rem, 1rem + 15vw, 19rem);
  --t-xl: clamp(2.6rem, 1.2rem + 4.6vw, 6rem);
  --t-l: clamp(1.6rem, 1.15rem + 1.7vw, 2.75rem);
  --t-m: clamp(1.3rem, 1.1rem + .7vw, 1.75rem);
  --t-body: clamp(1rem, .95rem + .2vw, 1.125rem);
  --t-label: .78rem;

  --m: max(16px, 3vw);
  --g: clamp(16px, 2vw, 28px);
  --r-card: 28px;
  --r-img: 20px;
  --hdr: 76px;

  --ease: cubic-bezier(.22, .8, .24, 1);      /* settle */
  --ease-ui: cubic-bezier(.23, 1, .32, 1);
  --shadow-card: 0 1px 0 rgb(23 20 17 / .06), 0 26px 50px -26px rgb(23 20 17 / .45);

  --ground: var(--taupe);
  --text: var(--ink);
  --focus: var(--ink);
  color-scheme: light;
}
@media (max-width: 899.98px) { :root { --r-card: 22px; --hdr: 58px; --m: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--taupe); overflow-x: clip; }
body {
  margin: 0; background: var(--taupe); color: var(--ink); overflow-x: clip;
  font: 400 var(--t-body)/1.55 var(--f-text); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1; font-kerning: normal;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--green); color: var(--calce); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .on-dark:focus-visible { outline-color: var(--calce); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* View transitions between pages (Chromium; others just navigate) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease-ui) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) .1s both; }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px) scale(1.02); } }
.hdr { view-transition-name: hdr; }
.vt-giant { view-transition-name: giant; }
::view-transition-group(giant) { animation-duration: .9s; animation-timing-function: cubic-bezier(.22, .8, .24, 1); }
::view-transition-old(giant) { animation: vt-out .4s var(--ease-ui) both; }
::view-transition-new(giant) { animation: vt-giant .9s var(--ease) both; }
@keyframes vt-giant { from { opacity: 0; transform: translateY(.18em) scale(1.04); } }

/* ---------- type ---------- */
.giant {
  font: 400 var(--t-giant)/.82 var(--f-display); font-variation-settings: 'opsz' 96;
  letter-spacing: -.035em; text-transform: uppercase; color: var(--calce-hi);
  white-space: nowrap; margin-left: -.055em; user-select: none; pointer-events: none;
}
.xl { font: 430 var(--t-xl)/.98 var(--f-display); font-variation-settings: 'opsz' 60; letter-spacing: -.028em; }
.l { font: 400 var(--t-l)/1.12 var(--f-display); font-variation-settings: 'opsz' 48; letter-spacing: -.012em; }
.quote { font: italic 400 var(--t-l)/1.14 var(--f-display); font-variation-settings: 'opsz' 48; letter-spacing: -.01em; }
.label {
  font: 500 var(--t-label)/1.25 var(--f-text); font-stretch: 125%;
  letter-spacing: .07em; text-transform: uppercase;
}
.lead { font-size: clamp(1.06rem, 1rem + .3vw, 1.25rem); line-height: 1.5; max-width: 34rem; }
.body p + p { margin-top: .9em; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.sign { font: italic 400 1.35rem/1 var(--f-display); display: inline-block; margin-top: .6rem; }

/* inline link: underline at rest, rises into a band on hover */
.link {
  text-decoration: none; padding-bottom: .08em;
  background: linear-gradient(currentColor 0 0) left 100% / 100% 1px no-repeat;
  transition: background-size .4s var(--ease-ui), color .3s;
}
@media (hover: hover) { .link:hover { background-size: 100% 2px; } }
.link:focus-visible { background-size: 100% 2px; }
.link .arr { display: inline-block; transition: translate .4s var(--ease-ui); }
@media (hover: hover) { .link:hover .arr { translate: 5px 0; } }

/* ---------- skip link ---------- */
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100; padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: var(--calce); text-decoration: none; font-weight: 500;
  transform: translateY(-160%); transition: transform .2s var(--ease-ui);
}
.skip:focus-visible { transform: none; outline-color: var(--calce); }

/* ---------- pills (primary buttons) ---------- */
.pill {
  --pbg: var(--calce); --pfg: var(--ink); --pfill: var(--green); --pfg-on: var(--calce);
  position: relative; isolation: isolate; overflow: clip;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.35em; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--pbg); color: var(--pfg); text-decoration: none; white-space: nowrap;
  font: 500 .82rem/1 var(--f-text); font-stretch: 118%; letter-spacing: .06em; text-transform: uppercase;
  transition: color .35s var(--ease-ui), transform .12s var(--ease-ui);
  -webkit-tap-highlight-color: transparent;
}
.pill--green { --pbg: var(--green); --pfg: var(--calce); --pfill: var(--ink); }
.pill--ink { --pbg: var(--ink); --pfg: var(--calce); --pfill: var(--green); }
.pill--line { --pbg: transparent; --pfg: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.pill--sm { min-height: 40px; padding: 0 1.1em; font-size: .74rem; }
.pill__fill { position: absolute; inset: 0; z-index: -1; background: var(--pfill); clip-path: circle(0% at var(--fx, 50%) var(--fy, 50%)); transition: clip-path .6s var(--ease); }
.pill svg { width: 1.15em; height: 1.15em; flex: none; }
.pill__l { display: inline-grid; overflow: clip; }
.pill__l > span, .pill__l::after { grid-area: 1 / 1; transition: translate .5s var(--ease); }
.pill__l::after { content: attr(data-t); content: attr(data-t) / ""; translate: 0 110%; }
.pill.is-on, .pill:focus-visible { color: var(--pfg-on); }
.pill.is-on .pill__fill, .pill:focus-visible .pill__fill { clip-path: circle(150% at var(--fx, 50%) var(--fy, 50%)); }
.pill.is-on .pill__l > span, .pill:focus-visible .pill__l > span { translate: 0 -110%; }
.pill.is-on .pill__l::after, .pill:focus-visible .pill__l::after { translate: 0 0; }
.pill:active { transform: scale(.97); }
.pill--green .pill__fill, .pill--ink .pill__fill { background: var(--pfill); }
.pill--line.is-on, .pill--line:focus-visible { color: var(--calce); }
@media (hover: hover) { .no-js .pill:hover .pill__fill { clip-path: circle(150% at 50% 50%); } .no-js .pill:hover { color: var(--pfg-on); } }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--m);
  pointer-events: none;
}
.hdr > * { pointer-events: auto; }
.hdr::before, .hdr::after {
  content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: calc(var(--hdr) + 34px);
  pointer-events: none !important; opacity: 0; transition: opacity .35s var(--ease-ui);
}
.hdr::before { background: linear-gradient(var(--taupe) 0 58%, rgb(142 132 120 / 0)); }
.hdr::after { background: linear-gradient(var(--umber) 0 58%, rgb(43 39 35 / 0)); }
.hdr[data-band="light"]::before, .hdr[data-band="dark"]::after { opacity: 1; }
.mark {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink);
  height: 52px; padding: 0 18px 0 8px; border-radius: 999px; background: var(--calce); box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease);
}
.mark svg { width: 36px; height: 36px; }
.mark span { font: 400 1.15rem/1 var(--f-display); letter-spacing: .01em; }
@media (hover: hover) { .mark:hover { transform: translateY(-2px); } }
.mark:active { transform: scale(.97); }
.nav {
  display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 6px 0 14px; border-radius: 999px;
  background: var(--calce); box-shadow: var(--shadow-card);
}
.nav ul { display: flex; gap: 2px; }
.nav a.nl {
  display: inline-flex; align-items: center; height: 40px; padding: 0 12px; text-decoration: none;
  font: 500 .74rem/1 var(--f-text); font-stretch: 125%; letter-spacing: .07em; text-transform: uppercase;
  background: linear-gradient(currentColor 0 0) 12px calc(100% - 9px) / 0 1px no-repeat;
  transition: background-size .45s var(--ease);
}
@media (hover: hover) { .nav a.nl:hover { background-size: calc(100% - 24px) 1px; } }
.nav a.nl:focus-visible, .nav a.nl[aria-current="page"] { background-size: calc(100% - 24px) 1px; }
.nav .tel { font: 500 .8rem/1 var(--f-text); font-stretch: 112%; font-variant-numeric: tabular-nums; text-decoration: none; padding: 0 14px; height: 40px; display: inline-flex; align-items: center; border-left: 1px solid var(--line); margin-left: 6px; }
@media (hover: hover) { .nav .tel:hover { text-decoration: underline; text-underline-offset: 4px; } }
.nav .pill { min-height: 40px; }
.menu-btn { display: none; }

@media (max-width: 899.98px) {
  .nav { display: none; }
  .mark { height: 42px; padding-right: 13px; }
  .mark svg { width: 28px; height: 28px; }
  .mark span { font-size: 1rem; }
  .menu-btn { display: inline-flex; min-height: 42px; box-shadow: var(--shadow-card); }
}

/* phone menu sheet */
.sheet {
  position: fixed; inset: 0; z-index: 60; background: var(--umber); color: var(--calce);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 88px var(--m) calc(28px + env(safe-area-inset-bottom));
  visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .42s cubic-bezier(.32,.72,0,1), visibility 0s .42s;
}
@media (min-width: 900px) { .sheet { display: none; } }
.sheet.is-open { visibility: visible; clip-path: inset(0); transition: clip-path .42s cubic-bezier(.32,.72,0,1); }
.sheet__close { position: absolute; top: 9px; right: var(--m); }
.sheet nav a { display: block; padding: 6px 0; text-decoration: none; font: 400 clamp(2.4rem, 11vw, 3.4rem)/1.05 var(--f-display); letter-spacing: -.02em; }
.sheet nav a[aria-current="page"] { font-style: italic; }
.sheet nav a:active { opacity: .7; }
.sheet__meta { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-l); display: grid; gap: 10px; color: var(--calce-dim); }
.sheet__meta a { color: var(--calce); font-size: 1.25rem; font-variant-numeric: tabular-nums; }

/* phone booking bar */
.bar {
  position: fixed; left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 40;
  display: none; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px;
  background: var(--calce); box-shadow: 0 18px 40px -16px rgb(23 20 17 / .6);
  transform: translateY(140%); transition: transform .32s var(--ease-ui);
}
.bar .pill { min-height: 42px; width: 100%; font-size: .74rem; }
.bar.is-shown { transform: none; }
@media (max-width: 899.98px) { .bar { display: grid; } }

/* ---------- cards ---------- */
.card { background: var(--calce); color: var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: clamp(22px, 2.2vw, 32px); }
.card .muted, .muted-c { color: var(--fumo); }
.card h3, .card .ct { font: 400 var(--t-m)/1.1 var(--f-display); font-variation-settings: 'opsz' 36; letter-spacing: -.01em; }
.card h3::before, .card .ct::before { content: ''; display: block; width: 24px; height: 2px; background: var(--green); margin-bottom: 14px; }
.card p { margin-top: .55em; }

/* ---------- objects ---------- */
.obj { position: relative; }
.obj__in { position: relative; z-index: 1; transform-origin: 50% 80%; }
.obj__in img { width: 100%; }
.obj::before { /* light pool: chiaroscuro behind the object */
  content: ''; position: absolute; z-index: 0; left: 50%; top: 50%; width: 170%; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(closest-side, rgb(255 244 226 / .2), rgb(255 244 226 / 0)); pointer-events: none;
}
.obj::after { /* contact shadow on the table */
  content: ''; position: absolute; z-index: 0; left: 8%; right: 8%; bottom: -2.5%; height: 9%;
  background: radial-gradient(closest-side, rgb(23 20 17 / .42), rgb(23 20 17 / 0)); pointer-events: none;
}
.obj--tall::after { left: -20%; right: -20%; bottom: -1.5%; height: 5%; }
.obj--tall::before { width: 420%; }
.pcard__obj.obj::before { display: none; }
.obj--noshadow::after { display: none; }

/* ---------- reveals (only when JS + motion allowed) ---------- */
.ln { display: block; overflow: clip; padding-bottom: .1em; margin-bottom: -.1em; }
.ln > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-lines] .ln > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
  .js [data-lines] .ln:nth-child(2) > span { transition-delay: .11s; }
  .js [data-lines] .ln:nth-child(3) > span { transition-delay: .19s; }
  .js [data-lines].is-in .ln > span { transform: none; }
  .js [data-settle] { opacity: 0; scale: 1.04; transition: opacity 1s var(--ease), scale 1.2s var(--ease); }
  .js [data-settle].is-in { opacity: 1; scale: 1; }
  .js [data-fade] { opacity: 0; transition: opacity .9s var(--ease); }
  .js [data-fade].is-in { opacity: 1; }
}

/* ---------- footer ---------- */
.foot { position: relative; overflow: clip; padding: clamp(48px, 5vw, 80px) var(--m) 0; background: var(--umber); color: var(--calce); --focus: var(--calce); }
.foot__grid h2 { color: var(--calce-dim); }
.foot__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--g); align-items: start; }
.foot__grid > div { grid-column: span 3; }
.foot__grid h2 { font: 500 var(--t-label)/1.2 var(--f-text); font-stretch: 125%; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 14px; }
.foot__grid p, .foot__grid li { font-size: .95rem; }
.foot__grid a { text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 28px; }
@media (hover: hover) { .foot__grid a:hover { text-decoration-thickness: 2px; } }
.foot__grid ul li + li { margin-top: 4px; }
.foot__grid .tag { display: inline-block; min-height: 24px; padding: 2px 0; }
.foot__wm { overflow: clip; margin-top: clamp(32px, 5vw, 80px); padding-top: .1em; }
.foot__word { font: 400 clamp(5.5rem, 21vw, 25rem)/.86 var(--f-display); font-variation-settings: 'opsz' 96; letter-spacing: -.045em; margin: 0 0 0 -.06em; white-space: nowrap; color: var(--calce-hi); }
.foot__legal { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; padding: 16px 0 20px; border-top: 1px solid var(--line-l); font-size: .82rem; position: relative; z-index: 1; background: var(--umber); color: var(--calce-dim); }
.foot__legal a { color: var(--calce); }
.foot__legal a { min-height: 24px; display: inline-flex; align-items: center; }
@media (max-width: 899.98px) {
  .foot__grid > div { grid-column: span 6; }
  .foot { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 520px) { .foot__grid > div { grid-column: span 12; } }

/* hours table (shared) */
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; }
.hours tr.is-today th { font-weight: 600; }
.hours tr.is-today th::before { content: ''; display: inline-block; width: 16px; height: 2px; background: var(--green); vertical-align: middle; margin-right: 8px; translate: 0 -2px; }
.hours tr.is-today td { font-weight: 600; }
.hours .closed td { color: var(--fumo); }

/* status pill text */
.status::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .55; margin-right: 8px; vertical-align: middle; translate: 0 -1px; }
.status.is-open::before { background: var(--green); opacity: 1; box-shadow: 0 0 0 3px rgb(31 58 46 / .18); }
.dark .status.is-open::before { background: #7FA48E; }

/* dark field */
.dark { background: var(--umber); color: var(--calce); --focus: var(--calce); }
.dark .muted { color: var(--calce-dim); }
.dark .card { color: var(--ink); --focus: var(--ink); }
.dark .card .muted { color: var(--fumo); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
.link.label { display: inline-flex; align-items: center; min-height: 32px; }
@media (hover: hover) {
  .nav a.nl[aria-current="page"]:hover { background-size: calc(100% - 24px) 2px; }
  .fineprint a:hover, .check a:hover, .prose a:hover { text-decoration-thickness: 2px; }
}
.nav .tel { background: linear-gradient(currentColor 0 0) 14px calc(100% - 9px) / 0 1px no-repeat; transition: background-size .45s var(--ease); }
@media (hover: hover) { .nav .tel:hover { text-decoration: none; background-size: calc(100% - 28px) 1px; } }
.nav .tel:focus-visible { background-size: calc(100% - 28px) 1px; }

/* ---- fix pass 2 ---- */
@media (max-width: 1240px) and (min-width: 900px) { .nav .tel { display: none; } .nav a.nl { padding: 0 9px; } }
@media (max-width: 899.98px) {
  /* room for the pinned call bar, so it never sits on the last content */
  .foot { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
}
.fam__obj::before { display: none; }

.note { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); }
.note::before { content: ""; flex: none; width: 18px; height: 1px; background: currentColor; }  /* a note, not a button */
@media (max-width: 520px) { .foot__grid > div { grid-column: span 6; } .foot__grid > div:first-child { grid-column: span 12; } }

/* phone giants: sturdier hairlines */
@media (max-width: 899.98px) { .giant { font-variation-settings: 'opsz' 36; font-weight: 460; } }

/* demo mode notice (data.js, JC.demo) */
.demo-toast { position: fixed; z-index: 9999; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); width: min(30rem, calc(100vw - 32px)); padding: 16px 18px; border-radius: 18px;
  background: var(--umber); color: var(--calce); box-shadow: 0 20px 50px -20px rgb(0 0 0 / .6); font-size: .92rem; line-height: 1.45;
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .25s var(--ease-ui), transform .35s var(--ease-ui); cursor: pointer; }
.demo-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.demo-toast b { display: block; font-weight: 600; margin-bottom: 4px; }
.demo-toast p { margin: 6px 0 8px; white-space: pre-line; color: var(--calce-dim); max-height: 9.5em; overflow: auto; }
.demo-toast small { display: block; font-size: .74rem; letter-spacing: .04em; color: var(--calce-dim); }
@media (prefers-reduced-motion: reduce) { .demo-toast { transition: opacity .2s; transform: translate(-50%, 0); } }
