:root {
  --color-green: #1E4B3D;
  --color-blue: #003B49;
  --color-gold: #DFD19C;
  --color-white: #FFFFFF;
  --font-heading: 'Montserrat', sans-serif;
  --container-max: 1240px;
  /* Same on desktop and mobile: heading-to-paragraph gap, and its double for paragraph-to-button. */
  --gap-heading-text: 18px;
  --gap-text-btn: 36px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* No fixed header any more (logo only, scrolls away), so anchors need no offset. */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-heading);
  color: var(--color-white);
  background: var(--color-green);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: inherit; text-decoration: none; }

/* Shared vertical section rhythm: desktop 70/100, tablet 60/80, mobile 40/40.
   Applied to all sections except the header, hero, and the section right after the hero. */
.section-pad {
  padding-top: 70px;
  padding-bottom: 100px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Scroll-reveal: progressive enhancement only, below-the-fold sections.
   .js class is set by the inline script so content stays visible with JS off. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.12s; }
.reveal:nth-child(3) { transition-delay: 0.24s; }
.trellis-page-wrapper {
  width: 100%;
  overflow: hidden;
}

.mobile-sticky-cta { display: none; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

h2 {
  font-size: clamp(20px, calc(16.5px + 0.94vw), 30px);
  color: var(--color-gold);
  text-align: center;
}

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 12px 30px;
  transition: filter 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: var(--color-gold);
  color: var(--color-green);
}
.btn-gold:hover { filter: brightness(0.92); }

/* ---------- Header ---------- */
/* Logo only on every screen size (Figma "Recommended changes" item 10): no nav links,
   no burger. It sits over the hero and scrolls away with it. */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  padding: 24px 0 0;
}

.logo {
  display: flex;
  align-items: center;
  width: max-content;
}

.logo-img {
  height: 40px;
  width: auto;
}

/* ---------- Hero ---------- */
/* The mockup's 60% black overlay is baked into the hero images (smaller files), so no
   CSS overlay here. */
.hero {
  position: relative;
  min-height: 643px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-green) url('../assets/0037b20133586471-1024.webp') center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  padding-top: 100px;
  padding-bottom: 100px;
}

.hero-content h1 {
  font-size: clamp(30px, calc(18.6px + 3.05vw), 50px);
  color: var(--color-white);
  text-align: center;
}

.hero-content p {
  color: var(--color-white);
  text-align: center;
  max-width: 560px;
  margin: var(--gap-heading-text) auto 0;
}

.hero-content .btn {
  margin-top: var(--gap-text-btn);
}

/* ---------- Stats band ---------- */
.stats {
  background: var(--color-green);
  padding: 0 0 50px;
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: -30px;
  position: relative;
  z-index: 10;
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
}

.stat-icon-ring {
  width: 61px;
  height: 61px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 1.5px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.stat-item h3 {
  font-size: 20px;
  line-height: 1;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: var(--gap-heading-text);
}

.stat-item p {
  font-weight: 400;
  color: var(--color-white);
  text-align: center;
  max-width: 300px;
}

/* ---------- Products: "Find the space for your dream home" ---------- */
/* Replaces "The perfect place to live" carousel. Two tiles mirror the carousel ad (land,
   house & land), each linking to the form; builder partners sit inside the module. */
.products {
  position: relative;
  background: var(--color-blue);
  overflow: hidden;
  padding-bottom: 70px;
}

.products-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.products-inner {
  position: relative;
  z-index: 1;
}

.products-subtitle {
  margin-top: var(--gap-heading-text);
  font-weight: 400;
  color: var(--color-white);
  text-align: center;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.product-grid {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.product-tile {
  flex: 0 1 440px;
  min-width: 0;
  background: var(--color-white);
  border-radius: 4px;
  overflow: hidden;
  color: var(--color-green);
}

.product-tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 440 / 260;
  object-fit: cover;
}

.product-tile-body {
  padding: 22px 20px 20px;
}

.product-tile h3 {
  font-size: 20px;
  line-height: 1.1;
}

.product-tile p {
  margin-top: 8px;
  line-height: 1.3;
}

.product-tile .btn {
  margin-top: 19px;
  width: 260px;
  max-width: 100%;
  text-align: center;
}

.partners {
  margin-top: 30px;
}

.partners-heading {
  font-size: 16px;
  line-height: 1.1;
  color: var(--color-white);
  text-align: center;
  margin-bottom: 14px;
}

.partners-logos {
  max-width: 920px;
  margin: 0 auto;
  padding: 10px 20px;
  min-height: 84px;
  background: var(--color-white);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 14px;
}

/* Each logo's height is set to its optical size in the mockup's panel; width follows. */
.partners-logos img { width: auto; height: 21px; }
.partners-logos img[alt='SJDHomes'] { height: 26px; }
.partners-logos img[alt='JG King Homes'] { height: 28px; }
.partners-logos img[alt='Sherridon Homes'] { height: 13px; }
.partners-logos img[alt='Fairhaven Homes'] { height: 40px; }
.partners-logos .partners-logo--orbit { height: 60px; }

/* ---------- Location ---------- */
.location {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  min-height: 651px;
  background: #1A4036;
}

/* The map fills its half and is anchored to the bottom (the mockup's zoomed-in crop);
   the copy column sets the section height. */
.location-media {
  position: relative;
  flex: 1 1 50%;
  min-width: 0;
  max-width: 805px;
}

/* Two crops instead of <picture>: the mobile one is the zoomed-in map. The hidden one is
   display:none + lazy, so it never downloads. */
.location-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  display: block;
}

.location-map--mobile { display: none; }

.location-content {
  flex: 1 1 calc(40% - 20px);
  display: flex;
  justify-content: end;
}

.location-inner {
  margin: 0 60px 0 0;
  max-width: 480px;
  padding-bottom: 60px;
}

.location-heading {
  color: var(--color-gold);
  text-align: left;
}

.location-body {
  margin-top: var(--gap-heading-text);
  max-width: 435px;
}

/* Nearby places grouped into three short blocks with hairline dividers. */
.location-groups {
  margin-top: var(--gap-heading-text);
  max-width: 435px;
}

.location-group + .location-group {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.location-group h3 {
  font-size: 18px;
  line-height: 1.1;
  color: var(--color-gold);
}

.location-group p {
  margin-top: 4px;
  line-height: 1.3;
}

.location-cta { margin-top: var(--gap-text-btn); }

/* ---------- Nearby amenities ---------- */
.nearby {
  position: relative;
  background: var(--color-green);
  overflow: hidden;
  padding-bottom: 0;
  min-height: 780px;
}

.nearby-bg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.nearby-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 64px;
}

.nearby-content {
  flex: 1 1 420px;
  max-width: 460px;
}

.nearby-heading {
  color: var(--color-gold);
  text-align: left;
}

.nearby-tagline {
  margin-top: var(--gap-heading-text);
  font-weight: 700;
  color: var(--color-white);
}

.nearby-body {
  margin-top: 18px;
  color: var(--color-white);
}

.nearby-cta { margin-top: var(--gap-text-btn); }

.nearby-collage {
  position: absolute;
  width: 1026px;
  aspect-ratio: 1 / 1;
  right: 0;
  bottom: 0;
  height: 666px;
}

/* height:auto is essential on all three: they carry width/height attributes, so a
   CSS width alone leaves the intrinsic height behind and stretches them into ovals. */
.nearby-map {
  position: absolute;
  bottom: -100px;
  left: 0;
  width: 680px;
  height: auto;
}

.nearby-photo {
  position: absolute;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  border-radius: 50%;
  height: auto;
}

.nearby-photo--daughter {
  width: 284px;
  top: 0;
  left: 400px;
}

.nearby-photo--running {
    width: 490px;
    top: 25px;
    right: -65px;
}

/* ---------- FAQ ---------- */
.faq {
  position: relative;
  background: #E7ECEC;
}

.faq-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
}

.faq-heading {
  flex: 0 0 280px;
  color: var(--color-green);
  text-align: left;
}

.faq-list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 740px;
}

.faq-item {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 40, 30, 0.08);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  color: var(--color-green);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  flex-shrink: 0;
  display: inline-flex;
  width: 18px;
  height: 16px;
  transition: transform 0.25s ease;
}

.faq-icon svg { width: 100%; height: 100%; }

.faq-item[open] .faq-icon { transform: rotate(45deg); }

.faq-answer {
  margin: 0;
  padding: 0 24px 22px;
  color: #4B5A56;
}

/* ---------- Enquiry form ---------- */
.enquiry {
  background: var(--color-green);
}

.enquiry-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 64px;
}

.enquiry-intro {
  flex: 0 0 480px;
}

.enquiry-heading {
  color: var(--color-gold);
  text-align: left;
}

.enquiry-subhead {
  margin-top: var(--gap-heading-text);
  font-weight: 700;
}

.enquiry-address {
  margin-top: 18px;
}

.enquiry-form {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 545px
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.enquiry-form > * + * {
  margin-top: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 700;
  color: var(--color-white);
}

.form-group input {
  height: 40px;
  width: 100%;
  background: var(--color-white);
  border: none;
  padding: 0 10px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-green);
}

.form-group input::placeholder {
  color: rgba(26, 64, 54, 0.40);
}

.timeframe-group {
  margin-top: 24px;
  border: none;
}

.timeframe-group legend {
  padding: 0;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--color-white);
}

.timeframe-options {
  display: grid;
  grid-template-columns: repeat(2, 262px);
  gap: 16px;
}

.timeframe-option {
  position: relative;
  display: flex;
  align-items: center;
  width: 262px;
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--color-white);
  cursor: pointer;
}

.timeframe-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.timeframe-option span {
  display: flex;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  font-weight: 400;
  color: var(--color-white);
}

.timeframe-option:has(input:checked) {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.timeframe-option:has(input:checked) span { color: var(--color-green); }

.timeframe-option:has(input:focus-visible) {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.enquiry-submit {
  margin-top: 32px;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
      .section-pad { padding-top: 60px; padding-bottom: 80px; }
    .hero{
        min-height: 600px;
    }
    .hero-content{
        padding-top: 60px;
        padding-bottom: 120px;
    }
    .stats {
        padding-bottom: 30px;
    }
    .stat-item{
        padding: 0;
    }
    .stats .container{
        gap: 16px;
    }
    .product-grid {
        gap: 20px;
    }
    .partners-logos {
        justify-content: center;
        gap: 16px 28px;
    }
    .location-group h3 {
       font-size: 16px;
    }
    /* Desktop composition scaled down ~0.46; the copy column narrows so it
       clears the leaf instead of leaving a void beside it. */
    .nearby{
        min-height: 560px;
    }
    .nearby-content {
        max-width: 360px;
    }
    .nearby-collage {
        width: 472px;
        height: 306px;
    }
    .nearby-map {
        width: 313px;
        bottom: -46px;
        left: 0;
    }
    .nearby-photo--daughter {
        width: 131px;
        top: 0;
        left: 184px;
    }
    .nearby-photo--running {
        width: 225px;
        top: 12px;
        right: -30px;
    }
    .enquiry-inner{
        gap: 24px;
    }
    .enquiry-intro {
        flex: 0 0 280px;
    }
    .timeframe-options {
        grid-template-columns: repeat(2, auto);
    }
    .timeframe-option{
        width: auto;
    }
    .faq-inner {
        gap: 24px;
    }
    .faq-list {
        max-width: auto;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    .hero {
            align-items: start;
        min-height: 643px;
    }

  .hero { background-image: url('../assets/4f0bab3b993f1f93.webp'); }

  .site-header { padding-top: 18px; }

  .logo-img { height: 30px; }


  .hero-content {
    padding-top: 111px;
    padding-bottom: 56px;
    max-width: 100%;
  }

  .section-pad { padding-top: 40px; padding-bottom: 40px; }

  .stats .container{
        margin-top: -80px;
  }
  .stats { padding: 48px 0 56px; }

  .stats .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stat-item p { max-width: 320px; }

  .products { padding-top: 53px; padding-bottom: 80px; }

  .product-grid {
    margin-top: 32px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .product-tile { flex: none; width: 100%; max-width: 440px; }
  .product-tile img { aspect-ratio: 279 / 150; }
  .product-tile-body { padding: 14px 16px 20px; }
  .product-tile h3 { font-size: 18px; }
  .product-tile p { margin-top: 6px; font-size: 14px; }
  .product-tile .btn { margin-top: 14px; width: 100%; }

  .partners { margin-top: 20px; }
  .partners-heading { font-size: 14px; margin-bottom: 10px; }

  /* Two-column logo grid, as in the mobile mockup; the odd last logo centres. */
  .partners-logos {
    max-width: 440px;
    min-height: 0;
    padding: 20px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    gap: 20px 16px;
  }
  .partners-logos img { max-width: 105px; height: auto; max-height: 19px; }
  .partners-logos img[alt='SJDHomes'] { height: auto; max-height: 26px; }
  .partners-logos img[alt='JG King Homes'] { height: auto; max-height: 29px; }
  .partners-logos img[alt='Sherridon Homes'] { height: auto; max-height: 12px; }
  .partners-logos img[alt='Fairhaven Homes'] { height: auto; max-height: 38px; }
  .partners-logos .partners-logo--orbit { grid-column: 1 / -1; height: 44px; max-height: none; }

  .location { flex-direction: column; min-height: 0; }
  .location-media { flex: none; max-width: none; aspect-ratio: 320 / 237; }
  .location-map--desktop { display: none; }
  .location-map--mobile { display: block; }
  .location-inner { max-width: 100%; width: 100%; margin: 0; padding-top: 20px; }
  .location-group h3 { font-size: 16px; }
  .location-group p { font-size: 14px; }
  .location-cta { display: none; }

  /* Nearby amenities collage — mirrors Figma "LCP B Mobile" (66:88), a 320px artboard.
     Sizes/offsets below are that artboard's values expressed as ratios of --w. */
  .nearby {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    padding-bottom: 40px;
    min-height: 0;
  }

  .nearby-bg { display: none; }

  /* The collage runs above the copy in normal flow, so the two can't collide. */
  .nearby-collage {
    order: -1;
    position: relative;
    inset: auto;
    margin: 0;
    --w: min(100vw, 390px);
    width: 100%;
    max-width: none;
    height: calc(var(--w) * 1.55);        /* 496 / 320 */
  }

  .nearby-map {
    top: 0;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    min-width: 0;
    max-width: none;                      /* the leaf is meant to bleed past both edges */
    width: calc(var(--w) * 1.259375);     /* 403 / 320 */
  }

  .nearby-photo--running {
    top: calc(var(--w) * 0.79375);        /* 254 / 320 */
    bottom: auto;
    left: auto;
    right: calc(var(--w) * -0.1125);      /* overflows the right edge by 36 / 320 */
    width: calc(var(--w) * 0.753125);     /* 241 / 320 */
  }

  /* Left edge lines up with the copy's container padding, as it does in Figma. */
  .nearby-photo--daughter {
    top: calc(var(--w) * 1.109375);       /* 355 / 320 */
    bottom: auto;
    left: 20px;
    width: calc(var(--w) * 0.4375);       /* 140 / 320 */
    z-index: 2;
  }

  .nearby-inner { flex-direction: column; gap: 32px; margin-top: 27px; }
  .nearby-content { max-width: 100%; flex: none; }
  .nearby-cta { display: none; }


  .faq-inner { flex-direction: column; gap: 24px; }
  .faq-heading { 
        flex: none; 
        margin-bottom: 20px;
    }
    .faq-list {
        max-width: 100%;
        width: 100%;
        flex: none;
    }
  .faq-item summary { padding: 16px 18px; }
  .faq-answer { padding: 0 18px 18px; }

  .enquiry-inner { flex-direction: column; gap: var(--gap-text-btn); }
  .enquiry-intro { 
    max-width: 100%; 
    flex:none;
    margin-bottom: 0;
  }
  .enquiry-submit{
    width: 100%;
  }
.enquiry-form {
        width: 100%;
    }
  .form-row { grid-template-columns: 1fr; gap: 20px; }
  .timeframe-options { grid-template-columns: 1fr; }
  .timeframe-option,
  .timeframe-option span { width: 100%; }

  .mobile-sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    background: var(--color-green);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
    transform: translateY(0);
    transition: transform 0.3s ease;
  }

  .mobile-sticky-cta.is-hidden {
    transform: translateY(100%);
  }

  .mobile-sticky-cta .btn {
    display: block;
    width: 100%;
    text-align: center;
  }
}
