/* ==========================================================================
   Midori Spa & Wellness — main stylesheet
   --------------------------------------------------------------------------
   Structure
     1. Fonts (self-hosted, variable)
     2. Design tokens
     3. Base / reset
     4. Layout helpers
     5. Typography
     6. Components  (button, icon, photo, reveal)
     7. Site header & navigation
     8. Page sections (hero, statement, split, offer, gallery, reviews,
        cta band, visit, map)
     9. Site footer
    10. Utilities
    11. Responsive overrides
    12. Motion & print preferences

   Naming: BEM — .block, .block__element, .block--modifier
   ========================================================================== */


/* ==========================================================================
   1. Fonts
   Variable WOFF2 files, split into latin / latin-ext subsets. The browser
   only downloads the latin-ext file if a glyph from that range is used.
   ========================================================================== */

@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/assets/fonts/cormorant-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/assets/fonts/cormorant-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant";
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url("/assets/fonts/cormorant-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant";
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url("/assets/fonts/cormorant-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("/assets/fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("/assets/fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ==========================================================================
   2. Design tokens
   Colours sampled from the spa interior (sage plaster, verde marble,
   limestone, brass). Only tokens that are actually used are defined.
   ========================================================================== */

:root {
  /* Brand palette */
  --color-ivory: #f7f4ec;        /* page background */
  --color-cream: #efe9de;        /* alternate section background */
  --color-lime: #dce8b8;         /* soft lime — booking buttons */
  --color-lime-hover: #cddba3;
  --color-lime-pale: #eef2e3;    /* reviews background */
  --color-sage: #a5af98;
  --color-olive: #303c2f;        /* primary text / footer */
  --color-olive-muted: #5b6553;  /* secondary text */
  --color-moss: #33402f;         /* outlines */
  --color-forest: #232c21;       /* strong text on light */
  --color-brass: #a88b5e;        /* focus ring */
  --color-line: rgb(48 60 47 / 14%);
  --color-line-inverse: rgb(247 244 236 / 14%);
  --color-quiet-hover: rgb(51 64 47 / 6%);
  --color-footer-text: #dee2d6;
  --color-footer-muted: #b5bda9;

  /* Photo overlays (keep white text readable on images) */
  --shade-hero: linear-gradient(180deg, rgb(28 34 27 / 0%) 45%, rgb(28 34 27 / 55%) 100%);
  --shade-card: linear-gradient(180deg, rgb(28 34 27 / 0%) 50%, rgb(28 34 27 / 62%) 100%);

  /* Typography */
  --font-display: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --tracking-eyebrow: 0.22em;
  --tracking-label: 0.08em;

  /* Layout */
  --container-max: 1360px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-space: clamp(96px, 11vw, 160px);
  --header-height: 84px;
  --radius-section: 56px;
  --radius-arch: 999px 999px 0 0;

  /* Controls */
  --control-h-s: 36px;
  --control-h-m: 44px;
  --control-h-l: 52px;

  /* Motion */
  --ease-calm: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur-base: 280ms;
}


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

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keep in-page anchors clear of the sticky header */
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-ivory);
  color: var(--color-olive);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

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

a {
  color: var(--color-olive);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-calm);
}

a:hover {
  color: var(--color-olive-muted);
}

button {
  font: inherit;
  color: inherit;
}

address {
  font-style: normal;
}

::selection {
  background: #c9d2c0;
  color: #171d16;
}

/* Visible, on-brand focus ring for keyboard users only */
:focus-visible {
  outline: 2px solid var(--color-brass);
  outline-offset: 3px;
}


/* ==========================================================================
   4. Layout helpers
   ========================================================================== */

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

.section {
  padding-block: var(--section-space);
}

/* Heading row with an optional action aligned to the right */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 72px);
}


/* ==========================================================================
   5. Typography
   ========================================================================== */

.eyebrow {
  display: block;
  font-size: 0.6875rem; /* 11px */
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-olive-muted);
}

.heading-1,
.heading-2,
.heading-display {
  font-family: var(--font-display);
  font-weight: 300;
  text-wrap: balance;
}

.heading-1 em,
.heading-2 em,
.heading-display em {
  font-style: italic;
}

.heading-1 {
  margin-top: 18px;
  font-size: clamp(3.25rem, 7.4vw, 7.5rem);
  line-height: 0.96;
  letter-spacing: -0.015em;
  max-width: 900px;
}

.heading-1--page {
  font-size: clamp(2.75rem, 6vw, 6rem);
}

.heading-2 {
  margin-top: 16px;
  font-size: clamp(2.5rem, 4.4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.heading-display {
  margin-top: 20px;
  max-width: 900px;
  font-size: clamp(3.25rem, 7.4vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.1875rem; /* 19px */
  font-weight: 300;
  line-height: 1.6;
}

.body-large {
  margin-top: 28px;
  max-width: 540px;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
}


/* ==========================================================================
   6. Components
   ========================================================================== */

/* --- 6.1 Icon -------------------------------------------------------------
   Inline SVG referencing the sprite in /assets/icons/sprite.svg.
   Inherits colour from the surrounding text.                               */

.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
}

/* --- 6.2 Button -----------------------------------------------------------
   Variants: --soft (primary CTA), --secondary (outline), --link (text).
   Sizes:    --s, default (m), --l.                                         */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--control-h-m);
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--color-forest);
  font-family: var(--font-body);
  font-size: 0.8125rem; /* 13px */
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease-calm),
    border-color var(--dur-fast) var(--ease-calm),
    color var(--dur-fast) var(--ease-calm);
}

.btn:active {
  transform: translateY(1px);
}

.btn .icon {
  transition: transform var(--dur-base) var(--ease-calm);
}

.btn:hover .icon--nudge {
  transform: translateX(3px);
}

.btn--s {
  height: var(--control-h-s);
  padding: 0 16px;
  font-size: 0.75rem;
}

.btn--l {
  height: var(--control-h-l);
  padding: 0 32px;
}

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

.btn--soft {
  background: var(--color-lime);
  color: var(--color-olive);
}

.btn--soft:hover {
  background: var(--color-lime-hover);
  color: var(--color-olive);
}

.btn--secondary {
  border-color: var(--color-moss);
  color: var(--color-forest);
}

.btn--secondary:hover {
  background: var(--color-quiet-hover);
  color: var(--color-forest);
}

.btn--link {
  height: auto;
  padding: 4px 0;
  border-width: 0 0 1px;
  border-bottom-color: var(--color-lime-hover);
  color: var(--color-moss);
}

.btn--link:hover {
  border-bottom-color: currentColor;
  color: var(--color-moss);
}

/* Group of buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.actions--center {
  justify-content: center;
}

.actions--flush {
  margin-top: 0;
}

/* --- 6.3 Photo ------------------------------------------------------------
   Wrapper with a cream placeholder colour while the image loads.
   The image covers the box; focal point is set per image via
   the object-position utilities (.focus-*) in section 10.                 */

.photo {
  position: relative;
  overflow: hidden;
  background: var(--color-cream);
}

.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.8s var(--ease-out-soft);
}

.photo.is-visible img,
.photo--static img {
  transform: none;
}

/* --- 6.4 Reveal-on-scroll -------------------------------------------------
   Only hidden when scripting is available, so content is never lost if JS
   is disabled. A failsafe animation reveals everything after 4s in case
   the script fails to load.                                                */

.reveal {
  transition:
    opacity 1s var(--ease-calm),
    transform 1s var(--ease-calm);
}

@media (scripting: enabled) {
  .reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(16px);
    animation: reveal-failsafe 0.01s 4s forwards;
  }
}

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


/* ==========================================================================
   7. Site header & navigation
   ========================================================================== */

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--color-olive);
  color: var(--color-ivory);
  font-size: 0.875rem;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--dur-base) var(--ease-calm);
}

.skip-link:focus {
  transform: none;
  color: var(--color-ivory);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--color-line);
  background: rgb(247 244 236 / 90%);
  backdrop-filter: saturate(1.1) blur(14px);
  -webkit-backdrop-filter: saturate(1.1) blur(14px);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 36px;
  height: var(--header-height);
}

/* Wordmark — centred absolutely so both nav groups can flow around it */
.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transform: translate(-50%, -50%);
}

.logo__word {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--color-olive);
}

.logo__sub {
  margin-top: 3px;
  font-size: 0.5rem;
  letter-spacing: 0.36em;
  color: var(--color-olive-muted);
}

/* Primary navigation (desktop) */
.nav {
  flex: 1;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 36px;
}

/* Items after the logo are pushed to the right-hand side */
.nav__item--push {
  margin-left: auto;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--color-olive);
  transition: border-color 0.4s var(--ease-calm);
}

.nav__link:hover {
  border-color: var(--color-sage);
  color: var(--color-olive);
}

.nav__link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--color-lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav__chevron {
  width: 16px;
  height: 8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Dropdown — opens on hover and on keyboard focus (:focus-within) */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

/* Invisible bridge so the pointer can travel from link to menu */
.dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 28px;
}

.dropdown__menu {
  position: absolute;
  top: calc(100% + 28px);
  left: -24px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  padding: 12px 24px 16px;
  border: 1px solid var(--color-line);
  border-radius: 0 0 24px 24px;
  background: var(--color-ivory);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.5s var(--ease-calm),
    transform 0.5s var(--ease-calm),
    visibility 0.5s;
}

.dropdown:hover .dropdown__menu,
.dropdown:focus-within .dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown__menu .nav__link {
  display: flex;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
}

.dropdown__menu li:last-child .nav__link {
  border-bottom: 0;
  padding-top: 16px;
  color: var(--color-olive-muted);
}

/* Mobile menu toggle (hidden on desktop) */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-forest);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-calm);
}

.menu-toggle:hover {
  background: var(--color-quiet-hover);
}

.menu-toggle .icon {
  width: 20px;
  height: 20px;
}

.menu-toggle__close {
  display: none;
}

/* Swap the burger for an "x" while the popover menu is open */
.site-header:has(.mobile-nav:popover-open) .menu-toggle__open {
  display: none;
}

.site-header:has(.mobile-nav:popover-open) .menu-toggle__close {
  display: block;
}

/* Mobile drawer — native Popover API (light-dismiss + Esc for free) */
.mobile-nav {
  position: fixed;
  inset: var(--header-height) 0 auto;
  width: 100%;
  max-height: calc(100dvh - var(--header-height));
  margin: 0;
  padding: 8px var(--gutter) 24px;
  overflow-y: auto;
  border: 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  background: var(--color-ivory);
  color: var(--color-olive);
}

.mobile-nav::backdrop {
  background: rgb(23 29 22 / 25%);
}

.mobile-nav__link,
.mobile-nav summary {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-decoration: none;
  text-transform: uppercase;
  color: var(--color-olive);
  cursor: pointer;
}

.mobile-nav summary {
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary::after {
  content: "+";
}

.mobile-nav details[open] summary::after {
  content: "–";
}

.mobile-nav__link--sub {
  padding-left: 16px;
  font-size: 0.875rem;
  color: var(--color-olive-muted);
}

.mobile-nav .btn {
  margin-top: 20px;
}

/* Fixed booking bar at the bottom of small screens */
.booking-bar {
  display: none;
}


/* ==========================================================================
   8. Page sections
   ========================================================================== */

/* --- 8.1 Hero (full-bleed photo with copy at the bottom) ----------------- */

.hero {
  position: relative;
  height: min(92vh, 900px);
  min-height: 560px;
  overflow: hidden;
  background: var(--color-cream);
  color: var(--color-ivory);
}

.hero--page {
  height: min(68vh, 640px);
  min-height: 420px;
}

.hero > .photo {
  position: absolute;
  inset: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--shade-hero);
  pointer-events: none;
}

.hero__content {
  position: absolute;
  right: 0;
  bottom: clamp(40px, 6vw, 88px);
  left: 0;
  z-index: 1;
}

.hero .eyebrow {
  color: var(--color-ivory);
}

.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 28px;
}

.hero__row .lead {
  max-width: 460px;
}

.hero__lead {
  max-width: 520px;
  margin-top: 20px;
}

/* --- 8.2 Statement (centred intro text) ---------------------------------- */

.statement {
  padding-block: clamp(96px, 12vw, 176px);
  text-align: center;
}

.statement .heading-2 {
  max-width: 820px;
  margin-inline: auto;
}

.statement p {
  max-width: 600px;
  margin: 28px auto 0;
  color: var(--color-olive-muted);
  font-size: 1.1875rem;
  font-weight: 300;
  line-height: 1.7;
}

.statement__rule {
  width: 1px;
  height: 64px;
  margin: 0 auto 40px;
  background: var(--color-sage);
}

/* --- 8.3 Split (photo + copy, 50/50) ------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 640px;
  background: var(--color-cream);
}

.split--ivory {
  background: var(--color-ivory);
}

/* Photo on the right instead of the left */
.split--reverse > .photo {
  order: 2;
}

.split > .photo {
  min-height: 520px;
}

.split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 7vw, 120px);
}

/* Key facts below the copy */
.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--color-line);
}

/* <dt> (label) comes first in the markup for semantics,
   but the value is shown on top visually. */
.facts__item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.facts__value {
  font-family: var(--font-display);
  font-size: 1.625rem;
  line-height: 1.15;
}

.facts__label {
  color: var(--color-olive-muted);
  font-size: 0.8125rem;
}

/* --- 8.4 Offer (treatment cards with arched tops) ------------------------ */

.offer {
  padding-block: var(--section-space);
}

.offer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5.4;
  overflow: hidden;
  border-radius: 200px 200px 0 0;
  background: var(--color-cream);
  color: var(--color-ivory);
  text-decoration: none;
}

.card:hover,
.card:focus-visible {
  color: var(--color-ivory);
}

.card > .photo {
  position: absolute;
  inset: 0;
}

.card:hover .photo img {
  transform: scale(1.03);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--shade-card);
}

.card__body {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card__number {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
}

.card__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  font-weight: 300;
  line-height: 1.05;
}

/* Description slides in on hover / focus */
.card__text {
  max-height: 0;
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.5;
  opacity: 0;
  transition:
    max-height 0.8s var(--ease-calm),
    opacity 0.8s var(--ease-calm);
}

.card:hover .card__text,
.card:focus-visible .card__text {
  max-height: 80px;
  opacity: 1;
}

.card__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgb(247 244 236 / 40%);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --- 8.5 Gallery (atmosphere) -------------------------------------------- */

.gallery {
  padding-block: var(--section-space);
  border-radius: var(--radius-section) var(--radius-section) 0 0;
  background: var(--color-cream);
}

.gallery--flat {
  border-radius: 0;
}

.gallery__note {
  max-width: 380px;
  color: var(--color-olive-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.gallery__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 16px;
}

.gallery__item {
  min-height: 312px;
}

.gallery__item--large {
  grid-row: span 2;
  min-height: 640px;
}

/* A lone final image in the grid spans the full width */
.gallery__item--wide {
  grid-column: 1 / -1;
  min-height: 420px;
}

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

.reviews {
  padding-block: var(--section-space);
  background: var(--color-lime-pale);
}

.reviews__score {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.reviews__number {
  font-family: var(--font-display);
  font-size: clamp(4rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 0.9;
}

.reviews__count {
  color: var(--color-olive-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.reviews__footer {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.review {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(28px, 3vw, 44px);
  border-radius: 28px;
  background: var(--color-ivory);
}

/* Featured review takes the left two columns, full height */
.review--featured {
  grid-column: span 2;
  grid-row: span 3;
}

.review__stars {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
}

.review blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.9vw, 1.75rem);
  font-weight: 300;
  line-height: 1.3;
}

.review--featured blockquote {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.2;
}

.review figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
  font-size: 0.875rem;
}

.review__author {
  font-weight: 500;
}

.review__service {
  color: var(--color-olive-muted);
}

/* --- 8.7 CTA band -------------------------------------------------------- */

.cta-band {
  padding-block: clamp(120px, 13vw, 200px);
}

.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Small decorative arch filled with a close-up of candle light */
.cta-band__arch {
  width: 72px;
  height: 96px;
  margin-bottom: 36px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-arch);
  background-image: url("/assets/img/candle-480.webp");
  background-position: 16% 82%;
  background-size: 1400%;
}

/* --- 8.8 Visit ----------------------------------------------------------- */

.visit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.visit > .photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-arch);
}

.details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 40px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--color-line);
  font-size: 1rem;
  font-style: normal;
  line-height: 1.6;
}

.details dt {
  padding-top: 4px;
  color: var(--color-olive-muted);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

/* --- 8.9 Map ------------------------------------------------------------- */

.map {
  position: relative;
  padding-bottom: clamp(72px, 9vw, 128px);
}

.map iframe {
  width: 100%;
  height: clamp(340px, 40vw, 520px);
  border: 0;
  background: var(--color-cream);
  /* Desaturate Google's colours so the map sits in the palette */
  filter: saturate(0.55) sepia(0.12) contrast(0.95);
}

.map__card {
  position: absolute;
  bottom: calc(clamp(72px, 9vw, 128px) + 32px);
  left: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: min(320px, calc(100% - 64px));
  padding: 20px 24px;
  background: var(--color-ivory);
  color: var(--color-olive);
  font-size: 0.875rem;
  text-decoration: none;
}

.map__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
}

.map__address {
  color: var(--color-olive-muted);
}

.map__go {
  padding-top: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.map__card:hover .map__go {
  text-decoration: underline;
}

/* --- 8.10 Error page ----------------------------------------------------- */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding-block: var(--section-space);
  text-align: center;
}


/* ==========================================================================
   9. Site footer
   ========================================================================== */

.site-footer {
  background: var(--color-olive);
  color: var(--color-ivory);
}

.site-footer a {
  color: var(--color-ivory);
  text-decoration: none;
  transition: color 0.4s var(--ease-calm);
}

.site-footer a:hover {
  color: var(--color-lime);
}

.site-footer .btn--soft,
.site-footer .btn--soft:hover {
  color: var(--color-olive);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding-block: 96px 72px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.site-footer__word {
  font-family: var(--font-display);
  font-size: 5.25rem;
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: 0.03em;
}

.site-footer__tagline {
  margin-bottom: 8px;
  color: #d3d8cb;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--color-footer-text);
  font-size: 0.9375rem;
  font-style: normal;
}

.site-footer__col .eyebrow {
  margin-bottom: 8px;
  color: var(--color-lime);
}

.site-footer__base {
  display: flex;
  justify-content: space-between;
  padding-block: 24px 28px;
  border-top: 1px solid var(--color-line-inverse);
  color: var(--color-footer-muted);
  font-size: 0.75rem;
}


/* ==========================================================================
   10. Utilities
   ========================================================================== */

/* Visually hidden but available to screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Focal points for cropped photos (object-position) */
.focus-center { object-position: center; }
.focus-40 { object-position: center 40%; }
.focus-45 { object-position: center 45%; }
.focus-50 { object-position: center 50%; }
.focus-55 { object-position: center 55%; }
.focus-60 { object-position: center 60%; }
.focus-right { object-position: 55% 50%; }


/* ==========================================================================
   11. Responsive overrides
   ========================================================================== */

@media (max-width: 1100px) {
  .site-header__inner,
  .nav__list {
    gap: 22px;
  }
}

@media (max-width: 900px) {
  .split,
  .visit {
    grid-template-columns: 1fr;
  }

  .split--reverse > .photo {
    order: 0;
  }

  .split > .photo {
    min-height: 420px;
  }

  .split__content {
    padding: 56px var(--gutter);
  }

  /* Cards become a horizontal swipe carousel */
  .offer__grid {
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .card {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .card__text {
    max-height: 80px;
    opacity: 1;
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery__item {
    min-height: 220px;
  }

  .gallery__item--large {
    grid-column: span 2;
    grid-row: auto;
    min-height: 420px;
  }

  .gallery__item--wide {
    min-height: 300px;
  }

  .reviews__grid {
    grid-template-columns: 1fr;
  }

  .review--featured {
    grid-column: auto;
    grid-row: auto;
  }

  .hero {
    height: 86vh;
  }

  .hero__row .lead,
  .hero__lead {
    font-size: 1.0625rem;
  }

  .map iframe {
    height: 380px;
  }

  .map__card {
    bottom: calc(clamp(72px, 9vw, 128px) + 20px);
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 68px;
    --radius-section: 32px;
  }

  .nav,
  .site-header__cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .logo__word {
    font-size: 1.875rem;
  }

  /* Leave room for the fixed booking bar */
  body {
    padding-bottom: 80px;
  }

  .booking-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: block;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--color-line);
    background: rgb(247 244 236 / 94%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .actions > .btn {
    flex: 1 1 auto;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cta-band {
    padding-block: 112px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
    padding-top: 72px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__word {
    font-size: 4rem;
  }

  .site-footer__base {
    flex-direction: column;
    gap: 6px;
  }
}


/* ==========================================================================
   12. Motion & print preferences
   ========================================================================== */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }

  .photo img {
    transform: none;
  }
}

@media print {
  .site-header,
  .booking-bar,
  .map,
  .skip-link {
    display: none;
  }

  .hero {
    height: auto;
    min-height: 0;
    color: var(--color-olive);
  }

  .hero__content {
    position: static;
    padding-block: 24px;
  }

  .hero > .photo,
  .hero::after {
    display: none;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
