:root {
  --ink: #1a1a1a;
  --muted: #6b6560;
  --stone: #123056;
  --stone-soft: #1b3658;
  --sand: #f4efe8;
  --paper: #fbf8f3;
  --line: #d9d0c4;
  --white: #fff;
  --gold: #b0894b;
  --navy: #123056;
  --wa: #128c7e;
  --shadow: 0 18px 50px rgba(26, 26, 26, 0.12);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 700;
}
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; line-height: 1.15; }
.brand img {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: contain; background: transparent;
}
.brand strong { font-family: var(--serif); font-size: 22px; letter-spacing: 0.04em; display: block; }
.brand em { font-style: normal; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); display: block; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--stone); color: var(--white);
  padding: 11px 18px; border-radius: 999px; border: 0;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700;
}
.btn:hover { background: var(--stone-soft); }
.btn-wa { background: var(--wa); }
.btn-wa:hover { background: #0e7a6e; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.menu-toggle { display: none; background: none; border: 0; font-size: 22px; }

/* HERO */
.hero {
  position: relative; min-height: 86vh;
  display: grid; place-items: end start;
  overflow: hidden; color: var(--white);
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-logo {
  position: relative; z-index: 1;
  width: 88px; height: 88px; border-radius: 50%;
  object-fit: contain; margin-bottom: 16px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(20,24,22,.55) 70%, rgba(20,24,22,.72) 100%);
}
.hero-copy { position: relative; z-index: 1; padding: 0 0 72px; width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.hero-copy h1 { font-size: clamp(42px, 7vw, 84px); line-height: 1.02; max-width: 16ch; }
.hero-copy p { max-width: 52ch; margin: 16px 0 28px; font-size: 18px; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* SECTIONS */
section { padding: 84px 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.15; margin: 8px 0 12px; }
.section-head p { color: var(--muted); font-size: 17px; }

.grid-villas { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  display: flex; flex-direction: column;
}
.card.span-7 { grid-column: span 7; }
.card.span-5 { grid-column: span 5; }
.card.span-4 { grid-column: span 4; }
.card.span-6 { grid-column: span 6; }
.card-media { aspect-ratio: 16/11; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.card:hover img { transform: scale(1.04); }
.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 28px; }
.meta { color: var(--muted); font-size: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pill {
  border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px;
  font-size: 12px; letter-spacing: 0.04em; color: var(--stone);
}

/* VILLA PAGE */
.villa-hero { min-height: 72vh; }
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--white);
}
.stat { padding: 22px 12px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 500; }
.stat span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.split p + p { margin-top: 14px; }
.prose { color: #2a2724; font-size: 17px; }
.prose h2 { font-size: 36px; margin: 8px 0 16px; }

.gallery {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
}
.gallery img { width: 100%; height: 220px; object-fit: cover; cursor: zoom-in; }
.gallery img:nth-child(1) { grid-column: span 4; height: 380px; }
.gallery img:nth-child(2) { grid-column: span 2; height: 380px; }
.gallery img:nth-child(n+3) { grid-column: span 2; }

.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.place {
  background: var(--white); border: 1px solid var(--line); padding: 22px;
}
.place h3 { font-size: 22px; margin: 6px 0 12px; }
.place ul { list-style: none; }
.place li { padding: 8px 0; border-bottom: 1px solid var(--sand); font-size: 15px; }
.place li:last-child { border-bottom: 0; }
.place li em { color: var(--muted); font-style: normal; font-size: 13px; display: block; }

.notes { background: var(--sand); }
.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.notes li { margin: 8px 0 8px 18px; color: #333; }

.cta-band {
  background: var(--stone); color: var(--white); text-align: center; padding: 72px 20px;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); margin: 10px 0 16px; }
.cta-band p { color: rgba(255,255,255,.82); margin-bottom: 24px; }

footer { padding: 40px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.lightbox {
  position: fixed; inset: 0; background: rgba(10,10,10,.92);
  display: none; align-items: center; justify-content: center; z-index: 80; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); padding: 18px 22px 24px; border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }
  .menu-toggle { display: block; }
  .grid-villas, .card.span-7, .card.span-5, .card.span-4, .card.span-6 { grid-template-columns: 1fr; grid-column: span 1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .places, .notes-grid { grid-template-columns: 1fr; }
  .gallery, .gallery img, .gallery img:nth-child(1), .gallery img:nth-child(2), .gallery img:nth-child(n+3) {
    grid-column: span 1; height: 220px;
  }
  .hero { min-height: 78vh; }
}

@media print {
  .nav, .menu-toggle, .btn, .hero-actions, .lightbox, .cta-band .btn-wa { display: none !important; }
  body { background: white; font-size: 11pt; }
  .hero, .villa-hero { min-height: 38vh; page-break-after: avoid; }
  section { padding: 18px 0; }
  .gallery img { height: 140px; break-inside: avoid; }
  .card, .place { break-inside: avoid; box-shadow: none; }
  a { text-decoration: none; }
  footer { page-break-before: avoid; }
  .print-only { display: block !important; }
  @page { margin: 14mm; }
}
.print-only { display: none; }
