/* ==========================================================================
   Casa Verde Villas — Lush Resort Villa design system
   Fraunces (display serif) + Jost (sans). Deep-green / sage-lime / cream / terracotta.
   ========================================================================== */

:root {
  --green:        #24402E;
  --green-deep:   #17281D;
  --green-soft:   #2E5039;
  --sage:         #8FBF6F;
  --sage-deep:    #6FA24E;
  --cream:        #F3EFE4;
  --cream-warm:   #EDE6D4;
  --terra:        #C1653B;
  --terra-deep:   #A9522C;
  --ink:          #20301F;
  --ink-soft:     #4A5A48;
  --paper:        #FBFAF4;

  --line:         rgba(36,64,46,.14);
  --line-light:   rgba(243,239,228,.20);

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:  "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --radius: 18px;
  --radius-lg: 28px;
  --arch: 46% 46% 12px 12px / 34% 34% 12px 12px;

  --shadow-sm: 0 6px 18px rgba(23,40,29,.08);
  --shadow-md: 0 20px 44px rgba(23,40,29,.16);
  --shadow-lg: 0 40px 90px rgba(23,40,29,.28);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.section { padding-block: clamp(64px, 9vw, 128px); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1.1rem;
}
.eyebrow-light { color: var(--sage); }

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  color: var(--green);
  max-width: 18ch;
}
.section-title.on-dark { color: var(--cream); }
.section-title em { font-style: italic; color: var(--terra); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-intro { margin-top: 1.2rem; color: rgba(243,239,228,.82); font-size: 1.06rem; max-width: 60ch; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--green); color: var(--cream);
  padding: .7rem 1.1rem; border-radius: 10px; z-index: 200;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-sans); font-weight: 500; font-size: .98rem;
  letter-spacing: .01em;
  padding: .92em 1.7em; border-radius: 100px;
  border: 1.5px solid transparent;
  transition: transform .35s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-terra { background: var(--terra); color: #fff; box-shadow: 0 10px 24px rgba(193,101,59,.34); }
.btn-terra:hover { background: var(--terra-deep); }
.btn-ghost-light { color: var(--cream); border-color: rgba(243,239,228,.5); }
.btn-ghost-light:hover { background: rgba(243,239,228,.12); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--cream); }
.btn-outline-light { background: transparent; color: var(--cream); border-color: rgba(243,239,228,.5); }
.btn-outline-light:hover { background: rgba(243,239,228,.12); }
.btn-wa { background: var(--sage-deep); color: #10240f; }
.btn-wa:hover { background: var(--sage); }
.btn-block { width: 100%; margin-top: .5rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(243,239,228,.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark { flex: 0 0 auto; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.28rem; color: var(--green); letter-spacing: -.01em; }
.brand-sub { font-family: var(--font-sans); font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--terra); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); }
.nav > a {
  font-size: .96rem; font-weight: 400; color: var(--ink); position: relative;
  transition: color .25s var(--ease);
}
.nav > a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--terra); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav > a:not(.nav-cta):hover { color: var(--green); }
.nav > a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--green); color: var(--cream); padding: .62em 1.3em; border-radius: 100px;
  font-weight: 500; transition: background .3s var(--ease), transform .3s var(--ease);
}
.nav-cta:hover { background: var(--green-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--green); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(23,40,29,.28) 0%, rgba(23,40,29,.06) 34%, rgba(23,40,29,.62) 100%),
    linear-gradient(75deg, rgba(23,40,29,.55) 0%, rgba(23,40,29,0) 62%);
}
.hero-inner { padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 9vw, 7rem); max-width: 780px; }
.hero-title {
  color: var(--cream);
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  font-weight: 500;
  line-height: 1.02;
  text-shadow: 0 2px 30px rgba(23,40,29,.45);
}
.hero-title em { font-style: italic; color: var(--sage); }
.hero-lede {
  color: rgba(243,239,228,.92); font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  max-width: 52ch; margin-top: 1.5rem; text-shadow: 0 2px 18px rgba(23,40,29,.4);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-arch {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; z-index: 1;
  background: var(--cream);
  -webkit-mask: radial-gradient(120% 100% at 50% 100%, transparent 68%, #000 68.5%);
          mask: radial-gradient(120% 100% at 50% 100%, transparent 68%, #000 68.5%);
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { background: var(--cream); padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2.6rem); }
.stat { text-align: center; padding: 1rem .5rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { display: block; font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.1rem, 4.6vw, 3.1rem); color: var(--green); line-height: 1; }
.stat-label { display: block; margin-top: .6rem; font-size: .86rem; color: var(--ink-soft); letter-spacing: .01em; }

/* ==========================================================================
   Story
   ========================================================================== */
.story { background: var(--cream); }
.story-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.4rem, 5vw, 5rem); align-items: center; }
.story-copy p { color: var(--ink-soft); margin-top: 1.1rem; max-width: 54ch; }
.story-list { list-style: none; padding: 0; margin-top: 1.8rem; display: grid; gap: .9rem; }
.story-list li { padding-left: 1.6rem; position: relative; color: var(--ink-soft); }
.story-list li::before { content: "✦"; position: absolute; left: 0; top: 1px; color: var(--sage-deep); }
.story-list strong { color: var(--green); font-weight: 500; }

.story-figure { position: relative; }
.story-figure img { border-radius: var(--arch); box-shadow: var(--shadow-md); aspect-ratio: 4/5; object-fit: cover; }
.story-figure figcaption {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  background: rgba(23,40,29,.72); color: var(--cream); backdrop-filter: blur(6px);
  padding: .7rem 1rem; border-radius: 12px; font-size: .82rem; line-height: 1.4;
}

/* ==========================================================================
   Collection (dark)
   ========================================================================== */
.collection { background: var(--green); color: var(--cream); position: relative; overflow: hidden; }
.collection::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(143,191,111,.16) 1px, transparent 1.4px);
  background-size: 28px 28px;
}
.collection .wrap { position: relative; }

.villa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.1rem, 2vw, 1.6rem); }
.villa-card {
  background: var(--cream); color: var(--ink); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.villa-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.villa-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.villa-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.villa-card:hover .villa-media img { transform: scale(1.06); }
.villa-tag {
  position: absolute; top: 12px; left: 12px; background: var(--terra); color: #fff;
  font-size: .72rem; font-weight: 500; letter-spacing: .04em; padding: .3em .8em; border-radius: 100px;
}
.villa-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.villa-name { font-size: 1.5rem; color: var(--green); }
.villa-line { font-size: .86rem; color: var(--ink-soft); margin-top: .3rem; }
.villa-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1.1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .9rem 0; }
.villa-specs dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }
.villa-specs dd { font-family: var(--font-serif); font-size: 1.02rem; color: var(--green); font-weight: 500; margin-top: .15rem; }
.villa-price { font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; color: var(--terra); }
.villa-link { margin-top: auto; padding-top: 1rem; font-size: .9rem; font-weight: 500; color: var(--green); transition: color .25s var(--ease), gap .25s; }
.villa-link:hover { color: var(--terra); }

/* ==========================================================================
   Amenities
   ========================================================================== */
.amenities { background: var(--cream-warm); }
.amen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.4rem, 5vw, 5rem); align-items: center; }
.amen-copy p { color: var(--ink-soft); margin-top: 1.1rem; max-width: 50ch; }
.amen-list { list-style: none; padding: 0; margin-top: 1.8rem; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.4rem; }
.amen-list li { display: flex; align-items: flex-start; gap: .6rem; color: var(--green); font-weight: 400; }
.amen-ico { color: var(--sage-deep); }
.amen-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 5/4; object-fit: cover; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery { background: var(--cream); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: clamp(.8rem, 1.6vw, 1.2rem);
}
.g-item { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.g-item:hover img { transform: scale(1.05); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* ==========================================================================
   Team
   ========================================================================== */
.team { background: var(--cream-warm); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.4vw, 2rem); }
.team-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem 1.8rem; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-avatar {
  width: 68px; height: 68px; margin: 0 auto 1.1rem; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-serif); font-weight: 600; font-size: 1.4rem;
  color: var(--cream); background: linear-gradient(140deg, var(--green-soft), var(--green-deep));
  box-shadow: inset 0 0 0 3px rgba(143,191,111,.35);
}
.team-name { font-size: 1.35rem; color: var(--green); }
.team-role { color: var(--terra); font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; margin-top: .25rem; }
.team-bio { color: var(--ink-soft); font-size: .95rem; margin-top: .9rem; }

/* ==========================================================================
   Testimonials (dark)
   ========================================================================== */
.voices { background: var(--green-deep); color: var(--cream); }
.voices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.4vw, 2rem); }
.voice {
  background: rgba(243,239,228,.05); border: 1px solid var(--line-light); border-radius: var(--radius-lg);
  padding: 2rem 1.8rem; display: flex; flex-direction: column;
}
.voice blockquote { font-family: var(--font-serif); font-size: 1.14rem; line-height: 1.5; color: var(--cream); font-weight: 400; }
.voice blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: .5; color: var(--sage); margin-bottom: .6rem; }
.voice figcaption { margin-top: 1.5rem; }
.voice-name { display: block; font-weight: 500; color: var(--sage); }
.voice-meta { display: block; font-size: .82rem; color: rgba(243,239,228,.6); margin-top: .2rem; }

/* ==========================================================================
   Location (dark green)
   ========================================================================== */
.location { background: var(--green); color: var(--cream); }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.4rem, 5vw, 5rem); align-items: center; }
.loc-copy p { color: rgba(243,239,228,.82); margin-top: 1.1rem; max-width: 50ch; }
.loc-list { list-style: none; padding: 0; margin: 1.8rem 0; display: grid; gap: .8rem; }
.loc-list li { display: flex; align-items: baseline; gap: 1rem; color: rgba(243,239,228,.88); border-bottom: 1px dashed var(--line-light); padding-bottom: .7rem; }
.loc-list span { font-family: var(--font-serif); color: var(--sage); font-size: 1.05rem; min-width: 74px; }
.loc-map {
  position: relative; aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(150deg, #2E5039, #1c3324); border: 1px solid var(--line-light);
  box-shadow: var(--shadow-lg);
}
.map-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line-light) 1px, transparent 1px), linear-gradient(90deg, var(--line-light) 1px, transparent 1px); background-size: 40px 40px; }
.map-blob { position: absolute; border-radius: 50%; filter: blur(18px); opacity: .5; }
.map-blob-1 { width: 55%; height: 55%; background: var(--sage); top: -8%; right: -6%; }
.map-blob-2 { width: 42%; height: 42%; background: var(--terra); bottom: -6%; left: -4%; opacity: .35; }
.map-pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--cream); font-weight: 500; letter-spacing: .04em; font-size: .9rem;
}
.map-pin span {
  width: 22px; height: 22px; border-radius: 50% 50% 50% 0; background: var(--terra);
  transform: rotate(-45deg); box-shadow: 0 0 0 8px rgba(193,101,59,.28), var(--shadow-md);
}

/* ==========================================================================
   Visit / Contact
   ========================================================================== */
.visit { background: var(--cream); }
.visit-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2.4rem, 5vw, 4.5rem); align-items: start; }
.visit-info > p { color: var(--ink-soft); margin-top: 1.1rem; max-width: 46ch; }
.visit-details { margin-top: 2.2rem; display: grid; gap: 1.6rem; }
.vd-block h3 { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--terra); margin-bottom: .5rem; font-weight: 500; }
.vd-block address { font-style: normal; color: var(--green); line-height: 1.6; }
.vd-block p { color: var(--green); }
.vd-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.visit-form-card {
  background: var(--green); color: var(--cream); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem); box-shadow: var(--shadow-lg);
  border: 1px solid var(--green-soft);
}
.form-title { font-size: 1.7rem; color: var(--cream); margin-bottom: 1.4rem; }
.enquiry-form .field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.enquiry-form label { font-size: .82rem; letter-spacing: .04em; color: var(--sage); margin-bottom: .45rem; }
.enquiry-form label span { color: var(--terra); }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea {
  font-family: var(--font-sans); font-size: 1rem; color: var(--cream);
  background: rgba(243,239,228,.06); border: 1px solid var(--line-light); border-radius: 12px;
  padding: .8rem .95rem; width: 100%; transition: border-color .25s var(--ease), background .25s var(--ease);
}
.enquiry-form input::placeholder, .enquiry-form textarea::placeholder { color: rgba(243,239,228,.45); }
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus {
  outline: none; border-color: var(--sage); background: rgba(243,239,228,.1);
}
.enquiry-form select option { color: #1a2a1a; }
.enquiry-form textarea { resize: vertical; min-height: 96px; }
.form-reassure { font-size: .8rem; color: rgba(243,239,228,.66); margin-top: .9rem; text-align: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--green-deep); color: rgba(243,239,228,.86); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 3.5rem); padding-block: clamp(3rem, 6vw, 5rem); }
.brand-footer .brand-name { color: var(--cream); }
.footer-tag { margin-top: 1.1rem; max-width: 34ch; color: rgba(243,239,228,.68); font-size: .95rem; }
.footer-nav { display: flex; flex-direction: column; gap: .7rem; }
.footer-nav a { color: rgba(243,239,228,.78); transition: color .25s var(--ease); }
.footer-nav a:hover { color: var(--sage); }
.footer-contact p { font-size: .92rem; line-height: 1.6; color: rgba(243,239,228,.72); margin-bottom: .8rem; }
.footer-contact a:hover { color: var(--sage); }
.socials { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin-top: .4rem; }
.socials a { font-size: .88rem; color: rgba(243,239,228,.8); position: relative; }
.socials a:hover { color: var(--sage); }

.footer-base { border-top: 1px solid var(--line-light); }
.footer-base-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; padding-block: 1.4rem; font-size: .82rem; color: rgba(243,239,228,.58); }
.studio-credit a { color: rgba(243,239,228,.82); text-decoration: underline; text-underline-offset: 3px; transition: color .25s var(--ease); }
.studio-credit a:hover { color: var(--sage); }

/* ==========================================================================
   Contact page hero
   ========================================================================== */
.contact-hero { background: var(--green); color: var(--cream); padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.contact-hero::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(rgba(143,191,111,.16) 1px, transparent 1.4px); background-size: 28px 28px; }
.contact-hero .wrap { position: relative; }
.contact-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); color: var(--cream); max-width: 16ch; }
.contact-hero h1 em { font-style: italic; color: var(--sage); }
.contact-hero p { margin-top: 1.2rem; color: rgba(243,239,228,.85); max-width: 52ch; font-size: 1.06rem; }
.contact-back { display: inline-block; margin-top: 1.6rem; color: var(--sage); font-size: .9rem; }
.contact-back:hover { text-decoration: underline; }

.contact-main { background: var(--cream); }

/* ==========================================================================
   Thank you page
   ========================================================================== */
.thanks {
  min-height: 82vh; display: grid; place-items: center; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #2E5039 0%, var(--green) 45%, var(--green-deep) 100%);
  color: var(--cream); padding: clamp(3rem, 8vw, 6rem) 0;
}
.thanks-inner { max-width: 640px; }
.thanks-badge {
  width: 84px; height: 84px; margin: 0 auto 1.8rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--sage); color: var(--green-deep);
  box-shadow: 0 0 0 12px rgba(143,191,111,.18);
}
.thanks h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); color: var(--cream); }
.thanks h1 em { font-style: italic; color: var(--sage); }
.thanks p { margin-top: 1.2rem; color: rgba(243,239,228,.85); font-size: 1.1rem; }
.thanks-cta { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 2.2rem; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .villa-card:hover, .team-card:hover { transform: none; }
  .villa-media img, .g-item img { transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .villa-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--cream); padding: 1.2rem clamp(20px,5vw,48px) 2rem; gap: .2rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .4s var(--ease); max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav > a { padding: .9rem .2rem; border-bottom: 1px solid var(--line); }
  .nav > a:not(.nav-cta)::after { display: none; }
  .nav-cta { text-align: center; margin-top: .8rem; border-bottom: 0; }
  .nav-toggle { display: flex; }

  .story-grid, .amen-grid, .loc-grid, .visit-grid { grid-template-columns: 1fr; }
  .story-figure { order: -1; }
  .story-figure img { aspect-ratio: 3/2; }
  .amen-list { grid-template-columns: 1fr; }
  .voices-grid, .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .villa-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .g-wide { grid-column: span 2; }
  .g-tall { grid-row: span 1; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-base-inner { flex-direction: column; }
}

@media (max-width: 380px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .g-wide, .g-tall { grid-column: auto; grid-row: auto; }
}
