:root {
  --paper: #fffdf8;
  --warm: #f1f2ed;
  --ink: #1e2524;
  --muted: #68726f;
  --charcoal: #182120;
  --gold: #b24b35;
  --stone: #d9ddd4;
  --line: rgba(30, 37, 36, 0.14);
  --shadow: 0 24px 70px rgba(15, 22, 20, 0.18);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--warm);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding-bottom: 0; background: linear-gradient(180deg, var(--warm), #eef1eb 48%, var(--paper)); }
body.menu-open, body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--paper);
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(255, 250, 242, 0.95);
  color: var(--ink);
  box-shadow: 0 10px 40px rgba(21, 28, 26, 0.08);
  backdrop-filter: blur(18px);
}

.site-header:not(.is-scrolled):not(.is-open) .brand img {
  filter: brightness(0) invert(1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
}
.brand img { width: clamp(10.5rem, 18vw, 15.5rem); height: auto; display: block; }
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand small { opacity: 0.72; }
.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  font-size: 0.94rem;
}
.main-nav a { opacity: 0.9; }

.header-cta, .button, .card-actions a, .card-actions button {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  padding: 0.82rem 1rem;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.site-header.is-scrolled .header-cta, .site-header.is-open .header-cta { border-color: var(--line); }
.header-cta:hover, .button:hover, .card-actions a:hover, .card-actions button:hover { transform: translateY(-1px); }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 23, 22, 0.92), rgba(16, 23, 22, 0.58) 46%, rgba(16, 23, 22, 0.12)),
    linear-gradient(0deg, rgba(16, 23, 22, 0.78), transparent 56%);
}
.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 9rem 0 4rem;
}
.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Fraunces, Georgia, "Times New Roman", serif; font-weight: 650; letter-spacing: 0; }
h1 {
  max-width: 850px;
  margin-bottom: 1.1rem;
  font-size: clamp(2.85rem, 6.6vw, 6.25rem);
  line-height: 1;
}
h2 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1.05; }
h3 { font-size: 1.18rem; line-height: 1.25; }
.hero-copy {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 2rem 0; }
.button.primary { background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 800; }
.button.secondary { color: #fff; background: rgba(255, 255, 255, 0.08); }
.button.outline { color: var(--ink); border-color: var(--line); background: #fff; }
.hero-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 850px;
  margin: 2.5rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}
.hero-notes div { padding: 1.1rem 1rem 0 0; }
.hero-notes dt { color: rgba(255, 255, 255, 0.6); font-size: 0.78rem; }
.hero-notes dd { margin: 0.25rem 0 0; font-weight: 800; }

.section, .trust-section, .video-section, .contact-section, .location-section, .legal-section, .site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}
.section, .trust-section, .video-section, .location-section, .legal-section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  margin-bottom: 2.4rem;
}
.section-heading h2 { margin-bottom: 0; }
.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 5vw, 4rem);
}
.intro .section-heading { display: block; margin: 0; }
.intro-text { font-size: 1.08rem; line-height: 1.75; }
.muted, .villa-card p, .contact-copy p, .technical-note p, .location-copy p, .legal-card p { color: var(--muted); line-height: 1.65; }

.trust-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-copy p,
.trust-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.trust-grid article {
  min-height: 210px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.84);
  box-shadow: 0 14px 40px rgba(31, 39, 40, 0.05);
}

.trust-grid span {
  display: block;
  margin-bottom: 2rem;
  color: var(--gold);
  font-weight: 800;
}

.villa-grid, .video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.villa-card, .video-grid article, .contact-card {
  background: rgba(255, 250, 242, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(31, 39, 40, 0.06);
}
.panel-number, .villa-card span, .contact-card span {
  display: block;
  color: var(--gold);
  margin-bottom: 2.4rem;
  font-weight: 800;
}
.villa-card { overflow: hidden; }
.villa-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.villa-card-body { padding: 1.25rem; }
.villa-card span { margin-bottom: 0.6rem; font-size: 0.82rem; }

.portfolio-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: -0.8rem 0 1.4rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(178, 75, 53, 0.25);
  border-radius: var(--radius);
  background: rgba(178, 75, 53, 0.08);
}

.portfolio-note strong {
  color: var(--ink);
}

.portfolio-note span {
  color: var(--muted);
  line-height: 1.45;
}

.villa-info {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
}

.villa-info div {
  display: grid;
  gap: 0.18rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.villa-info dt {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.villa-info dd {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.35;
}

.technical-note {
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.84);
}

.technical-note h3 {
  margin-bottom: 0.4rem;
}

.technical-note p {
  margin-bottom: 0;
}

.card-actions { display: flex; gap: 0.65rem; flex-wrap: wrap; margin-top: 1.2rem; }
.card-actions a, .card-actions button {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  cursor: pointer;
}
.card-actions button { color: #fff; background: var(--charcoal); }

.location-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  border-top: 1px solid var(--line);
}

.location-actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.location-actions a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.2rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 800;
}

.location-actions a::after {
  content: "›";
  color: var(--gold);
  font-size: 1.4rem;
}

.location-map {
  margin: 0;
}

.location-map img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 40px rgba(31, 39, 40, 0.08);
}

.location-map figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.video-section { padding-top: 0; }
.video-grid article { padding: 1rem; }
.video-grid h3 { margin: 0 0 0.8rem; }
video {
  width: 100%;
  aspect-ratio: 9 / 16;
  display: block;
  background: #0c1110;
  border-radius: var(--radius);
}

.legal-section {
  border-top: 1px solid var(--line);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.legal-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.84);
  box-shadow: 0 14px 40px rgba(31, 39, 40, 0.05);
}

.legal-card h3 {
  margin-bottom: 1rem;
}

.legal-card dl {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.legal-card dl div {
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.legal-card dt {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.legal-card dd {
  margin: 0.25rem 0 0;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.35;
}

.legal-note {
  background: #fff;
}

.legal-note p:last-child {
  margin-bottom: 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.contact-card { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); }
.contact-card span { margin-bottom: 0; }
.contact-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
}
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer strong { display: block; color: var(--ink); margin-bottom: 0.35rem; }
.site-footer p { max-width: 760px; margin: 0.25rem 0 0; line-height: 1.55; }
.site-footer nav { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--ink); }
.mobile-action-bar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 45;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(480px, calc(100% - 1.4rem));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(24, 33, 32, 0.94);
  box-shadow: 0 16px 44px rgba(15, 22, 20, 0.26);
  backdrop-filter: blur(16px);
}

.mobile-action-bar a {
  padding: 0.95rem 0.6rem;
  color: #fff;
  text-align: center;
  font-weight: 800;
}

.mobile-action-bar a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-action-bar a:nth-child(2) {
  background: #1f8f54;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 4rem 1rem;
  background: rgba(8, 12, 11, 0.88);
}
.gallery-modal[hidden] { display: none; }
.gallery-modal figure { width: min(960px, 100%); margin: 0; }
.gallery-modal img {
  width: 100%;
  max-height: 78vh;
  display: block;
  object-fit: contain;
  border-radius: var(--radius);
  background: #111;
}
.gallery-modal figcaption { margin-top: 0.8rem; color: #fff; text-align: center; font-weight: 800; }
.modal-close, .modal-nav {
  position: fixed;
  z-index: 95;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}
.modal-close { right: 1rem; top: 1rem; width: 3rem; height: 3rem; border-radius: 50%; font-size: 2rem; }
.modal-nav { top: 50%; width: 3.2rem; height: 4rem; transform: translateY(-50%); border-radius: var(--radius); font-size: 2.4rem; }
.modal-nav.prev { left: 1rem; }
.modal-nav.next { right: 1rem; }
:focus-visible { outline: 3px solid rgba(192, 147, 85, 0.5); outline-offset: 3px; }

@media (max-width: 980px) {
  .villa-grid, .video-grid, .legal-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: auto auto; }
  .brand img { width: 12.2rem; }
  .menu-toggle {
    justify-self: end;
    display: grid;
    gap: 0.28rem;
    width: 2.75rem;
    height: 2.75rem;
    place-content: center;
    border: 1px solid currentColor;
    border-radius: var(--radius);
    color: inherit;
    background: transparent;
  }
  .menu-toggle span { display: block; width: 1.1rem; height: 2px; background: currentColor; }
  .main-nav {
    position: fixed;
    inset: 4.8rem 1rem auto;
    display: none;
    grid-column: 1 / -1;
    padding: 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: grid; }
  .header-cta { display: none; }
  .hero-notes, .section-heading, .intro, .trust-section, .contact-section, .location-section { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  h1 { font-size: clamp(2.7rem, 16vw, 4.4rem); }
  body { padding-bottom: 5.5rem; }
  .portfolio-note { display: grid; }
  .hero-actions, .hero-notes, .trust-grid, .villa-grid, .video-grid, .legal-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero { min-height: 94svh; }
  .hero-content { padding-bottom: 5.5rem; }
  .button { text-align: center; }
  .site-footer { display: grid; }
  .mobile-action-bar { display: grid; }
  .modal-nav { top: auto; bottom: 1rem; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
