/*
Theme Name: Gea & Hydor
Theme URI: https://geahydor.gr
Author: Custom build
Description: A bespoke, lightweight theme for Gea & Hydor luxury residences on Antiparos. Hand-coded to replace Elementor while preserving the site's serene, earthy aesthetic. Bilingual (EN/EL) via WPML.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: geahydor
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root{
  --ink:#0E2326;          /* deep teal-black */
  --ink-soft:#24413f;
  --cream:#F7F4EB;        /* warm paper */
  --sand:#EDE6D6;         /* card / section tint */
  --sand-line:#DED3BE;
  /* Bronze, darkened so small text clears WCAG AA on cream, sand and white.
     The old #9C7A4D reached only 3.2–4.0:1 and failed in every role. */
  --accent:#7d603a;       /* bronze / earth — 5.29:1 on cream, white-on-it 5.82:1 */
  --accent-dark:#5F482A;
  --accent-warm:#9C7A4D;  /* the original tone, for fills only — never text */
  --white:#ffffff;
  --muted:#6f7b78;

  --serif:"Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:"Lato","Helvetica Neue",Arial,sans-serif;

  --wrap:1600px;
  --gap:clamp(1.25rem,4vw,3.5rem);
  --radius:2px;
  --shadow:0 18px 50px -22px rgba(14,35,38,.45);
  --ease:cubic-bezier(.22,.61,.36,1);

  /* Motion. The brand line is "Simplicity - Serenity - Stillness", so the whole
     system is settling rather than arriving: long durations, no overshoot,
     short travel. Nothing here should draw attention to itself. */
  --ease-soft:cubic-bezier(.33,0,.15,1);   /* entrances — slow start, long tail */
  --dur-quick:.45s;
  --dur-mid:.9s;
  --dur-slow:1.4s;
  --reveal-shift:18px;                     /* travel for a scroll reveal */
  --stagger:70ms;                          /* per-child offset in a cascade */
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:var(--sans);
  font-weight:400;
  color:var(--ink);
  background:var(--cream);
  line-height:1.7;
  font-size:17px;
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-decoration:none;transition:color .25s var(--ease)}
a:hover{color:var(--accent-dark)}
h1,h2,h3,h4{font-family:var(--serif);font-weight:500;line-height:1.12;margin:0 0 .5em;letter-spacing:.01em}
p{margin:0 0 1.2em}
ul{margin:0;padding:0;list-style:none}
button{font-family:inherit}

.wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:clamp(1.1rem,5vw,4.5rem)}
/* full-bleed: spans the viewport, keeps only the edge padding */
.wrap--full{max-width:none}
.eyebrow{font-family:var(--sans);font-weight:700;font-size:.72rem;letter-spacing:.32em;text-transform:uppercase;color:var(--accent);margin:0 0 1rem}
.section{padding:clamp(3.5rem,8vw,7rem) 0}
.section--tint{background:var(--sand)}
.section--ink{background:var(--ink);color:var(--cream)}
.section--ink .eyebrow{color:#cdb488}
.lead{font-size:1.12rem;color:var(--ink-soft);max-width:60ch}
.center{text-align:center}
.center .lead{margin-inline:auto}

/* display headings */
.display{
  font-size:clamp(2.4rem,6.5vw,5rem);
  font-weight:500;
  letter-spacing:.02em;
  line-height:1.05;
}
.h-section{font-size:clamp(1.9rem,4vw,3rem);margin-bottom:.3em}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  display:inline-flex;align-items:center;gap:.6em;
  font-family:var(--sans);font-weight:700;font-size:.78rem;letter-spacing:.22em;text-transform:uppercase;
  color:var(--white);background:var(--accent);
  padding:1.05em 2.4em;border:1px solid var(--accent);border-radius:var(--radius);
  cursor:pointer;transition:all .3s var(--ease)
}
.btn:hover{background:var(--accent-dark);border-color:var(--accent-dark);color:var(--white);transform:translateY(-2px)}
.btn--ghost{background:transparent;color:var(--ink);border-color:var(--ink)}
.btn--ghost:hover{background:var(--ink);color:var(--cream)}
.section--ink .btn--ghost{color:var(--cream);border-color:var(--cream)}
.section--ink .btn--ghost:hover{background:var(--cream);color:var(--ink)}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:100;
  transition:background .35s var(--ease),box-shadow .35s var(--ease),padding .35s var(--ease);
  padding:1rem 0;
}
.site-header__inner{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem}
.brand{justify-self:center}
.brand img{height:58px;width:auto;transition:height .35s var(--ease);filter:brightness(0) invert(1)}
.menu-btn{justify-self:start;display:inline-flex;align-items:center;gap:.6rem;background:none;border:0;cursor:pointer;
  color:var(--cream);font-family:var(--sans);font-weight:400;font-size:.95rem;letter-spacing:.02em;padding:.3rem 0}
.menu-btn:hover{color:var(--white)}
.btn--book{background:rgba(247,244,235,.1);border-color:rgba(247,244,235,.55);color:var(--cream);
  padding:.85em 2.1em;font-size:.9rem;font-weight:400;letter-spacing:.02em;text-transform:none;border-radius:100px;
  backdrop-filter:blur(4px)}
.btn--book:hover{background:var(--cream);border-color:var(--cream);color:var(--ink)}
.site-header__right{justify-self:end;display:flex;align-items:center;gap:1.2rem}
.header-lang{display:inline-flex;gap:.9rem}
.header-lang a{font-family:var(--sans);font-size:.82rem;letter-spacing:.14em;color:rgba(247,244,235,.55);text-decoration:none}
.header-lang a.is-active{color:var(--cream)}
.header-lang a:hover{color:var(--white)}
body.nav-open .site-header__right{visibility:hidden}

/* hairline separating the transparent header from the hero below */
body.has-hero .site-header::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;
  background:rgba(247,244,235,.22);transition:opacity .35s var(--ease)}
body.has-hero .site-header.is-solid::after{opacity:0}

/* scrolled / solid header */
.site-header.is-solid{background:var(--ink);box-shadow:0 10px 30px -18px rgba(0,0,0,.6);padding:.5rem 0}
.site-header.is-solid .brand img{height:46px}
/* pages without a hero get solid header + top padding on content */
body:not(.has-hero) .site-header{background:var(--ink)}
body:not(.has-hero) .site-main{padding-top:96px}

/* ============================================================
   HERO
   ============================================================ */
/* Bottom-anchored over a full-bleed render, on a centred vertical axis. */
.hero{position:relative;min-height:100vh;display:flex;align-items:flex-end;color:var(--cream);isolation:isolate;overflow:hidden}
.hero__bg{position:absolute;inset:0;z-index:-2;background-size:cover;background-position:center}
/* light hold at the top for the header, a deeper foot so the title stays legible */
.hero::after{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(14,35,38,.34) 0%,rgba(14,35,38,.06) 22%,rgba(14,35,38,0) 45%,rgba(14,35,38,.42) 100%)}
.hero__inner{width:100%;text-align:center;padding-block:0 clamp(4.5rem,11vh,8rem);display:flex;flex-direction:column;align-items:center}
.hero__eyebrow{color:var(--cream);font-weight:400;font-size:.8rem;letter-spacing:.34em;margin-bottom:1.4rem;
  text-shadow:0 1px 14px rgba(14,35,38,.5)}
.hero__cross{width:auto;height:clamp(38px,3.4vw,52px);opacity:.92;margin-bottom:2.2rem;
  filter:drop-shadow(0 2px 12px rgba(14,35,38,.45))}
.hero__title{font-size:clamp(2.4rem,7.4vw,6.2rem);font-weight:400;letter-spacing:.01em;line-height:1;margin:0;
  text-wrap:nowrap;text-shadow:0 2px 26px rgba(14,35,38,.42)}
/* thin scroll axis dropping from the foot of the hero */
.hero__axis{position:absolute;left:50%;bottom:0;width:1px;height:clamp(2rem,5vh,3.4rem);
  background:linear-gradient(180deg,rgba(247,244,235,0),rgba(247,244,235,.75));transform:translateX(-50%)}
@media(max-width:900px){ .hero__title{text-wrap:balance;line-height:1.05} }

/* ---- hero entrance ------------------------------------------------------
   Driven by CSS animation, not a JS-added class, so a failed script can
   never leave the hero stuck at opacity:0. `both` holds the from-state
   through the delay. The render settles out of a slight enlargement while
   the type arrives beneath it, ornament first.
   ------------------------------------------------------------------------ */
@keyframes gea-hero-settle{ from{transform:scale(1.05)} to{transform:none} }
@keyframes gea-rise{ from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:none} }
@keyframes gea-rise-ornament{ from{opacity:0;transform:translateY(10px)} to{opacity:.92;transform:none} }
@keyframes gea-axis{ from{transform:translateX(-50%) scaleY(0)} to{transform:translateX(-50%) scaleY(1)} }

.hero__bg     { animation:gea-hero-settle 2.4s var(--ease-soft) both }
.hero__cross  { animation:gea-rise-ornament 1.1s var(--ease-soft) .25s both }
.hero__eyebrow{ animation:gea-rise 1.1s var(--ease-soft) .5s both }
.hero__title  { animation:gea-rise 1.2s var(--ease-soft) .68s both }
.hero__axis   { transform-origin:top; animation:gea-axis 1s var(--ease-soft) 1.15s both }

/* ============================================================
   SPLIT / INTRO
   ============================================================ */
.split{display:grid;grid-template-columns:1fr 1fr;gap:var(--gap);align-items:center}
.split--reverse .split__media{order:2}
.split__media img{width:100%;height:100%;object-fit:cover;box-shadow:var(--shadow)}
.split__media--stack{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.split__media--stack img{aspect-ratio:3/4}
.figure-frame{position:relative;padding:1rem}
.figure-frame::before{content:"";position:absolute;inset:0;border:1px solid var(--sand-line);transform:translate(14px,14px);z-index:-1}

/* ============================================================
   VILLA / RESIDENCE STRIP
   ============================================================ */
.residence{position:relative;min-height:70vh;display:flex;align-items:center;color:var(--cream);isolation:isolate;text-align:center}
.residence__bg{position:absolute;inset:0;z-index:-2;background-size:cover;background-position:center}
.residence::after{content:"";position:absolute;inset:0;z-index:-1;background:rgba(14,35,38,.42)}
.residence__inner{width:100%;padding-block:5rem}
.residence h2{font-size:clamp(1.6rem,3vw,2.4rem);margin-bottom:.2em}
.residence .sub{font-family:var(--serif);font-style:italic;font-size:1.3rem;opacity:.9;display:block;margin-bottom:1rem}

/* ============================================================
   CARDS (villas, explore)
   ============================================================ */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:clamp(1.2rem,3vw,2.2rem)}
.card{position:relative;overflow:hidden;border-radius:var(--radius);background:var(--ink);isolation:isolate;min-height:440px;display:flex;align-items:flex-end}
.card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .8s var(--ease)}
.card::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(14,35,38,0) 30%,rgba(14,35,38,.85) 100%)}
.card:hover img{transform:scale(1.06)}
.card__body{padding:2rem;color:var(--cream);width:100%}
.card__place{font-family:var(--sans);font-weight:700;font-size:.68rem;letter-spacing:.28em;text-transform:uppercase;color:#e9dcc4;display:block;margin-bottom:.4rem}
.card__title{font-size:1.9rem;margin:0 0 1rem}
.card__link{color:var(--cream);font-weight:700;font-size:.74rem;letter-spacing:.22em;text-transform:uppercase;display:inline-flex;gap:.5em;align-items:center}
.card__link::after{content:"→";transition:transform .3s var(--ease)}
.card:hover .card__link::after{transform:translateX(5px)}

/* villa two-up cards (rooms page) */
.villa-card{display:grid;grid-template-columns:1fr;background:var(--white);box-shadow:var(--shadow);border-radius:var(--radius);overflow:hidden}
.villa-card img{width:100%;aspect-ratio:4/3;object-fit:cover}
.villa-card__body{padding:2.2rem}
.villa-card__body h3{font-size:1.8rem;margin-bottom:.4rem}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}
.gallery img{width:100%;height:100%;aspect-ratio:1;object-fit:cover;border-radius:var(--radius)}
.gallery--tall img{aspect-ratio:3/4}

/* ============================================================
   AMENITIES
   ============================================================ */
.amenities{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1px;background:var(--sand-line);border:1px solid var(--sand-line)}
.amenity{background:var(--cream);padding:1.5rem 1.6rem;display:flex;align-items:center;gap:.9rem;font-family:var(--serif);font-size:1.15rem}
.amenity::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--accent-warm);flex:none}
.section--tint .amenity{background:var(--sand)}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:var(--gap)}
.contact-info{display:grid;gap:2rem;align-content:start}
.contact-info h3{font-size:1.35rem;margin-bottom:.2rem}
.contact-info p{margin:0;color:var(--muted)}
.form-field{margin-bottom:1.1rem}
.form-field label{display:block;font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;font-weight:700;margin-bottom:.5rem;color:var(--ink-soft)}
.form-field input,.form-field textarea{
  width:100%;padding:.95rem 1.1rem;border:1px solid var(--sand-line);background:var(--white);
  font-family:var(--sans);font-size:1rem;color:var(--ink);border-radius:var(--radius)
}
.form-field input:focus,.form-field textarea:focus{outline:none;border-color:var(--accent)}
.form-field textarea{min-height:140px;resize:vertical}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{position:relative;background:var(--ink);color:#c7d0ce;overflow:hidden;
  padding:clamp(3.5rem,7vw,5.5rem) 0 1.5rem}
/* same topographic ground as the menu overlay and the Explore band */
.site-footer::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.3;
  background:url("assets/img/topo-pattern.jpg") center/cover no-repeat}
/* the ghosted wordmark motif carried down from the page heroes, at its quietest */
.site-footer__ghost{position:absolute;left:50%;bottom:-.34em;transform:translateX(-50%);
  font-family:var(--serif);font-weight:500;font-size:clamp(5rem,17vw,15rem);line-height:.8;
  white-space:nowrap;color:rgba(247,244,235,.035);pointer-events:none;user-select:none}
/* Lift the content wrappers by name, not `> *` — a universal child selector
   here matched .site-footer__ghost too and, at equal specificity but later in
   the file, dropped it back into normal flow where its line box added ~200px
   of dead space above the columns. */
.footer-main,.footer-legal-row{position:relative;z-index:1}
.site-footer a{color:#c7d0ce}
.site-footer a:hover{color:var(--white)}

.footer-main{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.4fr;
  gap:clamp(2rem,4vw,3.5rem);align-items:start}
.footer-col__label{font-family:var(--sans);font-size:.68rem;font-weight:700;letter-spacing:.18em;
  text-transform:uppercase;color:#cdb488;margin:0 0 1.1rem}

.footer-brand{display:inline-block}
.footer-brand img{height:60px;filter:brightness(0) invert(1);opacity:.95}
.footer-social{display:flex;align-items:center;gap:1rem;margin-top:1.6rem;color:#c7d0ce}
.footer-social__label{font-size:.88rem;margin-right:.1rem}
.footer-social a{display:inline-flex;transition:opacity var(--dur-quick) var(--ease-soft)}
.footer-social a:hover{opacity:.62}

.footer-links{display:grid;gap:.7rem}
.footer-links a{position:relative;font-size:.92rem;line-height:1.4}
/* the same underline draw used in the menu overlay */
.footer-links a::after{content:"";position:absolute;left:0;right:0;bottom:-3px;height:1px;background:currentColor;
  transform:scaleX(0);transform-origin:left;transition:transform var(--dur-quick) var(--ease-soft)}
.footer-links a:hover::after,.footer-links a:focus-visible::after{transform:scaleX(1)}

.footer-contact{display:grid;gap:.9rem}
.footer-contact li{display:flex;align-items:flex-start;gap:.65rem;font-size:.9rem;line-height:1.5;color:#c7d0ce}
.footer-contact svg{color:#cdb488;flex:none;margin-top:.15rem}

.footer-lang{display:inline-flex;gap:.85rem}
.footer-lang a{letter-spacing:.14em;color:#93a3ae}
.footer-lang a.is-active{color:var(--cream)}
/* .wrap supplies the inline padding — it used to be hand-copied here, which
   meant the legal row silently drifted out of line whenever .wrap changed. */
.footer-legal-row{border-top:1px solid rgba(199,208,206,.14);margin-top:2.2rem;padding-top:1.4rem;
  display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-size:.78rem;color:#93a3ae}
.footer-legal-row .powered strong{color:var(--cream);font-weight:700}

/* ============================================================
   BLOG
   ============================================================ */
.post-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:2.5rem}
.post-card{background:var(--white);box-shadow:var(--shadow);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}
.post-card img{aspect-ratio:16/10;object-fit:cover}
.post-card__body{padding:1.8rem;display:flex;flex-direction:column;gap:.6rem;flex:1}
.post-card__meta{font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:var(--accent);font-weight:700}
.post-card h2{font-size:1.5rem;margin:0}
.entry{max-width:760px;margin-inline:auto}
.entry img{margin:1.5rem 0;border-radius:var(--radius)}
.entry h1{font-size:clamp(2rem,4vw,3rem)}
.page-hero-lite{padding:130px 0 3rem;background:var(--ink);color:var(--cream);text-align:center}
.page-hero-lite h1{font-size:clamp(2.2rem,5vw,3.6rem);margin:0}
.page-hero-lite .eyebrow{color:#cdb488}

/* ============================================================
   MISC
   ============================================================ */
.eu-banner{margin:0 auto;display:block;max-width:730px;width:100%}
.divider{width:64px;height:1px;background:var(--accent-warm);margin:1.4rem auto}
.section--ink .divider{background:#cdb488}
.stack-lg{display:grid;gap:clamp(2rem,5vw,4rem)}

/* ---- reveal on scroll ---------------------------------------------------
   The transform is composed from custom properties rather than written
   literally, so an element can carry its own layout offset (--ry / --rx)
   without the reveal wiping it. `transform:none` on .is-in used to destroy
   the scatter offsets on .spirit__img--a / --c.
   ------------------------------------------------------------------------ */
[data-reveal]{
  opacity:0;
  transform:translate3d(calc(var(--rx,0px) + var(--rev-x,0px)),
                        calc(var(--ry,0px) + var(--rev-y,var(--reveal-shift))),0)
            scale(var(--rev-s,1));
  transition:opacity var(--dur-mid) var(--ease-soft),
             transform var(--dur-mid) var(--ease-soft);
  transition-delay:calc(var(--i,0) * var(--stagger));
  will-change:opacity,transform;
}
[data-reveal].is-in{
  opacity:1;
  transform:translate3d(var(--rx,0px),var(--ry,0px),0) scale(1);
  will-change:auto;
}

/* direction variants — the element drifts in from its own side */
[data-reveal="left"] { --rev-x:calc(var(--reveal-shift) * -1.4); --rev-y:0px }
[data-reveal="right"]{ --rev-x:calc(var(--reveal-shift) *  1.4); --rev-y:0px }
[data-reveal="up"]   { --rev-y:var(--reveal-shift) }
[data-reveal="fade"] { --rev-y:0px }
/* photographs settle out of a slight enlargement instead of sliding */
[data-reveal="scale"]{ --rev-y:0px; --rev-s:1.045;
  transition-duration:var(--dur-slow),var(--dur-slow) }

/* ---- scroll-driven drift -------------------------------------------------
   theme.js writes --py (backgrounds) and --gy (ghost words) from one shared
   rAF loop. Nothing here reads scroll position itself, and only transform is
   touched, so no layout is triggered.
   ------------------------------------------------------------------------ */
[data-parallax]{
  inset:-6% 0;                       /* overscan, so drift never exposes an edge */
  transform:translate3d(0,var(--py,0px),0);
}
/* the hero render is already running a scale animation; using the individual
   `translate` property keeps parallax from fighting it over `transform` */
.hero__bg[data-parallax]{transform:none;translate:0 var(--py,0px)}

[data-drift]{transform:translate3d(0,var(--gy,0px),0)}

/* reading progress — villa pages run long now that the gallery has five plates */
.read-progress{position:fixed;top:0;left:0;height:2px;width:100%;z-index:120;
  transform:scaleX(var(--progress,0));transform-origin:left;
  background:linear-gradient(90deg,rgba(205,180,136,.5),#cdb488);
  opacity:0;transition:opacity .4s var(--ease);pointer-events:none}
.read-progress.is-on{opacity:1}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   HOMEPAGE — matched to original
   ============================================================ */
.btn--pill{border-radius:100px;position:relative;overflow:hidden;isolation:isolate}
/* the hover fill wipes across rather than switching, so the button reads as a
   surface being covered instead of a colour swap */
.btn--pill::before{content:"";position:absolute;inset:0;z-index:-1;background:currentColor;
  opacity:0;transform:scaleX(0);transform-origin:left;
  transition:transform var(--dur-quick) var(--ease-soft),opacity var(--dur-quick) var(--ease-soft)}
.btn--pill:hover::before,.btn--pill:focus-visible::before{transform:scaleX(1);opacity:.14}
.btn--sm{padding:.7em 1.7em;font-size:.68rem}

/* --- Find the true spirit (scattered collage) --- */
.spirit{position:relative;padding:clamp(4.5rem,10vw,9rem) 0;overflow:hidden}
/* quatrefoil lattice, tiled behind the whole section */
.spirit::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:url("assets/img/pattern-lattice.png") repeat 0 0;background-size:360px auto}
.spirit > .wrap{position:relative;z-index:1}
.spirit__grid{display:grid;grid-template-columns:1fr minmax(320px,520px) 1fr;align-items:center;gap:clamp(1.5rem,4vw,4rem)}
/* two staggered plates per side — no overlap, offset from each other */
.spirit__col{display:grid;gap:clamp(3rem,8vh,7rem);align-content:center}
.spirit__img{object-fit:cover;box-shadow:0 24px 50px -28px rgba(0,0,0,.75)}
.spirit__col--left  .spirit__img{justify-self:start}
.spirit__col--right .spirit__img{justify-self:end}
/* --ry is the layout offset; the reveal composes on top of it (see [data-reveal]) */
.spirit__img--a{width:min(22vw,268px);aspect-ratio:3/2;--ry:-1.5rem}
.spirit__img--b{width:min(16vw,196px);aspect-ratio:14/15}
.spirit__img--c{width:min(23vw,282px);aspect-ratio:5/3;--ry:-2.5rem}
.spirit__img--d{width:min(14vw,168px);aspect-ratio:5/8;margin-right:min(4vw,52px)}
.spirit__center{text-align:center;padding:2rem 0}
/* the woven emblem keeps its brass tone — no invert */
.spirit__ornament{width:clamp(52px,4.6vw,66px);height:auto;margin:0 auto 2rem;opacity:.95}
.spirit__center .h-section{font-size:clamp(1.7rem,3.1vw,2.6rem);text-transform:uppercase;letter-spacing:.01em;
  line-height:1.14;margin-bottom:1.1rem}
.spirit__center p{color:#c2cecc;font-size:1rem;line-height:1.6;max-width:46ch;margin:0 auto 2rem}
/* soft filled pill, not the outlined ghost button */
.spirit__center .btn{background:rgba(247,244,235,.13);border-color:rgba(247,244,235,.28);color:var(--cream);
  text-transform:none;letter-spacing:.01em;font-weight:400;font-size:1rem;padding:.8em 2.6em;backdrop-filter:blur(3px)}
.spirit__center .btn:hover{background:var(--cream);border-color:var(--cream);color:var(--ink)}
@media(max-width:820px){
  .spirit__grid{grid-template-columns:1fr}
  .spirit__col{grid-auto-flow:column;justify-content:center;gap:1rem}
  .spirit__col--left,.spirit__col--right{order:2}
  .spirit__center{order:1}
  .spirit__img{width:min(38vw,200px)!important;transform:none!important;margin:0!important;justify-self:center!important}
}

/* --- Showcase slider (Sea View) --- */
.showcase{position:relative;height:100svh;min-height:520px;padding:0;overflow:hidden;isolation:isolate;display:flex;align-items:center}
/* the active slide's photo, blown up and washed out, filling the band */
.showcase__bg{position:absolute;inset:-6%;z-index:-2;background-size:cover;background-position:center;
  filter:blur(14px) saturate(.55);transform:scale(1.06);transition:background-image .5s var(--ease)}
.showcase::after{content:"";position:absolute;inset:0;z-index:-1;background:rgba(96,126,124,.42)}
.showcase__track{position:relative;display:flex;align-items:center;justify-content:center;gap:clamp(1rem,4vw,3rem);
  transition:transform .6s var(--ease)}
/* column-reverse puts the caption above the media without reordering the markup */
.showcase__slide{position:relative;flex:0 0 auto;width:min(58vw,900px);text-align:center;
  display:flex;flex-direction:column-reverse;gap:clamp(1rem,2.2vw,1.7rem);transition:transform .5s var(--ease)}
.showcase__slide:not(.is-active){transform:scale(.9)}
.showcase__slide:not(.is-active) .showcase__media{visibility:hidden}
/* side titles sit on the same line as the active one, not centred in the band */
.showcase__slide:not(.is-active) .showcase__cap{opacity:.55;transform:translateY(6px)}
.showcase__media{display:block;position:relative;height:clamp(280px,58vh,600px);overflow:hidden;border-radius:4px}
.showcase__media img{width:100%;height:100%;object-fit:cover}
.showcase__cap{color:var(--cream);text-shadow:0 2px 18px rgba(14,35,38,.4);
  transition:opacity var(--dur-quick) var(--ease-soft),transform var(--dur-mid) var(--ease-soft)}
.showcase__title{font-size:clamp(2rem,4vw,3.2rem);text-transform:uppercase;letter-spacing:.01em;margin:0}
.showcase__sub{font-family:var(--sans);font-size:.82rem;letter-spacing:.04em;opacity:.92;margin:.45rem 0 0}
.showcase__nav{position:absolute;top:50%;transform:translateY(-50%);z-index:5;background:rgba(247,244,235,.12);
  border:1px solid rgba(247,244,235,.3);color:var(--cream);width:52px;height:52px;border-radius:50%;
  font-size:1.6rem;line-height:1;cursor:pointer;transition:background .25s var(--ease)}
.showcase__nav:hover{background:rgba(247,244,235,.28)}
.showcase__nav--prev{left:clamp(1rem,4vw,3rem)}
.showcase__nav--next{right:clamp(1rem,4vw,3rem)}

/* --- Explore places (dark, topographic) --- */
.explore{position:relative;padding:clamp(4rem,8vw,7rem) 0;overflow:hidden}
.explore::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.45;
  background:url("assets/img/topo-pattern.jpg") center/cover no-repeat}
.explore > .wrap{position:relative;z-index:1}
.explore__title{margin-bottom:2.5rem}
.explore__cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:clamp(1.2rem,3vw,2rem)}
.place-card{position:relative;overflow:hidden;border-radius:10px;min-height:420px;display:flex;align-items:flex-end;isolation:isolate}
.place-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .8s var(--ease)}
.place-card::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(14,35,38,.15) 20%,rgba(14,35,38,.85) 100%)}
.place-card:hover img{transform:scale(1.06)}
.place-card__tag{position:absolute;top:1.1rem;left:1.1rem;background:rgba(14,35,38,.55);color:var(--cream);
  font-family:var(--sans);font-size:.62rem;letter-spacing:.2em;text-transform:uppercase;padding:.4em .9em;border-radius:100px;backdrop-filter:blur(4px)}
.place-card__body{padding:1.8rem;text-align:center;width:100%;color:var(--cream)}
.place-card__title{font-size:1.7rem;margin:0 0 1rem}
.place-card .btn{color:var(--cream);border-color:rgba(247,244,235,.6)}
.place-card:hover .btn{background:var(--cream);color:var(--ink)}

/* --- Contact over imagery --- */
.contact-hero{position:relative;min-height:100svh;padding:clamp(4rem,9vw,7rem) 0;color:var(--cream);
  isolation:isolate;overflow:hidden;display:flex;align-items:center}
.contact-hero__bg{position:absolute;inset:0;z-index:-2;background-size:cover;background-position:center}
.contact-hero::after{content:"";position:absolute;inset:0;z-index:-1;background:rgba(14,35,38,.78)}
.contact-hero__inner{width:100%;max-width:760px;margin-inline:auto;text-align:center}
.contact-hero__title{font-size:clamp(2rem,4vw,3rem);margin-bottom:2rem}
.contact-hero__ok{color:#cdb488;margin-bottom:1rem}
/* One spacing system: the form is the grid, so rows never carry their own
   margins and the vertical rhythm can't drift between variants. */
.contact-form{display:grid;gap:1.6rem;text-align:left}
.contact-form__row{display:grid;grid-template-columns:1fr 1fr;gap:2rem}
/* a row with only one field spans both columns so it matches the full-width message */
.contact-form__row:has(>:only-child){grid-template-columns:1fr}
.uline{position:relative}
.uline label{display:block;font-size:.78rem;letter-spacing:.02em;color:#a9b8b5;margin-bottom:.55rem}
.uline__req{color:#cdb488;margin-left:.25em}
.uline input,.uline textarea{width:100%;background:transparent;border:0;border-bottom:1px solid rgba(247,244,235,.35);
  color:var(--cream);font-family:var(--sans);font-size:1rem;padding:.7rem 0;border-radius:0;
  transition:border-color var(--dur-quick) var(--ease-soft),box-shadow var(--dur-quick) var(--ease-soft)}
.uline input::placeholder,.uline textarea::placeholder{color:rgba(247,244,235,.55)}
/* Focus goes toward cream, not --accent. The bronze measured 2.85:1 on this
   ground — dimmer than the 3.02:1 resting line, so focusing a field used to
   make it harder to see. box-shadow thickens the rule without reflowing. */
.uline input:focus,.uline textarea:focus{outline:none;border-bottom-color:var(--cream);
  box-shadow:0 1px 0 0 var(--cream)}
.uline textarea{resize:vertical;min-height:120px;line-height:1.6}

/* validation — only after the visitor has actually interacted, never on load */
.uline__err{display:block;overflow:hidden;max-height:0;opacity:0;
  font-size:.75rem;letter-spacing:.02em;color:#e8a9a9;
  transition:max-height var(--dur-quick) var(--ease-soft),opacity var(--dur-quick) var(--ease-soft),
             margin-top var(--dur-quick) var(--ease-soft)}
.uline input:user-invalid,.uline textarea:user-invalid{border-bottom-color:#e8a9a9}
.uline input:user-invalid ~ .uline__err,
.uline textarea:user-invalid ~ .uline__err{max-height:3em;opacity:1;margin-top:.5rem}

/* The primary action of the page reads as the primary action: solid, sized to
   its label rather than stretched across the grid. */
.contact-form__submit{display:inline-flex;width:fit-content;min-width:min(260px,100%);
  justify-content:center;margin:.6rem auto 0;
  background:var(--cream);border-color:var(--cream);color:var(--ink);
  font-size:.95rem;font-weight:400;letter-spacing:.02em;text-transform:none}
.contact-form__submit:hover{background:var(--white);border-color:var(--white);color:var(--ink)}
.contact-hero--left .contact-form__submit{margin-inline:0}
.uline input[type=date]::-webkit-calendar-picker-indicator{filter:invert(1);opacity:.6}
/* no spinner on the guest count — the underline field should stay clean */
.uline input[type=number]{-moz-appearance:textfield;appearance:textfield}
.uline input[type=number]::-webkit-outer-spin-button,
.uline input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

/* Contact page variant — form sits left, over the imagery */
/* first block under the transparent header — clears it, whatever the alignment */
/* --page adds header clearance at the top; bottom matches the base section */
.contact-hero--page{padding-top:clamp(7rem,13vh,10rem)}

.contact-hero--left{padding:clamp(7rem,13vh,10rem) 0 clamp(4rem,8vw,6rem)}
.contact-hero--left::after{background:linear-gradient(90deg,rgba(14,35,38,.88) 0%,rgba(14,35,38,.72) 42%,rgba(14,35,38,.3) 100%)}
.contact-hero--left .contact-hero__inner{margin-inline:0;text-align:left;max-width:880px}

/* Talk to Us / Email Us / Visit Us */
.contact-cards{position:relative;padding:clamp(3.5rem,8vw,6rem) 0 clamp(4rem,9vw,8rem);overflow:hidden}
.contact-cards::before{content:"";position:absolute;inset:0;opacity:.5;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cg fill='none' stroke='%231d3a3c' stroke-width='1.2'%3E%3Cpath d='M-50 120 C150 60 350 180 550 110 750 40 850 160 950 120'/%3E%3Cpath d='M-50 200 C150 140 350 260 550 190 750 120 850 240 950 200'/%3E%3Cpath d='M-50 300 C180 230 360 360 560 280 760 200 860 330 980 290'/%3E%3Cpath d='M-50 400 C160 340 380 450 580 380 780 310 880 430 980 400'/%3E%3Cpath d='M-50 500 C150 440 350 560 550 490 750 420 850 540 950 500'/%3E%3Cpath d='M-50 600 C180 540 360 660 560 590 760 520 860 640 980 600'/%3E%3C/g%3E%3C/svg%3E")}
.contact-cards > .wrap{position:relative;z-index:1}
.contact-cards__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1.2rem,2.5vw,2rem)}
.contact-card{background:rgba(247,244,235,.07);padding:clamp(2rem,4vw,3rem) 1.6rem;text-align:center;
  border:1px solid rgba(247,244,235,.07)}
.contact-card__ic{display:block;color:var(--cream);margin-bottom:1.4rem}
.contact-card__ic svg{margin-inline:auto}
.contact-card__title{font-size:clamp(1.4rem,2.2vw,1.9rem);margin:0 0 .7rem}
.contact-card__body{margin:0;font-size:.98rem;color:#dfe6e4}
.contact-card__body a{color:#dfe6e4;text-decoration:underline;text-underline-offset:3px}
.contact-card__body a:hover{color:var(--white)}
@media(max-width:820px){ .contact-cards__grid{grid-template-columns:1fr} }

@media(max-width:1020px){
  /* brand keeps the full width, the three link columns share the row below it */
  .footer-main{grid-template-columns:repeat(3,1fr)}
  .footer-col--brand{grid-column:1/-1;margin-bottom:1rem}
}
@media(max-width:820px){
  .spirit__grid{grid-template-columns:1fr}
  .spirit__col{display:flex;justify-content:center;gap:1rem;min-height:0;margin:1rem 0}
  .spirit__img{position:static;width:clamp(120px,40vw,180px)}
  .spirit__center{order:-1}
  .showcase__slide{width:82vw}
  .contact-form__row{grid-template-columns:1fr;gap:1.2rem}
  .footer-main{grid-template-columns:1fr 1fr}
  .footer-col--contact{grid-column:1/-1}
}
@media(max-width:520px){
  .footer-main{grid-template-columns:1fr;gap:2.2rem}
  .footer-legal-row{flex-direction:column;align-items:flex-start;gap:.7rem}
}

/* ============================================================
   FULL-SCREEN MENU OVERLAY
   ============================================================ */
.nav-overlay{
  position:fixed;inset:0;z-index:90;background:var(--ink);
  opacity:0;visibility:hidden;transition:opacity .4s var(--ease),visibility .4s var(--ease);
  overflow-y:auto;display:flex;align-items:center;
  padding:clamp(7rem,13vh,10rem) 0 clamp(2rem,5vw,4rem);
}
.nav-overlay.is-open{opacity:1;visibility:visible}
.nav-overlay::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.45;
  background:url("assets/img/topo-pattern.jpg") center/cover no-repeat}
/* ---- overlay choreography ----------------------------------------------
   The panel itself only fades; its contents cascade in afterwards so the
   menu composes rather than appearing as one flat object. --i is set on
   each row below, so no JS is involved.
   ------------------------------------------------------------------------ */
.nav-item,.nav-social,.nav-info{
  opacity:0;transform:translateY(14px);
  transition:opacity var(--dur-mid) var(--ease-soft),transform var(--dur-mid) var(--ease-soft);
}
.nav-overlay.is-open .nav-item,
.nav-overlay.is-open .nav-social,
.nav-overlay.is-open .nav-info{
  opacity:1;transform:none;
  transition-delay:calc(.12s + var(--i,0) * 60ms);
}
.nav-item:nth-child(1){--i:0} .nav-item:nth-child(2){--i:1}
.nav-item:nth-child(3){--i:2} .nav-item:nth-child(4){--i:3}
.nav-social{--i:4}
.nav-info:nth-child(1){--i:2} .nav-info:nth-child(2){--i:3} .nav-info:nth-child(3){--i:4}

.nav-overlay__grid{position:relative;z-index:1;width:100%;
  display:grid;grid-template-columns:1.6fr 1fr;gap:clamp(2rem,6vw,5rem);align-items:start}

/* left column — nav */
.nav-overlay__nav{display:flex;flex-direction:column;gap:clamp(1.6rem,4vw,3rem)}
.nav-item__link{display:inline-block;color:var(--cream);font-family:var(--serif);font-weight:500;
  font-size:clamp(2rem,4.4vw,3.6rem);line-height:1.05;transition:color .25s var(--ease)}
.nav-item__link:hover{color:#cdb488}
.nav-item__sub{display:flex;flex-wrap:wrap;gap:.6rem 2.2rem;margin-top:.9rem;padding-left:.15rem}
.nav-item__sub a{position:relative;color:rgba(247,244,235,.78);font-family:var(--sans);font-size:.95rem;letter-spacing:.04em}
.nav-item__sub a:hover{color:var(--white)}
/* underline draws in from the left instead of appearing whole */
.nav-item__sub a::after{content:"";position:absolute;left:0;right:0;bottom:-3px;height:1px;background:currentColor;
  transform:scaleX(0);transform-origin:left;transition:transform var(--dur-quick) var(--ease-soft)}
.nav-item__sub a:hover::after,.nav-item__sub a:focus-visible::after{transform:scaleX(1)}
/* first group's children read as labels, matching the original */
.nav-item:first-child .nav-item__sub a{text-transform:uppercase;letter-spacing:.12em;font-size:.85rem}

.nav-social{display:flex;align-items:center;gap:1.1rem;margin-top:clamp(1rem,3vw,2.5rem);color:rgba(247,244,235,.8)}
.nav-social > span{font-size:.95rem;margin-right:.2rem}
.nav-social a{color:var(--cream);display:inline-flex;transition:opacity .25s var(--ease)}
.nav-social a:hover{opacity:.65}
.nav-lang{display:inline-flex;gap:.9rem;margin-left:1.4rem;padding-left:1.4rem;border-left:1px solid rgba(247,244,235,.2)}
.nav-lang a{font-family:var(--sans);font-size:.82rem;letter-spacing:.14em;color:rgba(247,244,235,.55)}
.nav-lang a.is-active{color:var(--white)}

/* right column — contact details */
.nav-overlay__info{display:flex;flex-direction:column;gap:clamp(1.6rem,3vw,2.6rem);padding-top:.8rem}
.nav-info__label{display:block;font-family:var(--sans);font-size:.68rem;letter-spacing:.18em;
  text-transform:uppercase;color:rgba(247,244,235,.55);margin-bottom:.5rem}
.nav-info p{margin:0;font-size:clamp(1.05rem,1.6vw,1.35rem);line-height:1.6;color:var(--cream)}
.nav-info a{color:var(--cream)}
.nav-info a:hover{color:#cdb488}

/* header stays above the overlay; button swaps to a close affordance */
.site-header{z-index:120}
.menu-btn__ic{display:inline-flex}
.menu-btn__close{display:none}
body.nav-open .menu-btn__open{display:none}
body.nav-open .menu-btn__close{display:block}
body.nav-open .btn--book{visibility:hidden}
body.nav-open .site-header{background:transparent;box-shadow:none;
  border-bottom:1px solid rgba(247,244,235,.12)}

@media(max-width:900px){
  .nav-overlay{align-items:flex-start}
  .nav-overlay__grid{grid-template-columns:1fr;gap:2.5rem}
}

/* ============================================================
   VILLA PAGE — matched to original
   ============================================================ */
/* Split hero with ghosted title */
.villa-hero{padding:clamp(8rem,14vh,11rem) 0 clamp(3rem,7vw,6rem)}
.villa-hero__grid{display:grid;grid-template-columns:1fr 1.15fr;gap:clamp(2rem,5vw,4.5rem);align-items:center}
.villa-hero__text{position:relative}
.villa-hero__ghost{position:absolute;left:-.06em;top:-.62em;font-family:var(--serif);font-weight:500;
  font-size:clamp(4rem,11vw,9rem);line-height:1;color:rgba(247,244,235,.05);pointer-events:none;white-space:nowrap;z-index:0}
.villa-hero__title{position:relative;z-index:1;font-size:clamp(2.6rem,6vw,4.6rem);margin:0 0 1.3rem}
.villa-hero__text p{position:relative;z-index:1;color:#c3cfcd;max-width:46ch}
.villa-hero__media img{width:100%;aspect-ratio:16/11;object-fit:cover;border-radius:4px;box-shadow:var(--shadow)}

/* Alternating feature rows */
.villa-features{padding:clamp(1rem,3vw,3rem) 0 clamp(3.5rem,8vw,7rem)}
.villa-features .wrap{display:grid;gap:clamp(3rem,7vw,6rem)}
.feature-row{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,4.5rem);align-items:center}
.feature-row--reverse .feature-row__media{order:2}
.feature-row__media img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:4px;box-shadow:var(--shadow)}
.feature-row__text .h-section{margin-bottom:.7rem}
.feature-row__text p{color:#c3cfcd;max-width:52ch}

/* Amenities — image + two-column icon list */
.villa-amenities{padding:clamp(3.5rem,8vw,7rem) 0}
.villa-amenities__grid{display:grid;grid-template-columns:1fr 1.1fr;gap:clamp(2rem,5vw,4.5rem);align-items:center}
.villa-amenities__media img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:4px;box-shadow:var(--shadow)}
.villa-amenities__body .h-section{margin-bottom:1.8rem}
.amenity-list{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem 2rem}
.amenity-list li{display:flex;align-items:flex-start;gap:.85rem;font-size:.98rem;line-height:1.45;color:var(--cream)}
.amenity-list__ic{flex:none;color:#cdb488;margin-top:.05rem}

/* ============================================================
   ABOUT PAGE — matched to original
   ============================================================ */
.about-intro{padding:clamp(8rem,14vh,11rem) 0 clamp(3rem,7vw,5rem)}
.about-intro__grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,4.5rem);align-items:start}
.about-intro__text{position:relative}
.about-ghost{position:absolute;left:-.04em;top:-.44em;font-family:var(--serif);font-weight:500;
  font-size:clamp(3.6rem,9vw,7rem);line-height:1;color:rgba(247,244,235,.07);pointer-events:none;white-space:nowrap;z-index:0}
.about-title{position:relative;z-index:1;font-size:clamp(2.8rem,7vw,5.2rem);margin:0 0 1.6rem}
.about-intro__text > p{color:#c3cfcd;max-width:50ch}
.about-h{margin:2.4rem 0 1rem}
.about-lede{color:#9fb0ad;font-style:italic}

/* scattered image collage */
.about-collage{display:grid;grid-template-columns:1.35fr 1fr;grid-auto-rows:auto;gap:1.1rem;align-items:start}
.about-collage img{width:100%;object-fit:cover;border-radius:3px;box-shadow:var(--shadow)}
.about-collage__a{grid-column:1;grid-row:1;aspect-ratio:3/4}
.about-collage__b{grid-column:2;grid-row:1;aspect-ratio:3/4;width:78%;justify-self:end;margin-top:2.6rem}
.about-collage__c{grid-column:2;grid-row:2;aspect-ratio:4/3;margin-top:.6rem}
.about-collage__d{grid-column:1;grid-row:2;aspect-ratio:1;width:66%;margin-top:-2.2rem}

/* mission / name rows share the villa feature-row look */
.about-row{padding:clamp(2.5rem,6vw,5rem) 0}
.about-row .feature-row__text p{color:#c3cfcd}

@media(max-width:820px){
  .about-intro__grid{grid-template-columns:1fr}
  .about-collage{grid-template-columns:1fr 1fr;max-width:520px}
  .about-collage__b,.about-collage__d{width:100%;margin-top:0}
  .about-collage__d{margin-top:0}
}

/* ============================================================
   EXPLORE PAGE — matched to original
   ============================================================ */
.explore-hero{position:relative;min-height:84vh;display:flex;align-items:center;color:var(--cream);isolation:isolate;overflow:hidden;
  padding:clamp(8rem,14vh,11rem) 0 clamp(4rem,8vw,6rem)}
.explore-hero__bg{position:absolute;inset:0;z-index:-2;background-size:cover;background-position:center}
.explore-hero::after{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(90deg,rgba(14,35,38,.82) 0%,rgba(14,35,38,.5) 48%,rgba(14,35,38,.2) 100%)}
.explore-hero__inner{position:relative;max-width:620px}
.explore-hero__ghost{position:absolute;left:-.04em;top:-.3em;font-family:var(--serif);font-weight:500;
  font-size:clamp(3.4rem,9vw,7rem);line-height:1;color:rgba(247,244,235,.12);pointer-events:none;white-space:nowrap;z-index:0}
.explore-hero__title{position:relative;z-index:1;font-size:clamp(2.8rem,7vw,5.2rem);margin:0 0 1.4rem}
.explore-hero__text{position:relative;z-index:1;max-width:54ch;color:#dfe6e4}

/* --- Villas banner --- */
.explore-hero--villas{min-height:min(84vh,800px);padding:clamp(9rem,16vh,12rem) 0 clamp(4rem,8vw,6rem)}
/* The .wrap is a flex item here, so without an explicit width it shrinks to its
   content and margin-inline:auto centres it. Full width keeps the block left. */
.explore-hero--villas > .wrap{width:100%}
.explore-hero--villas .explore-hero__inner{max-width:none;margin-inline:0}
/* an even, pale veil — the render stays bright rather than being darkened down one side */
.explore-hero--villas::after{
  background:linear-gradient(90deg,rgba(14,35,38,.34) 0%,rgba(14,35,38,.22) 45%,rgba(14,35,38,.10) 100%)}
/* the ghost is filled and clearly present, well larger than the title, riding up and left */
.explore-hero--villas .explore-hero__ghost{
  left:-.05em;top:-.36em;
  font-size:clamp(4.6rem,13.2vw,11rem);
  color:rgba(247,244,235,.30);
  -webkit-text-stroke:0;
  text-shadow:0 2px 30px rgba(14,35,38,.25)}
.explore-hero--villas .explore-hero__title{
  font-size:clamp(3rem,7.8vw,6.2rem);margin:0 0 1.5rem;
  text-shadow:0 2px 24px rgba(14,35,38,.5)}
.explore-hero--villas .explore-hero__text{
  max-width:40ch;text-align:justify;text-wrap:pretty;
  color:#eef2f0;text-shadow:0 1px 14px rgba(14,35,38,.62)}
@media(max-width:700px){
  .explore-hero--villas .explore-hero__text{text-align:left}
}

/* ============================================================
   VILLAS OVERVIEW — matched to original
   ============================================================ */
.villas-grid{position:relative;padding:clamp(3.5rem,8vw,6rem) 0 clamp(4rem,9vw,8rem);overflow:hidden}
.villas-grid::before{content:"";position:absolute;inset:0;opacity:.5;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cg fill='none' stroke='%231d3a3c' stroke-width='1.2'%3E%3Cpath d='M-50 120 C150 60 350 180 550 110 750 40 850 160 950 120'/%3E%3Cpath d='M-50 200 C150 140 350 260 550 190 750 120 850 240 950 200'/%3E%3Cpath d='M-50 300 C180 230 360 360 560 280 760 200 860 330 980 290'/%3E%3Cpath d='M-50 400 C160 340 380 450 580 380 780 310 880 430 980 400'/%3E%3Cpath d='M-50 500 C150 440 350 560 550 490 750 420 850 540 950 500'/%3E%3Cpath d='M-50 600 C180 540 360 660 560 590 760 520 860 640 980 600'/%3E%3C/g%3E%3C/svg%3E")}
.villas-grid > .wrap{position:relative;z-index:1}
.villas-grid__cards{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.2rem,3vw,2.5rem)}
.villa-tile{position:relative;display:block;overflow:hidden;isolation:isolate;aspect-ratio:4/5}
.villa-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .9s var(--ease)}
.villa-tile::after{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(14,35,38,0) 45%,rgba(14,35,38,.75) 100%)}
.villa-tile:hover img{transform:scale(1.05)}
.villa-tile__title{position:absolute;left:clamp(1.4rem,3vw,2.4rem);bottom:clamp(1.2rem,3vw,2.2rem);
  margin:0;color:var(--cream);font-size:clamp(1.8rem,3.4vw,2.8rem)}
@media(max-width:760px){ .villas-grid__cards{grid-template-columns:1fr} }

/* ============================================================
   VILLAS — THE CHOICE (split diptych)
   Two full-height panels divided by a hairline. Considering one
   gives it room and lets the other recede; nothing else moves.
   ============================================================ */
.villa-split{position:relative;padding:0;overflow:hidden}
.villa-split__row{display:flex;min-height:min(88vh,880px)}
.villa-split__panel{position:relative;display:flex;flex:1 1 0;isolation:isolate;overflow:hidden;
  color:var(--cream);text-decoration:none;
  transition:flex-grow .85s var(--ease)}
.villa-split__panel + .villa-split__panel{border-left:1px solid rgba(247,244,235,.16)}
.villa-split__media{position:absolute;inset:0;z-index:-2}
.villa-split__media img{width:100%;height:100%;object-fit:cover;
  transform:scale(1.02);filter:saturate(.82);transition:transform 1.1s var(--ease),filter .8s var(--ease)}
/* These photographs are bright and busy, so the scrim has to do real work:
   near-opaque under the text block, clearing as it rises. */
.villa-split__panel::after{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,
    rgba(14,35,38,.34) 0%,
    rgba(14,35,38,.20) 26%,
    rgba(14,35,38,.62) 58%,
    rgba(14,35,38,.90) 78%,
    rgba(14,35,38,.96) 100%)}
.villa-split__body{position:relative;display:flex;flex-direction:column;align-items:flex-start;
  width:100%;margin-top:auto;padding:clamp(1.8rem,4vw,3.6rem)}

/* the oversized ghost word, the system's own device, at full strength */
.villa-split__ghost{position:absolute;left:clamp(1.2rem,3vw,2.6rem);bottom:clamp(6.5rem,17vw,13rem);
  font-family:var(--serif);font-size:clamp(5rem,13vw,11rem);line-height:.8;letter-spacing:-.02em;
  color:rgba(247,244,235,.09);pointer-events:none;user-select:none;z-index:-1;text-transform:uppercase}
/* Colours are pinned, not inherited — the panel is an <a>, and the global
   a{color:var(--accent)} must never reach the heading or the link line. */
.villa-split__name{color:var(--cream);font-size:clamp(2rem,3.6vw,3.1rem);line-height:1;margin:0 0 .5rem;
  text-shadow:0 2px 18px rgba(14,35,38,.55)}
.villa-split__line{font-family:var(--serif);font-style:italic;font-size:clamp(1rem,1.5vw,1.22rem);
  color:#e7ecea;margin-bottom:1.5rem;text-shadow:0 1px 12px rgba(14,35,38,.5)}

.villa-split__specs{list-style:none;margin:0 0 1.7rem;padding:0;display:grid;gap:.62rem}
.villa-split__specs li{display:flex;align-items:center;gap:.75rem;font-size:.95rem;color:#eef2f0;
  text-shadow:0 1px 10px rgba(14,35,38,.5)}
.villa-split__specs svg{flex:none;color:var(--cream);opacity:.78}

.villa-split__go{display:inline-flex;align-items:center;gap:.6em;color:var(--cream);
  font-family:var(--sans);font-weight:700;
  font-size:.74rem;letter-spacing:.22em;text-transform:uppercase;padding-bottom:.35rem;
  border-bottom:1px solid rgba(247,244,235,.5);transition:border-color .3s var(--ease)}
.villa-split__go::after{content:"→";transition:transform .35s var(--ease)}

/* considering a residence: it takes the room, its photo settles */
.villa-split__panel:hover,
.villa-split__panel:focus-visible{flex-grow:1.42}
.villa-split__panel:hover .villa-split__media img,
.villa-split__panel:focus-visible .villa-split__media img{transform:scale(1.07);filter:saturate(1)}
.villa-split__panel:hover .villa-split__go::after{transform:translateX(6px)}
.villa-split__panel:hover .villa-split__go{border-color:var(--cream)}
.villa-split__panel:focus-visible{outline:2px solid var(--cream);outline-offset:-6px}

@media(max-width:820px){
  .villa-split__row{flex-direction:column;min-height:0}
  .villa-split__panel{min-height:74vh;flex:none}
  .villa-split__panel + .villa-split__panel{border-left:0;border-top:1px solid rgba(247,244,235,.16)}
  .villa-split__panel:hover,.villa-split__panel:focus-visible{flex-grow:0}
}
/* ---- reduced motion -----------------------------------------------------
   Everything below is stated positively rather than as a blanket
   `animation:none`: content must still be VISIBLE, so anything that starts at
   opacity:0 has to be forced to its resting state, not merely un-animated.
   ------------------------------------------------------------------------ */
@media(prefers-reduced-motion:reduce){
  /* scroll reveals resolve immediately, in place */
  [data-reveal],[data-reveal].is-in{opacity:1;transform:none;transition:none;will-change:auto}
  .spirit__img--a{transform:translateY(-1.5rem)}
  .spirit__img--c{transform:translateY(-2.5rem)}

  /* hero entrance resolves to its final frame with no travel */
  .hero__bg,.hero__cross,.hero__eyebrow,.hero__title,.hero__axis{animation:none}
  .hero__cross{opacity:.92}
  .hero__eyebrow,.hero__title{opacity:1}
  .hero__axis{transform:translateX(-50%) scaleY(1)}

  /* scroll-driven drift is switched off entirely — JS also skips the loop */
  [data-parallax]{transform:none;translate:none;inset:0}
  [data-drift]{transform:none}
  .read-progress{display:none}

  /* overlay contents appear with the panel rather than cascading */
  .nav-item,.nav-social,.nav-info{opacity:1;transform:none;transition:none}

  /* hover affordances stay legible but stop moving */
  .villa-split__panel,.villa-split__media img,.villa-split__go,.villa-split__go::after{transition:none}
  .villa-split__panel:hover{flex-grow:1}
  .villa-split__panel:hover .villa-split__media img{transform:scale(1.02)}
  .card img,.place-card img,.villa-tile img{transition:none}
  .card:hover img,.place-card:hover img,.villa-tile:hover img{transform:none}
  .btn:hover{transform:none}
  .btn--pill::before{transition:none}
  .nav-item__sub a::after{transition:none}

  /* the slider still works, it just cuts instead of gliding */
  .showcase__track,.showcase__slide,.showcase__cap,.showcase__bg{transition:none}
  .showcase__slide:not(.is-active) .showcase__cap{transform:none}

  /* form states appear instantly — the error still has to be readable */
  .uline input,.uline textarea,.uline__err{transition:none}

  .footer-links a::after,.footer-social a{transition:none}
}

/* 3 × 2 card grid */
.explore__cards--six{grid-template-columns:repeat(3,1fr)}
@media(max-width:900px){ .explore__cards--six{grid-template-columns:repeat(2,1fr)} }
@media(max-width:600px){ .explore__cards--six{grid-template-columns:1fr} }

@media(max-width:820px){
  .villa-hero__grid,.feature-row,.villa-amenities__grid{grid-template-columns:1fr}
  .villa-hero__media{order:-1}
  .feature-row--reverse .feature-row__media{order:0}
  .villa-amenities__media{max-width:420px}
  .amenity-list{grid-template-columns:1fr}
}

@media(max-width:900px){
  .split,.contact-grid{grid-template-columns:1fr}
  .split--reverse .split__media{order:0}
  .btn--book{display:none}
  .site-header{background:var(--ink)}
}
@media(max-width:560px){ body{font-size:16px} }
