/* ==========================================================================
   Hotel Epavlis — design system
   --------------------------------------------------------------------------
   Concept: "where the mountain meets the sea". Olympus + the Thermaic Gulf.
   Palette is pulled from the assets themselves — the champagne of the
   wordmark, the teal throws in the deluxe rooms, the lit oak of the corridors.
   Type: EB Garamond (display) + Manrope (UI). Both carry Greek, Cyrillic and
   Latin-ext, so all six locales render in the same voice.
   ========================================================================== */

/* ---------- tokens ------------------------------------------------------ */
:root {
  --shell:      #FBF8F3;
  --shell-2:    #F3ECE0;
  --shell-3:    #EBE1D1;
  --sand:       #E8DCC8;
  --sand-deep:  #D3BE9C;

  --ink:        #23201C;
  --ink-2:      #5C554B;
  --ink-3:      #8A8175;

  --sea:        #0E3D43;
  --sea-deep:   #0A2F34;
  --sea-mid:    #1A5C64;
  --sea-pale:   #E4EDEC;

  --gold:       #B58B4E;
  --gold-soft:  #C9A76A;

  --line:       color-mix(in srgb, var(--ink) 12%, transparent);
  --line-soft:  color-mix(in srgb, var(--ink) 7%, transparent);

  --f-display: 'EB Garamond', 'Times New Roman', Georgia, serif;
  --f-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --maxw: 1400px;
  --section-y: clamp(4.5rem, 11vh, 8.5rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --radius: 2px;
  --shadow-lift: 0 2px 6px rgba(35,32,28,.05), 0 18px 45px -20px rgba(35,32,28,.28);
}

/* ---------- reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
body {
  margin: 0;
  background: var(--shell);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(1rem, .95rem + .18vw, 1.075rem);
  font-weight: 400;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, picture { display: block; max-width: 100%; }
img, svg, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--sea); color: var(--sand); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.012em;
  margin: 0;
  /* German compounds and long Greek words need help in narrow columns */
  hyphens: auto;
}
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
/* German compounds ("Familiengeführtes", "Hydromassage-Dusche") and long Greek
   words must not push a narrow phone column sideways */
p, li, dd, .lead, .prose, .amen__t, .chip { overflow-wrap: break-word; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--sea); color: var(--sand);
  padding: .85rem 1.4rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
}
.skip:focus { left: 0; }

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

/* ---------- layout primitives ------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 900px; }
.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--shell-2); }
.section--sea { background: var(--sea); color: var(--sand); }
.section--sea h1, .section--sea h2, .section--sea h3 { color: var(--sand); }

/* ---------- typography helpers ----------------------------------------- */
.eyebrow {
  display: flex; align-items: center; gap: .8rem;
  font-family: var(--f-body);
  font-size: .70rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 1.5rem;
}
.eyebrow::before {
  content: ''; width: clamp(1.5rem, 4vw, 3rem); height: 1px;
  background: var(--gold); flex: none;
}
.eyebrow--center { justify-content: center; }
.section--sea .eyebrow { color: var(--sand-deep); }

.display {
  font-size: clamp(2.35rem, 1.2rem + 4.6vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -.022em;
}
.h2 { font-size: clamp(1.9rem, 1.1rem + 2.9vw, 3.35rem); }
.h3 { font-size: clamp(1.4rem, 1rem + 1.5vw, 2.05rem); }
.lead {
  font-size: clamp(1.08rem, 1rem + .45vw, 1.32rem);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: var(--measure);
}
.section--sea .lead { color: color-mix(in srgb, var(--sand) 78%, transparent); }
.prose { max-width: var(--measure); color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }

.serif-accent { font-family: var(--f-display); font-style: italic; }

/* ---------- the horizon rule -------------------------------------------
   Signature divider: the line climbs like Olympus, then settles into the
   swell of the gulf. Reused as a section break throughout.              */
.horizon { display: block; width: min(360px, 60vw); margin-inline: auto; color: var(--gold); }
.horizon path { fill: none; stroke: currentColor; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.horizon--left { margin-inline: 0; }
.section--sea .horizon { color: var(--gold-soft); }

/* ---------- buttons ----------------------------------------------------- */
.btn {
  --btn-bg: var(--sea);
  --btn-fg: var(--sand);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1.02rem 2.1rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  border-radius: var(--radius);
  overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease);
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn:hover::after { transform: translateY(0); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: currentColor;
  border: 1px solid color-mix(in srgb, currentColor 38%, transparent);
}
.btn--ghost:hover { color: var(--sea); }
.btn--ghost::after { background: var(--sand); }
.btn--light { --btn-bg: var(--sand); --btn-fg: var(--sea-deep); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sea);
  padding-bottom: .3rem;
  border-bottom: 1px solid color-mix(in srgb, var(--sea) 28%, transparent);
  transition: gap .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.link-arrow svg { width: .95em; height: .95em; transition: transform .35s var(--ease); }
.link-arrow:hover { gap: .95rem; border-color: var(--gold); color: var(--gold); }
.section--sea .link-arrow { color: var(--sand); border-color: color-mix(in srgb, var(--sand) 32%, transparent); }
.section--sea .link-arrow:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

/* ---------- header ------------------------------------------------------ */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 90;
  transition: background .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.hdr__in {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: clamp(.9rem, 2vw, 1.5rem);
  transition: padding .5s var(--ease);
}
.hdr__logo img { width: clamp(132px, 15vw, 190px); transition: opacity .4s var(--ease); }
.hdr__logo .logo--ink { display: none; }

/* solid state, applied by JS once the hero is scrolled past */
.hdr.is-solid {
  background: color-mix(in srgb, var(--shell) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line-soft), 0 10px 30px -22px rgba(35,32,28,.45);
}
.hdr.is-solid .hdr__in { padding-block: clamp(.6rem, 1.4vw, .95rem); }
.hdr.is-solid .logo--sand { display: none; }
.hdr.is-solid .logo--ink { display: block; }
.hdr.is-hidden { transform: translateY(-100%); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav a {
  position: relative;
  font-size: .74rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--sand);
  padding-block: .4rem;
  transition: color .35s var(--ease);
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.hdr.is-solid .nav a { color: var(--ink); }
.hdr.is-solid .nav a:hover { color: var(--sea); }

.hdr__actions { display: flex; align-items: center; gap: clamp(.75rem, 1.6vw, 1.35rem); }

/* language switcher */
.lang { position: relative; }
.lang__btn {
  display: flex; align-items: center; gap: .45rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sand); padding: .5rem .2rem;
  transition: color .35s var(--ease);
}
.hdr.is-solid .lang__btn { color: var(--ink); }
.lang__btn svg { width: .7em; height: .7em; transition: transform .35s var(--ease); }
.lang.is-open .lang__btn svg { transform: rotate(180deg); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + .6rem); min-width: 172px;
  background: var(--shell); border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  padding: .4rem; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem .85rem; font-size: .85rem; color: var(--ink);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.lang__menu a:hover { background: var(--shell-3); }
.lang__menu a[aria-current="true"] { color: var(--gold); }
.lang__menu .code { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* burger + mobile drawer */
/* 30x22 glyph inside a 44x44 touch target (WCAG 2.5.5 / iOS HIG minimum) */
.burger {
  display: none; position: relative; z-index: 120;
  width: 44px; height: 44px; padding: 11px 7px;
  margin-right: -7px;
}
.burger span {
  position: absolute; left: 7px; width: 30px; height: 1.5px; background: var(--sand);
  transition: transform .4s var(--ease), opacity .3s var(--ease), background .35s var(--ease);
}
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 29px; }
.hdr.is-solid .burger span { background: var(--ink); }
.burger.is-active span { background: var(--sand); }
.burger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 110;
  background: var(--sea-deep); color: var(--sand);
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem var(--gutter) 3rem;
  clip-path: circle(0% at calc(100% - 3rem) 2.5rem);
  transition: clip-path .7s var(--ease-out);
  visibility: hidden;
}
.drawer.is-open { clip-path: circle(150% at calc(100% - 3rem) 2.5rem); visibility: visible; }
.drawer nav { display: flex; flex-direction: column; gap: .35rem; }
.drawer nav a {
  font-family: var(--f-display); font-size: clamp(1.9rem, 8vw, 2.9rem);
  line-height: 1.25; color: var(--sand);
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s var(--ease);
}
.drawer.is-open nav a { opacity: 1; transform: none; }
.drawer nav a:hover { color: var(--gold-soft); }
.drawer__foot { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(232,220,200,.18); }
.drawer__foot a { color: var(--sand); font-size: .95rem; }
.drawer__langs { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin-top: 1.1rem; }
.drawer__langs a { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; opacity: .72; }
.drawer__langs a[aria-current="true"] { opacity: 1; color: var(--gold-soft); }

@media (max-width: 940px) {
  .nav, .hdr__actions .lang, .hdr__actions .btn { display: none; }
  .burger { display: block; }
}

/* ---------- hero -------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;    /* fallback for browsers without svh */
  min-height: 100svh;   /* excludes mobile browser chrome */
  display: flex; align-items: flex-end;
  color: var(--sand);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media picture { width: 100%; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 26s var(--ease) infinite alternate; }
@keyframes kenburns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(-1.4%, -1.6%, 0); }
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(10,47,52,.90) 0%, rgba(10,47,52,.52) 32%, rgba(10,47,52,.16) 62%, rgba(10,47,52,.42) 100%);
}
.hero__in { padding-block: clamp(6rem, 16vh, 9rem) clamp(3rem, 8vh, 5rem); width: 100%; }
.hero__title { font-size: clamp(2.6rem, 1rem + 7.2vw, 6.4rem); line-height: .98; letter-spacing: -.026em; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span {
  display: block;
  transform: translateY(105%);
  animation: rise 1.15s var(--ease-out) forwards;
}
.hero__title .line:nth-child(2) > span { animation-delay: .13s; }
.hero__title .line:nth-child(3) > span { animation-delay: .26s; }
@keyframes rise { to { transform: translateY(0); } }
.hero__sub {
  margin-top: 1.6rem; max-width: 46ch;
  font-size: clamp(1rem, .95rem + .4vw, 1.22rem);
  color: color-mix(in srgb, var(--sand) 86%, transparent);
  opacity: 0; animation: fade .9s var(--ease) .55s forwards;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.3rem; opacity: 0; animation: fade .9s var(--ease) .72s forwards; }
@keyframes fade { to { opacity: 1; } }
.hero__eyebrow { color: var(--sand-deep); opacity: 0; animation: fade .9s var(--ease) .35s forwards; }
.hero__eyebrow::before { background: var(--gold-soft); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.6rem; translate: -50% 0; z-index: 2;
  display: grid; justify-items: center; gap: .6rem;
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  color: color-mix(in srgb, var(--sand) 62%, transparent);
}
.hero__scroll i { display: block; width: 1px; height: 44px; background: currentColor; transform-origin: top; animation: scrolline 2.4s var(--ease) infinite; }
@keyframes scrolline { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* facts bar under the hero */
.facts {
  background: var(--sea-deep); color: var(--sand);
  border-top: 1px solid rgba(232,220,200,.12);
}
.facts__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.facts__item {
  padding: clamp(1.6rem, 3.5vw, 2.5rem) clamp(.9rem, 2vw, 2rem);
  border-left: 1px solid rgba(232,220,200,.12);
  text-align: center;
}
.facts__item:first-child { border-left: 0; }
.facts__n { font-family: var(--f-display); font-size: clamp(1.7rem, 1rem + 2vw, 2.7rem); line-height: 1; color: var(--sand); }
.facts__l { margin-top: .55rem; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: color-mix(in srgb, var(--sand) 62%, transparent); }
@media (max-width: 780px) {
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .facts__item:nth-child(3) { border-left: 0; }
  .facts__item:nth-child(n+3) { border-top: 1px solid rgba(232,220,200,.12); }
}

/* ---------- editorial split -------------------------------------------- */
.split {
  display: grid; gap: clamp(2.2rem, 6vw, 5.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: 1.08fr .92fr; }
  .split--flip > .split__media { order: 2; }
}
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius); }

/* a second image tucked over the corner of the first */
.stack { position: relative; }
.stack__b {
  position: absolute; right: -5%; bottom: -8%; width: 44%;
  border: 8px solid var(--shell);
  box-shadow: var(--shadow-lift);
  border-radius: var(--radius);
}
.section--tint .stack__b { border-color: var(--shell-2); }
@media (max-width: 620px) { .stack__b { display: none; } }

/* thin outlined number used as a section marker */
.marker {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(3rem, 7vw, 5rem); line-height: .78;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 16%, transparent);
  margin-bottom: .5rem;
  user-select: none;
}
/* quieter inside a room row, where it sits directly above the room name */
.room .marker { font-size: clamp(2.1rem, 4.5vw, 3.2rem); margin-bottom: .35rem; }
.section--sea .marker { -webkit-text-stroke-color: color-mix(in srgb, var(--sand) 26%, transparent); }

/* ---------- the three words -------------------------------------------- */
.words { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 860px) { .words { grid-template-columns: repeat(3, 1fr); } }
.word { position: relative; padding-top: 2rem; border-top: 1px solid rgba(232,220,200,.22); }
.word__gr {
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 1.2rem + 2.6vw, 3.1rem);
  line-height: 1.05; color: var(--sand);
}
.word__tr {
  margin-top: .5rem; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-soft);
}
.word__d { margin-top: 1.1rem; color: color-mix(in srgb, var(--sand) 72%, transparent); font-size: .98rem; }

/* ---------- rooms ------------------------------------------------------- */
.room {
  display: grid; gap: clamp(1.6rem, 4vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line-soft);
}
.room:first-of-type { border-top: 0; }
@media (min-width: 900px) {
  .room { grid-template-columns: 1.05fr .95fr; }
  .room:nth-child(even) .room__media { order: 2; }
}
.room__media { position: relative; overflow: hidden; border-radius: var(--radius); }
.room__media img { width: 100%; transition: transform 1.1s var(--ease-out); }
.room:hover .room__media img { transform: scale(1.045); }
.room__badge {
  position: absolute; left: 1rem; top: 1rem;
  background: color-mix(in srgb, var(--shell) 90%, transparent);
  backdrop-filter: blur(8px);
  padding: .45rem .95rem;
  font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  color: var(--sea);
}
.room__meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  margin: 0 0 1.1rem; padding: 0; list-style: none;
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.room__meta li { display: flex; align-items: center; gap: .45rem; }
.room__meta svg { width: 1.05em; height: 1.05em; color: var(--gold); }
.room__tag {
  display: inline-block; margin-bottom: .9rem;
  font-family: var(--f-display); font-style: italic;
  font-size: 1.15rem; color: var(--gold);
}

.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.chip {
  font-size: .72rem; letter-spacing: .03em;
  padding: .42rem .85rem;
  background: var(--shell-2);
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  color: var(--ink-2);
}
.section--tint .chip { background: var(--shell); }

/* ---------- amenities grid --------------------------------------------- */
.amen {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.amen__i {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: clamp(1.3rem, 2.5vw, 1.9rem);
  background: var(--shell);
  transition: background .4s var(--ease);
}
.section--tint .amen { background: var(--line); border-color: var(--line); }
.section--tint .amen__i { background: var(--shell-2); }
.amen__i:hover { background: var(--shell-3); }
.amen__i svg { width: 1.4rem; height: 1.4rem; color: var(--gold); flex: none; margin-top: .1rem; }
.amen__t { font-weight: 600; font-size: .93rem; line-height: 1.4; }
.amen__d { font-size: .84rem; color: var(--ink-3); margin-top: .2rem; line-height: 1.5; }

/* ---------- distances --------------------------------------------------- */
.dist { list-style: none; margin: 0; padding: 0; }
.dist li {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .95rem 0; border-bottom: 1px solid var(--line-soft);
}
.dist__n { font-family: var(--f-display); font-size: 1.35rem; color: var(--gold); flex: none; min-width: 4.6rem; }
.dist__l { flex: 1; }
.section--sea .dist li { border-color: rgba(232,220,200,.14); }

/* ---------- gallery ----------------------------------------------------- */
.gal { columns: 3 260px; column-gap: clamp(.6rem, 1.4vw, 1.1rem); }
.gal__i {
  break-inside: avoid; margin-bottom: clamp(.6rem, 1.4vw, 1.1rem);
  position: relative; overflow: hidden; border-radius: var(--radius);
  cursor: zoom-in; display: block; width: 100%;
}
.gal__i img { width: 100%; transition: transform .9s var(--ease-out), filter .6s var(--ease); }
.gal__i::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,47,52,.4), transparent 55%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.gal__i:hover img { transform: scale(1.05); }
.gal__i:hover::after { opacity: 1; }

.gal__nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.gal__nav button {
  padding: .55rem 1.25rem; border: 1px solid var(--line);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  color: var(--ink-2); border-radius: 100px;
  transition: all .35s var(--ease);
}
.gal__nav button:hover { border-color: var(--gold); color: var(--gold); }
.gal__nav button[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: var(--sand); }

/* lightbox */
.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,47,52,.96);
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb img { max-width: 100%; max-height: 84vh; max-height: 84svh; object-fit: contain; border-radius: var(--radius); }
.lb__close, .lb__prev, .lb__next {
  position: absolute; color: var(--sand); padding: 1rem;
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.lb__close { top: .5rem; right: .8rem; font-size: 1.6rem; line-height: 1; }
.lb__prev { left: .3rem; top: 50%; translate: 0 -50%; }
.lb__next { right: .3rem; top: 50%; translate: 0 -50%; }
.lb__prev svg, .lb__next svg { width: 1.9rem; height: 1.9rem; }
.lb__close:hover, .lb__prev:hover, .lb__next:hover { color: var(--gold-soft); }
.lb__count { position: absolute; bottom: 1.1rem; left: 50%; translate: -50% 0; font-size: .72rem; letter-spacing: .18em; color: color-mix(in srgb, var(--sand) 65%, transparent); }

/* ---------- forms ------------------------------------------------------- */
.form { display: grid; gap: 1.2rem; }
.form__row { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; }
.field > label {
  font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.field .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; padding: .92rem 1rem;
  /* never below 16px: iOS Safari auto-zooms the viewport on focus otherwise */
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.section--tint .field input, .section--tint .field select, .section--tint .field textarea { background: var(--shell); }
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 16%, transparent);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B4483C; }
.field__err { font-size: .78rem; color: #B4483C; min-height: 1em; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235C554B' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: .7rem; padding-right: 2.4rem; }
.form__note { font-size: .8rem; color: var(--ink-3); }
.form__status { padding: 1rem 1.15rem; border-radius: var(--radius); font-size: .92rem; display: none; }
.form__status.is-ok { display: block; background: var(--sea-pale); border-left: 3px solid var(--sea); color: var(--sea-deep); }
.form__status.is-err { display: block; background: #FBEDEB; border-left: 3px solid #B4483C; color: #7A2E25; }
/* honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* contact detail panel */
.cbox { background: var(--sea); color: var(--sand); padding: clamp(1.9rem, 4vw, 3rem); border-radius: var(--radius); }
.cbox h3 { color: var(--sand); }
.cbox dl { margin: 0; display: grid; gap: 1.35rem; }
.cbox dt { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sand-deep); margin-bottom: .3rem; }
.cbox dd { margin: 0; font-size: 1.02rem; }
.cbox a:hover { color: var(--gold-soft); }

.map-embed { position: relative; width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--shell-2); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- faq --------------------------------------------------------- */
.faq { border-top: 1px solid var(--line-soft); }
.faq__i { border-bottom: 1px solid var(--line-soft); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  width: 100%; text-align: left;
  padding: 1.4rem 0;
  font-family: var(--f-display); font-size: clamp(1.1rem, 1rem + .55vw, 1.4rem);
  transition: color .3s var(--ease);
}
.faq__q:hover { color: var(--gold); }
.faq__q i {
  flex: none; position: relative; width: 14px; height: 14px;
}
.faq__q i::before, .faq__q i::after {
  content: ''; position: absolute; inset: 50% 0 auto; height: 1px; background: var(--gold);
  transition: transform .4s var(--ease);
}
.faq__q i::after { transform: rotate(90deg); }
.faq__i.is-open .faq__q i::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq__i.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 1.4rem; color: var(--ink-2); max-width: var(--measure); }

/* ---------- footer ------------------------------------------------------ */
.ftr { background: var(--sea-deep); color: var(--sand); padding-block: clamp(3.5rem, 8vw, 5.5rem) 2rem; }
.ftr__top { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 860px) { .ftr__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.ftr__logo img { width: 190px; margin-bottom: 1.4rem; }
.ftr p, .ftr li { color: color-mix(in srgb, var(--sand) 72%, transparent); font-size: .93rem; }
.ftr h4 { font-size: .68rem; font-family: var(--f-body); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sand-deep); margin-bottom: 1.1rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ftr a:hover { color: var(--gold-soft); }
.ftr__bot {
  margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 1.6rem;
  border-top: 1px solid rgba(232,220,200,.14);
  display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; justify-content: space-between;
  font-size: .78rem; color: color-mix(in srgb, var(--sand) 55%, transparent);
}
.ftr__langs { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }
.ftr__langs a[aria-current="true"] { color: var(--gold-soft); }
.ftr__mark { width: 34px; opacity: .5; margin-bottom: 1.2rem; }

/* ---------- page header (interior pages) -------------------------------- */
.phead {
  position: relative; padding-block: clamp(8rem, 20vh, 12rem) clamp(3rem, 7vh, 5rem);
  background: var(--sea-deep); color: var(--sand);
  overflow: hidden; isolation: isolate;
}
.phead__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.phead__media picture { width: 100%; height: 100%; }
.phead__media img { width: 100%; height: 100%; object-fit: cover; }
.phead::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10,47,52,.92), rgba(10,47,52,.62)); }
.phead .eyebrow { color: var(--sand-deep); }
.phead h1 { font-size: clamp(2.3rem, 1.2rem + 4vw, 4.4rem); }
.phead .lead { color: color-mix(in srgb, var(--sand) 80%, transparent); margin-top: 1.2rem; }

.crumbs { font-size: .72rem; letter-spacing: .1em; color: color-mix(in srgb, var(--sand) 55%, transparent); margin-bottom: 1.4rem; }
.crumbs a:hover { color: var(--gold-soft); }
.crumbs span { opacity: .5; margin-inline: .4rem; }

/* ---------- reveal on scroll -------------------------------------------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.rv.is-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .09s; } .rv-d2 { transition-delay: .18s; } .rv-d3 { transition-delay: .27s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ---------- image loading placeholder ----------------------------------- */
.ph { background-size: cover; background-position: center; background-repeat: no-repeat; }
.ph img { opacity: 0; transition: opacity .7s var(--ease); }
.ph img.is-loaded, .ph img[data-loaded] { opacity: 1; }

/* ---------- print ------------------------------------------------------- */
@media print {
  .hdr, .drawer, .hero__scroll, .lb, .btn, .burger { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
}
