/*
 * Barbershop Pro Max: styles for /en/ and /ar/ (and the error pages).
 *
 * One file on purpose: it is content-hashed and cached for a year, so no @import (an extra
 * request) and no build step. The CSP allows no inline styles; everything lives here.
 *
 * Contents
 *   1. Tokens          colours, type, spacing, radii, shadows, z-index; Arabic and breakpoint overrides
 *   2. Fonts           self-hosted @font-face
 *   3. Base            reset, elements, focus, headings
 *   4. Utilities       layout (.wrap, .split, .head), helpers, reveal animations
 *   5. Components      buttons, icon buttons, chips, cards, stars, socials, brand, sheet form
 *   6. Page sections   in page order: header, hero, marquee, glance, about, services, prices,
 *                      gallery, reviews, visit, local, book, faq, footer, bottom bar, sheet, error pages
 *   7. Reduced motion
 *
 * Conventions
 *   - Mobile first. Two breakpoints: 640px (tablet) and 1000px (desktop). Media queries sit
 *     next to the component they change, so one block holds everything about it. Tokens that
 *     change per breakpoint are set once, in section 1.
 *   - Arabic: font sizes, weights and letter spacing that differ per language are tokens,
 *     overridden in one html[lang="ar"] block in section 1. Do not add per-selector
 *     html[lang="ar"] rules; add a token. Direction is handled with logical properties
 *     (inset-inline-start, margin-inline, text-align:start/end); [dir="rtl"] only where a
 *     transform has to flip.
 *   - Declaration order: position, display and box (flex/grid, size, margin, padding,
 *     overflow), typography, visuals (background, border, shadow, opacity, transform),
 *     interaction (cursor, transition, animation).
 *   - Animations only run when boot.js has set .js on <html> (see 4. Utilities).
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  /* Colours */
  --bg: #0e0d0b;
  --bg-rgb: 14 13 11;            /* --bg for translucent layers: rgb(var(--bg-rgb) / .8) */
  --bg-2: #141210;
  --surface: #191712;
  --surface-2: #211e17;
  --line: #2f2b22;
  --line-2: #3a3426;             /* stronger outline: status pill, picked service */
  --line-3: #4a4434;             /* ghost button */
  --leader: #3c372a;             /* dotted leader in the price list */
  --grab: #3d382c;               /* sheet drag handle */
  --text: #f4efe4;
  --text-soft: #d9d2c2;          /* small text on photos */
  --muted: #aaa392;
  --gold: #d6a73a;
  --gold-rgb: 214 167 58;
  --gold-2: #f0cf7e;
  --gold-dark: #8a6a1f;
  --on-gold: #17120a;            /* text and marks on gold */
  --wa: #25d366;
  --wa-rgb: 37 211 102;
  --wa-dark: #06210f;            /* text on WhatsApp green */
  --wa-bubble: #0b1f14;          /* WhatsApp message preview */
  --wa-bubble-line: #1d4a2e;
  --wa-bubble-text: #d6f5df;
  --danger: #ef8f7f;
  --scrim: rgb(5 5 4 / .7);
  --shine: rgb(255 255 255 / .45);

  /* Fonts */
  --font-display: "Bebas Neue", sans-serif;  /* numbers and the brand, also in Arabic */
  --font-head: "Bebas Neue", "Manrope", sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-latin: "Manrope", sans-serif;       /* English text on the Arabic page */
  --font-arabic: "IBM Plex Sans Arabic", sans-serif;

  /* Type scale (text) */
  --fs-3xs: 12px;
  --fs-2xs: 13px;
  --fs-xs: 14px;
  --fs-sm: 15px;
  --fs-base: 16px;
  --fs-lg: 17px;
  --fs-xl: 18px;
  --fs-body: 16px;               /* 17px from 1000px */
  --lh-body: 1.6;

  /* Type per role; the Arabic block below overrides these */
  --fs-hero: 62px;
  --fs-h2: 44px;
  --fs-book: 56px;
  --fs-local: 38px;
  --fs-card: 30px;               /* team names, the visit card */
  --fs-svc: 26px;
  --fs-cat: 28px;
  --fs-sheet: 32px;
  --fs-drawer: 40px;
  --fs-marquee: 26px;
  --fs-eyebrow: 12px;
  --fs-label: 12px;              /* labels in the at-a-glance list */
  --fs-tag: 11px;
  --fw-head: 400;
  --fw-eyebrow: 800;
  --fw-drawer: 400;
  --lh-head: 1;
  --lh-drawer: 1.2;
  --ls-head: .4px;
  --ls-eyebrow: 2.4px;
  --ls-label: 1.5px;
  --ls-tag: 1px;

  /* Spacing and sizes */
  --gutter: 20px;                /* page side padding; 32px from 1000px */
  --section-y: 72px;             /* section padding; 110px from 1000px */
  --header-h: 64px;              /* 76px from 1000px */
  --scroll-offset: 84px;         /* room above an anchor target, below the sticky header */
  --gap-xs: 6px;
  --gap-s: 8px;
  --gap: 10px;
  --gap-m: 12px;
  --card-pad: 22px;
  --tap: 44px;                   /* icon buttons */
  --tap-lg: 52px;                /* buttons */
  --safe-b: env(safe-area-inset-bottom, 0px);

  /* Radii */
  --r-sm: 12px;
  --r-md: 14px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-wa: 0 8px 24px rgb(var(--wa-rgb) / .25);
  --shadow-lift: 0 18px 40px rgb(0 0 0 / .4);
  --shadow-float: 0 14px 40px rgb(0 0 0 / .5);

  /* Stacking (page level; small local values stay in their component) */
  --z-bar: 35;
  --z-drawer: 39;
  --z-header: 40;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Arabic: IBM Plex Sans Arabic is much wider than Bebas Neue, so headings are about 2/3 the
   size, bold instead of regular, and never letter-spaced. */
html[lang="ar"] {
  --font-head: "IBM Plex Sans Arabic", "Manrope", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;

  --fs-hero: 40px;
  --fs-h2: 32px;
  --fs-book: 36px;
  --fs-local: 26px;
  --fs-card: 20px;
  --fs-svc: 17px;
  --fs-cat: 20px;
  --fs-sheet: 21px;
  --fs-drawer: 26px;
  --fs-marquee: 19px;
  --fs-eyebrow: 14px;
  --fs-label: 13px;
  --fs-tag: 12px;
  --fw-head: 700;
  --fw-eyebrow: 600;
  --fw-drawer: 600;
  --lh-head: 1.25;
  --lh-drawer: 1.6;
  --ls-head: 0;
  --ls-eyebrow: 0;
  --ls-label: 0;
  --ls-tag: 0;
}

@media (min-width: 640px) {
  :root {
    --fs-h2: 56px;
  }

  html[lang="ar"] {
    --fs-h2: 38px;
  }
}

@media (min-width: 1000px) {
  :root {
    --fs-body: 17px;
    --gutter: 32px;
    --section-y: 110px;
    --header-h: 76px;
    --fs-hero: 108px;
    --fs-book: 92px;
    --fs-svc: 30px;
    --fs-cat: 32px;
  }

  html[lang="ar"] {
    --fs-hero: 68px;
    --fs-book: 56px;
    --fs-svc: 20px;
    --fs-cat: 22px;
  }
}

/* ==========================================================================
   2. Fonts (self-hosted, OFL; the licence files sit next to them)
   ========================================================================== */

@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/bebas-neue-400-latin-e11da29bfd929b4ac85119c70244c2a3.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-var-28d0918a0f90c1004f312fafb392eb79.woff2") format("woff2");
}

/* The four Arabic weights share one unicode-range: Arabic letters plus ASCII punctuation and digits */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-400-arabic-f3690ed1daf659bd9b7ad81f9d34a75b.woff2") format("woff2");
  unicode-range: U+0020-0040, U+005B-0060, U+007B-007E, U+00A0, U+00AB, U+00BB, U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-500-arabic-56e3fcb371dd394d9365d18f282c3de8.woff2") format("woff2");
  unicode-range: U+0020-0040, U+005B-0060, U+007B-007E, U+00A0, U+00AB, U+00BB, U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-600-arabic-acee5461093aef16a01089313405ff21.woff2") format("woff2");
  unicode-range: U+0020-0040, U+005B-0060, U+007B-007E, U+00A0, U+00AB, U+00BB, U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-700-arabic-0af09440f955227c0bc64a28c44e3f92.woff2") format("woff2");
  unicode-range: U+0020-0040, U+005B-0060, U+007B-007E, U+00A0, U+00AB, U+00BB, U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

/* ==========================================================================
   3. Base
   ========================================================================== */

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body), sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
}

/* Set by site.js while the booking sheet is open */
body.locked {
  overflow: hidden;
}

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

a {
  color: var(--gold-2);
}

button {
  font-family: inherit;
}

/* Keyboard focus: a gold ring on everything (mouse and touch do not trigger it) */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Anchor targets stop below the sticky header */
[id] {
  scroll-margin-top: var(--scroll-offset);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head), sans-serif;
  font-weight: var(--fw-head);
  line-height: var(--lh-head);
  letter-spacing: var(--ls-head);
}

section {
  position: relative;
  padding: var(--section-y) 0;
}

/* ==========================================================================
   4. Utilities
   ========================================================================== */

/* ---- Layout ---- */

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.bg-2 {
  background: var(--bg-2);
}

.pt-0 {
  padding-top: 0;
}

/* Section heading block; .row puts the lead next to the title on desktop */
.head {
  margin-bottom: 32px;
}

@media (min-width: 1000px) {
  /* Two columns on desktop (about, faq) */
  .split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }

  .head.row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 32px;
  }

  .head.row .lead {
    max-width: 420px;
  }
}

/* Horizontal scrollers on phones (price tabs, gallery, reviews): bleed to the screen edge,
   no scrollbar. The gallery and reviews turn into grids on desktop. */
.tabs,
.gallery,
.reviews {
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar,
.gallery::-webkit-scrollbar,
.reviews::-webkit-scrollbar {
  display: none;
}

/* Chrome lets keyboard users focus a scroller without links (the gallery); its edges sit
   at the screen edge, so draw the ring inside */
.gallery:focus-visible {
  outline-offset: -2px;
}

/* ---- Helpers ---- */

/* The SVG sprite (fragments/icons.html) */
.icons {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Arrows that point forward in reading direction */
[dir="rtl"] .flip {
  transform: scaleX(-1);
}

/* ---- Text ---- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--gap);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.h2 {
  margin-top: 10px;
  font-size: var(--fs-h2);
}

.lead {
  margin: 14px 0 0;
  color: var(--muted);
}

/* ---- Reveal on scroll ----
   Only with JS: boot.js sets .js on <html> in the head, site.js adds .in when an element
   scrolls into view (or at once with reduced motion). Without JS nothing is hidden.
   .d1 to .d5 stagger elements that appear together. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.js .reveal.d1 { transition-delay: 90ms; }
.js .reveal.d2 { transition-delay: 180ms; }
.js .reveal.d3 { transition-delay: 270ms; }
.js .reveal.d4 { transition-delay: 360ms; }
.js .reveal.d5 { transition-delay: 450ms; }

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .reveal-img {
  clip-path: inset(12% 0 12% 0 round var(--r));
  transition: clip-path 1.1s var(--ease);
}

.js .reveal-img.in {
  clip-path: inset(0 0 0 0 round var(--r));
}

/* Failsafe: if site.js never runs (blocked, error), show everything after 2.5 s. site.js sets
   .js-ready as its first step, which switches this off. */
.js:not(.js-ready) .reveal,
.js:not(.js-ready) .reveal-img {
  animation: reveal-failsafe 0s 2.5s forwards;
}

@keyframes reveal-failsafe {
  to {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
}

/* ==========================================================================
   5. Components
   ========================================================================== */

/* ---- Buttons ---- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap);
  min-height: var(--tap-lg);
  padding: 0 22px;
  overflow: hidden;
  font: 700 var(--fs-base) var(--font-body);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}

.btn:active {
  transform: scale(.97);
}

.btn svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.btn-wa {
  color: var(--wa-dark);
  background: var(--wa);
  box-shadow: var(--shadow-wa);
}

.btn-gold {
  color: var(--on-gold);
  background: var(--gold);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--line-3);
}

.btn-block {
  width: 100%;
}

/* A light sweep across the primary buttons every few seconds */
.btn-wa::after,
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, var(--shine) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 4.5s 2s infinite;
}

@keyframes shine {
  0%,
  70% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
  }

  .btn-ghost:hover {
    border-color: var(--gold);
  }
}

/* Row of call-to-action buttons: stacked on phones, side by side from 640px */
.ctas {
  display: grid;
  gap: var(--gap);
  margin-top: 26px;
}

@media (min-width: 640px) {
  .ctas {
    grid-template-columns: auto auto;
    justify-content: start;
  }
}

/* ---- Icon buttons (round) ---- */

.icon-btn {
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color .2s, color .2s, transform .2s;
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

@media (hover: hover) {
  .icon-btn:hover {
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
  }
}

/* Small round marks: "+" in the price list and the FAQ */
.prow .plus,
summary .pm {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.prow .plus svg,
summary .pm svg {
  width: 14px;
  height: 14px;
}

/* Stretched link: the link's ::after covers the whole card or row, so all of it is clickable */
.svc .go::after,
.prow .plus::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* ---- Chips (price tabs, sheet choices) ---- */

.chip {
  flex: none;
  min-height: 42px;
  padding: 0 16px;
  font: 700 var(--fs-xs) var(--font-body);
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}

.chip[aria-pressed="true"] {
  color: var(--on-gold);
  background: var(--gold);
  border-color: var(--gold);
}

@media (hover: hover) {
  .chip:not([aria-pressed="true"]):hover {
    color: var(--text);
    border-color: var(--gold);
  }
}

/* ---- Cards ---- */

.card,
.stat,
.member,
.svc,
.rev {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

/* Photo frame that clips the zoom on hover */
.member .ph,
.svc .ph {
  overflow: hidden;
}

/* ---- Stars ---- */

.stars {
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  color: var(--gold);
}

/* ---- Social links (header drawer, gallery, footer) ---- */

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-s);
}

/* ---- Brand (header and footer) ---- */

.brand {
  display: flex;
  align-items: center;
  gap: var(--gap);
  margin-inline-end: auto;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand b {
  font: 400 22px/1 var(--font-display);
  letter-spacing: 1px;
  white-space: nowrap;
}

.brand b span {
  color: var(--gold);
}

@media (min-width: 1000px) {
  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand b {
    font-size: 26px;
  }
}

/* ==========================================================================
   6. Page sections (in page order)
   ========================================================================== */

/* ---- Header ---- */

header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgb(var(--bg-rgb) / .86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color .3s;
}

/* Set by site.js once the page scrolls */
header.scrolled {
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--gap);
  height: var(--header-h);
}

/* Only the logo on phones, the name from 640px */
header .brand b {
  display: none;
}

@media (min-width: 640px) {
  header .brand b {
    display: inline;
  }
}

/* Section links: desktop only, the drawer replaces them on smaller screens */
.links {
  display: none;
}

/* Language switch */
.lang {
  display: flex;
  padding: 3px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

.lang a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  font: 700 var(--fs-2xs) var(--font-body);
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--r-pill);
  transition: background .25s, color .25s;
}

.lang a[lang="ar"] {
  font-family: var(--font-arabic), sans-serif;
  font-size: var(--fs-xs);
}

.lang a[aria-current="page"] {
  color: var(--gold);
  background: var(--surface-2);
}

@media (hover: hover) {
  .lang a:not([aria-current]):hover {
    color: var(--text);
  }
}

/* The "Book" button in the header: desktop only */
.nav .btn-gold {
  display: none;
}

/* Menu button: three lines that turn into a cross */
.menu-btn span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background .2s;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform .3s var(--ease);
}

.menu-btn span::before {
  top: -6px;
}

.menu-btn span::after {
  top: 6px;
}

.menu-open .menu-btn span {
  background: transparent;
}

.menu-open .menu-btn span::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-btn span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Drawer below the header on phones and tablets (body.menu-open is set by site.js) */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px var(--gutter) calc(24px + var(--safe-b));
  visibility: hidden;
  background: var(--bg);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}

.menu-open .drawer {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.drawer a.dl {
  padding: 6px 0;
  font: var(--fw-drawer) var(--fs-drawer)/var(--lh-drawer) var(--font-head);
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.drawer .socials {
  margin-top: auto;
}

@media (min-width: 1000px) {
  .nav {
    gap: 16px;
  }

  .links {
    display: flex;
    gap: 26px;
    margin-inline-end: 8px;
  }

  .links a {
    position: relative;
    padding: 6px 0;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
  }

  .links a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform .3s var(--ease);
  }

  .links a:hover {
    color: var(--text);
  }

  .links a:hover::after {
    transform: scaleX(1);
  }

  .menu-btn,
  .drawer {
    display: none;
  }

  .nav .btn-gold {
    display: inline-flex;
    min-height: var(--tap);
    padding: 0 18px;
    font-size: var(--fs-sm);
  }
}

/* ---- Hero ---- */

.hero {
  padding: 16px 0 48px;
  overflow: hidden;
}

.hero-photo {
  position: relative;
  aspect-ratio: 4 / 4.2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  animation: kenburns 14s var(--ease) forwards;
}

@keyframes kenburns {
  to {
    transform: scale(1);
  }
}

/* Darkens the bottom of the photo behind the rating */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgb(var(--bg-rgb) / .85));
}

/* "Open now" pill; site.js fills it in and adds .closed */
.status {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--gap-s);
  padding: 7px 12px;
  font-size: var(--fs-2xs);
  font-weight: 700;
  background: rgb(var(--bg-rgb) / .8);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--wa);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgb(var(--wa-rgb) / .6);
  animation: pulse 2s infinite;
}

.status.closed .dot {
  background: var(--danger);
  animation: none;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgb(var(--wa-rgb) / 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgb(var(--wa-rgb) / 0);
  }
}

.rating-chip {
  position: absolute;
  bottom: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--gap);
}

.rating-chip strong {
  font: 400 44px/1 var(--font-display);
  color: var(--gold);
}

.rating-chip small {
  display: block;
  font-size: var(--fs-3xs);
  color: var(--text-soft);
}

.hero-copy {
  margin-top: 28px;
}

.hero h1 {
  margin: 14px 0 16px;
  font-size: var(--fs-hero);
}

.hero h1 .gold {
  display: inline-block;
  color: var(--gold);
}

/* Each line of the title rises out of its own clipped box */
.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 .line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise .9s var(--ease) forwards;
}

.hero h1 .line:nth-child(2) > span {
  animation-delay: .12s;
}

.hero h1 .line:nth-child(3) > span {
  animation-delay: .24s;
}

@keyframes rise {
  to {
    transform: none;
  }
}

.hero .lead {
  max-width: 520px;
  font-size: var(--fs-lg);
}

/* Hours, place and price under the buttons */
.facts {
  display: grid;
  gap: var(--gap);
  margin-top: 28px;
  padding-top: 22px;
  font-size: var(--fs-xs);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.facts div {
  display: flex;
  align-items: center;
  gap: var(--gap);
}

.facts svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--gold);
}

@media (min-width: 640px) {
  .facts {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 12px 28px;
  }
}

@media (min-width: 1000px) {
  .hero {
    padding: 48px 0 96px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 64px;
    align-items: center;
  }

  .hero-copy {
    order: -1;
    margin-top: 0;
  }

  .hero-photo {
    aspect-ratio: 4 / 5;
  }
}

/* ---- Marquee (the gold band; the text runs twice for a seamless loop) ---- */

.marquee {
  padding: 14px 0;
  overflow: hidden;
  color: var(--on-gold);
  background: var(--gold);
  border-block: 1px solid var(--gold-dark);
}

.track {
  display: flex;
  width: max-content;
  animation: scroll 32s linear infinite;
}

html[dir="rtl"] .track {
  animation-name: scroll-rtl;
}

.marquee:hover .track {
  animation-play-state: paused;
}

.track span {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-inline-end: 22px;
  font: var(--fw-head) var(--fs-marquee)/1 var(--font-head);
  white-space: nowrap;
}

.track i {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--on-gold);
  transform: rotate(45deg);
}

@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

@keyframes scroll-rtl {
  to {
    transform: translateX(50%);
  }
}

/* ---- At a glance ---- */

.glance {
  display: grid;
  gap: 1px;                      /* the background shows through as dividers */
  margin: 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.glance > div {
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  background: var(--surface);
}

.glance dt {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--gold);
}

.glance dd {
  margin: 0;
  font-weight: 600;
}

@media (min-width: 640px) {
  .glance {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .glance {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- About and team ---- */

.about-text p {
  margin: 0 0 14px;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin: 28px 0 36px;
}

.stat {
  padding: 16px 14px;
}

.stat b {
  display: block;
  font: 400 38px/1 var(--font-display);
  color: var(--gold);
}

.stat span {
  font-size: var(--fs-2xs);
  color: var(--muted);
}

.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-m);
}

.member {
  overflow: hidden;
}

.member img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.member .info {
  padding: 12px 14px;
}

.member h3 {
  font-size: var(--fs-card);
}

.member small {
  display: block;
  margin-bottom: 10px;
  font-size: var(--fs-2xs);
  color: var(--muted);
}

.member .row-i {
  display: flex;
  gap: var(--gap-xs);
}

@media (hover: hover) {
  .member:hover img {
    transform: scale(1.07);
  }
}

/* ---- Services ---- */

.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-m);
}

.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: translate .35s var(--ease), border-color .3s, box-shadow .35s;
}

.svc.featured {
  border-color: var(--gold);
}

.svc img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.svc .body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px 14px;
}

.svc h3 {
  font-size: var(--fs-svc);
}

.svc .price {
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--gold);
}

.svc .go {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-xs);
  margin-top: 8px;
  font-size: var(--fs-2xs);
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}

.svc .go::after {
  z-index: 2;                    /* above the tag */
}

.svc .go svg {
  width: 14px;
  height: 14px;
}

/* "Signature" label on the featured card */
.tag {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 1;
  padding: 4px 9px;
  font-size: var(--fs-tag);
  font-weight: 800;
  letter-spacing: var(--ls-tag);
  text-transform: uppercase;
  color: var(--on-gold);
  background: var(--gold);
  border-radius: var(--r-pill);
}

/* The hover lift uses `translate`, not `transform`, so it does not fight the reveal
   (.js .reveal.in sets transform: none). The stagger delay only applies to the reveal. */
.js .svc.reveal {
  transition-property: opacity, transform, translate, border-color, box-shadow;
  transition-duration: .8s, .8s, .35s, .3s, .35s;
  transition-timing-function: var(--ease);
}

.js .svc.reveal.d1 { transition-delay: 90ms, 90ms, 0s, 0s, 0s; }
.js .svc.reveal.d2 { transition-delay: 180ms, 180ms, 0s, 0s, 0s; }
.js .svc.reveal.d3 { transition-delay: 270ms, 270ms, 0s, 0s, 0s; }

@media (hover: hover) {
  .svc:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-lift);
    translate: 0 -6px;
  }

  .svc:hover img {
    transform: scale(1.07);
  }
}

@media (min-width: 1000px) {
  .svc-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .svc img {
    aspect-ratio: 4 / 5;
  }
}

/* ---- Prices ----
   Phones and tablets: category tabs, one category at a time (site.js sets .off).
   Desktop: all categories in two columns, no tabs. Without JS: all categories with headings. */

/* The 4px block padding keeps the focus ring of a chip inside the scroller (which clips);
   the negative margin cancels it, so the layout is the same as margin: 0 0 18px. */
.tabs {
  display: none;
  gap: var(--gap-s);
  margin-block: -4px 14px;
  padding-block: 4px;
}

.js .tabs {
  display: flex;
}

.plist {
  display: grid;
}

.plist .pcat {
  padding: 0;                    /* .pcat is a <section> */
}

.pcat h3 {
  margin: 24px 0 4px;
  font-size: var(--fs-cat);
  color: var(--gold);
}

.js .pcat h3 {
  display: none;
}

.pcat ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 999px) {
  .js .pcat.off {
    display: none;
  }
}

/* One price row: name, dotted leader, price, "+" that opens the booking sheet */
.prow {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--gap-m);
  padding: 14px 4px;
  font: 600 var(--fs-base) var(--font-body);
  border-bottom: 1px dashed var(--line);
  transition: background .2s, padding .25s var(--ease);
}

.prow i {
  flex: 1;
  border-bottom: 1px dotted var(--leader);
  transform: translateY(-3px);
}

.prow b {
  white-space: nowrap;
}

.prow .plus {
  transition: background .2s, color .2s;
}

@media (hover: hover) {
  .prow:hover {
    padding-inline: 12px;
    background: rgb(var(--gold-rgb) / .05);
  }

  .prow:hover .plus {
    color: var(--on-gold);
    background: var(--gold);
  }
}

.monday-note {
  display: flex;
  align-items: center;
  gap: var(--gap);
  margin-top: 20px;
  padding: 14px 16px;
  font-size: var(--fs-xs);
  background: rgb(var(--gold-rgb) / .1);
  border: 1px solid rgb(var(--gold-rgb) / .3);
  border-radius: var(--r-sm);
}

.monday-note b {
  color: var(--gold);
}

.monday-note svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--gold);
}

@media (min-width: 1000px) {
  .js .tabs {
    display: none;
  }

  .plist {
    display: block;
    columns: 2;
    column-gap: 64px;
  }

  .pcat {
    margin-bottom: 36px;
    break-inside: avoid;
  }

  .pcat h3,
  .js .pcat h3 {
    display: block;
    margin: 0 0 8px;
  }
}

/* ---- Gallery ---- */

.gallery {
  display: flex;
  gap: var(--gap);
  padding-block-end: 6px;
  scroll-snap-type: x mandatory;
}

.gallery figure {
  flex: 0 0 72%;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  scroll-snap-align: center;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.follow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-m);
  margin-top: 22px;
}

.follow p {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--muted);
}

@media (hover: hover) {
  .gallery figure:hover img {
    transform: scale(1.07);
  }
}

@media (min-width: 640px) {
  .gallery figure {
    flex-basis: 44%;
  }
}

@media (min-width: 1000px) {
  .gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .gallery figure {
    aspect-ratio: auto;
  }

  .gallery .tall {
    grid-row: span 2;
  }

  .gallery .wide {
    grid-column: span 2;
  }
}

/* ---- Reviews ---- */

.score {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.score b {
  font: 400 76px/.9 var(--font-display);
  color: var(--gold);
}

.score .lead {
  margin: 2px 0 0;
  font-size: var(--fs-xs);
}

.reviews {
  display: flex;
  gap: var(--gap-m);
  padding-block-end: 6px;
  scroll-snap-type: x mandatory;
}

.rev {
  display: flex;
  flex: 0 0 84%;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: var(--card-pad);
  scroll-snap-align: center;
}

.rev blockquote {
  margin: 0;
  font-size: var(--fs-lg);
}

.rev blockquote[lang="en"] {
  font-family: var(--font-latin), sans-serif;
}

.rev figcaption {
  display: flex;
  align-items: center;
  gap: var(--gap-s);
  margin-top: auto;
  font-size: var(--fs-2xs);
  color: var(--muted);
}

.rev figcaption a {
  color: var(--muted);
}

/* Google logo */
.g {
  width: 18px;
  height: 18px;
}

.rev-all {
  margin-top: 22px;
}

@media (min-width: 640px) {
  .rev {
    flex-basis: 48%;
  }
}

@media (min-width: 1000px) {
  .reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 0;
    overflow: visible;
  }
}

/* ---- Visit (address, hours, storefront) ---- */

.visit {
  display: grid;
  gap: var(--gap-m);
}

.card {
  padding: var(--card-pad);
}

.card h3 {
  margin-bottom: 12px;
  font-size: var(--fs-card);
}

.card .ctas {
  margin-top: 20px;
}

.addr {
  display: flex;
  gap: var(--gap-m);
  margin-bottom: 22px;
  font-style: normal;
  color: var(--muted);
}

.addr svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--gold);
}

.addr strong {
  color: var(--text);
}

.hours {
  width: 100%;
  font-size: var(--fs-sm);
  border-collapse: collapse;
}

.hours td {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.hours td:last-child {
  text-align: end;
}

.hours tr.closed td {
  color: var(--danger);
}

/* Set by site.js */
.hours tr.today td {
  font-weight: 800;
  color: var(--gold);
}

.store {
  position: relative;
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.store img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store .btn {
  position: absolute;
  inset-inline: 14px;
  bottom: 14px;
}

@media (min-width: 640px) {
  .visit {
    grid-template-columns: 1fr 1fr;
  }

  .store {
    min-height: 420px;
    aspect-ratio: auto;
  }

  .store .btn {
    inset-inline-end: auto;
  }
}

/* ---- Local SEO block ---- */

.local {
  padding: 28px var(--card-pad);
  background: radial-gradient(120% 120% at 100% 0, rgb(var(--gold-rgb) / .12), transparent 55%), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.local h2 {
  margin-top: 10px;
  font-size: var(--fs-local);
}

.local p {
  margin: 14px 0 0;
  color: var(--muted);
}

.local ul {
  display: grid;
  gap: var(--gap);
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.local li {
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
}

.local li svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--gold);
}

@media (min-width: 1000px) {
  .local {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 56px;
  }

  .local ul {
    margin: 0;
  }
}

/* ---- Book (closing call to action) ---- */

.book {
  overflow: hidden;
  text-align: center;
}

/* Gold glow behind the buttons */
.book::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 420px;
  background: radial-gradient(closest-side, rgb(var(--gold-rgb) / .22), transparent);
  pointer-events: none;
}

.book .h2 {
  font-size: var(--fs-book);
}

.book .lead {
  max-width: 520px;
  margin-inline: auto;
}

.book .ctas {
  max-width: 420px;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .book .ctas {
    justify-content: center;
  }
}

/* ---- FAQ ---- */

details {
  border-bottom: 1px solid var(--line);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: var(--fs-lg);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

summary .pm {
  transition: transform .3s var(--ease), background .3s;
}

details[open] summary .pm {
  background: var(--surface-2);
  transform: rotate(45deg);
}

details .ans {
  margin: 0;
  padding: 0 0 18px;
  color: var(--muted);
  animation: fade .4s var(--ease);
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ---- Footer ---- */

.site-footer {
  padding: 48px 0 calc(110px + var(--safe-b));   /* room for the bottom bar */
  font-size: var(--fs-sm);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.foot {
  display: grid;
  gap: 28px;
}

.site-footer h2 {
  margin: 0 0 10px;
  font: 700 var(--fs-xs)/var(--lh-body) var(--font-body);
  letter-spacing: 0;
  color: var(--text);
}

.site-footer ul {
  display: grid;
  gap: var(--gap-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--gap-s);
  margin-top: 32px;
  padding-top: 20px;
  font-size: var(--fs-2xs);
  border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
  .foot {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  /* Keeps the copyright line and language links above the floating WhatsApp button */
  .site-footer {
    padding-bottom: 104px;
  }
}

/* ---- Bottom bar (site.js adds .show after scrolling; a floating button on desktop) ---- */

.bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--z-bar);
  display: flex;
  gap: var(--gap);
  padding: 10px 14px calc(10px + var(--safe-b));
  visibility: hidden;
  background: linear-gradient(180deg, rgb(var(--bg-rgb) / 0), rgb(var(--bg-rgb) / .92) 35%);
  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;
  transition: transform .45s var(--ease), opacity .3s, visibility .45s;
}

.bar.show {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.bar .btn {
  flex: 1;
}

.bar .icon-btn {
  flex: none;
  width: var(--tap-lg);
  height: var(--tap-lg);
  background: var(--surface-2);
}

@media (min-width: 1000px) {
  .bar {
    inset-inline: auto 24px;
    bottom: 24px;
    padding: 0;
    background: none;
  }

  .bar .btn {
    box-shadow: var(--shadow-float);
  }

  .bar .icon-btn {
    display: none;
  }
}

/* ---- WhatsApp booking sheet (<dialog>): bottom sheet on phones, centred dialog from 640px ---- */

.sheet {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: none;
  max-height: 92vh;
  margin: 0;
  padding: 10px 20px calc(20px + var(--safe-b));
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.sheet[open] {
  animation: sheet-up .45s var(--ease);
}

.sheet::backdrop {
  background: var(--scrim);
  backdrop-filter: blur(4px);
}

@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
}

@keyframes sheet-pop {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(.96);
  }
}

/* Drag handle look-alike (phones only) */
.grab {
  width: 42px;
  height: 5px;
  margin: 0 auto 14px;
  background: var(--grab);
  border-radius: var(--r-pill);
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-m);
  margin-bottom: 16px;
}

.sheet-head h2 {
  font-size: var(--fs-sheet);
}

/* The chosen service with its price */
.pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-m);
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
}

.pick b {
  display: block;
}

.pick .link {
  padding: 0;
  font-size: var(--fs-2xs);
  color: var(--muted);
  text-decoration: underline;
  background: none;
  border: 0;
  cursor: pointer;
}

.pick .pr {
  font-size: var(--fs-xl);
  font-weight: 800;
  text-align: end;
  color: var(--gold);
}

/* Full price, struck through on Mondays */
.pick .pr s {
  display: block;
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--muted);
}

.field {
  margin-bottom: 16px;
}

.field > label,
.field > .lbl {
  display: block;
  margin-bottom: 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-s);
}

.chips .chip {
  min-height: 40px;
  padding: 0 14px;
}

.sheet input,
.sheet select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font: 500 var(--fs-base) var(--font-body);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.sheet input::placeholder {
  color: var(--muted);
  opacity: 1;
}

/* Form fields show the ring for mouse and touch focus too */
.sheet input:focus,
.sheet select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

/* The message as a WhatsApp bubble, its tail at the start side */
.preview {
  margin: 4px 0 16px;
  padding: 12px 14px;
  font-size: var(--fs-xs);
  white-space: pre-line;
  color: var(--wa-bubble-text);
  background: var(--wa-bubble);
  border: 1px solid var(--wa-bubble-line);
  border-radius: var(--r-md);
  border-end-start-radius: 4px;
}

.preview-lbl {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  margin-bottom: 6px;
  font-size: var(--fs-3xs);
  font-weight: 700;
  color: var(--muted);
}

.preview-lbl svg {
  width: 14px;
  height: 14px;
  color: var(--wa);
}

.hint {
  margin-top: 10px;
  font-size: var(--fs-3xs);
  text-align: center;
  color: var(--muted);
}

@media (min-width: 640px) {
  .sheet {
    inset: 50% auto auto 50%;
    width: min(520px, calc(100% - 40px));
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
    border-radius: var(--r-xl);
    transform: translate(-50%, -50%);
  }

  .sheet[open] {
    animation: sheet-pop .35s var(--ease);
  }

  .grab {
    display: none;
  }
}

/* ---- Error pages (404, 5xx) ---- */

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--gap-xs);
  min-height: 100vh;
  text-align: center;
}

.error-page .ctas {
  grid-template-columns: auto auto;
  justify-content: center;
}

/* ==========================================================================
   7. Reduced motion: no animations or transitions, everything in its end state
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal,
  .js .reveal-img {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .hero h1 .line > span,
  .hero-photo img {
    transform: none;
  }
}
