:root {
  --ivory: #f7f3ec;
  --sand: #ece4d6;
  --stone: #d9cfbd;
  --ink: #1f2420;
  --olive: #2f3a31;
  --muted: #6b6a62;
  --gold: #b08d57;
  --gold-dark: #8f7042;
  --white: #fffdf9;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h3 { font-size: 1.6rem; }
em { font-style: italic; color: var(--gold); }
p { margin: 0 0 1.2em; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.eyebrow {
  font-size: .75rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 1.2em;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-head p:last-child { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block; padding: 16px 34px;
  background: var(--gold); color: var(--white);
  font: 500 .78rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  border: 1px solid var(--gold); border-radius: var(--radius); cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-small { padding: 11px 22px; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px clamp(24px, 4vw, 56px);
  color: var(--white);
  transition: background .5s var(--ease), padding .5s var(--ease), color .5s;
}
.nav.scrolled {
  background: rgba(247, 243, 236, .94); backdrop-filter: blur(10px);
  color: var(--ink); padding-block: 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.brand { font-family: var(--serif); font-size: 1.7rem; letter-spacing: .04em; }
.brand span { font-family: var(--sans); font-size: .62rem; letter-spacing: .4em; text-transform: uppercase; margin-left: 10px; color: var(--gold); vertical-align: middle; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a:not(.btn) { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; background: none; border: 0; width: 32px; height: 20px; position: relative; cursor: pointer; color: inherit; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 1px; background: currentColor; transition: transform .4s var(--ease), top .4s; }
.nav-toggle span:first-child { top: 5px; }
.nav-toggle span:last-child { top: 14px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 10px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 10px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; height: 100vh; min-height: 640px; display: grid; place-items: center; text-align: center; color: var(--white); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: #3b4a44 url("images/web/mutima-2-19.jpg") center/cover;
  animation: heroZoom 20s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,25,22,.6) 0%, rgba(20,25,22,.5) 45%, rgba(20,25,22,.75) 100%); }
.hero-content { text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.hero h1 em { color: #d9b77e; }
.hero-content { position: relative; padding: 0 24px; max-width: 900px; }
.hero .eyebrow { color: var(--stone); }
.hero-sub { font-size: 1.1rem; max-width: 560px; margin: 0 auto 2.4em; opacity: .9; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll-cue { position: absolute; bottom: 36px; left: 50%; width: 1px; height: 60px; background: rgba(255,255,255,.3); overflow: hidden; }
.scroll-cue span { position: absolute; top: -30px; left: 0; width: 1px; height: 30px; background: var(--white); animation: cue 2.2s infinite var(--ease); }
@keyframes cue { to { top: 60px; } }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-text > p:not(.eyebrow) { color: var(--muted); }
.stats { display: flex; gap: 48px; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--stone); }
.stats strong { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 400; line-height: 1; color: var(--olive); }
.stats span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.about-media { position: relative; padding-bottom: 80px; }
.about-media > img:first-child { width: 88%; aspect-ratio: 4/5; object-fit: cover; margin-left: auto; background: var(--sand); }
.about-inset { position: absolute; left: 0; bottom: 0; width: 48%; aspect-ratio: 1; object-fit: cover; border: 10px solid var(--ivory); background: var(--sand); }

/* Villas */
.villas { background: var(--white); }
.villa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 40px; }
.villa-card { cursor: pointer; }
.villa-card .img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--sand); }
.villa-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.villa-card:hover img { transform: scale(1.06); }
.villa-card .tag {
  position: absolute; top: 20px; left: 20px; background: rgba(255,253,249,.92);
  padding: 7px 14px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
}
.villa-card .num { position: absolute; bottom: 14px; right: 22px; font-family: var(--serif); font-size: 4rem; color: rgba(255,255,255,.85); line-height: 1; }
.villa-info { padding-top: 26px; }
.villa-info .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.villa-info h3 { font-size: 2rem; margin: 0; }
.price { font-family: var(--serif); font-size: 1.25rem; color: var(--gold); white-space: nowrap; }
.price small { font-family: var(--sans); font-size: .7rem; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.villa-info p { color: var(--muted); margin: 10px 0 18px; }
.specs { display: flex; gap: 24px; flex-wrap: wrap; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--olive); padding: 16px 0; border-block: 1px solid var(--sand); }
.link-more { display: inline-block; margin-top: 20px; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; border-bottom: 1px solid var(--gold); padding-bottom: 4px; }

/* Amenities */
.amenities { background: var(--olive); color: var(--sand); }
.amenities h2 { color: var(--white); }
.amenity-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.12); border-left: 1px solid rgba(255,255,255,.12); }
.amenity { padding: 48px 40px; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); transition: background .5s; }
.amenity:hover { background: rgba(255,255,255,.04); }
.amenity svg { width: 36px; height: 36px; fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 24px; }
.amenity h3 { color: var(--white); }
.amenity p { margin: 0; opacity: .75; font-size: .95rem; }

/* Banner */
.banner { position: relative; padding: clamp(110px, 15vw, 200px) 24px; text-align: center; color: var(--white); overflow: hidden; }
.banner-bg { position: absolute; inset: -20% 0; background: #4a4f47 url("images/web/mutima-2-4.jpg") center/cover; will-change: transform; }
.banner::after { content: ""; position: absolute; inset: 0; background: rgba(20,25,22,.55); }
.banner blockquote { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.5rem); font-style: italic; line-height: 1.35; }
.banner cite { display: block; margin-top: 28px; font: normal 300 .78rem var(--sans); letter-spacing: .25em; text-transform: uppercase; color: var(--stone); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 14px; }
.gallery-grid figure { margin: 0; overflow: hidden; cursor: zoom-in; background: var(--sand); }
.gallery-grid figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid figure:nth-child(4) { grid-row: span 2; }
.gallery-grid figure:nth-child(6) { grid-column: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .4s; }
.gallery-grid figure:hover img { transform: scale(1.05); opacity: .9; }

/* Location */
.location { background: var(--sand); }
.location-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.location p:not(.eyebrow) { color: var(--muted); }
.distances { list-style: none; padding: 0; margin: 32px 0 0; }
.distances li { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--stone); font-size: .95rem; }
.distances li span:last-child { color: var(--gold-dark); font-family: var(--serif); font-size: 1.15rem; }
.map { aspect-ratio: 4/3; background: var(--stone); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.85) sepia(.15) contrast(.95); }

/* Booking */
.book-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.book-intro > p:not(.eyebrow) { color: var(--muted); }
.contact-lines { margin-top: 36px; }
.contact-lines p { margin: 0 0 10px; }
.contact-lines span { display: inline-block; width: 100px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.book-form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; background: var(--white); padding: clamp(28px, 4vw, 52px); box-shadow: 0 30px 60px -30px rgba(31,36,32,.25); }
.field { display: flex; flex-direction: column; }
.full { grid-column: 1 / -1; }
.field label { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  font: 300 1rem var(--sans); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--stone); padding: 8px 0; border-radius: 0; outline: none;
  transition: border-color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field .invalid, .field input.invalid, .field select.invalid { border-color: #b3533f; }
.field textarea { resize: vertical; }
.estimate { font-family: var(--serif); font-size: 1.2rem; color: var(--olive); min-height: 1.4em; }
.estimate strong { color: var(--gold-dark); font-weight: 500; }
.form-error { color: #b3533f; font-size: .9rem; margin: 0; min-height: 1em; }
.form-success { position: absolute; inset: 0; background: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; }
.form-success[hidden] { display: none; }
.form-success h3 { font-size: 2.6rem; color: var(--gold); }

/* Footer */
.footer { background: var(--ink); color: var(--stone); padding: 80px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand { color: var(--white); display: inline-block; margin-bottom: 14px; }
.footer h4 { font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin: 0 0 18px; }
.footer-grid a:not(.brand) { display: block; margin-bottom: 8px; transition: color .3s; }
.footer-grid a:hover { color: var(--white); }
.copyright { text-align: center; font-size: .78rem; opacity: .5; margin: 30px 0 0; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; visibility: hidden; opacity: 0; transition: opacity .4s, visibility .4s; }
.modal.open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,25,22,.7); }
.modal-panel { position: relative; width: min(1000px, 100%); max-height: 90vh; overflow: auto; background: var(--ivory); transform: translateY(24px); transition: transform .5s var(--ease); }
.modal.open .modal-panel { transform: none; }
.modal-close { position: absolute; top: 12px; right: 16px; z-index: 2; background: rgba(255,253,249,.9); border: 0; width: 42px; height: 42px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.modal-hero { aspect-ratio: 16/8; object-fit: cover; width: 100%; background: var(--sand); }
.modal-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; }
.modal-thumbs img { aspect-ratio: 3/2; object-fit: cover; cursor: pointer; opacity: .7; transition: opacity .3s; background: var(--sand); }
.modal-thumbs img:hover, .modal-thumbs img.active { opacity: 1; }
.modal-content { padding: 40px clamp(24px, 5vw, 56px) 52px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.modal-content h2 { margin-bottom: .2em; }
.modal-content .lead { color: var(--muted); }
.features { list-style: none; padding: 0; margin: 0 0 28px; }
.features li { padding: 10px 0; border-bottom: 1px solid var(--stone); font-size: .95rem; }
.features li::before { content: "—"; color: var(--gold); margin-right: 12px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(15,18,16,.95); display: grid; place-items: center; visibility: hidden; opacity: 0; transition: opacity .4s, visibility .4s; }
.lightbox.open { visibility: visible; opacity: 1; }
.lightbox img { max-width: 88vw; max-height: 85vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); font-size: 3rem; cursor: pointer; opacity: .7; transition: opacity .3s; padding: 10px 20px; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 16px; right: 20px; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .scroll-cue span { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 960px) {
  .about-grid, .location-grid, .book-grid, .modal-content { grid-template-columns: 1fr; }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-grid figure:nth-child(6) { grid-column: span 1; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 30px;
    background: var(--ivory); color: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav-links a:not(.btn) { font-size: 1rem; }
  .nav.menu-open { color: var(--ink); }
  .nav.menu-open .nav-links { opacity: 1; visibility: visible; }
  .villa-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .amenity-grid { grid-template-columns: 1fr; }
  .amenity { padding: 36px 28px; }
  .stats { gap: 28px; }
  .book-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-auto-rows: 150px; gap: 8px; }
}

/* Swipe Villas additions */
.brand { text-transform: uppercase; letter-spacing: .12em; font-weight: 500; }
.villa-info .villa-label { margin: 0 0 4px; font-size: .68rem; }
.villa-info h3 { font-size: 2.2rem; margin: 0; }
.directions { margin-top: 32px; }

/* WhatsApp */
.contact-lines a { border-bottom: 1px solid var(--stone); transition: border-color .3s; }
.contact-lines a:hover { border-color: var(--gold); }
.btn-whatsapp { background: #1f7a4d; border-color: #1f7a4d; }
.btn-whatsapp:hover { background: #17603c; border-color: #17603c; }
.wa-float {
  position: fixed; left: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px 12px 14px; border-radius: 999px;
  background: #1f7a4d; color: #fff;
  font: 500 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.35);
  transition: transform .3s var(--ease), background .3s;
}
.wa-float:hover { transform: translateY(-2px); background: #17603c; }
.wa-float svg { width: 24px; height: 24px; }
body.locked .wa-float { display: none; }
@media (max-width: 560px) {
  .wa-float { padding: 14px; }
  .wa-float span { display: none; }
}

/* Pricing */
.villa-info .row h3 { margin: 0; }
.min-stay { display: block; margin-top: 6px; font-style: normal; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-dark); }
.modal-price { margin: 0 0 20px; }
.modal-price .price { font-size: 1.8rem; }
.modal-price small { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.long-stay { border-left: 2px solid var(--gold); padding-left: 16px; color: var(--ink) !important; }
.long-stay strong { font-weight: 500; }
