/* ==========================================================================
   ZeusCave — styles
   Colours and fonts can be changed in the :root block below.
   ========================================================================== */
:root {
  --sand: #f4eee5;
  --sand-2: #eae1d3;
  --ink: #2b2621;
  --ink-soft: #5f564c;
  --ink-deep: #1f1b17;
  --clay: #9a5a3c;
  --line: rgba(43, 38, 33, .16);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); font-weight: 300; font-size: 1.0625rem; line-height: 1.75;
  color: var(--ink); background: var(--sand); -webkit-font-smoothing: antialiased;
}
body.nav-open, body.lb-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 60px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vw, 150px) 0; }

.eyebrow {
  font-size: .72rem; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; color: var(--clay);
}
.eyebrow--light { color: rgba(255, 255, 255, .85); }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.08; letter-spacing: -.01em; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); margin: .45em 0 .6em; }
p + p { margin-top: 1.1em; }

.section-head { max-width: 760px; margin: 0 auto clamp(48px, 7vw, 88px); text-align: center; }
.section-head p:not(.eyebrow) { color: var(--ink-soft); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block; padding: 1.05em 2.2em; border: 1px solid currentColor;
  font-size: .72rem; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; text-align: center;
  transition: background .3s, color .3s, border-color .3s;
}
.btn--solid { background: var(--ink); border-color: var(--ink); color: var(--sand); }
.btn--solid:hover { background: var(--clay); border-color: var(--clay); }
.btn--sand { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn--sand:hover { background: transparent; color: var(--sand); }
.btn--nav { padding: .85em 1.6em; }
.btn--nav:hover { background: var(--sand); color: var(--ink); border-color: var(--sand); }

.link-arrow {
  display: inline-block; margin-top: 2em; padding-bottom: .35em;
  font-size: .72rem; font-weight: 400; letter-spacing: .26em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; transition: color .3s, letter-spacing .3s;
}
.link-arrow::after { content: '  →'; }
.link-arrow:hover { color: var(--clay); letter-spacing: .32em; }
.link-arrow--light:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter); color: #fff;
  transition: background .35s, color .35s, height .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  height: 68px; background: rgba(244, 238, 229, .96); color: var(--ink); border-color: var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.brand {
  font-family: var(--sans); font-size: 1.3rem; font-weight: 300; line-height: 1;
  letter-spacing: .5em; margin-right: -.5em; /* cancels the trailing letter-space */
  text-transform: uppercase; white-space: nowrap; position: relative; z-index: 3;
}
@media (max-width: 480px) { .brand { font-size: 1.1rem; letter-spacing: .42em; } }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.site-nav ul { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.site-nav li a {
  font-size: .72rem; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
  padding: .4em 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s;
}
.site-nav li a:hover { background-size: 100% 1px; }
.site-header.is-scrolled .btn--nav { border-color: var(--ink); }
.site-header.is-scrolled .btn--nav:hover { background: var(--ink); color: var(--sand); }

.lang-switch { display: flex; gap: 6px; }
.lang-switch button { font-size: .72rem; letter-spacing: .18em; padding: .3em .5em; opacity: .6; border-bottom: 1px solid transparent; }
.lang-switch button.is-active, .lang-switch button:hover { opacity: 1; border-color: currentColor; }

.nav-toggle { display: none; position: relative; z-index: 3; width: 44px; height: 44px; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .3s, top .3s; }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }

@media (max-width: 1360px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; z-index: 2; flex-direction: column; justify-content: center; gap: 36px;
    background: var(--ink-deep); color: var(--sand); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  body.nav-open .site-nav { opacity: 1; visibility: visible; }
  body.nav-open .site-header { color: var(--sand); background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.nav-open .nav-toggle span:first-child { top: 22px; transform: rotate(45deg); }
  body.nav-open .nav-toggle span:last-child { top: 22px; transform: rotate(-45deg); }
  .site-nav ul { flex-direction: column; align-items: center; gap: 14px; }
  .site-nav li a { font-family: var(--serif); font-size: 2rem; letter-spacing: .04em; text-transform: none; font-weight: 300; }
  .site-header.is-scrolled .btn--nav { border-color: currentColor; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 40px) var(--gutter) clamp(28px, 4vw, 48px); color: #fff; background: #4a3d33; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20,16,12,.5) 0%, rgba(20,16,12,.12) 38%, rgba(20,16,12,.68) 100%); }
.hero-content { position: relative; max-width: var(--max); width: 100%; margin: auto auto clamp(40px, 7vw, 90px); text-align: center; }
.hero h1 { font-size: clamp(3.6rem, 11vw, 9.5rem); font-weight: 300; letter-spacing: .02em; margin: .12em 0 .1em; }
.hero-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.8rem); color: rgba(255,255,255,.92); }

.booking-bar {
  position: relative; width: 100%; max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: stretch;
  background: rgba(244, 238, 229, .97); color: var(--ink);
}
.booking-bar label { display: block; min-width: 0; padding: 14px 22px; border-right: 1px solid var(--line); }
.booking-bar label span, .field label { display: block; font-size: .64rem; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); }
.booking-bar input, .booking-bar select {
  width: 100%; margin-top: 2px; padding: 4px 0; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); outline: 0;
}
.booking-bar .btn { border: 0; padding: 0 2.4em; }
@media (max-width: 760px) {
  .booking-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .booking-bar label:nth-child(2) { border-right: 0; }
  .booking-bar label:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); border-right: 0; }
  .booking-bar .btn { grid-column: 1 / -1; padding: 1.2em; }
}

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.intro-text p:not(.eyebrow) { color: var(--ink-soft); max-width: 52ch; }
.intro-media { aspect-ratio: 4 / 5; background: var(--sand-2); overflow: hidden; }
.intro-media img, .villa-photos img, .area-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } .intro-media { aspect-ratio: 4 / 3; } }

/* ---------- Villas ---------- */
.villas { background: var(--sand-2); }
.facts {
  display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.facts li { padding: 34px 12px; text-align: center; border-right: 1px solid var(--line); }
.facts li:last-child { border-right: 0; }
.facts strong { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; }
.facts span { display: block; margin-top: .5em; font-size: .68rem; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.5; }
.villa-photos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 28px); }
.villa-photos figure { aspect-ratio: 4 / 3; background: var(--sand); overflow: hidden; }
.villas-note { margin-top: 2.2em; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ink-soft); }
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts li:nth-child(3) { border-right: 0; }
  .facts li:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) { .villa-photos { grid-template-columns: 1fr; } }

/* ---------- Amenities ---------- */
.amen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(32px, 5vw, 72px); }
.amen { padding: 36px 0 44px; border-top: 1px solid var(--line); }
.amen .icon { width: 34px; height: 34px; fill: none; stroke: var(--clay); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.amen h3 { font-size: 1.7rem; margin-bottom: .35em; }
.amen p { color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 900px) { .amen-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .amen-grid { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery { background: var(--sand-2); }
.tabs { display: flex; justify-content: center; gap: 36px; margin-bottom: 40px; }
.tab { padding: .5em 0; font-size: .74rem; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-color: var(--ink); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.g-item { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, opacity .3s; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.05); opacity: .92; }
@media (max-width: 800px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }

.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(20, 16, 12, .94); padding: 60px 70px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-btn { position: absolute; color: #fff; font-size: 2.6rem; line-height: 1; width: 56px; height: 56px; opacity: .75; transition: opacity .2s; }
.lb-btn:hover, .lb-btn:focus-visible { opacity: 1; }
.lb-close { top: 10px; right: 14px; font-size: 3rem; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: .75rem; letter-spacing: .2em; }
@media (max-width: 600px) { .lightbox { padding: 60px 8px; } }

/* ---------- Project: awards ---------- */
.project .intro-text p:not(.eyebrow) { max-width: 56ch; }
.awards { margin-top: clamp(64px, 9vw, 120px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.awards > .eyebrow { text-align: center; }
.awards-list { counter-reset: award; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); margin: clamp(32px, 4vw, 56px) 0; }
.awards-list li { counter-increment: award; padding-top: 1.4em; border-top: 1px solid var(--line); }
.awards-list li::before { content: counter(award); display: block; font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--clay); margin-bottom: .25em; }
.awards-list h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: .4em; }
.awards-list p { color: var(--ink-soft); max-width: 44ch; }
.awards-note { max-width: 70ch; margin: 0 auto; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 700px) { .awards-list { grid-template-columns: 1fr; } }

/* ---------- Area ---------- */
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.area { background: var(--sand-2); }
.area-media { aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; }
.area-text > p:not(.eyebrow):not(.area-by) { color: var(--ink-soft); }
.area-by { margin: 2em 0 .4em; font-size: .68rem; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--clay); }
.area-list li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.area-list li:first-child { border-top: 1px solid var(--line); }
.area-list b { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; white-space: nowrap; }
@media (max-width: 860px) { .area-grid { grid-template-columns: 1fr; } .area-media { aspect-ratio: 4 / 3; } }

/* ---------- Location ---------- */
.location-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.location-text > p:not(.eyebrow):not(.label):not(.address) { color: var(--ink-soft); }
.location .label { margin-top: 2em; font-size: .68rem; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--clay); }
.location .address { margin: .2em 0 2em; }
.map { aspect-ratio: 4 / 3; background: var(--sand-2); overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) sepia(.12); }
@media (max-width: 860px) { .location-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: var(--ink-deep); color: var(--sand); }
.contact h2 { color: var(--sand); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.contact-text > p:not(.eyebrow) { color: rgba(244, 238, 229, .72); max-width: 44ch; }
.contact-list { margin-top: 2.4em; }
.contact-list div { padding: 16px 0; border-top: 1px solid rgba(244, 238, 229, .16); }
.contact-list div:last-child { border-bottom: 1px solid rgba(244, 238, 229, .16); }
.contact-list dt { font-size: .66rem; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: rgba(244, 238, 229, .55); }
.contact-list dd { font-family: var(--serif); font-size: 1.5rem; }
.contact-list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }

.contact-form .field { margin-bottom: 26px; }
.contact-form .field label { color: rgba(244, 238, 229, .6); }
.field-row { display: grid; grid-template-columns: 1.2fr 1.2fr .7fr; gap: 22px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 8px 0 10px; border: 0; border-bottom: 1px solid rgba(244, 238, 229, .35); border-radius: 0;
  background: transparent; font: inherit; font-size: 1.05rem; color: var(--sand); outline: 0; color-scheme: dark; resize: vertical;
}
.contact-form select option { color: #111; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--sand); }
.contact-form .invalid { border-color: #d98a6a; }
.contact-form .btn { margin-top: 10px; }
.form-hint { margin-top: 16px; font-size: .85rem; color: rgba(244, 238, 229, .5); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } .field-row .field:last-child { grid-column: 1 / -1; } }

/* ---------- Footer ---------- */
.site-footer { background: #151210; color: rgba(244, 238, 229, .6); padding: 34px 0; font-size: .8rem; letter-spacing: .08em; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px; }
.site-footer .brand { font-size: 1rem; color: var(--sand); }
.site-footer a:hover { color: #fff; }

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.contact :focus-visible, .lightbox :focus-visible, .site-header :focus-visible, .hero :focus-visible { outline-color: #fff; }
