/* ============================================================
   tokens.css — SOURCE. Project-specific. Replace per client.
   The Lacquer Room — nail studio demo build.
   ============================================================ */

:root {
  /* ---- Palette (named, chosen for this brief) ---- */
  --ink:          #241B17; /* near-black, warm — body text */
  --ink-soft:     #4A3D37; /* secondary text */
  --putty:        #E9E3DD; /* page background — warm putty, not cream */
  --putty-deep:   #DDD4CB; /* alt section background */
  --gloss:        #FFFFFF; /* card / surface white */
  --lacquer:      #B0173B; /* signature accent — wet cherry polish */
  --lacquer-deep: #8C1230; /* lacquer hover/active */
  --plum:         #5C2A4D; /* secondary accent */
  --gold:         #A67C3D; /* foil accent, used sparingly */
  --line:         #C9BEB3; /* hairlines, borders */
  --line-soft:    #DAD2C8;

  /* Required alias — base styles (focus rings etc.) read this,
     not the raw brand token, so it works unmodified across builds
     with different palettes. */
  --accent: var(--lacquer);

  /* ---- Type ---- */
  --font-display: "Bodoni Moda", "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-h1: clamp(2.6rem, 5.5vw, 4.6rem);
  --fs-h2: clamp(1.9rem, 3.4vw, 2.9rem);
  --fs-h3: clamp(1.3rem, 2vw, 1.6rem);
  --fs-lede: clamp(1.05rem, 1.4vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* ---- Spacing / radius ---- */
  --radius-sm: 0.4rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.6rem;
  --container-max: 72rem;
  --container-pad: clamp(1.5rem, 6vw, 5rem);

  /* ---- Spacing scale ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;

  /* ---- Generic aliases ----
     Internal/admin pages (booking management, calendar-sync help,
     anything not part of the marketing site) are built against
     generic token names, not this build's brand names directly —
     that way the same admin template works unmodified across every
     client site the kit produces, the same way layout.css/base.css
     do. Marketing-facing CSS keeps using the real brand tokens
     above (--lacquer, --putty, etc.) directly; this block is only
     the translation layer for pages that can't know the brand name
     in advance. Keep in sync whenever tokens.css changes for a new
     client — this is the one block that has to be re-pointed, not
     rewritten. */
  --color-accent: var(--accent);
  --color-bg: var(--putty);
  --color-bg-alt: var(--putty-deep);
  --color-white: var(--gloss);
  --color-text: var(--ink);
  --color-text-muted: var(--ink-soft);
  --color-border: var(--line);
  /* Defensive alias: one admin-kit page reaches for --color-ink
     instead of --color-text (inconsistent naming upstream, not
     ours to fix in that file) — aliased here too so it resolves to
     the right colour instead of silently falling through to
     unset/inherit. */
  --color-ink: var(--ink);
  --text-sm: var(--fs-small);

  /* ---- Nav ---- */
  --nav-height: 4.5rem;
}
/* ============================================================
   base.css — SOURCE. Reusable as-is across projects.
   Reset + element defaults. Do not put palette/type decisions
   in here beyond referencing the tokens above.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Required whenever a sticky/fixed nav is present — without this,
     every anchor jump (native fragment nav, scrollIntoView, tab
     links) lands its target flush with the top of the viewport,
     underneath the nav. Set once here, equal to --nav-height. */
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--putty);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { max-width: 62ch; }
p.lede { font-size: var(--fs-lede); color: var(--ink-soft); max-width: 46ch; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
button { cursor: pointer; background: none; border: none; }

/* Every field needs this inside a flex/grid column, or it sizes to
   its own intrinsic width instead of filling the column — a past
   build had a field push past the edge of its card without it. */
input, textarea, select {
  width: 100%;
  min-width: 0;
}

/* Visible keyboard focus everywhere, keyed off the required
   --accent alias so it works regardless of which palette a given
   project defines. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Known kit bug: many shared layout classes set display:flex on
   their children, which silently beats the browser's own
   [hidden]{display:none} default for any element carrying both.
   Always present, not rediscovered per project. */
[hidden] { display: none !important; }
/* ============================================================
   layout.css — SOURCE. Reusable as-is across projects.
   Generic primitives only — no colour, no project-specific type.
   Canonical breakpoints used everywhere in this file and in
   components.css: 640px / 960px / 961px.
   ============================================================ */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--alt { background: var(--putty-deep); }
.section--dark { background: var(--ink); color: var(--gloss); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--gloss); }

/* Vertical rhythm between children. Bare inline elements (e.g. a
   footer link list built from <a> tags) don't respond to
   margin-top at all — display:inline ignores it — so force block
   display on direct <a> children rather than rediscovering this
   per project. */
.stack > * + * { margin-top: var(--stack-gap, 1.25rem); }
.stack--tight { --stack-gap: 0.6rem; }
.stack--loose { --stack-gap: 2.5rem; }
.stack > a { display: block; }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-gap, 0.9rem);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.75rem;
}

.grid-fixed-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
@media (max-width: 640px) {
  .grid-fixed-3 { grid-template-columns: 1fr; }
}

.container--narrow { max-width: 40rem; }

.stack--sm { --stack-gap: 0.6rem; }

/* Generic field wrapper for internal/admin pages that don't use the
   booking-widget's own .bw-field markup. Mirrors it: relative
   positioning (in case a dropdown ever anchors to one), consistent
   label treatment. */
.form-field { margin-bottom: 1rem; position: relative; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.text-muted { color: var(--color-text-muted); }
.text-link { color: var(--color-accent); font-weight: 600; }
.text-link:hover { text-decoration: underline; }

/* A heading that doesn't want the h2/h3 default's full margin —
   card/section titles on internal pages sitting right above body
   copy, not a marketing section heading with room to breathe. */
.h-compact { margin-bottom: 0.5rem; }
.card__title { margin-bottom: 0.5rem; }
.card__body { display: block; }

.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;
}
/* ============================================================
   components.css — SOURCE.
   Nav / button / card / form MECHANICS are reusable as-is.
   Colours, radius choices, and the palette-rail signature element
   below are specific to The Lacquer Room — replace per project.
   ============================================================ */

@media (max-width: 640px) {
  .trust-strip { display: none; }
}

/* ---------------- Nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  background: rgba(233, 227, 221, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
/* Added by nav.js on scroll — kept as a class, not a style toggle,
   so it composes cleanly with any other state on the element. */
.nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(36, 27, 23, 0.06);
}

/* .nav__bar and .nav__panel must live inside ONE flex row wrapper
   (.nav__inner), not as separate sibling containers — that split
   is what caused misaligned nav links on a past build. */
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.nav__logo em { color: var(--lacquer); font-style: normal; }

.nav__bar {
  display: none;
}
@media (min-width: 961px) {
  .nav__bar {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  .nav__bar a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 600;
  }
  .nav__bar a:not(.btn):hover { color: var(--lacquer); }
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 0.25rem;
}
@media (min-width: 961px) {
  .nav__toggle { display: none; }
}
.nav__toggle-icon {
  width: 22px; height: 16px;
  position: relative;
}
.nav__toggle-icon span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle-icon span:nth-child(1) { top: 0; }
.nav__toggle-icon span:nth-child(2) { top: 7px; }
.nav__toggle-icon span:nth-child(3) { top: 14px; }
.nav.is-open .nav__toggle-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle-icon span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown panel. State is driven by a class the CSS keys
   off (.is-open) — toggling this with classList, not inline
   style.display, is what keeps it compatible with the transition
   below. A script that only sets style.display would silently
   fight this rule. pointer-events:none on the closed state is a
   deliberate fallback: even if the class logic ever regresses, an
   invisible hidden panel can never block clicks/scroll underneath. */
.nav__panel {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--gloss);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem var(--container-pad) 2rem;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
@media (min-width: 961px) {
  .nav__panel { display: none; }
}
.nav.is-open .nav__panel {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav__panel a:not(.btn) {
  display: block;
  padding: 0.85rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line-soft);
}
.nav__panel a:not(.btn):last-child { border-bottom: none; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  /* Without this, a button stretching to fill a flex column (e.g.
     inside a mobile nav panel or a stacked form) pins its label to
     the left instead of centering it. Applied to the default so it
     never has to be rediscovered per layout. */
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: var(--gloss);
}
.btn--primary:hover { background: var(--lacquer-deep); }
.btn--outline {
  border-color: var(--ink);
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
/* Lower-emphasis than --outline: no border at all, for secondary
   actions on internal/admin pages (Add service, Copy link, pagination)
   where a bordered button per action would be too much visual weight
   repeated many times on one screen. */
.btn--ghost {
  color: var(--color-accent, var(--ink));
  background: transparent;
}
.btn--ghost:hover { background: var(--color-bg-alt, var(--putty-deep)); }
.btn--block { width: 100%; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

/* ---------------- Cards ---------------- */
.card {
  background: var(--gloss);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

/* ---------------- Hero ---------------- */
.hero {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4rem);
}
.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 1rem;
}
.hero__title { margin-bottom: 1.1rem; }
.hero__actions { margin-top: 1.75rem; }

/* The asymmetric bleed is the structural risk for this build: a
   slight, soft-edged offset shadow in the lacquer colour sitting
   behind the portrait — a single box-shadow, not a second shape
   that has to stay geometrically in sync with the image's own
   curve. Nothing here can drift out of alignment as photos change. */
.hero__figure {
  position: relative;
  aspect-ratio: 4 / 5;
}
.hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 6px solid var(--putty);
  box-shadow: 10px 14px 0 -2px rgba(176, 23, 59, 0.85);
}
@media (max-width: 960px) {
  .hero__figure { display: none; }
}

/* ---------------- Service cards ---------------- */
.service-card__price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--lacquer);
  margin-top: 0.75rem;
}
.service-card__meta {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

/* ---------------- Tabs (service filter) ---------------- */
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}
.tabs__tab {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-weight: 700;
  font-size: 0.9rem;
}
.tabs__tab[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--gloss);
}
/* Progressive enhancement: panels carry NO hidden attribute in the
   markup itself — tabs.js is what sets panel.hidden once it's
   confirmed running, and the global [hidden] rule in base.css does
   the actual hiding from there. If the script fails to load, every
   panel simply stays visible, stacked, with no dead toggle. Do not
   pre-hide extra panels with the hidden attribute in HTML — that
   would fight this fallback via the same override the booking
   widget dropdowns rely on. */
.tabs__panel { display: block; }

/* ---------------- Palette rail (signature element) ----------------
   The one memorable element for this build, used exactly once: a
   labelled row of polish-swatch chips naming the seasonal shades —
   ties directly to real content (the shade names), not decoration. */
.palette-rail {
  padding-block: 3rem;
}
.palette-rail__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 3rem);
}
.palette-rail__swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}
.palette-rail__chip {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 3px solid var(--gloss);
  box-shadow: 0 4px 14px rgba(36, 27, 23, 0.18);
}
.palette-rail__name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
}

/* ---------------- Gallery ---------------- */
.gallery__item {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--putty-deep);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Reviews / stars ---------------- */
.stars {
  display: inline-flex;
  gap: 0.2rem;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.stars svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.review__quote { font-size: 1.02rem; }
.review__name {
  margin-top: 1rem;
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

/* ---------------- FAQ ---------------- */
.faq__item {
  border-bottom: 1px solid var(--line);
  padding-block: 1.1rem;
}
.faq__item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--lacquer);
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin-top: 0.9rem; color: var(--ink-soft); }

/* ---------------- Scroll reveal ----------------
   Class added by reveal.js, not baked into the base rule for
   [data-reveal] — see js/reveal.js for why. */
.reveal-pending { opacity: 0; transform: translateY(14px); }
.reveal-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ---------------- Footer ---------------- */
.footer {
  padding-block: 3.5rem 2.5rem;
  border-top: 1px solid var(--line);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer__heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
