/* ===========================================================================
   Tehvandi Villa — Artexo-inspired theme
   BEM, rem-based, design-token driven. No raw px for sizing/spacing/type.
   Palette + type scale distilled from the Artexo template (Hanken Grotesk,
   warm cream + terracotta + deep brown), rebuilt clean.
   =========================================================================== */

/* ---- Self-hosted Hanken Grotesk (variable 400–700, latin + latin-ext) ----
   Removes the render-blocking Google Fonts CSS + third-party font chain. */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/hanken-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: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/hanken-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* Color — artexo monochrome scheme: near-black ink, warm-grey accent,
     off-white surfaces, near-black pill buttons. */
  --c-bg:            #ffffff;
  --c-bg-alt:        #f6f5f3;
  --c-surface:       #ffffff;
  --c-accent:        #8a8178;   /* eyebrow + small labels (warm grey) */
  --c-accent-soft:   #b4aba2;   /* emphasized heading word (faded) */
  --c-btn:           #14151a;   /* primary pill */
  --c-btn-hover:     #2c2e36;
  --c-ink:           #33312e;
  --c-heading:       #0c0e17;
  --c-muted:         #6f6b66;
  --c-line:          rgba(12, 14, 23, 0.12);
  --c-dark:          #0d2c15;
  --c-dark-alt:      #0a2210;
  --c-on-dark:       #f1f0ee;
  --c-on-dark-muted: rgba(241, 240, 238, 0.60);

  /* Radius */
  /* matches Artexo's radius scale (sm .2 / md .4 / lg .8 / xl 1.2 / 2xl 1.6) */
  --r-sm:   0.4rem;
  --r-md:   0.8rem;
  --r-lg:   1.2rem;
  --r-xl:   1.6rem;
  --r-pill: 62.5rem;

  /* Spacing scale */
  --s-1: 0.4rem;
  --s-2: 0.8rem;
  --s-3: 1.2rem;
  --s-4: 1.6rem;
  --s-5: 2.4rem;
  --s-6: 3.2rem;
  --s-7: 4.8rem;
  --s-8: 6.4rem;
  --s-section: clamp(4rem, 8vw, 8rem);

  /* Type scale (fluid) */
  --fs-eyebrow: 0.8125rem;
  --fs-sm:      0.9375rem;
  --fs-body:    1.0625rem;
  --fs-lg:      clamp(1.15rem, 1.4vw, 1.3rem);
  --fs-h3:      clamp(1.35rem, 2vw, 1.75rem);
  --fs-h2:      clamp(2.1rem, 4.2vw, 3.4rem);
  --fs-h1:      clamp(2.8rem, 6.5vw, 5.4rem);
  --fs-stat:    clamp(2.6rem, 4.5vw, 3.8rem);

  /* Layout */
  --container: 82.5rem;
  --gutter:    clamp(1.25rem, 4vw, 2.5rem);

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

/* === EXPERIMENT: brown buttons + button icons ============================
   Trying #76695F on the primary pill buttons and the arrow-circle icons.
   Headings / body ink left at their original near-black values.
   REVERT = delete this whole block (original tokens above untouched).
   ========================================================================= */
:root {
  --c-btn:       #76695f;   /* was #14151a */
  --c-btn-hover: #8a7c70;   /* was #2c2e36 (lighter tint, keeps hover-lift) */
}
/* white-variant buttons: arrow circle was var(--c-heading) near-black.
   :root prefix lifts specificity above the later original rule. */
:root .btn--light .btn__circle,
:root .btn--on-dark .btn__circle { background: #76695f; }
/* === /EXPERIMENT ========================================================= */

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; }

/* Lenis smooth scroll (JS-driven; native fallback when disabled) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-wrap: pretty; /* no orphan words anywhere (inherited site-wide) */
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.1;
  color: var(--c-heading);
  letter-spacing: -0.015em;
  text-wrap: balance; /* even line distribution — never a lone trailing word */
}

:focus-visible { outline: 0.18rem solid var(--c-heading); outline-offset: 0.2rem; }

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

.section { padding-block: var(--s-section); }
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section--alt { background: var(--c-bg-alt); }
/* white section with a hairline top rule — used after the grey gallery on
   room singles so the "other rooms" navigator reads as a distinct block */
.section--divide { background: var(--c-bg); border-top: 0.1rem solid var(--c-line); }

.section__head {
  max-width: 46rem;
  margin-bottom: var(--s-7);
}
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--flush { margin-bottom: 0; }
.section__head--split {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.section__head--split .heading { margin: 0; }
.section__head--split .eyebrow { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 0.1rem;
  background: currentColor;
}
.eyebrow--center { justify-content: center; }
.eyebrow--on-dark { color: rgba(255, 255, 255, 0.55); }

.heading { font-size: var(--fs-h2); }
.heading__accent { color: var(--c-accent-soft); }
.lead {
  font-size: var(--fs-lg);
  color: var(--c-muted);
  margin-top: var(--s-4);
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.95rem 1.9rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-0.08rem); }
.btn--primary { background: var(--c-btn); color: #fff; }
.btn--primary:hover { background: var(--c-btn-hover); }
.btn--ghost { background: transparent; color: var(--c-heading); border: 0.1rem solid var(--c-line); }
.btn--ghost:hover { border-color: var(--c-heading); }
.btn--light { background: #fff; color: var(--c-heading); }
.btn--on-dark { background: #fff; color: var(--c-heading); }
.btn__arrow { font-size: 1.1em; line-height: 1; }
.btn--icon { padding-right: 1.45rem; }
.btn__circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.85em;
  line-height: 1;
}
.btn--primary .btn__circle { background: rgba(255, 255, 255, 0.22); }
.btn--light .btn__circle,
.btn--on-dark .btn__circle { background: var(--c-heading); color: #fff; }

/* ---- Site header --------------------------------------------------------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-block: var(--s-5);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
/* fluid: 4.2rem @ 360px viewport → 5.6rem @ 1440px, linear between */
.site-header__logo img {
  height: clamp(4.2rem, calc(4.2rem + 1.4 * ((100vw - 22.5rem) / 67.5)), 5.6rem);
  width: auto;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); }
.nav__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-on-dark);
  opacity: 0.85;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__link:hover { opacity: 1; color: #fff; }

.site-header__actions { display: flex; align-items: center; gap: var(--s-4); }

.nav-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  position: relative;
  color: var(--c-on-dark);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  width: 1.8rem;
  height: 0.15rem;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before { top: -0.6rem; }
.nav-toggle span::after { top: 0.6rem; }

/* header variant for inner pages (no hero behind it) */
.site-header--solid {
  position: sticky;
  background: var(--c-dark);
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(40rem, 100vh, 64rem);
  display: flex;
  align-items: flex-end;
  color: var(--c-on-dark);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* same brand-green wash as the room page-hero (--c-dark #0d2c15) */
  background: linear-gradient(180deg, rgba(13,44,21,0.55) 0%, rgba(13,44,21,0.40) 38%, rgba(13,44,21,0.80) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(3rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
}
.hero__title {
  font-size: clamp(3.2rem, 10vw, 9rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
}
.hero__aside { padding-bottom: 0.5rem; }
.hero__sub {
  font-size: var(--fs-body);
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  max-width: 26rem;
}
.hero__actions { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* compact hero for inner pages */
.page-hero {
  position: relative;
  background: var(--c-dark);
  color: var(--c-on-dark);
  padding-top: clamp(8rem, 14vw, 11rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; opacity: 0.32; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__inner { position: relative; z-index: 2; max-width: 48rem; }
.page-hero__title { font-size: clamp(2.4rem, 5vw, 4rem); color: #fff; }
.page-hero__sub { margin-top: var(--s-4); color: rgba(255,255,255,0.78); font-size: var(--fs-lg); }
.page-hero .eyebrow { color: rgba(255, 255, 255, 0.55); }

/* ---- Story / Majutus ----------------------------------------------------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.story__intro .heading { margin-top: var(--s-2); }

/* Artexo-style floating decorative pair under the heading (left column) */
.story__floats {
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  min-height: 22rem;
}
.story__float {
  position: absolute;
  overflow: hidden;
  border-radius: var(--r-md);
  box-shadow: 0 1rem 2.6rem rgba(13, 44, 21, 0.16);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.story__float img { width: 100%; height: 100%; object-fit: cover; }
.story__float--a { width: 11rem; height: 11rem; top: 0; left: 4%; z-index: 1; }
.story__float--b { width: 15rem; height: 18rem; top: 4.5rem; left: 32%; }
.story__float:hover {
  transform: scale(1.07);
  box-shadow: 0 1.8rem 3.6rem rgba(13, 44, 21, 0.24);
  z-index: 3;
}
.story__text { color: var(--c-muted); font-size: var(--fs-body); max-width: 34rem; }
.story__media { margin-top: var(--s-6); }
.story__media img {
  width: 100%;
  border-radius: var(--r-lg);
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
}
.stat__num {
  font-size: var(--fs-stat);
  font-weight: 600;
  color: var(--c-heading);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat__label {
  margin-top: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

/* ---- Rooms grid ---------------------------------------------------------- */
.rooms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.4rem);
}
.room-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 0.1rem solid var(--c-line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.room-card:hover { transform: translateY(-0.15rem); box-shadow: 0 0.8rem 1.8rem rgba(13,44,21,0.10); }
.room-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.room-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.room-card:hover .room-card__media img { transform: scale(1.03); }
.room-card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.room-card__title { font-size: var(--fs-h3); }
.room-card__meta { font-size: var(--fs-sm); color: var(--c-accent); font-weight: 600; }
.room-card__text { font-size: var(--fs-sm); color: var(--c-muted); flex: 1; }
.room-card__more {
  font-size: var(--fs-sm); font-weight: 600; color: var(--c-heading);
  display: inline-flex; align-items: center; gap: var(--s-2); margin-top: var(--s-2);
}
.room-card__link { position: absolute; inset: 0; z-index: 1; }

.rooms-note {
  margin-top: var(--s-6);
  padding: var(--s-5);
  background: var(--c-bg-alt);
  border: 0.1rem solid var(--c-line);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--c-muted);
  text-align: center;
}
.section__cta { margin-top: var(--s-7); display: flex; justify-content: center; }

/* ---- Floors / Maja (numbered) ------------------------------------------- */
.floors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.4rem);
}
.floor {
  padding: var(--s-6) var(--s-5);
  background: var(--c-surface);
  border: 0.1rem solid var(--c-line);
  border-radius: var(--r-md);
}
.floor__step {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.floor__num {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 600;
  color: rgba(42,28,20,0.12);
  line-height: 1;
  margin-bottom: var(--s-4);
}
.floor__title { font-size: var(--fs-h3); margin-bottom: var(--s-3); }
.floor__text { font-size: var(--fs-sm); color: var(--c-muted); }

/* ---- Accordion (Mugavused) — native <details>, no JS -------------------- */
.accordion { margin-top: var(--s-7); }
.accordion__item { border-top: 0.1rem solid var(--c-line); }
.accordion__item:last-child { border-bottom: 0.1rem solid var(--c-line); }
.accordion__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: clamp(1.4rem, 2.4vw, 2rem) 0;
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--c-heading);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}
.accordion__head::-webkit-details-marker { display: none; }
.accordion__head:hover { color: var(--c-muted); }
.accordion__icon {
  position: relative;
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 0.13rem;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.accordion__icon::after { transform: translateY(-50%) rotate(90deg); }
.accordion__icon::before { transform: translateY(-50%); }
.accordion__item[open] .accordion__icon::after { transform: translateY(-50%) rotate(0); opacity: 0; }
.accordion__item[open] .accordion__head { color: var(--c-heading); }

/* smooth open/close — JS animates max-height; CSS keeps a clean transition */
.accordion__panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease);
}
.accordion__item[open] .accordion__panel { max-height: none; opacity: 1; }
.accordion__inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding: 0 0 var(--s-7);
}
.accordion__text { color: var(--c-muted); font-size: var(--fs-lg); line-height: 1.7; }
.accordion__media { overflow: hidden; border-radius: var(--r-md); }
.accordion__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
  .accordion__panel { transition: none; }
}

/* ---- Gallery teaser + full grid ----------------------------------------- */
.gallery-teaser {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 14rem;
  gap: var(--s-3);
}
.gallery-teaser__item { overflow: hidden; border-radius: var(--r-md); }
.gallery-teaser__item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-teaser__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-teaser__item:hover img { transform: scale(1.03); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
.gallery-grid__item {
  overflow: hidden;
  border-radius: var(--r-md);
  aspect-ratio: 3 / 2;
}
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-grid__item:hover img { transform: scale(1.03); }

/* ---- Room single --------------------------------------------------------- */
.room-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  max-width: 40rem;
  margin-top: var(--s-6);
}
.room-stat {
  background: rgba(255,255,255,0.08);
  border: 0.1rem solid rgba(255,255,255,0.16);
  border-radius: var(--r-md);
  padding: var(--s-4);
}
.room-stat__num { font-size: 1.5rem; font-weight: 600; color: #fff; }
.room-stat__label { font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.6); margin-top: var(--s-1); }

.room-detail__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.room-detail__intro { font-size: var(--fs-lg); color: var(--c-muted); }
.amenity-list { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.amenity-list li {
  display: flex; align-items: flex-start; gap: var(--s-3);
  font-size: var(--fs-lg);
  padding-bottom: var(--s-3);
  border-bottom: 0.1rem solid var(--c-line);
}
.amenity-list li::before { content: "✓"; color: var(--c-heading); font-weight: 700; }
.room-detail__card {
  background: var(--c-bg-alt);
  border: 0.1rem solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--s-6);
}
.room-detail__card h3 { font-size: var(--fs-h3); margin-bottom: var(--s-4); }
.room-detail__card dl { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3) var(--s-4); font-size: var(--fs-body); }
.room-detail__card dt { color: var(--c-muted); }
.room-detail__card dd { font-weight: 600; text-align: right; }

/* ---- CTA (dark) ---------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--c-dark);
  color: var(--c-on-dark);
  text-align: center;
}
.cta__media { position: absolute; inset: 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
/* much darker wash than the hero — same brand green (--c-dark #0d2c15),
   near-solid so the white CTA copy stays crisp over the photo */
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,44,21,0.95) 0%, rgba(13,44,21,0.90) 50%, rgba(13,44,21,0.96) 100%);
}
.cta__inner { position: relative; z-index: 2; max-width: 44rem; margin-inline: auto; }
.cta__title { font-size: clamp(2rem, 4.5vw, 3.4rem); color: #fff; }
.cta__text { margin-top: var(--s-4); color: var(--c-on-dark-muted); }
.cta__actions { margin-top: var(--s-6); display: flex; justify-content: center; gap: var(--s-4); flex-wrap: wrap; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--c-dark);
  color: var(--c-on-dark);
  padding-block: var(--s-8) var(--s-6);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: var(--s-7);
  border-bottom: 0.1rem solid rgba(255,255,255,0.12);
}
.site-footer__logo { display: inline-block; margin-bottom: var(--s-4); }
.site-footer__brand img { height: 5.4rem; object-fit: contain; display: block; }
.site-footer__strap { color: var(--c-on-dark-muted); font-size: var(--fs-sm); max-width: 24rem; }
.site-footer__col-title {
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--s-4);
}
.site-footer__col ul { display: grid; gap: var(--s-3); }
.site-footer__col a, .site-footer__col li {
  font-size: var(--fs-sm);
  color: var(--c-on-dark-muted);
  transition: color 0.2s var(--ease);
}
.site-footer__col a:hover { color: #fff; }
.site-footer__bottom {
  padding-top: var(--s-5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--c-on-dark-muted);
}

/* ---- Prose (generic pages, markdown body) -------------------------------- */
.prose { max-width: 44rem; margin-inline: auto; }
.prose h2 { font-size: var(--fs-h3); margin: var(--s-6) 0 var(--s-3); }
.prose p { margin-bottom: var(--s-4); color: var(--c-ink); }
.prose a { color: var(--c-accent); text-decoration: underline; }
.prose ul { list-style: disc; padding-left: 1.4rem; margin-bottom: var(--s-4); }
.prose img { border-radius: var(--r-md); margin-block: var(--s-5); }
.prose h3 { font-size: var(--fs-lg); margin: var(--s-5) 0 var(--s-2); color: var(--c-heading); }
.prose ul li { margin-bottom: var(--s-2); }
.prose ul li::marker { color: var(--c-accent); }
.prose > :first-child { margin-top: 0; }

/* ---- Article (SEO content pages) ---------------------------------------- */
.breadcrumb { border-bottom: 0.1rem solid var(--c-line); }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  list-style: none;
  padding-block: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.breadcrumb__list li { display: flex; align-items: center; gap: var(--s-2); }
.breadcrumb__list li + li::before { content: "›"; color: var(--c-line); }
.breadcrumb__list a { color: var(--c-muted); transition: color 0.2s var(--ease); }
.breadcrumb__list a:hover { color: var(--c-heading); }
.breadcrumb__list [aria-current="page"] { color: var(--c-heading); font-weight: 600; }

.article__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.article__body { max-width: 46rem; margin-inline: 0; }
.article__aside { position: sticky; top: var(--s-6); }

.callout {
  background: var(--c-dark);
  color: var(--c-on-dark);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  text-align: center;
}
.callout__title { font-size: var(--fs-h3); color: #fff; margin-bottom: var(--s-3); }
.callout__text { color: var(--c-on-dark-muted); font-size: var(--fs-sm); margin-bottom: var(--s-5); }
.callout .btn { width: 100%; justify-content: center; }
.callout__link {
  display: inline-block;
  margin-top: var(--s-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-on-dark);
  opacity: 0.78;
  transition: opacity 0.2s var(--ease);
}
.callout__link:hover { opacity: 1; }

.related__heading { font-size: var(--fs-h3); margin-bottom: var(--s-5); }
.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--s-3);
  list-style: none;
}
.related__item a {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  height: 100%;
  padding: var(--s-5);
  background: var(--c-surface);
  border: 0.1rem solid var(--c-line);
  border-radius: var(--r-lg);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.related__item a:hover { border-color: var(--c-heading); transform: translateY(-0.2rem); }
.related__name { font-weight: 600; color: var(--c-heading); }
.related__desc { font-size: var(--fs-sm); color: var(--c-muted); }

@media (max-width: 56rem) {
  .article__grid { grid-template-columns: 1fr; }
  .article__aside { position: static; }
}

/* ---- Reveal on scroll (subtle fade-up, Artexo-style) -------------------- */
/* .reveal is added by JS only — no-JS keeps everything visible. */
.reveal {
  opacity: 0;
  transform: translateY(1.6rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Lightbox ------------------------------------------------------------ */
.gallery-grid__item img,
.gallery-teaser__item img { cursor: zoom-in; }

.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 22, 12, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.lb[data-open="true"] { opacity: 1; visibility: visible; }
.lb__img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: var(--r-md);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.5);
  transform: scale(0.98);
  transition: transform 0.3s var(--ease);
}
.lb[data-open="true"] .lb__img { transform: scale(1); }
.lb__btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  transition: background-color 0.2s var(--ease);
}
.lb__btn:hover { background: rgba(255, 255, 255, 0.24); }
.lb__btn--close { top: 1.6rem; right: 1.6rem; }
.lb__btn--prev { left: 1.6rem; top: 50%; transform: translateY(-50%); }
.lb__btn--next { right: 1.6rem; top: 50%; transform: translateY(-50%); }
.lb__count {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-sm);
  letter-spacing: 0.05em;
}
body.lb-open { overflow: hidden; }
@media (max-width: 48rem) {
  .lb__btn--prev { left: 0.6rem; }
  .lb__btn--next { right: 0.6rem; }
}

/* ---- Asukoht (map behind text) ------------------------------------------ */
.asukoht {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(7rem, 14vw, 11rem);
  min-height: clamp(28rem, 46vw, 42rem);
  display: flex;
  align-items: center;
}
.asukoht__map { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.asukoht__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(0.95);
  opacity: 0.9;
}
/* radial scrim: page-bg wash, densest behind the text for legibility */
.asukoht::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.72) 42%,
    rgba(255, 255, 255, 0.42) 100%);
}
/* top/bottom feather so the map melts into neighbouring sections */
.asukoht::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    var(--c-bg) 0%, rgba(255, 255, 255, 0) 16%,
    rgba(255, 255, 255, 0) 84%, var(--c-bg) 100%);
}
.asukoht__inner { position: relative; z-index: 2; max-width: 46rem; margin-inline: auto; }
.asukoht__cta { margin-top: var(--s-5); display: flex; justify-content: center; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 64rem) {
  .hero__inner { grid-template-columns: 1fr; align-items: start; }
  .hero__aside { max-width: 30rem; }
  .story { grid-template-columns: 1fr; gap: var(--s-5); }
  .story__media img { aspect-ratio: 16 / 10; }
  /* floats become a clean static 2-up row on tablet/mobile (no overlap) */
  .story__floats {
    position: static;
    min-height: 0;
    margin-top: var(--s-5);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3);
  }
  .story__float { position: static; width: auto; height: auto; }
  .story__float img { aspect-ratio: 4 / 3; }
  .rooms, .floors { grid-template-columns: repeat(2, 1fr); }
  .section__head--split { grid-template-columns: 1fr; gap: var(--s-4); }
  .room-detail__grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 48rem) {
  .nav, .site-header__actions .btn { display: none; }
  .nav-toggle { display: block; }
  .site-header[data-open="true"] .nav {
    display: flex;
    position: absolute;
    inset: 100% var(--gutter) auto var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    /* solid-ish fallback when backdrop-filter is unsupported */
    background: rgba(13, 44, 21, 0.82);
    padding: var(--s-2);
    border-radius: var(--r-md);
    border: 0.1rem solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 1.4rem 3.2rem rgba(0, 0, 0, 0.35);
  }
  /* Apple-style frosted glass — subtle: translucent + blur + slight saturate */
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-header[data-open="true"] .nav {
      background: rgba(13, 44, 21, 0.55);
      -webkit-backdrop-filter: blur(16px) saturate(160%);
      backdrop-filter: blur(16px) saturate(160%);
    }
  }
  /* full-width tap rows: whole row is the touch target, not just the text */
  .site-header[data-open="true"] .nav__link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 3rem;
    padding: var(--s-3) var(--s-4);
    opacity: 1;
    transition: background-color 0.2s var(--ease);
  }
  .site-header[data-open="true"] .nav__link + .nav__link {
    border-top: 0.1rem solid rgba(255, 255, 255, 0.08);
  }
  .site-header[data-open="true"] .nav__link:active {
    background: rgba(255, 255, 255, 0.08);
  }
  .rooms, .floors, .gallery-teaser, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-teaser { grid-auto-rows: 16rem; }
  .gallery-teaser__item:first-child { grid-column: auto; grid-row: auto; }
  /* keep the 3 stats on one row on mobile, just tighter */
  .stats { grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
  .amenity { grid-template-columns: 1fr; }
  .amenity__media { aspect-ratio: 16 / 9; }
  .amenity__body { padding: var(--s-5); }
  .room-stats { grid-template-columns: 1fr; }
  .accordion__inner { grid-template-columns: 1fr; gap: var(--s-4); }
  .accordion__media { order: -1; }
  .site-footer__top { grid-template-columns: 1fr; }
}
