/* Allure Hair with The Beauty Room: tokens and the shared parts (header, arch menu, buttons, booking bar,
   footer). One light theme, locked: blush page, plum type, one dusty-rose accent (no switch; the system's dark
   mode changes nothing). Radius system: pills for anything you press, 24px for cards, arches (a half-circle
   top) for the main photos. */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/jost-latin-wght-normal.woff2") format("woff2"); }
/* Metric-matched fallbacks (tools/fallbacks.mjs), so nothing moves when the fonts arrive. */
@font-face { font-family: "Cormorant Fallback"; src: local("Georgia"); size-adjust: 88.8%; ascent-override: 104.1%; descent-override: 32.3%; line-gap-override: 0%; }
@font-face { font-family: "Jost Fallback"; src: local("Arial"); size-adjust: 94.9%; ascent-override: 112.8%; descent-override: 39.5%; line-gap-override: 0%; }

:root {
  --paper: #fbf4f1;        /* blush-white page */
  --surface: #fffaf8;      /* cards */
  --cream: #f5eae4;        /* warm cream panels */
  --blush: #f1dcd6;        /* blush fills: arches waiting for a photo, chips */
  --line: #e8d6cf;
  --ink: #3d1f33;          /* deep plum: text */
  --ink-2: #6e5566;        /* muted plum */
  --accent: #a3505c;       /* dusty rose: the one accent */
  --accent-deep: #8a3f4b;
  --on-accent: #fff8f6;
  --plum: #3d1f33;
  --on-plum: #fbf4f1;
  --focus: #3d1f33;
  --dir: 1;                /* 1 left to right, -1 in RTL (the ribbon runs the other way) */

  --serif: "Cormorant Garamond", "Cormorant Fallback", Georgia, serif;
  --sans: "Jost", "Jost Fallback", Arial, sans-serif;
  --r-card: 24px;
  --pad: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgb(61 31 51 / 0.05), 0 18px 40px rgb(61 31 51 / 0.08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body { margin: 0; min-height: 100dvh; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; font-weight: 400; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
em { font-style: italic; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--pad); }
.skip-link { position: absolute; z-index: 30; inset-inline-start: 12px; top: -60px; padding: 10px 18px; border-radius: 999px; background: var(--plum); color: var(--on-plum); text-decoration: none; transition: transform 0.2s var(--ease); }
.skip-link:focus { transform: translateY(72px); }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.link { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.link:hover { text-decoration-color: var(--accent); }
.tbc { display: inline-block; padding: 0 7px; border: 1px dashed var(--accent); border-radius: 6px; color: var(--accent); font-family: var(--sans); font-size: 0.875rem; font-style: normal; font-weight: 500; letter-spacing: 0.01em; line-height: 1.55; white-space: nowrap; }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars .icon { width: 1.05em; height: 1.05em; }

/* The arch: a salon mirror's shape, used for the main photos. */
.arch { overflow: hidden; border-radius: 999px 999px var(--r-card) var(--r-card); }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* The wordmark: "Allure" in the serif's italic, the rest small capitals in the sans. */
.wordmark { display: inline-grid; line-height: 1; }
.wordmark__main { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 2.125rem; letter-spacing: 0.01em; }
.wordmark__sub { margin-top: 3px; font-size: 0.625rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); }

/* ------------------------------------------------------------------ Buttons (pills) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 24px; border: 1.5px solid transparent; border-radius: 999px; font-family: var(--sans); font-weight: 500; font-size: 1rem; letter-spacing: 0.02em; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: transform 0.2s var(--ease); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--rose { background: var(--accent); color: var(--on-accent); }
.btn--rose:hover { background: var(--accent-deep); }
.btn--plum { background: var(--plum); color: var(--on-plum); }
.btn--plum:hover { background: #2c1525; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--on-plum); }
.btn--light { border-color: rgb(251 244 241 / 0.85); color: #fbf4f1; background: rgb(45 22 38 / 0.2); backdrop-filter: blur(6px); }
.btn--light:hover { background: #fbf4f1; color: var(--ink); }
.btn--ghost { color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--cream); }
.btn--big { min-height: 56px; padding-inline: 28px; font-size: 1.0625rem; }
.btn .icon { width: 1.2em; height: 1.2em; }

/* ------------------------------------------------------------------ Header */
.site-header { position: sticky; top: 0; z-index: 20; height: var(--header-h); background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 32px; height: 100%; }
.logo { flex: none; text-decoration: none; }
.nav { margin-inline: auto; }
.nav__list { display: flex; gap: 6px; }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 14px; border-radius: 999px; font-size: 1rem; letter-spacing: 0.02em; text-decoration: none; }
.nav__link:hover { background: var(--cream); }
.nav__link[aria-current="true"] { background: var(--blush); }
.site-header__end { display: flex; align-items: center; gap: 8px; }
.btn--call, .site-header__book { min-height: 44px; }
.btn--call { padding-inline: 14px; }
.menu-btn { display: none; width: 46px; height: 46px; place-items: center; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; }
.menu-btn .icon { width: 22px; height: 22px; }
@media (max-width: 61.99rem) {
  .js .nav, .js .site-header__end .btn { display: none; }
  .js .menu-btn { display: inline-grid; }
  .site-header__inner { justify-content: space-between; }
  html:not(.js) .site-header { height: auto; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; row-gap: 0; padding-block: 12px; }
  html:not(.js) .nav { order: 3; width: 100%; margin: 0; }
  html:not(.js) .nav__list { flex-wrap: wrap; }
}
@media (max-width: 47.99rem) {
  :root { --header-h: 66px; }
  .wordmark__main { font-size: 1.875rem; }
}

/* ------------------------------------------------------------------ Arch menu (under 62rem) */
/* An arch-topped sheet that rises from the bottom, like a salon mirror: the four links in the serif, the
   booking and call buttons, the hours. A native <dialog>; only the panel moves (transform). */
.arch-menu { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 560px; max-height: 100dvh; margin: 0 auto; padding: 0; overflow: visible; border: 0; background: transparent; color: var(--ink); }
.arch-menu::backdrop { background: rgb(61 31 51 / 0.35); backdrop-filter: blur(3px); }
.arch-menu__panel { position: relative; display: grid; justify-items: center; gap: 18px; max-height: calc(100dvh - 24px); overflow: auto; padding: 68px var(--pad) calc(24px + env(safe-area-inset-bottom)); border-radius: 50% 50% 0 0 / 150px 150px 0 0; background: var(--surface); box-shadow: 0 -10px 40px rgb(61 31 51 / 0.18); text-align: center; }
.arch-menu[open] .arch-menu__panel { animation: rise 0.45s var(--ease); }
.arch-menu.is-closing .arch-menu__panel { animation: sink 0.25s ease-in forwards; }
.arch-menu.is-closing::backdrop { opacity: 0; transition: opacity 0.25s; }
@keyframes rise { from { transform: translateY(100%); } }
@keyframes sink { to { transform: translateY(100%); } }
.arch-menu__mark .wordmark__main { font-size: 2.5rem; }
.arch-menu__list { display: grid; gap: 2px; width: 100%; }
.arch-menu__link { display: flex; align-items: center; justify-content: center; min-height: 54px; font-family: var(--serif); font-weight: 500; font-size: 2rem; text-decoration: none; }
.arch-menu__link[aria-current="true"] { font-style: italic; color: var(--accent); }
.arch-menu__actions { display: grid; gap: 10px; width: 100%; max-width: 360px; }
.arch-menu__hours { display: grid; justify-items: center; gap: 6px; font-size: 0.9375rem; color: var(--ink-2); }
/* "Open now, until 6pm": a small pill, rose when open, filled by open-now.js (hidden without scripts). */
.open-now { display: inline-flex; align-items: center; gap: 7px; padding: 2px 10px; border-radius: 999px; background: var(--cream); color: var(--ink-2); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em; text-transform: none; }
.open-now::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.open-now.is-open { color: var(--accent-deep); background: var(--blush); }
.open-now.is-open::before { opacity: 1; }
.arch-menu__close { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--cream); }
.arch-menu__close .icon { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ Booking bar (under 62rem, always on) */
.book-bar { display: none; }
@media (max-width: 61.99rem) {
  .book-bar { position: fixed; z-index: 15; inset: auto 0 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .book-bar .btn { min-height: 52px; }
  .book-bar__call { width: 52px; padding: 0; }
  body { padding-bottom: 80px; }
}

/* The Fresha buttons are placeholders: tapped, a short note says what they will do on the live site. */

/* ------------------------------------------------------------------ Pin (map) */
.pin { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--surface), 0 6px 16px rgb(61 31 51 / 0.3); }
.pin__label { position: absolute; inset-inline-start: calc(100% + 12px); top: 50%; transform: translateY(-50%); padding: 3px 12px; border-radius: 999px; background: var(--surface); color: var(--ink); font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.25rem; white-space: nowrap; box-shadow: var(--shadow); }

/* ------------------------------------------------------------------ Footer */
/* A centred cream panel: the wordmark, the details, the concept line. */
.site-footer { margin-top: clamp(64px, 9vw, 120px); padding-block: 64px 32px; background: var(--cream); border-top: 1px solid var(--line); }
.site-footer__inner { display: grid; justify-items: center; gap: 22px; text-align: center; }
.site-footer__mark .wordmark__main { font-size: 3.25rem; }
.site-footer__mark .wordmark__sub { font-size: 0.6875rem; }
.site-footer__lines { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; color: var(--ink-2); }
.site-footer__legal { margin-top: 18px; padding-top: 20px; width: 100%; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-2); }
@media (max-width: 47.99rem) {
  .site-footer__lines { display: grid; gap: 6px; }
}

/* ------------------------------------------------------------------ Gentle scroll fades */
/* Content below the first screen fades up once (opacity and a 14px rise). Hidden only when the script has
   started watching (html.reveal-ready), so it is always there without scripts; off under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(14px); }
  .reveal-ready [data-reveal] { transition: opacity 0.6s ease-out, transform 0.7s var(--ease); }
}

/* ------------------------------------------------------------------ Page transitions (404 to home) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out 0.16s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in 0.3s var(--ease) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}
