/*
 * Homes at The Groves — listings.
 *
 * The palette and the type are the community site's, read from its theme
 * (groves-theme/assets/css/the-groves-c9be42.webflow.css): --groves-green is the
 * brand colour, #f37221 the accent, #fff7f1 the warm band behind a section, and
 * Montserrat the headline face. The structure is the 2026 property-site
 * structure: tokens on :root, one .shell, one .section rhythm.
 */

:root {
  --green: #34502d;
  --green-deep: #24371f;
  --green-light: #4a6b41;
  --orange: #f37221;
  --orange-deep: #d55c11;
  --cream: #fff7f1;
  --paper: #fff;
  --ink: #1a1b1f;
  --body-ink: #43464d;
  --muted: #6f7278;
  --hairline: #e6ded6;
  --stone: #f4f1ec;

  --sans: Montserrat, "Trebuchet MS", "Lucida Grande", Tahoma, sans-serif;
  --body: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, sans-serif;

  --shell: 1140px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 12px;
  --nav-h: 84px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--paper);
  color: var(--body-ink);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange-deep); }

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

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 6px 6px;
  font: 600 13px var(--sans);
  transition: top 180ms var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.eyebrow {
  margin: 0 0 10px;
  font: 600 11px var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

.h2 {
  margin: 0;
  color: var(--green);
  font: 700 clamp(26px, 3vw, 32px)/1.2 var(--sans);
}

.section { padding: clamp(40px, 5vw, 64px) 0 0; scroll-margin-top: calc(var(--nav-h) + 12px); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 20px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 22px;
  font: 700 13px var(--sans);
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-deep); color: #fff; }
.btn--outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn--outline:hover { background: var(--green); color: #fff; }

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 var(--hairline);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--nav-h);
}

.site-header__logo { width: 180px; height: auto; }

.site-header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.site-header__toggle span { display: block; width: 24px; height: 2px; background: var(--green); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font: 500 14px var(--sans);
}
.site-nav__link { color: var(--ink); }
.site-nav__link.is-current { color: var(--green); font-weight: 700; }
.site-nav__phone { color: var(--green); font-weight: 700; }

/* ---------- index head ---------- */

.page-head { background: var(--cream); padding: clamp(36px, 5vw, 56px) 0; }
.page-head__title {
  margin: 0 0 12px;
  color: var(--green);
  font: 700 clamp(30px, 4.4vw, 44px)/1.15 var(--sans);
}
.page-head__title em { font-style: italic; font-weight: 300; }
.page-head__sub { margin: 0; max-width: 60ch; font-size: 17px; }

.empty {
  margin: 48px auto;
  max-width: 60ch;
  text-align: center;
  font-size: 17px;
}

/* ---------- listing cards ---------- */

.card-grid {
  list-style: none;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(26, 27, 31, .12); color: inherit; }

.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--stone); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media-empty { width: 100%; height: 100%; background: var(--stone); }

.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__price { margin: 0; color: var(--green); font: 700 22px var(--sans); }
.card__address { margin: 0; color: var(--ink); font: 600 17px/1.3 var(--sans); }
.card__line2 { margin: 0; color: var(--muted); font-size: 14px; }
.card__facts { margin: 8px 0 0; font-size: 15px; }
.card__cta {
  margin: 14px 0 0;
  color: var(--orange-deep);
  font: 700 12px var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- status pill ---------- */

.status {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--green);
  color: #fff;
  font: 700 11px var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.card__media .status { position: absolute; left: 14px; top: 14px; }
.status--pending, .status--activeundercontract { background: var(--orange-deep); }
.status--closed { background: var(--ink); }
.status--unknown { background: var(--muted); }

/* ---------- detail hero ---------- */

.crumb { padding: 18px 0 0; font: 600 13px var(--sans); }
.crumb a { color: var(--green); }

.hero { padding-top: 18px; }

.hero__mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero__mosaic--1 { grid-template-columns: 1fr; }

.hero__main, .hero__tile {
  position: relative;
  padding: 0;
  border: 0;
  background: var(--stone);
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 6px;
}
.hero__main img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero__grid { display: grid; grid-template-rows: repeat(2, 1fr); gap: 8px; }
.hero__grid { grid-template-columns: repeat(2, 1fr); }
.hero__tile img { width: 100%; height: 100%; object-fit: cover; }

.hero__count {
  position: absolute;
  right: 14px; bottom: 14px;
  background: rgba(26, 27, 31, .78);
  color: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font: 600 12px var(--sans);
}

.hero__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 8px;
}
.hero__title { margin: 10px 0 4px; color: var(--green); font: 700 clamp(28px, 4vw, 40px)/1.15 var(--sans); }
.hero__line2 { margin: 0; color: var(--muted); font-size: 16px; }

.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 36px); }
.hero__stat { display: flex; flex-direction: column; }
.hero__stat-value { color: var(--ink); font: 700 22px var(--sans); }
.hero__stat--price .hero__stat-value { color: var(--green); font-size: 28px; }
.hero__stat-label { color: var(--muted); font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- in-page section nav ---------- */

.section-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  margin-top: 20px;
  background: var(--cream);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.section-nav__inner {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  font: 600 13px var(--sans);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.section-nav a { color: var(--green); }

/* ---------- story, tour ---------- */

.story__body { max-width: 68ch; font-size: 17px; }
.story__body p { margin: 0 0 1em; }

.tour__frame, .location__map {
  position: relative;
  margin-top: 20px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--stone);
}
.location__map { aspect-ratio: 16 / 8; }
.tour__frame iframe, .location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- gallery ---------- */

.gallery__count { margin: 0; color: var(--muted); font-size: 14px; }

.gallery__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.gallery__item--more { display: none; }
.gallery__grid.is-open .gallery__item--more { display: block; }

.gallery__tile {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--stone);
  cursor: zoom-in;
}
.gallery__tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 320ms var(--ease); }
.gallery__tile:hover img { transform: scale(1.04); }

.gallery__more { margin-top: 20px; text-align: center; }

/* ---------- details ---------- */

/* Two columns of rows on a wide screen, one on a narrow one. The column gap is
   what keeps the right-aligned value of one column off the label of the next. */
.facts__table {
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  column-gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.facts__row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--hairline); }
.facts__row dt { flex: 0 0 auto; color: var(--muted); font: 600 13px/1.5 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.facts__row dd { margin: 0; text-align: right; }
.facts__row + .facts__row { }

.chips { margin-top: 28px; }
.chips__title { margin: 0 0 12px; color: var(--ink); font: 700 15px var(--sans); }
.chips__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--stone);
  font-size: 14px;
}
.chips__list--collapsible .chip--more { display: none; }
.chips__list.is-open .chip--more { display: block; }
.chips__more {
  margin-top: 12px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--orange-deep);
  font: 700 12px var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.location__address { margin: 16px 0 0; font-size: 17px; }

/* ---------- enquire ---------- */

.enquire__card {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--cream);
  border-radius: var(--radius);
}
.enquire__lead { margin: 0; color: var(--green); font: 700 clamp(20px, 2.4vw, 26px)/1.25 var(--sans); }
.enquire__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- attribution ---------- */

.attribution { padding-bottom: 8px; }
.attribution__title { margin: 0 0 8px; color: var(--muted); font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.attribution__line { margin: 0 0 6px; color: var(--muted); font-size: 14px; }

/* ---------- contact form ---------- */

.contact { padding: clamp(40px, 5vw, 64px) 0 0; scroll-margin-top: calc(var(--nav-h) + 12px); }
.contact__inner {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: minmax(260px, 38fr) minmax(300px, 60fr);
  align-items: start;
}
.contact__lead { margin: 14px 0 0; font-size: 17px; }
.contact__direct { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.contact__direct a { color: var(--green); font-weight: 700; }

.contact__grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label { font: 600 13px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.field__optional { text-transform: none; letter-spacing: 0; font-weight: 400; }

.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--body);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.field.has-error input, .field.has-error textarea { border-color: var(--orange-deep); }

.field__error { min-height: 1em; color: var(--orange-deep); font-size: 13px; }

/* Off-screen rather than display:none, so a bot that skips hidden inputs still
   fills it. Never shown to a person: it is aria-hidden and out of tab order. */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px; }
.contact__foot .btn { border: 0; }
.contact__foot .btn[disabled] { opacity: .6; cursor: default; }
.contact__note { margin: 0; color: var(--green); font-size: 15px; }
.contact__note--error { color: var(--orange-deep); }

/* ---------- team ----------
   Laid out to match the community site's Meet the Team section: the heading at
   38% beside the copy, a 38/60 photo band with the orange sales-office card set
   into the left column, then the advisors in a row. The card is orange there,
   not green, and both photographs carry the same 12px radius. */

.team {
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(40px, 5vw, 56px) 0;
  background: var(--cream);
}

.team__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.team__heading {
  flex: 0 1 38%;
  margin: 0;
  color: var(--green);
  font: 700 clamp(26px, 3vw, 32px)/1.2 var(--sans);
}
.team__copy { flex: 0 1 50%; margin: 0; font-size: 16px; line-height: 1.5; }
.team__copy a { color: var(--green); font-weight: 700; }

.team__band {
  display: grid;
  grid-template-columns: 38fr 60fr;
  gap: 20px;
  align-items: stretch;
  min-height: 50vh;
}
.team__band-left { display: grid; grid-template-rows: 27fr 69fr; gap: 20px; }

.team__office {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  padding: 20px clamp(20px, 3vw, 40px);
  background: var(--orange);
  border-radius: var(--radius);
  color: #fff;
}
.team__office-label { margin: 0; font: 700 clamp(22px, 2.4vw, 28px)/1.2 var(--sans); }
.team__office-phone { color: #fff; font-size: clamp(20px, 2vw, 24px); line-height: 1.2; }
.team__office-email { color: #fff; font-size: clamp(17px, 1.7vw, 24px); line-height: 1.4; word-break: break-word; }
.team__office a:hover { color: #fff; text-decoration: underline; }

.team__photo { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.team__photo--tall { object-position: 0 0; }
.team__photo--wide { object-position: 50% 50%; }

.team__grid {
  list-style: none;
  margin: clamp(32px, 4vw, 48px) 0 clamp(8px, 2vw, 16px);
  padding: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.team__member { text-align: center; }
.team__member-name { margin: 0; color: var(--ink); font: 700 18px/1.2 var(--sans); }
.team__member-title { margin: 2px 0 10px; color: var(--muted); font-size: 15px; }
.team__member-link { display: block; color: var(--ink); font-size: 15px; }
.team__member-dre { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- footer ----------
   Centred on white, like the community site's. Its .footer sits on the body
   background with .text-block-3 centred; there is no dark band. */

.site-footer { background: var(--paper); color: var(--body-ink); padding: clamp(40px, 5vw, 56px) 0 clamp(28px, 3vw, 40px); }
.site-footer a { color: var(--green); }
.site-footer__line { margin: 0 auto 20px; text-align: center; font-size: 15px; line-height: 1.9; }
.site-footer__disclaimer {
  margin: 0 auto;
  max-width: 90ch;
  text-align: center;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- lightbox ---------- */

.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: rgba(15, 16, 18, .95);
}
.lightbox__img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 4px; }
.lightbox__close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__bar { display: flex; align-items: center; gap: 20px; color: #fff; font: 600 13px var(--sans); }
.lightbox__btn {
  background: rgba(255, 255, 255, .12);
  border: 0;
  border-radius: 999px;
  width: 44px; height: 44px;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .24); }

/* ---------- sticky mobile bar ---------- */

.mobile-bar { display: none; }

/* ---------- reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
  .js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .contact__inner { grid-template-columns: 1fr; }

  /* The community site stacks this band photo-first (flex-flow: column-reverse)
     with fixed photo heights, so the same order is kept here. */
  .team__band { grid-template-columns: 1fr; min-height: 0; }
  .team__band-left { grid-template-rows: auto auto; }
  .team__photo--wide { order: -1; height: clamp(200px, 40vw, 400px); }
  .team__photo--tall { height: clamp(200px, 34vw, 300px); }

  .hero__mosaic { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr; }
  .hero__tile img { aspect-ratio: 1 / 1; }
}

@media (max-width: 767px) {
  :root { --nav-h: 72px; }

  .site-header__toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--hairline);
  }
  .site-nav.is-open { display: flex; }
  .site-header__logo { width: 150px; }

  .page--detail { padding-bottom: 72px; }
  .mobile-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 90;
    display: flex;
    gap: 1px;
    background: var(--hairline);
  }
  .mobile-bar a {
    flex: 1;
    padding: 16px 8px;
    text-align: center;
    font: 700 13px var(--sans);
    letter-spacing: .05em;
    text-transform: uppercase;
  }
  .mobile-bar__phone { background: var(--green); color: #fff; }
  .mobile-bar__cta { background: var(--orange); color: #fff; }
  .mobile-bar a:hover { color: #fff; }

  .facts__row { font-size: 15px; }
  .hero__head { padding-top: 20px; }

  .contact__grid { grid-template-columns: 1fr; }
}
