/* Townhome Release — from the client's Canva mockup ("466 Hammond Website",
   _template_web/HammondPark). The mockup is 1024 px wide and built as stacked
   576 px bands; sizes below are its measurements, scaled so the page keeps
   its proportions from a phone to a wide monitor. Colours are sampled from the
   file. Tenant tokens (accent, brand colour, font) are set on :root by
   base.html and win over these defaults. */

:root {
  --night: #292b2e;      /* header */
  --clay: #a95c38;       /* buttons, the designs band, headings */
  --on-clay: #eeede9;    /* text on clay */
  --olive: #47533d;      /* hero card, contact band */
  --sage: #d5dbcd;       /* master plan band */
  --cream: #eeede9;      /* light text */
  --ink: #391b0b;        /* body copy */
  --pine: #1b4235;       /* design names */
  --tan: #b88364;        /* card meta */
  --lime: #e6ff6d;       /* the script accent */
  --pin: #819373;        /* map labels */
  --line: #b8b8b8;       /* form fields */
  --paper: #ffffff;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --ui: "Be Vietnam Pro", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --script: "Homemade Apple", "Brush Script MT", cursive;
  --map: "Archivo Narrow", "Arial Narrow", Arial, sans-serif;

  --gutter: clamp(20px, 6.35vw, 96px);
  --bar: clamp(64px, 9.4vw, 96px);
  --band: clamp(420px, 56.25vw, 820px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

/* ---- shared ---------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 34px; border: 0; border-radius: 0;
  background: var(--clay); color: var(--on-clay);
  font: 400 14px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: filter .2s;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--clay) 80%, #000);
}
.btn:hover, .btn:focus-visible { filter: brightness(1.08); }
.h2 { font: 600 clamp(28px, 3.2vw, 44px)/1.02 var(--display); letter-spacing: -.005em; color: #000; }
.h2--clay { color: var(--clay); }
.h2--light { color: #fff; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

/* ---- header ----------------------------------------------------------- */

.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; height: var(--bar);
  padding-left: clamp(20px, 4.3vw, 64px); background: var(--night); color: var(--cream);
}
.top__brand { display: flex; align-items: center; height: 100%; margin-right: clamp(24px, 7vw, 100px); text-decoration: none; }
.top__logo { width: auto; height: 61%; }
.top__name { font: 800 20px/1 var(--ui); color: #fff; }
.top__nav { display: flex; align-items: center; gap: clamp(20px, 3.4vw, 48px); flex: 1; }
.top__link { font: 400 14px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--cream); white-space: nowrap; }
.top__link:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.top__close, .top__open { display: none; }
.top__cta {
  display: flex; align-items: center; justify-content: center; align-self: stretch;
  min-width: clamp(120px, 16.4vw, 220px); margin-left: auto; padding: 0 24px;
  background: var(--clay); color: var(--on-clay);
  font: 500 14px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.top__cta:hover { filter: brightness(1.08); }

@media (max-width: 860px) {
  .top { padding-left: 16px; }
  .top__brand { margin-right: auto; }
  .top__open { display: grid; place-items: center; width: 48px; height: 48px; margin-right: 8px; }
  .top__open span, .top__open span::before, .top__open span::after {
    display: block; width: 22px; height: 2px; background: var(--cream); content: ""; position: relative;
  }
  .top__open span::before { position: absolute; top: -7px; }
  .top__open span::after { position: absolute; top: 7px; }
  .top__nav {
    position: fixed; inset: 0 0 0 auto; z-index: 60; width: min(320px, 86vw);
    flex-direction: column; align-items: flex-start; gap: 26px; padding: 88px 32px 32px;
    background: var(--night); box-shadow: -20px 0 60px rgba(0, 0, 0, .35);
    transform: translateX(105%); transition: transform .25s ease; visibility: hidden;
  }
  .top__nav:target { transform: none; visibility: visible; }
  .top__close { display: block; position: absolute; top: 18px; right: 22px; font: 300 34px/1 var(--ui); text-decoration: none; color: var(--cream); }
  .top__link { font-size: 16px; }
  .top__cta { min-width: 0; padding: 0 18px; font-size: 13px; }
}

/* ---- 1. hero ---------------------------------------------------------- */

.hero { position: relative; min-height: clamp(520px, 46.9vw, 760px); background: var(--olive); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__card {
  position: absolute; left: 0; top: 18.3%; width: 37.3%; min-width: 340px; min-height: 63%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(28px, 4.4vw, 64px); background: var(--olive); color: #fff;
}
.hero__kicker { margin-bottom: 18px; font: 400 13px/1.3 var(--body); letter-spacing: .04em; color: var(--cream); }
.hero__title { margin-bottom: clamp(24px, 3.4vw, 46px); font: 400 clamp(32px, 3.9vw, 56px)/1 var(--display); letter-spacing: -.01em; }
@media (max-width: 700px) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero__img { position: static; height: 62vw; min-height: 260px; }
  .hero__card { position: static; width: 100%; min-width: 0; min-height: 0; padding: 32px 20px 36px; }
}

/* ---- 2. statement ----------------------------------------------------- */

.statement {
  position: relative; display: grid; place-items: center; min-height: var(--band);
  padding: 15% var(--gutter) 6%; background: var(--olive); overflow: hidden; text-align: center;
}
.statement__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.statement__title {
  position: relative; max-width: 14.5em; font: 600 clamp(28px, 4.4vw, 64px)/1.06 var(--display);
  letter-spacing: -.015em; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.statement__script { font: 400 .98em/1 var(--script); font-style: normal; color: var(--lime); letter-spacing: 0; white-space: nowrap; }

/* ---- 3. about --------------------------------------------------------- */

.about {
  display: grid; grid-template-columns: minmax(0, 1fr) 59.2%; align-items: center; gap: clamp(28px, 5.5vw, 80px);
  min-height: var(--band); padding: clamp(48px, 7.6vw, 110px) 0 clamp(48px, 7.6vw, 110px) var(--gutter);
}
.about__copy .h2 { margin-bottom: clamp(16px, 1.6vw, 24px); }
.about__text { max-width: 31em; font-size: clamp(15px, 1.37vw, 18px); line-height: 1.5; }
.about__text + .about__text { margin-top: 1.5em; }
.about__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; padding-right: var(--gutter); }
  .about__photo { margin-right: calc(-1 * var(--gutter)); }
}

/* ---- 4. designs ------------------------------------------------------- */

.designs { position: relative; padding: clamp(40px, 3.2vw, 56px) 0 clamp(56px, 7.8vw, 110px); background: var(--clay); overflow: hidden; }
.designs__title { padding: 0 var(--gutter); margin-bottom: clamp(28px, 3.4vw, 48px); }
.designs__slider { position: relative; }
.designs__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 20px) / 3);
  gap: 20px; padding: 0 5.1vw; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 5.1vw;
  scrollbar-width: none;
}
.designs__track::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; background: var(--paper); }
.card__photo { background: color-mix(in srgb, var(--clay) 70%, #fff); }
.card__photo img { width: 100%; aspect-ratio: 9 / 8; object-fit: cover; }
.card__body { padding: 20px clamp(18px, 2vw, 28px) 22px; }
.card__meta { font: 700 14px/1.3 var(--body); color: var(--tan); }
.card__name { margin: 10px 0 12px; font: 400 clamp(22px, 2.35vw, 32px)/1.1 var(--ui); color: var(--pine); }
.designs__arrow {
  position: absolute; top: 50%; z-index: 2; display: grid; place-items: center;
  width: 116px; height: 116px; margin-top: -58px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .78); color: #2b2b2b; cursor: pointer;
}
.designs__arrow[hidden] { display: none; }
.designs__arrow--prev { left: -58px; padding-left: 50px; }
.designs__arrow--next { right: -58px; padding-right: 50px; }
.designs__arrow:hover { background: #fff; }
@media (max-width: 860px) {
  .designs__track { grid-auto-columns: 72%; padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); }
  .designs__arrow { width: 80px; height: 80px; margin-top: -40px; }
  .designs__arrow--prev { left: -40px; padding-left: 36px; }
  .designs__arrow--next { right: -40px; padding-right: 36px; }
  .designs__arrow svg { width: 20px; height: 32px; }
}

/* ---- 5. master plan --------------------------------------------------- */

.plan { padding: clamp(40px, 3.2vw, 56px) var(--gutter) clamp(48px, 5.5vw, 80px); background: var(--sage); }
.plan__title { margin-bottom: clamp(24px, 3vw, 44px); }
.plan__figure { max-width: 1180px; margin: 0 auto; }
.plan__open { position: relative; display: block; cursor: zoom-in; }
.plan__open img { width: 100%; height: auto; }

/* The zoomable master plan. */
.zoom {
  width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(24, 26, 22, .96); color: #fff; overflow: hidden;
}
.zoom::backdrop { background: rgba(0, 0, 0, .6); }
.zoom__stage {
  position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab;
  user-select: none; -webkit-user-select: none;
}
.zoom__stage.is-dragging { cursor: grabbing; }
.zoom__img {
  position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; will-change: transform;
  background: var(--sage);
}
.zoom__bar {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex;
  background: var(--night); box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.zoom__btn, .zoom__close {
  display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: none; color: #fff; cursor: pointer;
}
.zoom__btn + .zoom__btn { border-left: 1px solid rgba(255, 255, 255, .14); }
.zoom__btn:hover, .zoom__close:hover { background: var(--clay); }
.zoom__btn:disabled { opacity: .35; cursor: default; background: none; }
.zoom__close { position: absolute; top: 16px; right: 16px; background: var(--night); }
.plan__note { margin-top: 14px; font: 400 13px/1.4 var(--body); color: #3c4436; text-align: right; }

/* ---- 6. video --------------------------------------------------------- */

.video { background: #000; }
.video__poster { position: relative; display: block; aspect-ratio: 16 / 9; max-height: 92vh; width: 100%; overflow: hidden; }
.video__poster img { width: 100%; height: 100%; object-fit: cover; }
.video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); transition: transform .2s; }
.video__play svg { width: clamp(68px, 10.4vw, 120px); height: auto; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .3)); }
a.video__poster:hover .video__play { transform: translate(-50%, -50%) scale(1.06); }
.video__frame { display: block; width: 100%; height: 100%; border: 0; }

/* ---- 7. location ------------------------------------------------------ */

.location {
  display: grid; grid-template-columns: 54.7% minmax(0, 1fr); align-items: center; gap: clamp(28px, 6.2vw, 90px);
  min-height: var(--band); padding: clamp(48px, 7.8vw, 110px) var(--gutter) clamp(48px, 7.8vw, 110px) 0;
}
.location__copy .h2 { margin-bottom: clamp(24px, 3.4vw, 46px); }
.location__text { max-width: 30em; font-size: clamp(15px, 1.37vw, 18px); line-height: 1.5; }
.location__text + .location__text { margin-top: 1.5em; }
.location__copy:only-child { grid-column: 2; }
.slides { position: relative; }
.slides__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides__track::-webkit-scrollbar { display: none; }
.slides__item { flex: 0 0 100%; scroll-snap-align: start; }
.slides__item img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; }
.slides__dots { position: absolute; left: 0; right: 0; bottom: 4.5%; display: flex; justify-content: center; gap: 13px; }
.slides__dots[hidden] { display: none; }
.slides__dot { width: 39px; height: 9px; padding: 0; border: 0; background: rgba(255, 255, 255, .55); cursor: pointer; }
.slides__dot.is-current { background: #fff; }
/* With the script: stacked and faded rather than scrolled. */
.js .slides__track { display: grid; overflow: hidden; }
/* Vertical scrolling stays the browser's; sideways moves are the swipe. */
.js .slides { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.js .slides:active { cursor: grabbing; }
.js .slides__item { grid-area: 1 / 1; opacity: 0; transition: opacity .8s ease; }
.js .slides__item.is-current { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js .slides__item { transition: none; } }
@media (max-width: 760px) {
  .location { grid-template-columns: 1fr; padding-left: var(--gutter); }
  .slides { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .location__copy:only-child { grid-column: 1; }
}

/* ---- 8. map ----------------------------------------------------------- */

/* Its own stacking context: Leaflet layers its panes and controls at z-index
   400–1000, which would otherwise slide over the sticky header (z-index 50). */
.map { position: relative; z-index: 0; isolation: isolate; background: #dde4e6; }
.map__canvas { position: relative; height: var(--band); min-height: 460px; background: #dde4e6; }
.map__canvas .map__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map > .map__img { width: 100%; height: auto; }
.map__canvas.leaflet-container { font: 400 12px/1.4 var(--body); }
.map__canvas .leaflet-tile-pane { filter: saturate(.55) hue-rotate(-8deg) brightness(1.04); }
.map-pin {
  display: inline-block; max-width: 150px; padding: 6px 9px; background: var(--pin); color: #fff;
  font: 700 11px/1.2 var(--map); letter-spacing: .02em; text-transform: uppercase; text-align: center;
  white-space: normal; transform: translate(-50%, -50%); box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}
.map-pin-icon { width: 0 !important; height: 0 !important; overflow: visible; background: none; border: 0; }
/* A label that would sit on another becomes a dot; tapping it names it. */
.map-pin-icon.is-dot .map-pin {
  width: 16px; height: 16px; padding: 0; overflow: hidden; border: 2px solid #fff; border-radius: 50%;
  font-size: 0; color: transparent; cursor: pointer;
}
.map__canvas .leaflet-popup-content { margin: 8px 12px; font: 700 12px/1.3 var(--map); text-transform: uppercase; color: #1f2a1a; }
.map-home {
  display: grid; place-items: center; width: 104px; height: 102px; padding: 0 12px 26px;
  background: #000; transform: translate(-50%, -100%);
  clip-path: polygon(18% 0, 82% 0, 100% 34%, 86% 72%, 58% 74%, 50% 100%, 42% 74%, 14% 72%, 0 34%);
}
.map-home img { width: 100%; height: auto; }
.map-home span { font: 800 13px/1.1 var(--ui); color: #fff; text-align: center; }

/* ---- expression of interest (not in the mockup) ----------------------- */

.eoi {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start;
  padding: clamp(48px, 7.6vw, 110px) var(--gutter); background: var(--sage);
}
.eoi__copy { position: sticky; top: calc(var(--bar) + 32px); }
.eoi__eyebrow { margin-bottom: 14px; font: 500 13px/1.2 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--olive); }
.eoi__copy .h2 { margin-bottom: clamp(16px, 1.6vw, 24px); }
.eoi__intro { max-width: 30em; font-size: clamp(15px, 1.37vw, 18px); line-height: 1.5; }
.eoi__intro + .eoi__intro { margin-top: 1em; }
.eoi__form { display: grid; gap: 28px; padding: clamp(24px, 4.4vw, 60px); background: var(--paper); }
.eoi__group { min-width: 0; margin: 0; padding: 0; border: 0; }
.eoi__group[hidden] { display: none; }
.eoi__group legend { margin-bottom: 16px; padding: 0; font: 600 clamp(20px, 1.95vw, 26px)/1.1 var(--display); color: var(--olive); }
.eoi__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.eoi__field { display: flex; flex-direction: column; min-width: 0; }
.eoi__field--wide { grid-column: 1 / -1; }
.eoi__field .form__input { margin-bottom: 6px; }
.eoi__field .form__input--area { height: 110px; }
.eoi__req { color: var(--clay); }
.eoi__field [aria-invalid="true"] { border-color: #a6462f; }
.eoi__error { margin: 0 0 10px; font: 400 13px/1.3 var(--body); color: #a6462f; }
.eoi__toggle { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font: 400 15px/1.3 var(--body); cursor: pointer; }
.eoi__toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--clay); }
.eoi__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.eoi__actions .btn:disabled { opacity: .6; cursor: progress; }
.eoi__status { flex: 1 1 16em; margin: 0; font: 500 14px/1.4 var(--body); color: #a6462f; }
.eoi__status.is-ok { color: var(--olive); }
.eoi__download { font: 500 14px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--clay); }
@media (max-width: 960px) { .eoi { grid-template-columns: 1fr; } .eoi__copy { position: static; } }
@media (max-width: 600px) { .eoi__fields { grid-template-columns: 1fr; } }

/* ---- 9. enquire ------------------------------------------------------- */

.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40.2vw); align-items: center; gap: clamp(28px, 4vw, 60px);
  padding: clamp(28px, 2.8vw, 40px) 5.4vw clamp(28px, 2.8vw, 40px) 10.25vw; background: var(--olive); color: #fff;
}
.contact__details { min-width: 0; overflow-wrap: anywhere; }
.contact__label { margin: 0 0 10px; font: 400 clamp(17px, 1.95vw, 24px)/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.contact__value { margin-bottom: clamp(26px, 3.5vw, 46px); font: 400 clamp(15px, 1.56vw, 19px)/1.4 var(--body); }
.contact__value a { text-decoration: none; }
.contact__value a:hover { text-decoration: underline; }
.contact__socials { display: flex; gap: 18px; }
.contact__socials a { display: block; color: #fff; }
.contact__card { padding: clamp(28px, 6vw, 86px) clamp(22px, 6vw, 86px); background: var(--paper); color: #000; }
.contact__title { margin-bottom: 14px; font: 400 clamp(22px, 2.45vw, 32px)/1.2 var(--display); }
.contact__lede { margin-bottom: 26px; font: 400 clamp(14px, 1.37vw, 17px)/1.4 var(--body); color: var(--ink); }
.form { display: flex; flex-direction: column; align-items: flex-start; }
.form__label { margin-bottom: 8px; font: 400 13px/1.3 var(--ui); letter-spacing: .04em; color: var(--night); }
.form__input {
  width: 100%; height: 36px; margin-bottom: 20px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 0;
  background: #fff; color: #000; font: 400 15px/1.4 var(--body);
}
.form__input--area { height: 58px; min-height: 58px; resize: vertical; }
.form__input:focus { outline: 2px solid var(--clay); outline-offset: 0; border-color: var(--clay); }
.form__submit { margin-top: 6px; min-width: 145px; }
.form__status { margin: 0 0 12px; font: 500 14px/1.4 var(--body); }
.form__status--ok { color: #2f6b3a; }
.form__status--bad { color: #a32020; }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; padding: 48px var(--gutter); }
  .contact__card { order: -1; }
}
/* The page you are on, in the bar: named, not linked. */
.top__link.is-current { color: #fff; text-decoration: underline; text-decoration-color: var(--clay); text-decoration-thickness: 2px; text-underline-offset: 6px; }
