/* ============================================================
   MANGO Salon — Barber
   Black marble, brushed steel and gold, from the design brief.
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #0e0e0e;            /* page background */
  --bg-raised: #1b1b1c;     /* cards, panels */
  --bg-raised-2: #232325;   /* hover / selected */
  --bg-deep: #080808;       /* footer band */

  /* Ink */
  --ink: #f5f1e8;
  --ink-secondary: #b9b3a6;
  --ink-muted: #7d786e;

  /* Lines */
  --border: #2c2c2e;
  --border-strong: #4a4a4d;

  /* Accent */
  --gold: #d4a94f;
  --gold-hover: #e6c172;
  --gold-soft: rgba(212, 169, 79, 0.14);
  --on-gold: #1a1205;

  /* State */
  --success: #6fcf8a;
  --danger: #e08a63;

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 16px 36px rgba(0, 0, 0, 0.6);
  --glow: 0 0 0 1px rgba(212, 169, 79, 0.35), 0 10px 40px rgba(212, 169, 79, 0.12);

  /* Type */
  --font-display: "Montserrat", "Arial Black", system-ui, sans-serif;
  --font-script: "Playfair Display", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 999px;

  /* Rhythm */
  --maxw: 1180px;
  --gutter: 24px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 480px) { :root { --gutter: 16px; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--on-gold); padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1.1em; height: 1.1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Diagonal steel-line texture from the brief */
.textured { position: relative; isolation: isolate; }
.textured::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("assets/lines.svg") center / 800px repeat;
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-display); font-weight: 700;
  font-size: 11.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.eyebrow--light { color: var(--ink-secondary); }

.section-title, .hero-title {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.01em; line-height: 1;
}
.section-title { font-size: clamp(30px, 5vw, 48px); }
.section-title em, .hero-title em {
  font-family: var(--font-script); font-style: italic; font-weight: 500;
  text-transform: none; color: var(--gold); letter-spacing: 0;
}

.lede { color: var(--ink-secondary); font-size: clamp(16px, 1.6vw, 18px); max-width: 32em; }
.lede--sm { font-size: 16px; margin-top: 18px; }
.fine-print { color: var(--ink-secondary); font-size: 14px; margin-top: 22px; }
.fine-print a { color: var(--gold); }
.fine-print a:hover { text-decoration: underline; }
.muted { color: var(--ink-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent;
  cursor: pointer; white-space: nowrap;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 11px; }
.btn-pill { border-radius: var(--radius-full); }

.btn-gold { border-color: var(--gold); color: var(--gold); background: rgba(212, 169, 79, 0.06); box-shadow: var(--glow); }
.btn-gold:hover:not(:disabled) { background: var(--gold); color: var(--on-gold); }
.btn-outline { border-color: rgba(245, 241, 232, 0.5); color: var(--ink); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--bg-raised-2); border-color: var(--border-strong); color: var(--ink); }
.btn-dark:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { color: var(--ink-secondary); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--ink); }

.round-btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1px solid var(--border-strong); background: var(--bg-raised);
  cursor: pointer; transition: border-color 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease);
}
.round-btn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.round-btn .icon { width: 20px; height: 20px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
}
.link-arrow:hover { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 14, 14, 0.82);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 200ms var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav-link {
  position: relative; font-family: var(--font-display); font-weight: 700;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease);
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { transform: scaleX(1); }
.nav .btn { margin-left: 6px; border-color: var(--gold); color: var(--gold); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform 220ms var(--ease), opacity 220ms var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; transition: opacity 250ms var(--ease); z-index: 40; }
.nav-scrim.is-open { opacity: 1; pointer-events: auto; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
    width: min(320px, 84vw); padding: 96px 28px 28px;
    flex-direction: column; align-items: flex-start; gap: 26px;
    background: var(--bg-raised); border-left: 1px solid var(--border);
    transform: translateX(100%); visibility: hidden;
    transition: transform 300ms var(--ease), visibility 0s linear 300ms;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform 300ms var(--ease); }
  .nav .btn { margin: 8px 0 0; }
  .menu-toggle { position: relative; z-index: 70; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-copy { position: relative; padding-right: 32px; }
.hero-copy::after {
  content: ""; position: absolute; top: -40px; bottom: -40px; right: 0; width: 2px;
  background: linear-gradient(var(--gold), rgba(212, 169, 79, 0.15));
}
.hero-title { font-size: clamp(54px, 9vw, 104px); line-height: 0.95; margin: 6px 0 26px; }
.hero-title .block { display: block; }
.hero-title em { display: block; font-size: 0.86em; line-height: 1.05; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 30px; }
.hero-meta li {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-secondary);
}
.hero-meta a:hover { color: var(--gold); }
.hero-meta--stack { flex-direction: column; }

.status .status-dot, .today-badge .status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success); position: relative;
}
.status .status-dot::after, .today-badge .status-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  animation: pulse 2s var(--ease) infinite;
}
.status--closed .status-dot, .today-badge.is-closed .status-dot { background: var(--danger); }
.status--closed .status-dot::after, .today-badge.is-closed .status-dot::after { animation: none; }
.status--open .status-text { color: var(--success); }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.8); opacity: 0; } }

.hero-media { display: grid; place-items: center; }
.halo {
  position: relative; width: min(100%, 440px); aspect-ratio: 1; border-radius: 50%;
  padding: 10px; background: conic-gradient(from 210deg, #8a6a2a, var(--gold), #f3d58e, var(--gold), #8a6a2a, var(--gold));
  box-shadow: 0 0 60px rgba(212, 169, 79, 0.18);
}
.halo::before {
  content: ""; position: absolute; inset: -46px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.6px) 0 0 / 14px 14px;
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 62%, transparent 72%);
          mask: radial-gradient(circle, transparent 54%, #000 62%, transparent 72%);
  opacity: 0.6; animation: spin 80s linear infinite;
}
.halo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid #0b0b0b; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { padding-right: 0; }
  .hero-copy::after { display: none; }
  .hero-media { order: -1; }
  .halo { width: min(78vw, 360px); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.section > .container > .section-title { margin-bottom: 40px; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.service-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 22px 18px; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-raised);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease), background-color 200ms var(--ease);
}
.service-card:hover { border-color: rgba(212, 169, 79, 0.6); transform: translateY(-3px); background: var(--bg-raised-2); }
.tag {
  display: inline-flex; align-items: center; gap: 8px; color: var(--gold);
  font-family: var(--font-display); font-weight: 700; font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
}
.service-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: 0.04em; text-transform: uppercase; }
.service-card p { color: var(--ink-secondary); font-size: 14px; }
.service-foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.where {
  display: inline-flex; align-items: center; gap: 6px; color: var(--ink-secondary);
  font-family: var(--font-display); font-weight: 700; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
}
.price { font-family: var(--font-display); font-weight: 800; font-size: 22px; }

/* ---------- Gallery carousel ---------- */
.carousel { position: relative; }
.carousel-controls { display: flex; gap: 10px; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 38%;
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none; padding: 4px 0 8px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: 6px; }
.slide {
  position: relative; scroll-snap-align: start; aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22); box-shadow: var(--shadow-md);
  background: var(--bg-raised);
}
.slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.slide:hover img { transform: scale(1.04); }
.slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.7));
}
.slide-label {
  position: absolute; left: 18px; bottom: 16px; z-index: 1;
  font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
}
.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.carousel-dots button {
  width: 28px; height: 4px; padding: 0; border: 0; border-radius: 2px; cursor: pointer;
  background: var(--border-strong); transition: background-color 200ms var(--ease), width 200ms var(--ease);
}
.carousel-dots button[aria-selected="true"] { background: var(--gold); width: 44px; }
/* Larger hit area for the slim dots */
.carousel-dots button { position: relative; }
.carousel-dots button::before { content: ""; position: absolute; inset: -12px -4px; }

@media (max-width: 900px) { .carousel-track { grid-auto-columns: 46%; } }
@media (max-width: 560px) { .carousel-track { grid-auto-columns: 86%; gap: 12px; } }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.review-grid:has(> .review-card:only-child) { max-width: 560px; }
.review-card {
  padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-raised);
  display: flex; flex-direction: column; gap: 16px;
}
.stars { display: flex; gap: 4px; color: var(--gold); }
.stars svg { width: 16px; height: 16px; fill: var(--gold); stroke: var(--gold); stroke-width: 1; }
.review-card blockquote { font-size: 17px; line-height: 1.55; }
.review-card blockquote::before { content: "\201C"; color: var(--gold); font-family: var(--font-script); font-size: 1.6em; line-height: 0; margin-right: 4px; vertical-align: -0.2em; }
.review-card blockquote::after { content: "\201D"; color: var(--gold); font-family: var(--font-script); font-size: 1.6em; line-height: 0; margin-left: 4px; vertical-align: -0.2em; }
.review-card figcaption { display: flex; flex-direction: column; margin-top: auto; }
.who { font-weight: 700; font-size: 14px; }
.what { font-family: var(--font-display); font-weight: 700; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted); }

/* ---------- Instagram band ---------- */
.ig-band {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: clamp(28px, 5vw, 48px); border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(212, 169, 79, 0.08), rgba(27, 27, 28, 0.9) 55%);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-raised); padding: 22px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel-title {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
}
.panel-title .icon { color: var(--gold); }
.today-badge {
  display: inline-flex; align-items: center; gap: 8px; color: var(--success);
  font-family: var(--font-display); font-weight: 700; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
}
.today-badge.is-closed { color: var(--danger); }

.hours-row {
  display: flex; justify-content: space-between; gap: 12px; padding: 10px 10px;
  border-bottom: 1px solid var(--border); font-size: 14.5px; border-radius: var(--radius-sm);
}
.hours-row dd { color: var(--ink-secondary); font-variant-numeric: tabular-nums; }
.hours-row.is-today { background: rgba(212, 169, 79, 0.1); border: 1px solid rgba(212, 169, 79, 0.6); font-weight: 700; }
.hours-row.is-today dd { color: var(--ink); }
.panel-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.panel--find { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.map-frame { position: relative; aspect-ratio: 16 / 10; min-height: 220px; background: #121213; border-bottom: 1px solid var(--border); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.05); }
.find-body { padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.find-name { font-size: 17px; font-weight: 500; margin-top: 6px; }
.find-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 700; }
.find-body .fine-print { margin: 0 0 8px; }

@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Booking ---------- */
.book-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.booker {
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--bg-raised);
  box-shadow: var(--shadow-md), 0 30px 60px -30px rgba(212, 169, 79, 0.25); overflow: hidden;
}
.booker.is-flash { animation: booker-flash 1.4s var(--ease); }
@keyframes booker-flash { 0%, 40% { box-shadow: var(--shadow-md), 0 0 0 2px var(--gold), 0 0 40px rgba(212, 169, 79, 0.35); } 100% { box-shadow: var(--shadow-md), 0 30px 60px -30px rgba(212, 169, 79, 0.25); } }
.booker-steps { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--border); }
.step {
  width: 100%; padding: 18px 8px; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted);
}
.step.is-active { color: var(--gold); border-bottom-color: var(--gold); }
.step:disabled { cursor: default; }
.booker-pane { display: none; padding: 12px; max-height: 440px; overflow-y: auto; }
.booker-pane.is-active { display: block; }
.booker-pane[data-pane="1"] { max-height: none; overflow: visible; }

.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 14px; border-radius: var(--radius-sm); cursor: pointer; border: 1px solid transparent;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.opt:hover { background: var(--bg-raised-2); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: flex; flex-direction: column; }
.opt b { font-weight: 700; font-size: 15px; }
.opt small { font-family: var(--font-display); font-weight: 700; font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted); }
.opt em { font-style: normal; font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.opt:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.opt:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 1px; }

.booker-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; border-top: 1px solid var(--border);
}
.booker-summary { font-size: 13.5px; color: var(--ink-secondary); }
.booker-nav { display: flex; gap: 8px; margin-left: auto; }

/* Details step */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 8px 6px 4px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field > span {
  font-family: var(--font-display); font-weight: 700; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-secondary);
}
.field > span em { font-style: normal; color: var(--ink-muted); letter-spacing: 0.1em; text-transform: none; font-family: var(--font-sans); font-weight: 400; font-size: 12px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field textarea { resize: vertical; min-height: 64px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-muted); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4a94f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}
.field select:disabled { cursor: not-allowed; color: var(--ink-muted); }
.field select option { background: var(--bg-raised); color: var(--ink); }
.field-error { display: none; color: var(--danger); font-size: 12.5px; }
.field-error.is-shown { display: block; }
.privacy-note { padding: 10px 6px 2px; font-size: 12.5px; color: var(--ink-muted); }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } }

@media (max-width: 860px) { .book-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding: 56px 0 96px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr auto; gap: 32px; }
.footer-brand img { width: 120px; height: auto; margin-bottom: 14px; }
.site-footer h4 { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer li { font-size: 14px; color: var(--ink-secondary); margin-bottom: 8px; }
.site-footer li a:hover { color: var(--gold); }
.footer-social { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 13px; color: var(--ink-muted);
}
.footer-credit-line { display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.04em; color: var(--ink-secondary); }
.credit-mark { fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; opacity: 0.9; }
.footer-credit-line a { color: var(--gold); font-weight: 700; letter-spacing: 0.02em; position: relative; }
.footer-credit-line a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease);
}
.footer-credit-line a:hover::after { transform: scaleX(1); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } .footer-social { flex-direction: row; flex-wrap: wrap; grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px;
  border-radius: var(--radius-full); background: rgba(27, 27, 28, 0.92); border: 1px solid var(--border-strong);
  font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  box-shadow: var(--shadow-md); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease);
}
.fab:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.fab .icon { width: 20px; height: 20px; color: var(--success); }
@media (max-width: 480px) { .fab span { display: none; } .fab { padding: 0; width: 54px; height: 54px; justify-content: center; } }

/* ---------- Booking waiting page ---------- */
.wait-page { min-height: 100vh; min-height: 100svh; }
.wait {
  min-height: 100vh; min-height: 100svh; max-width: 520px; margin: 0 auto;
  padding: 40px var(--gutter) 48px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.wait-logo img { width: 104px; height: auto; margin-bottom: 36px; opacity: 0.95; }
.wait-ring { position: relative; width: 132px; height: 132px; margin-bottom: 30px; }
.wait-ring > svg:first-child { width: 100%; height: 100%; transform: rotate(-90deg); }
.wait-track { fill: none; stroke: var(--border); stroke-width: 3; }
.wait-arc {
  fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 22 78; transform-origin: 60px 60px; animation: wait-spin 1.1s linear infinite;
  filter: drop-shadow(0 0 6px rgba(212, 169, 79, 0.5));
}
.wait-mark { position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; fill: var(--gold); transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.wait-count {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 44px; color: var(--ink);
  opacity: 0; transform: scale(0.8); transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.wait[data-state="redirecting"] .wait-arc { animation: none; stroke-dasharray: 100 0; transition: stroke-dasharray 300ms var(--ease); }
.wait[data-state="redirecting"] .wait-mark { opacity: 0; transform: scale(0.7); }
.wait[data-state="redirecting"] .wait-count { opacity: 1; transform: none; }
.wait[data-state="done"] .wait-arc, .wait[data-state="empty"] .wait-arc { animation: none; stroke-dasharray: 100 0; }
@keyframes wait-spin { to { transform: rotate(360deg); } }

.wait-title { font-size: clamp(30px, 8vw, 44px); margin-bottom: 14px; }
.wait-lede { margin: 0 auto 26px; min-height: 3.2em; }

.wait-steps { display: grid; gap: 10px; text-align: left; margin-bottom: 24px; }
.wait-steps li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--ink-muted); transition: color 200ms var(--ease); }
.wait-steps .dot {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-strong);
  display: grid; place-items: center; flex: none; transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
}
.wait-steps .dot .icon { width: 14px; height: 14px; opacity: 0; stroke-width: 2.4; color: var(--on-gold); transition: opacity 200ms var(--ease); }
.wait-steps li.is-active { color: var(--ink); }
.wait-steps li.is-active .dot { border-color: var(--gold); }
.wait-steps li.is-done { color: var(--ink); }
.wait-steps li.is-done .dot { background: var(--gold); border-color: var(--gold); }
.wait-steps li.is-done .dot .icon { opacity: 1; }
.wait-steps li.is-skipped, .wait-steps li.is-failed { text-decoration: line-through; }
.wait[data-state="empty"] .wait-steps { display: none; }

.wait-card {
  width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 28px;
  border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--border); text-align: left;
}
.wait-card > div { background: var(--bg-raised); padding: 12px 16px; }
.wait-card dt { font-family: var(--font-display); font-weight: 700; font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted); }
.wait-card dd { font-size: 14.5px; font-weight: 500; overflow-wrap: anywhere; }
.wait-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wait-actions .btn-ghost { border-color: transparent; }

/* ---------- Scroll reveal ---------- */
/* Hidden only once JS has armed it (html.reveal-active); without JS all content shows. */
.reveal-active .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .status-dot::after, .halo::before, .wait-arc, .booker.is-flash { animation: none !important; }
  .btn:hover, .service-card:hover, .round-btn:hover, .fab:hover { transform: none; }
  .slide:hover img { transform: none; }
  .carousel-track { scroll-behavior: auto; }
}
