/* ==========================================================================
   FOLAN SPA — Medspa & Body Wellness
   style.css

   Contents
   1.  Design tokens (light "Day Spa" + dark "Night Relaxation")
   2.  Reset & base
   3.  Layout helpers & utilities
   4.  Buttons
   5.  Header / navigation / theme switch
   6.  Hero + carousel
   7.  Section furniture & scroll reveal
   8.  News grid
   9.  Services grid
   10. Booking form
   11. Footer
   12. Responsive breakpoints
   13. Motion, print & forced-colors preferences

   All colour pairs used for text meet WCAG AAA (>= 7:1 body, >= 4.5:1 large)
   in both themes.
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root,
[data-theme="light"] {
  /* Brand */
  --emerald:        #0b2b1d;
  --gold:           #a48243;
  --sage-white:     #f9fbf9;

  /* Surfaces */
  --bg:             #f9fbf9;
  --bg-alt:         #edf3ee;
  --surface:        #ffffff;
  --surface-sunken: #f2f6f2;

  /* Text — verified against --bg and --surface */
  --text:           #0b2b1d;   /* 14.9:1 on --bg   */
  --text-muted:     #2f4a3b;   /* 10.0:1 on --bg   */
  --text-inverse:   #f9fbf9;

  /* Accents */
  --accent:         #a48243;   /* decorative rules, borders, large display */
  --accent-strong:  #63450f;   /* 8.8:1 on --surface — safe for small text */
  --accent-soft:    rgba(164, 130, 67, 0.10);

  /* Lines & shadows */
  --border:         #d8e2da;
  --border-strong:  #b9c9bd;
  --shadow-sm:      0 1px 2px rgba(11, 43, 29, 0.06), 0 2px 8px rgba(11, 43, 29, 0.05);
  --shadow-md:      0 4px 10px rgba(11, 43, 29, 0.07), 0 14px 32px rgba(11, 43, 29, 0.09);
  --shadow-lg:      0 10px 24px rgba(11, 43, 29, 0.10), 0 26px 60px rgba(11, 43, 29, 0.13);

  /* Component-level */
  --header-bg:      rgba(249, 251, 249, 0.86);
  --header-border:  #dfe8e0;
  --btn-primary-bg: #0b2b1d;
  --btn-primary-fg: #f9fbf9;
  --btn-primary-bg-hover: #133c2a;
  --field-bg:       #ffffff;
  --field-border:   #b9c9bd;
  --danger:         #8a1c14;   /* 7.6:1 on white */
  --success:        #1d5c3d;

  --focus-ring:     #63450f;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg:             #061a11;
  --bg-alt:         #0b2b1d;
  --surface:        #0f3325;
  --surface-sunken: #0a2419;

  --text:           #eef5f0;   /* 15.6:1 on --bg */
  --text-muted:     #c2d5c8;   /* 8.6:1 on --surface */
  --text-inverse:   #06170f;

  --accent:         #e2c78f;
  --accent-strong:  #ecd9b0;   /* 9.9:1 on --surface */
  --accent-soft:    rgba(226, 199, 143, 0.10);

  --border:         #1c4633;
  --border-strong:  #2c6047;
  --shadow-sm:      0 1px 2px rgba(0, 0, 0, 0.40), 0 2px 8px rgba(0, 0, 0, 0.30);
  --shadow-md:      0 4px 10px rgba(0, 0, 0, 0.42), 0 14px 32px rgba(0, 0, 0, 0.40);
  --shadow-lg:      0 10px 24px rgba(0, 0, 0, 0.45), 0 26px 60px rgba(0, 0, 0, 0.50);

  --header-bg:      rgba(6, 26, 17, 0.88);
  --header-border:  #17392a;
  --btn-primary-bg: #e2c78f;
  --btn-primary-fg: #06170f;
  --btn-primary-bg-hover: #eed9ab;
  --field-bg:       #0a2419;
  --field-border:   #2c6047;
  --danger:         #ffb3aa;   /* 8.9:1 on --surface */
  --success:        #8fe0b4;

  --focus-ring:     #ecd9b0;

  color-scheme: dark;
}

/* Shared, theme-independent tokens */
:root {
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.90rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.09rem);
  --step-1:  clamp(1.19rem, 1.12rem + 0.35vw, 1.38rem);
  --step-2:  clamp(1.42rem, 1.30rem + 0.60vw, 1.80rem);
  --step-3:  clamp(1.70rem, 1.48rem + 1.05vw, 2.40rem);
  --step-4:  clamp(2.05rem, 1.68rem + 1.80vw, 3.30rem);

  --space-2xs: 0.375rem;
  --space-xs:  0.625rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --container: 1180px;
  --header-h: 72px;

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

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-sm);
  color: var(--text);
  text-wrap: balance;
}

p { margin: 0 0 var(--space-sm); }
p:last-child { margin-bottom: 0; }

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

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

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--text); }

button { font: inherit; color: inherit; }

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

::selection {
  background: var(--accent);
  color: var(--emerald);
}

/* ==========================================================================
   3. LAYOUT HELPERS & UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: transform 180ms var(--ease);
}
.skip-link:focus {
  transform: translate(-50%, 0);
  color: var(--btn-primary-fg);
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */

.btn {
  --btn-pad-y: 0.85rem;
  --btn-pad-x: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--btn-primary-bg-hover);
  color: var(--btn-primary-fg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn--block { width: 100%; }

.btn[aria-busy="true"] { cursor: progress; }

.btn-spinner {
  display: none;
  width: 1em; height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.btn[aria-busy="true"] .btn-spinner { display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Hero buttons always sit on the dark scrim, so they are pinned to the
   dark-on-image treatment regardless of the active theme. */
.hero-actions .btn--primary {
  background: #e3c78f;
  color: #0b2b1d;
  border-color: #e3c78f;
}
.hero-actions .btn--primary:hover,
.hero-actions .btn--primary:focus-visible {
  background: #f0dcb2;
  border-color: #f0dcb2;
  color: #0b2b1d;
}
.hero-actions .btn--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.65);
}
.hero-actions .btn--ghost:hover,
.hero-actions .btn--ghost:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: #ffffff;
}

/* ==========================================================================
   5. HEADER / NAVIGATION / THEME SWITCH
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--header-border);
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: var(--header-h);
}

/* --- Brand ---------------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
}
.brand:hover { color: var(--text); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  flex: none;
}
.brand-mark svg { width: 34px; height: 34px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 0.63rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Mobile toggle -------------------------------------------------------- */

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bars {
  display: grid;
  gap: 5px;
  width: 20px;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 220ms var(--ease), opacity 160ms var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Nav (mobile-first: collapsed panel) ---------------------------------- */

.primary-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-sm) var(--space-lg);
  background: var(--bg);
  border-bottom: 1px solid var(--header-border);
  box-shadow: var(--shadow-md);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
}
.primary-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.nav-list { display: grid; gap: 0.25rem; }

.nav-link {
  display: block;
  padding: 0.7rem 0.4rem;
  color: var(--text);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav-link:hover { background: var(--accent-soft); color: var(--text); }
.nav-link.is-current { color: var(--accent-strong); }

.nav-link--cta {
  margin-top: 0.4rem;
  text-align: center;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  border-radius: var(--radius-pill);
}
.nav-link--cta:hover,
.nav-link--cta:focus-visible {
  background: var(--btn-primary-bg-hover);
  color: var(--btn-primary-fg);
}

/* --- Theme switch --------------------------------------------------------- */

.theme-switch { padding-top: var(--space-2xs); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.85rem 0.4rem 0.4rem;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); }

.theme-toggle-track {
  position: relative;
  display: block;
  width: 52px; height: 28px;
  background: var(--emerald);
  border-radius: var(--radius-pill);
  flex: none;
}
[data-theme="dark"] .theme-toggle-track { background: #04120b; }

.theme-toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  background: var(--gold);
  color: var(--emerald);
  border-radius: 50%;
  transition: transform 300ms var(--ease), background-color var(--dur) var(--ease);
}
.theme-toggle-thumb svg { width: 14px; height: 14px; }
.icon-moon { display: none; }

[data-theme="dark"] .theme-toggle-thumb { transform: translateX(24px); }
[data-theme="dark"] .icon-sun  { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.theme-toggle-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ==========================================================================
   6. HERO + CAROUSEL
   ========================================================================== */

.hero {
  position: relative;
  display: grid;
  align-content: end;
  min-height: min(88svh, 760px);
  padding-block: calc(var(--space-2xl) + 2rem) var(--space-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--emerald);
}

.carousel {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.carousel-track { position: absolute; inset: 0; }

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1100ms var(--ease), transform 7000ms linear;
  transform: scale(1.05);
}
.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Graceful fallback: if a remote photo fails, the slide paints an
   on-brand emerald/gold gradient instead of a broken image. */
.carousel-slide.has-error {
  background:
    radial-gradient(120% 90% at 20% 15%, rgba(164, 130, 67, 0.42), transparent 60%),
    radial-gradient(100% 80% at 85% 80%, rgba(31, 92, 64, 0.55), transparent 60%),
    linear-gradient(150deg, #0b2b1d 0%, #143f2c 55%, #082015 100%);
}
.carousel-slide.has-error img { display: none; }

.carousel-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 18, 11, 0.70) 0%, rgba(4, 18, 11, 0.42) 32%, rgba(4, 18, 11, 0.86) 100%),
    linear-gradient(90deg, rgba(4, 18, 11, 0.72) 0%, rgba(4, 18, 11, 0.28) 70%);
}

.hero-inner {
  position: relative;
  max-width: 720px;
  margin-inline: 0;
  padding-inline: var(--space-sm);
  color: #ffffff;
}
@media (min-width: 1212px) {
  .hero-inner { padding-inline: calc((100vw - var(--container)) / 2 + var(--space-sm)); }
}

.hero-eyebrow {
  margin-bottom: var(--space-xs);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #eccf97;
}

.hero-title {
  margin-bottom: var(--space-sm);
  font-size: var(--step-4);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-copy {
  max-width: 46ch;
  margin-bottom: var(--space-md);
  font-size: var(--step-1);
  font-weight: 300;
  color: #f2f7f3;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* --- Carousel controls ---------------------------------------------------- */

.carousel-ui {
  position: relative;
  margin-top: var(--space-lg);
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-btn {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  color: #ffffff;
  background: rgba(6, 23, 15, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.carousel-btn:hover {
  background: rgba(164, 130, 67, 0.85);
  border-color: #eccf97;
}
.carousel-btn svg { width: 20px; height: 20px; }

.carousel-btn .icon-play { display: none; }
.carousel-btn[aria-pressed="false"] .icon-pause { display: none; }
.carousel-btn[aria-pressed="false"] .icon-play  { display: block; }

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.5rem;
}

.carousel-dot {
  width: 30px; height: 4px;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), width var(--dur) var(--ease);
}
.carousel-dot:hover { background: rgba(255, 255, 255, 0.75); }
.carousel-dot[aria-current="true"] {
  width: 46px;
  background: var(--gold);
}

/* ==========================================================================
   7. SECTION FURNITURE & SCROLL REVEAL
   ========================================================================== */

.section { padding-block: var(--space-xl); }
.section--news { background: var(--bg-alt); }
.section--services { background: var(--bg); }
.section--book { background: var(--bg-alt); }

.section-head {
  max-width: 58ch;
  margin-bottom: var(--space-lg);
}

.section-eyebrow {
  margin-bottom: var(--space-2xs);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.section-title {
  font-size: var(--step-3);
  font-weight: 500;
}

.section-lede {
  font-size: var(--step-1);
  font-weight: 300;
  color: var(--text-muted);
}

/* Scroll-triggered reveal (JS adds .is-visible via IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* If JS never runs, nothing should stay invisible. */
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   8. NEWS GRID
   ========================================================================== */

.news-grid {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: 1fr;
}

.news-card {
  height: 100%;
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-meta {
  margin-bottom: var(--space-2xs);
  font-size: var(--step--1);
  color: var(--text-muted);
}

.news-tag {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
}

.news-title { font-size: var(--step-1); margin-bottom: var(--space-2xs); }
.news-body { color: var(--text-muted); }

/* ==========================================================================
   9. SERVICES GRID
   ========================================================================== */

.services-status { margin-bottom: var(--space-sm); }
.services-status:empty { display: none; }

.loading-note,
.error-note {
  padding: var(--space-sm) var(--space-md);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}
.error-note { border-color: var(--danger); color: var(--danger); }

.services-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.service-card.is-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.service-badge {
  align-self: flex-start;
  margin-bottom: var(--space-xs);
  padding: 0.18rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e8d2a3;
  background: var(--emerald);
  border-radius: var(--radius-pill);
}
[data-theme="dark"] .service-badge { color: #0b2b1d; background: #e8d2a3; }

.service-name {
  font-size: var(--step-2);
  font-weight: 500;
  margin-bottom: var(--space-2xs);
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.service-price {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--accent-strong);
}

.service-duration {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.service-tagline {
  margin-bottom: var(--space-sm);
  color: var(--text-muted);
  font-style: italic;
}

.service-includes-title {
  margin-bottom: var(--space-2xs);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.service-includes {
  display: grid;
  gap: 0.35rem;
  margin-bottom: var(--space-md);
}
.service-includes li {
  position: relative;
  padding-left: 1.4rem;
  font-size: var(--step--1);
  color: var(--text);
}
.service-includes li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.52em;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.service-cta { margin-top: auto; }
.service-cta .btn { width: 100%; }

/* ==========================================================================
   10. BOOKING FORM
   ========================================================================== */

.book-layout {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

.book-points {
  display: grid;
  gap: 0.6rem;
  margin-top: var(--space-md);
}
.book-points li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-muted);
}
.book-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 10px; height: 2px;
  background: var(--accent);
}

.book-card {
  position: relative;
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-intro {
  margin-bottom: var(--space-md);
  font-size: var(--step--1);
  color: var(--text-muted);
}

.field-row {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: 1fr;
}

.field { margin-bottom: var(--space-sm); }
.field-row .field { margin-bottom: 0; }
.field-row { margin-bottom: var(--space-sm); }

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text);
}

.field input,
.field select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--text);
  background: var(--field-bg);
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(1em + 4px), calc(100% - 16px) calc(1em + 4px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

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

.field input:hover,
.field select:hover { border-color: var(--accent); }

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input:focus-visible,
.field select:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--danger);
  background-color: color-mix(in srgb, var(--danger) 6%, var(--field-bg));
}

.field-hint {
  margin: 0.3rem 0 0;
  font-size: var(--step--1);
  color: var(--text-muted);
}

.field-error {
  margin: 0.3rem 0 0;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--danger);
  min-height: 0;
}
.field-error:empty { display: none; }

.form-status {
  margin-top: var(--space-sm);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--danger);
  text-align: center;
}
.form-status:empty { display: none; }

/* --- Success state -------------------------------------------------------- */

.booking-success {
  display: grid;
  justify-items: center;
  gap: var(--space-xs);
  padding: var(--space-lg) var(--space-sm);
  text-align: center;
  animation: fade-up 520ms var(--ease) both;
}
.booking-success[hidden] { display: none; }

.success-mark {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  color: var(--accent-strong);
}
.success-mark svg { width: 100%; height: 100%; }

.success-title {
  font-size: var(--step-2);
  font-weight: 500;
  margin: 0;
}

.success-body {
  max-width: 42ch;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */

.site-footer {
  padding-top: var(--space-xl);
  background: var(--emerald);
  color: #e8efe9;
}
[data-theme="dark"] .site-footer { background: #04120b; }

.footer-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-lg);
}

.footer-brand {
  margin-bottom: 0.15rem;
  font-size: var(--step-2);
  font-weight: 500;
  color: #eccf97;
}

.footer-tagline {
  margin-bottom: var(--space-xs);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #cddbd1;
}

.footer-note {
  font-style: italic;
  color: #e8efe9;
}

.footer-title {
  margin-bottom: var(--space-xs);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #eccf97;
}

.footer-body,
.hours {
  font-size: var(--step--1);
  font-style: normal;
  line-height: 1.9;
  color: #e8efe9;
  margin: 0;
}

.footer-body a,
.footer-base a {
  color: #e8efe9;
  text-decoration-color: rgba(232, 239, 233, 0.45);
}
.footer-body a:hover,
.footer-base a:hover { color: #eccf97; }

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  max-width: 15rem;
}
.hours dt { color: #cddbd1; }
.hours dd { margin: 0; }

.social-list { display: grid; gap: 0.5rem; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0;
  font-size: var(--step--1);
  color: #e8efe9;
  text-decoration: none;
}
.social-link svg {
  width: 20px; height: 20px;
  flex: none;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.social-link:hover { color: #eccf97; }
.social-link:hover svg { transform: translateY(-2px); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xs);
  padding-block: var(--space-sm);
  border-top: 1px solid rgba(232, 239, 233, 0.18);
  font-size: var(--step--1);
  color: #cddbd1;
}
.footer-base p { margin: 0; }

/* ==========================================================================
   12. RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (min-width: 600px) {
  .container { padding-inline: var(--space-md); }
  .hero-inner { padding-inline: var(--space-md); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .book-card { padding: var(--space-lg); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .social-list { grid-auto-flow: column; justify-content: start; gap: var(--space-md); }
  .social-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

@media (min-width: 860px) {
  .services-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .book-layout { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--space-xl); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr auto; }
  .section { padding-block: var(--space-2xl); }
}

/* Desktop navigation */
@media (min-width: 940px) {
  .nav-toggle { display: none; }

  .primary-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .nav-link { padding: 0.55rem 0.85rem; }

  .nav-link--cta {
    margin-top: 0;
    padding-inline: 1.4rem;
  }

  .theme-switch { padding-top: 0; }

  .news-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1100px) {
  .hero { padding-block: calc(var(--space-2xl) + 3rem) var(--space-lg); }
}

/* ==========================================================================
   13. MOTION, PRINT & FORCED-COLORS PREFERENCES
   ========================================================================== */

@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;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
  .carousel-slide { transform: none; }
  .carousel-slide.is-active { transform: none; }
}

@media (forced-colors: active) {
  .btn,
  .service-card,
  .news-card,
  .book-card,
  .carousel-btn,
  .theme-toggle { border: 1px solid CanvasText; }

  .carousel-dot[aria-current="true"] { forced-color-adjust: none; background: Highlight; }
}

@media print {
  .site-header,
  .carousel-ui,
  .hero,
  .btn { display: none !important; }

  body { background: #fff; color: #000; }
  .section { padding-block: 1rem; }
  .service-card, .news-card, .book-card { box-shadow: none; border: 1px solid #999; }
}
