/* Villa Due Palme
   Design read: premium-consumer hospitality landing, serene Mediterranean
   luxury language. Dials: VARIANCE 7 / MOTION 5 / DENSITY 3.
   Palette family: cobalt + neutral (no brass, no cream-craft default).
   Radius system: 4px on every surface and control. */

@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('fonts/CormorantGaramond-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/CormorantGaramond-500.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/CormorantGaramond-600.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/Outfit-300.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/Outfit-400.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/Outfit-500.woff2') format('woff2'); }

:root {
  --bg: #f5f6f4;
  --surface: #fdfdfc;
  --ink: #1b1d1f;
  --ink-soft: #4c5257;
  --line: #dcdfda;
  --accent: #1f4e6e;
  --accent-ink: #ffffff;
  --scrim: rgb(12 22 30 / 0.38);
  --shadow: 0 24px 60px rgb(31 78 110 / 0.10);
  --radius: 4px;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Outfit', 'Helvetica Neue', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --surface: #1c2024;
    --ink: #e9e8e4;
    --ink-soft: #a7adb2;
    --line: #2c3238;
    --accent: #8db8d4;
    --accent-ink: #10222e;
    --scrim: rgb(6 10 14 / 0.44);
    --shadow: 0 24px 60px rgb(0 0 0 / 0.4);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.35rem; font-weight: 500; }

p { max-width: 65ch; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.narrow { max-width: 760px; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-ghost {
  color: #fff;
  border-color: rgb(255 255 255 / 0.65);
  background: rgb(10 20 28 / 0.25);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgb(10 20 28 / 0.45); }
.btn-outline { color: var(--accent); border-color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent); color: var(--accent-ink); }
.btn-lg { padding: 1rem 2.4rem; font-size: 1rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 2.4rem;
  height: 72px;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  color: #fff;
}
.nav.scrolled {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.nav-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: inherit;
  text-decoration: none;
  margin-right: auto;
}
.nav-links { display: flex; gap: 1.8rem; }
.nav-links a {
  color: inherit;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
  opacity: 0.9;
}
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.nav.scrolled .btn-solid { background: var(--accent); color: var(--accent-ink); }

.lang-switch {
  color: inherit;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  padding: 0.35rem 0.6rem;
  opacity: 0.85;
}
.lang-switch:hover { opacity: 1; }

.nav-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: auto;
    background: none;
    border: 0;
    padding: 10px;
    cursor: pointer;
  }
  .nav-toggle span { width: 26px; height: 2px; background: currentColor; transition: transform 0.2s ease; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-menu {
    position: fixed;
    inset: 72px 0 auto 0;
    z-index: 39;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.4rem;
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { color: var(--ink); text-decoration: none; font-size: 1.1rem; }
  .mobile-menu .btn { text-align: center; color: var(--accent-ink); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: no-preference) {
  /* slow settle-in on the hero photograph: sets the unhurried register of the whole page */
  .hero-img { animation: hero-settle 2.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes hero-settle {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
  }
  .hero-content > * { animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-content > *:nth-child(2) { animation-delay: 0.12s; }
  .hero-content > *:nth-child(3) { animation-delay: 0.24s; }
  .hero-content > *:nth-child(4) { animation-delay: 0.36s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(10 20 28 / 0.62) 0%, rgb(10 20 28 / 0.18) 45%, rgb(10 20 28 / 0.12) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 clamp(1.25rem, 5vw, 4.5rem) clamp(3rem, 8vh, 5.5rem);
  max-width: 820px;
}
.hero .eyebrow { color: rgb(255 255 255 / 0.85); }
.hero-sub {
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 34rem;
  margin-top: 1.1rem;
  color: rgb(255 255 255 / 0.92);
}
.hero-actions { display: flex; gap: 0.9rem; margin-top: 1.8rem; flex-wrap: wrap; }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(5rem, 12vh, 8.5rem) 0 clamp(4rem, 9vh, 6rem); text-align: center; }
.manifesto .narrow p { margin: 0 auto; font-size: 1.15rem; color: var(--ink-soft); }
.manifesto h2 { font-style: italic; font-weight: 500; }
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: clamp(3rem, 7vh, 4.5rem);
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}
.fact-figure {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--accent);
}
.fact-label { font-size: 0.9rem; color: var(--ink-soft); }
@media (max-width: 700px) { .facts { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; } }

/* ---------- Gallery bento ---------- */
.gallery { padding: clamp(3rem, 8vh, 5.5rem) 0; }
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
  margin-top: 2.2rem;
}
.tile {
  border: 0;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--surface);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.tile:hover img { transform: scale(1.04); }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tile-wide { grid-column: span 2; }
.tile-tall { grid-row: span 2; }
@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
}
.gallery-more { margin-top: 1.8rem; text-align: center; }

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.house { padding: clamp(4rem, 10vh, 7rem) 0; }
.split-text > p { color: var(--ink-soft); margin-bottom: 1.6rem; }
.feature-list { list-style: none; }
.feature-list li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
}
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.split-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(160px, auto);
  gap: 14px;
}
.split-media figure { border-radius: var(--radius); overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.media-main { grid-column: span 2; aspect-ratio: 16 / 10; }
.media-small { aspect-ratio: 4 / 3; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- Outdoors strip ---------- */
.outdoors { padding: clamp(3rem, 8vh, 5.5rem) 0; }
.section-lede { color: var(--ink-soft); font-size: 1.1rem; }
.strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2.2rem clamp(1.25rem, 4vw, 3rem) 1rem;
  scrollbar-width: thin;
}
.card {
  flex: 0 0 min(340px, 78vw);
  scroll-snap-align: start;
}
.card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.35rem; }
.card p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Evening statement ---------- */
.evening {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
}
.evening > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.evening-scrim { position: absolute; inset: 0; background: var(--scrim); }
.evening-text { position: relative; z-index: 1; padding: 4rem 1.5rem; }
.evening-text h2 { font-style: italic; font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.evening-text p { margin: 0 auto; max-width: 38rem; color: rgb(255 255 255 / 0.9); }

/* ---------- Region ---------- */
.region { padding: clamp(4rem, 10vh, 7rem) 0; }
.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 2.4rem;
}
.region-feature {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 7fr 5fr;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.region-feature img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.region-feature-text { padding: clamp(1.6rem, 3vw, 2.8rem); align-self: center; }
.region-feature-text p, .region-card p { color: var(--ink-soft); font-size: 0.97rem; }
.region-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.region-card.has-img img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.region-card.has-img > div, .region-card.text-card { padding: 1.4rem 1.5rem 1.6rem; }
.region-card.text-card {
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
}
.region-card h3 { margin-bottom: 0.4rem; }
.dist {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-left: 0.5rem;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .region-grid { grid-template-columns: 1fr; }
  .region-feature { grid-column: span 1; grid-template-columns: 1fr; }
}
.local-food { margin-top: clamp(3rem, 7vh, 4.5rem); }
.local-food h3 { margin-bottom: 1.4rem; }
.food-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.food-cols p { color: var(--ink-soft); font-size: 0.95rem; }
.food-cols strong { color: var(--ink); font-weight: 500; }
@media (max-width: 700px) { .food-cols { grid-template-columns: 1fr; } }

/* ---------- Details ---------- */
.details { padding: clamp(3rem, 8vh, 5.5rem) 0 clamp(4rem, 10vh, 7rem); }
.details-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: 2rem;
}
.details-cols h3 { margin-bottom: 1rem; color: var(--accent); }
.details-cols ul { list-style: none; }
.details-cols li { padding: 0.55rem 0; font-size: 0.96rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
@media (max-width: 860px) { .details-cols { grid-template-columns: 1fr; } }

/* ---------- Booking ---------- */
.booking {
  padding: clamp(4rem, 10vh, 7rem) 0;
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
}
.booking .split { align-items: start; }
.platforms { font-size: 0.95rem; }
.booking-form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-row:has(#f-guests) { grid-template-columns: 1fr 1fr 0.7fr; }
.form-field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.1rem; }
.form-field label { font-size: 0.85rem; font-weight: 500; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--sans);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
}
.form-field textarea { resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ink-soft); }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.form-error { color: #a12d2d; font-size: 0.9rem; margin-bottom: 0.9rem; }
@media (prefers-color-scheme: dark) { .form-error { color: #e08c8c; } }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-success {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: var(--shadow);
  align-self: start;
}
.form-success h3 { font-size: clamp(1.5rem, 3vw, 1.9rem); color: var(--accent); margin-bottom: 0.6rem; }
.form-success p { color: var(--ink-soft); }
@media (max-width: 700px) { .form-row, .form-row:has(#f-guests) { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 3rem 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-brand { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.footer p { color: var(--ink-soft); font-size: 0.92rem; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(8 12 16 / 0.92);
}
.lightbox[hidden] { display: none; }
.lightbox figure {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox figcaption { color: rgb(255 255 255 / 0.75); font-size: 0.9rem; text-align: center; }
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgb(255 255 255 / 0.08);
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: var(--radius);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0.6rem 0.85rem;
  cursor: pointer;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgb(255 255 255 / 0.2); }
.lb-close { top: 1.2rem; right: 1.2rem; font-size: 1.6rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.in { opacity: 1; transform: none; }
}
