/* ==========================================================================
   Elite Manor — Design 04 "Heritage Estate"
   Cream / parchment / forest green / antique bronze / ink
   ========================================================================== */

:root {
  --cream: #f3eee4;
  --parchment: #ebe4d6;
  --parchment-deep: #e2d9c7;
  --green: #1c332b;
  --green-deep: #142620;
  --bronze: #9a7b4f;        /* rules, frames, large type, hover */
  --bronze-ink: #7a5f3a;    /* small labels (>= 4.5:1 on cream) */
  --ink: #221f1c;
  --ink-soft: #4a4540;
  --grey: #66625c;
  --white: #fffdf8;

  --f-display: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --f-caps: "Cinzel", "Trajan Pro", "Cormorant", Georgia, serif;

  --measure: 68ch;
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.6;
  font-feature-settings: "liga", "kern";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--bronze); }

:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: .01em; }

p { margin: 0 0 1.2em; }

ul, ol { margin: 0; padding: 0; list-style: none; }

address { font-style: normal; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--green); color: var(--cream); padding: .6rem 1rem;
  font-family: var(--f-caps); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container.narrow { max-width: 900px; }
.measure { max-width: var(--measure); }
.measure.center { margin-inline: auto; text-align: center; }
.center { text-align: center; }
.center-block { display: block; margin-inline: auto; }
.muted { color: var(--grey); }
.sep { color: var(--bronze); padding-inline: .35em; }

/* ---------- Typographic voices ---------- */
.eyebrow, .sc, .footer-heading, .tab, .btn, .nav-toggle-label, .clock-city,
.person-role, .award-org, .legend-summary, .lot-no, .lot-state, .spec-list dt, .feature-list li,
.detail-list dt, .heritage-form label, .heritage-form legend {
  font-family: var(--f-caps);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.5;
}
.eyebrow { color: var(--bronze-ink); margin: 0 0 .6rem; }
.eyebrow--light { color: var(--parchment-deep); }
.sc { color: var(--bronze-ink); }

.lead { font-family: var(--f-display); font-size: 1.45rem; line-height: 1.4; font-weight: 500; }
.lead--italic { font-style: italic; font-weight: 400; font-size: 1.6rem; color: var(--green); }
.note { color: var(--ink-soft); font-style: italic; font-size: 1rem; }
.note.small { font-size: .95rem; margin-top: 1.5rem; }

.numeral {
  display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.35rem;
  color: var(--bronze); letter-spacing: .12em; margin-bottom: .35rem;
}

.sec-head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.sec-title { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 500; }
.sec-title.center { text-align: center; }
.sec-head .sec-title { margin-bottom: 1rem; }

/* Drop cap */
.dropcap > p:first-of-type::first-letter {
  font-family: var(--f-display); font-weight: 500;
  font-size: 4.3em; line-height: .78; float: left;
  padding: .12em .12em 0 0; color: var(--bronze); margin-top: .04em;
}
.dropcap > p:first-of-type { text-align: left; }

/* ---------- Rules ---------- */
.rule-double {
  display: block; height: 6px; width: 100%; margin: 2.5rem auto;
  border-top: 1px solid var(--bronze); border-bottom: 1px solid var(--bronze);
}
.rule-double--short { width: 120px; margin: .5rem auto 0; }
.rule-double--section { margin: var(--section) auto; }
.rule-double--bronze { border-color: var(--bronze); }

/* ---------- Frames ---------- */
.frame {
  position: relative; display: block;
  border: 1px solid var(--bronze); padding: 18px; background: var(--parchment);
}
.frame::after {
  content: ""; position: absolute; inset: 8px; border: 1px solid var(--bronze); pointer-events: none;
}
.frame--tight { padding: 12px; }
.frame > img, .frame > a > img { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .95rem 2rem; background: var(--green); color: var(--cream);
  border: 1px solid var(--green); transition: background .2s ease, color .2s ease, border-color .2s ease;
  text-align: center; letter-spacing: .2em;
}
.btn:hover { background: var(--bronze); border-color: var(--bronze); color: var(--white); }
.btn--outline { background: transparent; color: var(--green); border-color: var(--bronze); }
.btn--outline:hover { background: var(--green); border-color: var(--green); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--green); border-color: var(--cream); }
.btn--light:hover { background: var(--bronze); border-color: var(--bronze); color: var(--white); }
.btn--disabled, .btn--disabled:hover { background: transparent; color: var(--grey); border-color: var(--parchment-deep); cursor: not-allowed; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: var(--cream); border-bottom: 1px solid var(--bronze); position: relative; z-index: 20;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--bronze);
}
.header-inner {
  width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; padding: 1.4rem 0 0;
}
.brand { display: block; width: 190px; }
.brand img { width: 100%; height: auto; }

.site-nav { width: 100%; margin-top: 1.1rem; }
.site-nav > ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 .2rem; }
.site-nav li { position: relative; }
.site-nav a {
  display: block; padding: .8rem .95rem 1rem; font-family: var(--f-caps); font-size: .68rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--bronze-ink); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--bronze); color: var(--bronze-ink); }
.nav-register > a { color: var(--bronze-ink); }
.has-sub > a::after { content: " ▾"; font-size: .75em; color: var(--bronze); }
.sub-nav {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  min-width: 190px; background: var(--parchment); border: 1px solid var(--bronze);
  padding: .4rem 0; opacity: 0; visibility: hidden; transition: opacity .2s ease; z-index: 30;
}
.sub-nav::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--bronze); pointer-events: none; }
.sub-nav a { padding: .7rem 1.2rem; text-align: center; border: 0; }
.has-sub:hover .sub-nav, .has-sub:focus-within .sub-nav { opacity: 1; visibility: visible; }

.nav-toggle {
  display: none; align-items: center; gap: .6rem; padding: .5rem .2rem; color: var(--ink);
}
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; }
.nav-toggle-bars i { display: block; width: 22px; height: 1px; background: var(--ink); transition: transform .25s ease, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ==========================================================================
   Heroes
   ========================================================================== */
.hero, .page-hero { position: relative; overflow: hidden; background: var(--green); }
.hero-img, .page-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-home { height: clamp(520px, 78vh, 820px); }
.hero-home .hero-img { position: absolute; inset: 0; animation: heroFade 1.8s ease-out both; }
.page-hero { height: clamp(300px, 46vh, 480px); }
.page-hero--plain { height: clamp(280px, 52vh, 560px); }
.page-hero .page-hero-img { position: absolute; inset: 0; animation: heroFade 1.4s ease-out both; }

@keyframes heroFade { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-home .hero-img, .page-hero .page-hero-img { animation: none; }
  html { scroll-behavior: auto; }
}

.hero-band {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(28, 51, 43, .84); color: var(--cream); text-align: center;
  padding: clamp(1.5rem, 4vw, 2.75rem) var(--gutter) clamp(1.6rem, 4vw, 3rem);
  border-top: 1px solid var(--bronze);
}
.hero-band::before {
  content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--bronze);
}
.hero-tagline {
  font-family: var(--f-display); font-size: clamp(1.9rem, 4.5vw, 3.4rem); font-weight: 500;
  letter-spacing: .06em; margin: 0 0 .5rem; line-height: 1.1;
}
.hero-tagline .dot { color: var(--bronze); padding-inline: .1em; }
.hero-title {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.5rem); max-width: 60ch; margin: 0 auto; color: var(--parchment);
}
.page-title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 500; letter-spacing: .03em; }

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding-block: var(--section); }
section.page-hero, section.hero, .le-band, .quote-section, .clocks, .cta-band { padding-block: 0; }

.intro { padding-bottom: 1rem; }
.intro .btn { margin-top: .5rem; }
.intro .note { margin-top: 1.25rem; }

.quote-section { padding-block: 1rem; }
.pull-quote { margin: 0; text-align: center; }
.pull-quote p {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.3; color: var(--green);
  max-width: 30ch; margin: 0 auto;
}
.quote-section .rule-double { max-width: 720px; }

.prose-section { padding-top: clamp(2rem, 5vw, 3.5rem); }
.prose, .measure.center.prose { text-align: left; }
.prose .cta-row { text-align: center; }
.prose p { margin-bottom: 1.4em; }
.prose-section .rule-double { margin: 1.5rem auto; }

/* Video */
.video-section { padding-top: 2rem; }
.video-frame { background: var(--parchment); }
.video-poster {
  position: relative; display: block; width: 100%; padding: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--green);
}
.video-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.video-poster:hover img { transform: scale(1.02); }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(28, 51, 43, .85); color: var(--cream); border: 1px solid var(--bronze); box-shadow: 0 0 0 8px rgba(243, 238, 228, .25);
  transition: background .2s;
}
.play svg { margin-left: 3px; }
.video-poster:hover .play { background: var(--bronze); }
.video-embed { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Awards */
.award-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.5rem); max-width: 1040px; margin-inline: auto; }
.award { text-align: center; padding: 2.2rem 1.5rem 2rem; }
.award img { height: 260px; width: auto; margin: 0 auto 1.4rem; object-fit: contain; }
.award-org { color: var(--bronze-ink); margin-bottom: .4rem; }
.award-year { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; margin-bottom: .5rem; font-weight: 500; }
.award-result { font-family: var(--f-display); font-style: italic; font-size: 1.35rem; margin-bottom: .1rem; color: var(--green); }
.award-cat { margin-bottom: .6rem; }
.award-recipient { font-size: .95rem; color: var(--grey); margin: 0; }

/* About blurb */
.about-blurb { background: var(--parchment); border-top: 1px solid var(--bronze); border-bottom: 1px solid var(--bronze); }
.about-blurb .btn { margin-top: .5rem; }

/* Projects */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); max-width: 1040px; margin-inline: auto; }
.project-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.project-img { width: 100%; }
.project-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project-logo { height: 100px; display: flex; justify-content: center; align-items: center; margin: 1.6rem 0 .6rem; }
.project-logo img { max-height: 100px; max-width: 260px; width: auto; height: auto; object-fit: contain; }
/* cornwell.svg carries only a viewBox (no intrinsic size): give it an explicit width */
.project-logo img[src$="cornwell.svg"] { width: 240px; height: auto; }
.project-blurb { max-width: 42ch; font-family: var(--f-display); font-size: 1.25rem; font-style: italic; color: var(--ink-soft); }
.projects-section--page .rule-double { margin-top: 0; margin-bottom: 3.5rem; }

/* FAQ accordion */
.accordion { border-top: 1px solid var(--bronze); max-width: 820px; margin-inline: auto; }
.acc-item { border-bottom: 1px solid var(--bronze); }
.acc-heading { font-family: inherit; }
.acc-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.25rem .25rem; text-align: left; font-family: var(--f-display); font-size: 1.35rem; font-weight: 500;
  color: var(--ink); transition: color .2s;
}
.acc-trigger:hover { color: var(--bronze-ink); }
.acc-icon { position: relative; flex: 0 0 18px; height: 18px; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; background: var(--bronze); transition: transform .25s ease; }
.acc-icon::before { left: 0; right: 0; top: 8px; height: 1px; }
.acc-icon::after { top: 0; bottom: 0; left: 8px; width: 1px; }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: scaleY(0); }
.acc-panel { padding: 0 .25rem 1.4rem; max-width: 62ch; color: var(--ink-soft); }
.acc-panel p { margin: 0; }

/* World clocks */
.clocks { background: var(--parchment); border-top: 1px solid var(--bronze); border-bottom: 1px solid var(--bronze); padding: 1.5rem var(--gutter); }
.clocks ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem clamp(1.5rem, 5vw, 4.5rem); max-width: var(--container); margin-inline: auto; }
.clocks li { text-align: center; min-width: 110px; }
.clock-city { display: block; color: var(--bronze-ink); margin-bottom: .1rem; }
.clock-time { font-family: var(--f-display); font-size: 1.6rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--green); }

/* ==========================================================================
   Team
   ========================================================================== */
.team-section { padding-bottom: 0; }
.person { text-align: center; }
.arch-frame {
  width: min(320px, 70vw); margin: 0 auto 1.8rem; padding: 14px;
  border: 1px solid var(--bronze); border-radius: 999px 999px 0 0; position: relative; background: var(--cream);
}
.arch-frame::after {
  content: ""; position: absolute; inset: 6px; border: 1px solid var(--bronze); border-radius: 999px 999px 0 0; pointer-events: none;
}
.arch-inner {
  border-radius: 999px 999px 0 0; overflow: hidden; background: var(--parchment); aspect-ratio: 2 / 3;
  background-image: linear-gradient(180deg, var(--parchment) 0%, var(--parchment-deep) 100%);
}
.arch-inner img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transform: scale(1.12); transform-origin: 50% 100%; }
.person-name { font-size: clamp(1.9rem, 3.5vw, 2.5rem); }
.person-role { color: var(--bronze-ink); margin: .35rem 0 0; }
.person .rule-double--short { margin: 1rem auto 1.8rem; }

.partners-section { background: var(--parchment); border-top: 1px solid var(--bronze); margin-top: var(--section); }
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); max-width: 1000px; margin-inline: auto; }
.partner { background: var(--cream); padding: 2.4rem 2rem 2rem; text-align: center; }
.partner-logo { height: 64px; display: grid; place-items: center; margin-bottom: 1.2rem; }
.partner-logo img { max-height: 56px; max-width: 220px; width: auto; height: auto; object-fit: contain; }
.partner-name { font-size: 1.6rem; margin-bottom: .8rem; }
.partner p { margin: 0; text-align: left; color: var(--ink-soft); }

/* ==========================================================================
   Lavish Estates
   ========================================================================== */
.le-band {
  background: var(--green); text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--bronze); position: relative;
}
.le-monogram {
  width: 54px; height: 64px; margin: 0 auto 1.2rem; background-color: var(--bronze);
  -webkit-mask: url("../assets/logos/le-monogram.svg") center / contain no-repeat;
  mask: url("../assets/logos/le-monogram.svg") center / contain no-repeat;
}
.le-logo { width: min(340px, 70vw); height: auto; margin: 0 auto; }

.spec-line { text-align: center; margin: -1.5rem 0 2rem; }
.spec-value { font-family: var(--f-display); font-size: 1.4rem; font-weight: 500; }
.masterplan-frame { max-width: 1040px; margin-inline: auto; }
.masterplan-frame img { width: 100%; }

.legend { text-align: center; margin-top: 2.5rem; }
.legend .eyebrow { margin-bottom: .3rem; }
.legend-summary { margin-bottom: 1.5rem; }
.sc--available { color: var(--bronze-ink); }
.sc--sold { color: var(--grey); }
.legend-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem);
  max-width: 900px; margin-inline: auto; text-align: left;
}
.lot { display: grid; grid-template-columns: 3.2em 1fr auto; align-items: baseline; gap: .6em; padding: .55rem 0; border-bottom: 1px dotted var(--bronze); }
.lot-no { font-weight: 400; }
.lot-type { font-family: var(--f-display); font-size: 1.2rem; font-weight: 500; }
.lot-state { font-size: .62rem; }
.lot--available .lot-no, .lot--available .lot-state { color: var(--bronze-ink); }
.lot--available .lot-type { color: var(--green); }
.lot--sold .lot-no, .lot--sold .lot-state, .lot--sold .lot-type { color: var(--grey); }

.villa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.villa { text-align: center; padding: 2.2rem 1.6rem 1.8rem; display: flex; flex-direction: column; }
.villa-name { font-size: 2.2rem; }
.villa-rooms { margin: .4rem 0 0; }
.villa-num { font-family: var(--f-display); font-size: 1.5rem; font-weight: 500; }
.villa .rule-double--short { margin: .8rem auto 1.4rem; }
.spec-list { margin: 0 0 1.4rem; text-align: left; }
.spec-list > div { display: flex; align-items: baseline; gap: .5em; padding: .35rem 0; }
.spec-list dt { color: var(--bronze-ink); white-space: nowrap; }
.spec-list > div::after { content: ""; order: 2; flex: 1; border-bottom: 1px dotted var(--bronze); transform: translateY(-.3em); }
.spec-list dt { order: 1; }
.spec-list dd { order: 3; margin: 0; white-space: nowrap; font-weight: 500; }
.feature-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .9rem; color: var(--bronze-ink); margin-bottom: 1.6rem; }
.feature-list li::before { content: "◆"; font-size: .5em; vertical-align: .25em; margin-right: .6em; color: var(--bronze); }
.floorplans { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: auto; }
.floorplan { margin: 0; }
.floorplan .frame { background: var(--white); }
.floorplan img { width: 100%; aspect-ratio: 579 / 414; object-fit: contain; background: var(--white); }
.floorplan figcaption { margin-top: .5rem; }

/* Gallery */
.gallery-section { background: var(--parchment); border-top: 1px solid var(--bronze); }
.tabs { display: flex; justify-content: center; gap: 0; margin-bottom: 2rem; border-top: 1px solid var(--bronze); border-bottom: 1px solid var(--bronze); }
.tab { padding: 1rem 1.8rem; color: var(--ink-soft); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s; }
.tab:hover { color: var(--bronze-ink); }
.tab[aria-selected="true"] { color: var(--green); border-bottom-color: var(--bronze); }
.tab-count { letter-spacing: .05em; color: var(--bronze-ink); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 190px; grid-auto-flow: dense; gap: 10px;
}
.g-item { display: block; position: relative; overflow: hidden; background: var(--parchment-deep); border: 1px solid var(--bronze); padding: 5px; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.g-item:hover img { transform: scale(1.03); }
.g-item--portrait { grid-row: span 2; }
.g-item--landscape { grid-row: span 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(20, 38, 32, .94); display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 1.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox-frame { padding: 12px; border: 1px solid var(--bronze); position: relative; background: var(--green-deep); max-height: calc(100vh - 8rem); }
.lightbox-frame::after { content: ""; position: absolute; inset: 5px; border: 1px solid var(--bronze); pointer-events: none; }
.lightbox-frame img { max-height: calc(100vh - 8rem - 24px); max-width: 100%; width: auto; height: auto; object-fit: contain; background: var(--white); }
.lightbox-caption { color: var(--parchment); font-family: var(--f-caps); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 1rem; }
.lightbox-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 1px solid var(--bronze); border-radius: 50%;
  color: var(--cream); display: grid; place-items: center; background: rgba(28, 51, 43, .8); transition: background .2s;
}
.lightbox-btn:hover { background: var(--bronze); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; transform: none; }
.lightbox-btn svg { width: 20px; height: 20px; }
body.lightbox-open { overflow: hidden; }

/* CTA band */
.cta-band { background: var(--green); color: var(--cream); padding: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--bronze); }
.cta-band-text { font-family: var(--f-display); font-style: italic; font-size: 1.5rem; max-width: 40ch; margin: 0 auto 1.5rem; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-section { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.form-section .measure { margin-inline: auto; }
.form-section .rule-double--short { margin: 1.5rem auto 2.5rem; }
.form-section .sec-title { margin-bottom: 1rem; }
.heritage-form { max-width: 620px; margin: 2rem auto 0; }
.field { margin-bottom: 1.8rem; border: 0; padding: 0; min-inline-size: 0; }
.heritage-form label, .heritage-form legend { display: block; color: var(--bronze-ink); margin-bottom: .4rem; }
.heritage-form input[type="text"], .heritage-form input[type="tel"], .heritage-form input[type="email"], .heritage-form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--parchment); border: 0; border-bottom: 1px solid var(--bronze);
  padding: .8rem .9rem; border-radius: 0; transition: border-color .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.heritage-form input:focus, .heritage-form textarea:focus { outline: none; border-bottom-color: var(--green); background: var(--white); box-shadow: 0 1px 0 var(--green); }
.heritage-form textarea { resize: vertical; min-height: 160px; }
.req { color: var(--bronze); }
.radio-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.heritage-form .radio { display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1.1rem; background: var(--parchment); border-bottom: 1px solid var(--bronze); cursor: pointer; font-family: var(--f-body); font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--ink); margin: 0; line-height: 1.3; }
.heritage-form .radio input { accent-color: var(--green); margin: 0; width: 16px; height: 16px; flex: 0 0 16px; }
.radio:has(input:checked) { background: var(--green); color: var(--cream); }
.form-actions { text-align: center; margin-top: 2.2rem; }
.form-status { text-align: center; color: var(--green); font-style: italic; min-height: 1.5em; margin: 0; }
.fallback { margin-top: 2.5rem; }
.fallback .rule-double { margin-bottom: 2rem; }
.fallback p .btn { margin: .4rem .3rem; }
.embed-wrap { margin-top: 1.5rem; }
.embed-inner iframe { width: 100%; height: 1100px; border: 0; background: var(--white); }

.contact-details { padding-top: 0; }
.contact-details .container.narrow { max-width: 1100px; }
.detail-list { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1.3fr; gap: 1.5rem; text-align: center; margin: 0; }
.detail-list dt { color: var(--bronze-ink); margin-bottom: .4rem; }
.detail-list dd { margin: 0; }
.social-inline li { display: inline; }
.social-inline li + li::before { content: "·"; color: var(--bronze); padding-inline: .5em; }

/* Legal */
.legal-h { font-size: 1.7rem; margin: 2.2rem 0 .6rem; }
.legal ul { list-style: none; margin: 0 0 1.4em; padding-left: 1.4em; }
.legal li { position: relative; margin-bottom: .35em; }
.legal li::before { content: "◆"; position: absolute; left: -1.4em; top: .55em; font-size: .45em; color: var(--bronze); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--green); color: var(--parchment); border-top: 1px solid var(--bronze); }
.site-footer a { color: var(--parchment); }
.site-footer a:hover { color: var(--bronze); }
.footer-inner { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; text-align: center; }
.footer-brand { display: block; width: 180px; margin: 0 auto 1.8rem; }
.footer-brand img { width: 100%; height: auto; }
.footer-inner > .rule-double { max-width: 320px; margin: 0 auto 2.5rem; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; text-align: center; }
.footer-heading { color: var(--bronze); margin-bottom: .9rem; font-weight: 400; }
.footer-list li { margin-bottom: .35rem; }
.footer-social { margin-top: .9rem; display: flex; justify-content: center; gap: .3rem; }
.footer-social li { font-family: var(--f-caps); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; }
.footer-social li + li::before { content: "·"; color: var(--bronze); padding-inline: .5em; }
.footer-bottom { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(154, 123, 79, .5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; font-size: .95rem; color: var(--parchment-deep); }
.footer-bottom p { margin: 0; }
.footer-bottom .sep { color: var(--bronze); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .site-nav a { padding-inline: .7rem; font-size: .64rem; letter-spacing: .16em; }
}

@media (max-width: 960px) {
  .header-inner { flex-direction: row; justify-content: space-between; align-items: center; padding: 1rem 0; }
  .brand { width: 150px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--parchment); border-bottom: 1px solid var(--bronze); padding: .5rem 0 1rem; z-index: 40; }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: .9rem var(--gutter); text-align: center; font-size: .72rem; border-bottom: 1px solid rgba(154, 123, 79, .35); }
  .site-nav a[aria-current="page"] { border-bottom-color: rgba(154, 123, 79, .35); }
  .has-sub > a::after { content: ""; }
  .sub-nav { position: static; transform: none; opacity: 1; visibility: visible; border: 0; background: transparent; padding: 0; min-width: 0; }
  .sub-nav::before { display: none; }
  .sub-nav a { padding: .8rem var(--gutter); font-size: .66rem; color: var(--bronze-ink); }
  .sub-nav a::before { content: "— "; color: var(--bronze); }

  .award-grid { grid-template-columns: 1fr; max-width: 440px; }
  .villa-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 160px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body { font-size: 17px; }
  .project-grid, .partner-grid { grid-template-columns: 1fr; max-width: 520px; }
  .legend-list { grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 130px; gap: 8px; }
  .footer-cols { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { justify-content: center; text-align: center; }
  .detail-list { grid-template-columns: 1fr; }
  .hero-home { height: clamp(460px, 80vh, 640px); }
  .hero-band { padding-inline: 1rem; }
  .hero-title { font-size: 1rem; }
  .hero-tagline .dot { display: none; }
  .hero-tagline .tag { display: block; }
  .clocks ul { gap: .8rem 1.5rem; }
  .clocks li { min-width: 90px; }
  .clock-time { font-size: 1.3rem; }
  .lightbox { padding: .75rem; }
  .lightbox-prev { left: .4rem; } .lightbox-next { right: .4rem; }
  .lightbox-btn { width: 40px; height: 40px; }
  .floorplans { grid-template-columns: 1fr 1fr; }
  .dropcap > p:first-of-type::first-letter { font-size: 3.6em; }
  .frame { padding: 14px; }
  .frame::after { inset: 6px; }
  .embed-inner iframe { height: 1300px; }
}

@media (max-width: 420px) {
  .legend-list { grid-template-columns: 1fr; }
  .lot { grid-template-columns: 3em 1fr auto; }
  .gallery-grid { grid-auto-rows: 110px; }
  .villa { padding: 1.8rem 1.1rem 1.4rem; }
  .spec-list dt { font-size: .62rem; letter-spacing: .12em; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .video-section, .clocks, .cta-band, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
}
