/* ==========================================================================
   KEDONGANAN LANDING PAGE — MAIN STYLESHEET (shared by public + private page)
   --------------------------------------------------------------------------
   Search for the ALL-CAPS titles to jump to a part:
     1. FONTS              9. SECTION: THE PLACE (public)
     2. DESIGN TOKENS     10. SECTION: STORY + DISTANCES (public)
     3. BASE              11. SECTION: THE MARKET (public)
     4. LAYOUT            12. SECTION: PRIVATE ACCESS + FORM (public)
     5. TYPE STYLES       13. SECTION: THE LAND (private)
     6. BUTTONS & LINKS   14. SECTION: ZONING (private)
     7. HEADER            15. SECTION: THE FIVE WAYS (private)
     8. HERO              16. SECTION: NEXT STEPS (private)
                          17. FORMS (both pages)
                          18. FOOTER
   Screen sizes: mobile 390 · tablet 768 · desktop 1440.
   "fluid" = grows smoothly from the mobile value (390px screen) to the
   desktop value (1440px screen), using clamp(min, formula, max).
   ========================================================================== */


/* 1. FONTS ================================================================ */

@font-face { font-family: "Junge"; src: url("../fonts/junge-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }


/* 2. DESIGN TOKENS ======================================================== */

:root {
  /* Colours (from the Figma design) */
  --color-bg:          #f4f2eb;  /* page background */
  --color-ivory:       #fcfcf7;  /* text on photos */
  --color-white:       #ffffff;  /* cards */
  --color-sand:        #e8e5dc;  /* behind photos while they load */
  --color-ember:       #d64820;  /* accent */
  --color-ember-deep:  #c4421c;  /* primary buttons, small accent text */
  --color-ember-light: #f08a5d;  /* lock icons on dark */
  --color-tide:        #0f3341;  /* headings, footer */
  --color-text:        #3d5560;  /* secondary body text */
  --color-muted:       #566b78;  /* labels, captions */
  --color-line:        #e3e0d6;  /* dividers */
  --color-field-line:  #7d8e98;  /* form underline */
  --color-notice-line: #b7c2c7;  /* footer notice border */
  --color-error:       #b3261e;

  /* Fonts */
  --font-display: "Junge", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Page side margins + content width */
  --page-margin: 20px;
  --container-max: 1200px;

  /* Vertical rhythm (fluid) */
  --section-space: clamp(64px, 28.3px + 9.143vw, 160px);  /* top of each section */
  --block-space:   clamp(40px, 31.1px + 2.286vw, 64px);   /* between blocks inside a section */
  --eyebrow-gap:   clamp(32px, 26.1px + 1.524vw, 48px);   /* label → content */

  --button-height: 56px;
  --header-height: clamp(54px, 37.7px + 4.19vw, 98px);
}
@media (min-width: 768px) { :root { --page-margin: 32px; } }


/* 3. BASE ================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-tide);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

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

.skip-link {
  position: absolute; top: -100px; left: var(--page-margin); z-index: 200;
  padding: 12px 16px; background: var(--color-tide); color: var(--color-white);
  font-size: 14px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Icons (drawn with lines, take the colour of the text around them) */
.icon { display: inline-block; flex-shrink: 0; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

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


/* 4. LAYOUT =============================================================== */

.container {
  width: 100%;
  max-width: calc(var(--container-max) + var(--page-margin) * 2);
  margin-inline: auto;
  padding-inline: var(--page-margin);
}

.section { padding-top: var(--section-space); }
.section:last-of-type { padding-bottom: clamp(36px, 0px + 6.9vw, 108px); }

/* Photo frame: keeps the space reserved before the photo loads (no jumping) */
.media {
  position: relative;
  overflow: hidden;
  background: var(--color-sand);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section intro: heading, optional photo, text.
   Mobile: stacked in that order. Desktop: heading left, text right,
   photo full width underneath. */
.section-intro {
  display: grid;
  gap: 40px;
  margin-top: 40px;
}
.intro-text { display: grid; gap: 48px; }
@media (min-width: 1024px) {
  .section-intro {
    grid-template-columns: minmax(0, 640fr) minmax(0, 486fr);
    grid-template-areas: "title text" "media media";
    column-gap: 74px;
    row-gap: 0;
    align-items: start;
  }
  .intro-title { grid-area: title; }
  .intro-text  { grid-area: text; padding-top: 4px; }
  .intro-media { grid-area: media; margin-top: 96px; }
}


/* 5. TYPE STYLES ========================================================== */

/* Section label: "01/  THE PLACE" */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.eyebrow-number { color: var(--color-ember-deep); }

/* Small caps label in accent colour: "DISTANCES FROM THE SITE" */
.label-caps {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ember-deep);
}

/* Section headline (H2) */
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 14.6px + 3.429vw, 64px);            /* fluid 28 → 64 */
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-tide);
  text-wrap: balance;
}

/* Main reading text (Junge, as in the design) */
.lead {
  font-family: var(--font-display);
  font-size: clamp(16px, 14.5px + 0.381vw, 20px);            /* fluid 16 → 20 */
  line-height: 1.62;
  color: var(--color-tide);
  max-width: 40em;
}
.lead-muted { color: var(--color-text); }

.source-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-muted);
}


/* 6. BUTTONS & LINKS ====================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: var(--button-height);
  padding: 18px 32px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--color-ember-deep); color: var(--color-white); }
.btn-primary:hover { background: #ad3a18; }
.btn-secondary { background: transparent; border-color: var(--color-tide); color: var(--color-tide); }
.btn-secondary:hover { background: var(--color-tide); color: var(--color-white); }
.btn-block { width: 100%; }
.btn .icon { transition: transform 0.2s ease; }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn:hover .icon-download { transform: translateY(2px); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Underlined text link: "EXPLORE THE PLACE" */
.link-underline {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 0 2px;   /* taller tap area */
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.link-underline::after {
  content: "";
  height: 1px;
  background: var(--link-line, currentColor);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.link-underline:hover::after { transform: scaleX(0.6); }


/* 7. HEADER ===============================================================
   Logo on the left, actions on the right. Sticks to the top when scrolling. */

.topbar {                       /* private page only: "PRIVATE & CONFIDENTIAL" */
  background: var(--color-tide);
  color: var(--color-ivory);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.topbar .icon { color: var(--color-ember-light); }
.topbar-long { display: none; }
@media (min-width: 768px) {
  .topbar .container { justify-content: flex-start; min-height: 40px; }
  .topbar-long { display: inline; }
  .topbar-short { display: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
}

/* Text logo (temporary until the real logo file is ready) */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: var(--font-display);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.logo-name {
  font-size: clamp(14px, 12.5px + 0.381vw, 18px);
  letter-spacing: 0.24em;
  margin-right: -0.24em;
}
.logo-tagline { font-size: clamp(7px, 6.26px + 0.19vw, 9px); letter-spacing: 0.02em; }

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 8px + 2.1vw, 40px);
}
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  text-decoration: none;
}
.header-link:hover { color: var(--color-ember-deep); }
.header-link-optional { display: none; }
@media (min-width: 768px) { .header-link-optional { display: inline-flex; } }

/* Buyer menu ("JD" initials) — private page */
.account { position: relative; }
.account summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
}
.account summary::-webkit-details-marker { display: none; }
.account-initials {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.account[open] .icon-chevron { transform: rotate(180deg); }
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 16px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  box-shadow: 0 12px 32px rgba(15, 51, 65, 0.08);
  font-size: 14px;
}
.account-menu p { color: var(--color-muted); margin-bottom: 12px; }
.account-menu a { font-weight: 500; }


/* 8. HERO ================================================================= */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: clamp(473px, 366.4px + 27.33vw, 760px);       /* fluid 473 → 760 */
  padding-top: clamp(165px, 145.7px + 4.952vw, 217px);       /* fluid */
  padding-bottom: clamp(24px, 7.6px + 4.2vw, 60px);
  color: var(--color-ivory);
  text-align: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--color-sand);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {                 /* dark layer so white text stays readable */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, var(--hero-shade, 0.2));
}
.hero-content { display: flex; flex-direction: column; align-items: center; }

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: clamp(10px, 4.06px + 1.524vw, 26px);
  font-size: clamp(12px, 9.77px + 0.571vw, 18px);
  line-height: 1.25;
  text-transform: uppercase;
}
.hero-title {
  margin-top: clamp(12px, 3.8px + 2.095vw, 34px);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 8.91px + 4.381vw, 72px);             /* fluid 26 → 72 */
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero-title span, .h2-line { display: block; }
.hero-subline {
  margin-top: clamp(10px, 5.5px + 1.143vw, 22px);
  font-size: clamp(12px, 9.77px + 0.571vw, 18px);
  text-transform: uppercase;
}

.hero-actions {
  margin-top: clamp(83px, 62.2px + 5.333vw, 139px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.hero-actions .btn-primary { width: 100%; }
.hero-actions .link-underline { --link-line: var(--color-ember); }

@media (min-width: 768px) {
  .hero-actions { flex-direction: row; justify-content: center; gap: 32px; width: auto; }
  .hero-actions .btn-primary { width: auto; }
  .hero-actions .link-underline { padding-top: 2px; --link-line: currentColor; }
}
@media (max-width: 374px) {
  .hero-eyebrow { flex-direction: column; row-gap: 4px; }
  .hero-eyebrow [aria-hidden] { display: none; }
}

/* Private page hero: shorter, lighter shade, single download button */
.hero-private {
  --hero-shade: 0.15;
  min-height: clamp(297px, 169.6px + 32.667vw, 640px);       /* fluid 297 → 640 */
  padding-top: clamp(99px, 77.5px + 5.524vw, 157px);
  padding-bottom: 32px;
}
.hero-private .hero-title { font-size: clamp(28px, 11.7px + 4.19vw, 72px); }
.hero-private .hero-actions { margin-top: auto; padding-top: 32px; display: none; }
.hero-download-mobile { display: flex; justify-content: center; padding-top: 28px; }
.hero-download-mobile .link-underline { --link-line: var(--color-ember); color: var(--color-tide); }
@media (min-width: 768px) {
  .hero-private { padding-bottom: 78px; }
  .hero-private .hero-actions { display: flex; }
  .hero-download-mobile { display: none; }
}


/* 9. SECTION: THE PLACE (public) ========================================== */

.place-aerial { margin-top: var(--eyebrow-gap); aspect-ratio: 350 / 240; }
.place-aerial img { object-position: 50% 88%; }
.place-intro { margin-top: clamp(40px, 24.4px + 4vw, 82px); max-width: 790px; }
.place-intro .lead { max-width: 275px; }
@media (min-width: 600px) { .place-intro .lead { max-width: none; } }

.gallery {
  display: grid;
  gap: 0;
  margin-top: clamp(48px, 33.1px + 3.81vw, 88px);
}
.gallery-item { display: grid; gap: 0; }
.gallery-item .media { aspect-ratio: 350 / 240; }
.gallery-item figcaption {
  padding: 8px 0 10px;
  font-family: var(--font-display);
  line-height: 1.3;
  font-size: clamp(16px, 14.5px + 0.381vw, 20px);
  text-align: center;
  color: var(--color-tide);
}
.gallery-item:nth-child(1) img { object-position: 0% 100%; }
.gallery-item:nth-child(4) img { object-position: 28% 11%; }

@media (min-width: 768px) {
  .place-aerial { aspect-ratio: 1200 / 480; }
  .gallery { grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 56px; }
  .gallery-item .media { aspect-ratio: 588 / 480; }
  .gallery-item figcaption { padding: 32px 0 0; }
}


/* 10. SECTION: STORY + DISTANCES (public) ================================= */

.story-title { margin-top: clamp(64px, 56px + 2vw, 85px); }
.story-wide { margin-top: clamp(40px, 22px + 4.6vw, 88px); aspect-ratio: 350 / 240; }
.story-wide img { object-position: 50% 100%; }
.story-text {
  display: grid;
  gap: 48px;
  margin-top: clamp(40px, 22px + 4.6vw, 88px);
}
.story-text .lead { max-width: 270px; }
.story-text .lead:last-child { justify-self: end; text-align: right; }
@media (min-width: 600px) {
  .story-text .lead { max-width: 33em; }
}
.story-bottom {
  display: grid;
  gap: 48px;
  margin-top: clamp(48px, 30px + 4.6vw, 96px);
}
.story-small { aspect-ratio: 345 / 240; }
.story-small img { object-position: 79% 74%; }

@media (min-width: 768px) {
  .story-wide { aspect-ratio: 1200 / 600; }
}
@media (min-width: 1024px) {
  .story-text, .story-bottom {
    grid-template-columns: minmax(0, 588fr) minmax(0, 486fr);
    column-gap: 126px;
  }
  .story-text .lead { max-width: none; }
  .story-text .lead:last-child { justify-self: start; text-align: left; }
  .story-small { aspect-ratio: 588 / 410; }
}

/* Key–value list with dividers (distances, land facts) */
.kv-list { display: grid; }
.kv-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--color-line);
}
.kv-key { font-family: var(--font-display); font-size: 16px; line-height: 1.6; }
.kv-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 23.5px + 1.143vw, 40px);           /* fluid 28 → 40 */
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}
.distances .label-caps { margin-bottom: 0; }
@media (min-width: 1024px) {
  .kv-row { padding: 20px 0 22px; }
}


/* 11. SECTION: THE MARKET (public) ======================================== */

.market-title { margin-top: 40px; }
.market-intro { margin-top: 40px; max-width: 275px; }
@media (min-width: 600px) { .market-intro { max-width: 34em; } }

.market-stats {
  display: grid;
  gap: 24px;
  margin-top: clamp(40px, 34px + 1.5vw, 56px);
}
.market-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 16px;
}
.market-stat .media { aspect-ratio: 1; }
.market-stat:nth-child(even) .media { order: -1; }        /* zig-zag on mobile */
.market-stat:nth-child(even) .market-stat-text { padding-left: 34px; }
.market-stat-text { padding-left: 13px; }
.market-number {
  display: block;
  font-weight: 400;
  font-family: var(--font-display);
  font-size: clamp(26px, 11.9px + 3.619vw, 64px);            /* fluid 26 → 64 */
  line-height: 1.25;
}
.market-label {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(16px, 14.5px + 0.381vw, 20px);
  line-height: 1.6;
}
.market-source { margin-top: 40px; max-width: 18em; }

@media (min-width: 768px) {
  .market-intro { display: none; }        /* desktop design shows only the stats */
  .market-title { display: none; }
  .market-stats { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .market-stat { grid-template-columns: 1fr; row-gap: 40px; align-items: start; }
  .market-stat .media,
  .market-stat:nth-child(even) .media { order: -1; }
  .market-stat .market-stat-text,
  .market-stat:nth-child(even) .market-stat-text { padding-left: 0; }
  .market-number { line-height: 1.1; }
  .market-label { line-height: 1.4; margin-top: 4px; }
  .market-source { max-width: none; margin-top: 48px; }
}


/* 12. SECTION: PRIVATE ACCESS + FORM (public) ============================= */

.access {
  display: grid;
  gap: 40px;
}
.access-copy .h2 { margin-top: 40px; }
.access-copy .lead { margin-top: 40px; font-size: clamp(16px, 15.3px + 0.19vw, 18px); color: var(--color-text); }

.inside-title { margin-top: 40px; }
.inside-list { margin-top: 0; }
.inside-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line);
}
.inside-item .icon { color: var(--color-ember-deep); margin-top: 3px; }
.inside-item strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 15px; line-height: 1.4; }
.inside-item span { display: block; font-family: var(--font-display); font-size: 14px; line-height: 1.55; color: var(--color-muted); }

.steps-title { margin-top: 40px; }
.steps { display: grid; gap: 16px; margin-top: 16px; }
.step { display: flex; align-items: baseline; gap: 16px; }
.step-number {
  width: 36px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 25.3px + 0.19vw, 28px);
  line-height: 1.25;
  color: var(--color-ember);
}
.step-text { font-family: var(--font-display); font-size: 14px; line-height: 1.55; }

@media (min-width: 1024px) {
  .access { grid-template-columns: minmax(0, 520fr) minmax(0, 560fr); column-gap: 120px; align-items: start; }
  .inside-item { gap: 16px; padding: 20px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
  .step { flex-direction: column; gap: 8px; }
}


/* 13. SECTION: THE LAND (private) ========================================= */

.land-photo { aspect-ratio: 390 / 248; }
.land-photos { display: grid; gap: 40px; margin-top: 64px; }
.land-photos .media { margin-inline: calc(var(--page-margin) * -1); }
.land-photos .land-site-plan img { object-position: 0% 50%; }
.land-aerial { margin-inline: calc(var(--page-margin) * -1); aspect-ratio: 390 / 255; }
.land-text .lead:last-child { margin-left: 26%; }
@media (min-width: 1024px) { .land-text { gap: 120px; } }
.land-location { display: grid; gap: 40px; margin-top: 48px; }
.land-location > .label-caps { margin-bottom: -8px; }
.land-map { aspect-ratio: 350 / 280; }
.land-map img { object-position: 50% 50%; }

.facts { display: grid; gap: 32px; }
.fact dt { margin-bottom: 4px; }
.fact dd { font-family: var(--font-display); font-size: clamp(18px, 17.3px + 0.19vw, 20px); line-height: 1.4; }

@media (min-width: 768px) {
  .land-photos .media { margin-inline: 0; }
  .land-aerial { display: none; }               /* mobile-only photo in the design */
  .land-photo { aspect-ratio: 1200 / 534; }
  .land-photos { gap: 96px; margin-top: 96px; }
  .land-photos .land-site-plan img { object-position: 50% 14%; }
  .land-photos .media:not(.land-site-plan) img { object-position: 50% 100%; }
  .land-location > .label-caps { display: none; } /* desktop design has no label here */
}
@media (min-width: 1024px) {
  .land-text .lead:last-child { margin-left: 0; }
  .land-location {
    grid-template-columns: minmax(0, 612fr) minmax(0, 482fr);
    column-gap: 106px;
    align-items: start;
    margin-top: 96px;
  }
  .land-map { aspect-ratio: 612 / 358; }
  .land-map img { object-position: 50% 100%; }
  .facts { gap: 0; }
  .fact {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    padding: 20px 0 26px;
    border-bottom: 1px solid var(--color-line);
  }
  .fact dt { margin: 0; }
  .fact dd { text-align: right; }
}


/* 14. SECTION: ZONING (private) =========================================== */

.zoning-photo { aspect-ratio: 349 / 80; }

.zoning-card {
  margin-top: 48px;
  margin-inline: calc(var(--page-margin) * -1);
  padding: 32px var(--page-margin) 32px;
  background: var(--color-white);
}
.zoning-table { width: 100%; border-collapse: collapse; }
.zoning-table th {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-tide);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ember-deep);   /* mobile: accent; desktop: dark (below) */
  text-align: left;
  vertical-align: bottom;
}
.zoning-table th:last-child { text-align: right; }
.zoning-table td { display: block; padding: 20px 0 0; vertical-align: top; }
.zoning-table tr { display: block; border-bottom: 1px solid var(--color-line); }
.zoning-table thead tr { display: flex; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--color-tide); }
.zoning-table th { display: block; border: 0 !important; }
.zoning-table td:first-child {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.zoning-table td:last-child {
  padding: 8px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(28px, 26.5px + 0.381vw, 32px);
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .zoning-photo { aspect-ratio: 1200 / 536; }
  .zoning-card { margin: 96px 0 0; padding: 48px 48px 32px; }
  .zoning-table th { color: var(--color-tide); }
  .zoning-table thead tr { display: table-row; }
  .zoning-table tr { display: table-row; }
  .zoning-table th { display: table-cell; border-bottom: 1px solid var(--color-tide) !important; }
  .zoning-table td { display: table-cell; padding: 24px 0 26px; border-bottom: 1px solid var(--color-line); }
  .zoning-table td:first-child { font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: none; }
  .zoning-table td:last-child { padding: 24px 0 26px; }
}


/* 15. SECTION: THE FIVE WAYS (private) ==================================== */

.options { display: grid; gap: 64px; margin-top: 56px; }
.option { display: grid; gap: 24px; }
.option-media { aspect-ratio: 350 / 195; }
.option-head { display: grid; gap: 2px; }
.option-tag { font-size: 14px; line-height: 1.4; color: var(--color-ember-deep); }
.option-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 21px + 0.762vw, 32px);
  line-height: 1.25;
}
.option-meta {
  display: grid;
  grid-template-columns: 167fr 166fr;
  gap: 17px;
  align-items: start;
}
.option-split {
  padding: 12px 16px;
  background: var(--color-ember);
  color: var(--color-white);
  font-size: 14px;
  line-height: 1.35;
}
.option-split strong { display: block; font-weight: 600; font-variant-numeric: tabular-nums; }
.option-desc { font-family: var(--font-display); font-size: 15px; line-height: 1.35; }

.option-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 8px; }
.option-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
  padding-left: 11px;
  border-left: 0.5px solid var(--color-tide);
  border-left-width: 1px;
}
.option-stat dt { font-size: clamp(12px, 11.3px + 0.19vw, 14px); line-height: 1.2; color: var(--color-ember-deep); }
.option-stat dd {
  font-size: clamp(22px, 18.3px + 0.952vw, 32px);
  font-weight: 700;
  line-height: 1;
  color: var(--color-ember);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .options { gap: 96px; margin-top: 80px; }
  .option {
    grid-template-columns: minmax(0, 588fr) minmax(0, 486fr);
    grid-template-areas: "media head" "media meta" "media stats";
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(40px, -94px + 15vw, 126px);
    row-gap: 0;
  }
  .option-stat dd { font-size: clamp(24px, -6.6px + 2.67vw, 32px); }
  .option-media { grid-area: media; aspect-ratio: 588 / 352; align-self: start; }
  .option-media img { object-position: 34% 99%; }
  .option-head { grid-area: head; gap: 8px; }
  .option-meta { grid-area: meta; grid-template-columns: 1fr; gap: 24px; margin-top: 8px; }
  .option-split {
    padding: 0;
    background: none;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .option-split strong { display: inline; font-weight: 500; }
  .option-split strong::before { content: "|"; margin: 0 8px; }
  .option-desc { font-size: 20px; }
  .option-stats { grid-area: stats; margin-top: 32px; }
  .option-stat { min-height: 163px; padding-left: 12px; }
}


/* 16. SECTION: NEXT STEPS (private) ======================================= */

.next { display: grid; gap: 40px; }
.next .h2 { margin-top: 40px; font-size: clamp(32px, 26.1px + 1.524vw, 48px); }
.next-text { margin-top: 40px; font-size: clamp(16px, 15.3px + 0.19vw, 18px); line-height: 1.65; color: var(--color-text); max-width: 30em; }

.docs .eyebrow { margin-bottom: 0; }
.h2-line-desktop { display: inline; }
.doc-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line);
  text-decoration: none;
}
.doc-card strong { display: block; font-size: 16px; font-weight: 600; }
.doc-card span { display: block; font-size: 14px; color: var(--color-muted); }
.doc-card .icon { color: var(--color-ember-deep); }
.doc-card:hover strong { color: var(--color-ember-deep); }

@media (min-width: 1024px) {
  .next {
    grid-template-columns: minmax(0, 464fr) minmax(0, 640fr);
    grid-template-areas: "copy form" "docs form";
    grid-template-rows: auto 1fr;
    column-gap: 96px;
    row-gap: 0;
  }
  .next-copy { grid-area: copy; }
  .next-card { grid-area: form; align-self: start; padding: 56px 48px; background: var(--color-white); border: 1px solid var(--color-line); }
  .docs { grid-area: docs; align-self: end; }
  .doc-card { padding: 22px 24px; border: 1px solid var(--color-line); }
  .h2-line-desktop { display: block; }
  .next-actions .btn { justify-self: start; }
}
.next-card { padding: 0; background: none; border: 0; }
.next-actions { margin-top: 48px; }
.next-actions .btn { width: 100%; }
@media (min-width: 1024px) { .next-actions .btn { width: auto; } }


/* 17. FORMS (both pages) ================================================== */

.form-card {
  padding: 32px 24px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
}
@media (min-width: 768px) { .form-card { padding: 56px; } }

.form-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 25.3px + 0.19vw, 28px); line-height: 1.25; }
.form-grid { display: grid; gap: 28px; margin-top: 28px; }
@media (min-width: 768px) {
  .form-grid { grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 32px; margin-top: 32px; }
  .form-grid .span-2 { grid-column: 1 / -1; }
}

.field { display: grid; gap: 8px; }
.field label, .field-label { font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--color-tide); }
.field input, .field select, .field textarea {
  width: 100%;
  height: 48px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--color-field-line);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;            /* 16px stops iPhones from zooming in */
  color: var(--color-tide);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { height: auto; min-height: 48px; padding: 12px 0; resize: vertical; }
.field select {
  padding-right: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23566b78'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}
.field input::placeholder, .field textarea::placeholder { color: var(--color-muted); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--color-tide); }
.field-error { display: none; font-size: 13px; color: var(--color-error); }
.field.has-error input, .field.has-error select { border-bottom: 2px solid var(--color-error); }
.field.has-error .field-error { display: block; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--color-text); cursor: pointer; }
.consent input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1px solid var(--color-field-line);
  border-radius: 0;
  background: var(--color-white);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.consent input:checked {
  background: var(--color-tide) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='white' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") center no-repeat;
  border-color: var(--color-tide);
}
.consent.has-error input { border: 2px solid var(--color-error); }
.consent a { color: var(--color-tide); }

.form-error-summary {
  display: none;
  margin-top: 24px;
  padding: 12px 16px;
  border-left: 3px solid var(--color-error);
  background: #fbeeed;
  font-size: 14px;
  color: var(--color-error);
}
.form-error-summary.is-visible { display: block; }

.form-actions { display: grid; gap: 28px; margin-top: 32px; }
.divider-text {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--color-muted);
}
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--color-line); }

/* "Thank you" message after sending */
.form-success { display: none; }
.form-card.is-sent form { display: none; }
.form-card.is-sent .form-success { display: block; }
.success-check {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-tide);
  color: var(--color-white);
}
.form-success .form-title { margin-top: 32px; font-size: clamp(28px, 23.5px + 1.143vw, 40px); }
.form-success p { margin-top: 24px; font-size: 16px; line-height: 1.6; color: var(--color-text); }
.status-list { margin-top: 32px; border-top: 1px solid var(--color-line); }
.status-list li { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--color-line); font-size: 15px; }
.status-list span { font-size: 14px; color: var(--color-muted); }
.status-list .is-done { color: var(--color-tide); }
.status-list .is-now { color: var(--color-ember-deep); }

/* Next-steps choice cards (private page) */
.choices { display: grid; gap: 16px; border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  column-gap: 24px;
  padding: 20px 24px 20px 16px;
  border: 1px solid var(--color-line);
  transition: border-color 0.2s ease;
}
.choice-radio {
  width: 20px;
  height: 20px;
  border: 1px solid var(--color-field-line);
  border-radius: 50%;
  grid-row: span 2;
}
.choice-icon { display: none; color: var(--color-ember-deep); }
.choice-title { font-size: 16px; font-weight: 600; line-height: 1.4; }
.choice-desc { font-size: 15px; line-height: 1.5; color: var(--color-muted); }
.choice input:checked + .choice-box { border: 2px solid var(--color-tide); padding: 19px 23px 19px 15px; }
.choice input:checked + .choice-box .choice-radio { border-color: var(--color-tide); background: radial-gradient(circle, var(--color-tide) 0 4px, transparent 4.5px); }
.choice input:focus-visible + .choice-box { outline: 2px solid var(--color-ember); outline-offset: 2px; }
.choice:hover .choice-box { border-color: var(--color-field-line); }

@media (min-width: 1024px) {
  .choices { grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 24px; }
  .choice-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
    min-height: 227px;
    padding: 24px 20px;
    position: relative;
  }
  .choice input:checked + .choice-box { padding: 23px 19px; }
  .choice-icon { display: block; }
  .choice-radio { position: absolute; top: 24px; right: 20px; }
  .choice-title { margin-top: 20px; font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.25; }
  .choice-desc { margin-top: 16px; font-size: 14px; line-height: 1.55; }
}


/* 18. FOOTER ============================================================== */

.site-footer { background: var(--color-tide); color: var(--color-ivory); }
.footer-top { padding-top: 32px; }
.footer-notice {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 48px 24px 24px;
  border: 1px solid var(--color-notice-line);
  font-size: 15px;
  line-height: 1.5;
}
.footer-notice .icon { color: var(--color-ember-light); margin-top: 2px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding-block: 16px;
}
.footer-bottom .logo { color: var(--color-ivory); }
.footer-bottom .logo-name { font-size: clamp(10px, 7.8px + 0.571vw, 16px); }
.footer-bottom .logo-tagline { font-size: clamp(5px, 3.9px + 0.286vw, 8px); }
.footer-meta { display: flex; align-items: center; gap: 20px; font-size: 12px; font-weight: 300; }
.footer-meta a { text-decoration: none; opacity: 0.85; }
.footer-meta a:hover { opacity: 1; text-decoration: underline; }

@media (min-width: 768px) {
  .footer-top { padding-top: 64px; }
  .footer-notice { align-items: center; padding: 20px 32px; font-size: 14px; }
  .footer-bottom { min-height: 148px; padding-block: 48px; }
  .footer-notice + .footer-bottom { min-height: 0; padding-block: 64px 72px; }
}
