/* Old New Zealand — styles recreated from the original Squarespace theme. */
:root {
  --navy: #20425a;
  --blue: #357cac;
  --blue-dark: #2b6790;
  --ink: #000;
  --muted: #f7f7f7;
  --white: #fff;
  --gutter: clamp(20px, 3vw, 40px);
  --content: 1200px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--white);
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 500; margin: 0 0 .6em; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 4.85vw, 3.88rem); line-height: 1.23; }
h2 { font-size: clamp(1.8rem, 2.7vw, 2.15rem); }
h3 { font-size: clamp(1.6rem, 2.7vw, 2.15rem); line-height: 1.33; }
h4 { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.5; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--white); padding: .5rem 1rem; }

/* Buttons */
.button {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font: 500 .904rem/1 var(--font);
  letter-spacing: .02em;
  text-decoration: none;
  padding: 1.2em 2.2em;
  border: 0;
  border-radius: 300px;
  cursor: pointer;
  transition: background .15s, opacity .15s;
}
.button:hover { background: var(--blue-dark); }
.button--lg { font-size: 1rem; padding: 1.25em 1.7em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 95px;
  padding: 0 var(--gutter) 0 calc(var(--gutter) - 2px);
}
.site-header__logo { flex: 0 1 394px; min-width: 180px; }
.site-header__logo img { width: 100%; max-width: 394px; }
.site-nav {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 1.1rem;
  max-width: 560px;
}
.site-nav__item { position: relative; }
.site-nav a, .site-nav button {
  display: inline-block;
  font: 300 1rem/1.8 var(--font);
  color: var(--white);
  background: none;
  border: 0;
  padding: .1em 0;
  text-decoration: none;
  cursor: pointer;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .2s;
}
.site-nav__item > a:hover, .site-nav__item > button:hover,
.site-nav__item.is-active > a, .site-nav__item.is-active > button { background-size: 100% 1px; }
.site-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 150px;
  padding: .6rem 0;
  background: var(--navy);
  display: none;
  flex-direction: column;
  align-items: center;
  z-index: 60;
}
.site-nav__dropdown a { padding: .15rem 1.2rem; white-space: nowrap; }
.site-nav__dropdown a:hover, .site-nav__dropdown a[aria-current] { background-size: 100% 1px; }
.site-nav__folder:hover .site-nav__dropdown,
.site-nav__folder:focus-within .site-nav__dropdown,
.site-nav__folder.is-open .site-nav__dropdown { display: flex; }
.site-header__cta { margin-left: auto; flex: none; padding: 1.55em 2.2em; }

.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--white); transition: transform .2s, top .2s; }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 70px 0 0;
  background: var(--navy);
  padding: 2rem var(--gutter) 3rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { color: var(--white); text-decoration: none; }
.mobile-menu__folder { text-align: center; }
.mobile-menu__folder summary { list-style: none; cursor: pointer; }
.mobile-menu__folder summary::-webkit-details-marker { display: none; }
.mobile-menu__folder summary::after { content: " ›"; display: inline-block; transition: transform .2s; }
.mobile-menu__folder[open] summary::after { transform: rotate(90deg); }
.mobile-menu__folder a { display: block; font-size: 1.15rem; opacity: .85; padding: .2rem 0; }
.mobile-menu .button { margin-top: 1rem; font-size: 1rem; }

@media (max-width: 1000px) {
  .site-nav, .site-header__cta { display: none; }
  .menu-toggle { display: block; }
  .site-header__inner { min-height: 70px; }
  .site-header__logo { flex-basis: 260px; }
}

/* Footer */
.site-footer { background: var(--navy); color: var(--white); text-align: center; padding: 2.3rem var(--gutter); font-size: 1rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Layout helpers */
.container { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(925px + 2 * var(--gutter)); }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--tight { padding: clamp(1.5rem, 3vw, 2.5rem) 0; }
.section--muted { background: var(--muted); }
.center { text-align: center; }

/* Hero banner with background photo */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: clamp(360px, 46vw, 620px);
  padding: 3rem var(--gutter) clamp(2rem, 4vw, 3.5rem);
  color: var(--white);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); opacity: .1; }
.hero h1 { margin: 0; text-shadow: 0 1px 12px rgba(0, 0, 0, .15); }
.hero--center { align-items: center; padding-bottom: 3rem; }
.hero--tall { min-height: clamp(420px, 40vw, 600px); }
.hero__lead { font-size: clamp(1.1rem, 1.7vw, 1.38rem); line-height: 1.8; margin: 0 0 1.5rem; }
.hero .button { margin-top: 2rem; }

/* Image + text rows (home page) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; }
.split + .split { margin-top: 2.5rem; }
.split__text { text-align: center; padding: 1rem clamp(0rem, 3vw, 2rem); }
.split__text .button { margin-top: 1.2rem; }
.split--reverse .split__media { order: 2; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* Two-column text/media (Waiata Rise intro, contact) */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.cols--top { align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.small-text { font-size: .94rem; line-height: 1.85; }

.video { width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* Feature row (West Minden) */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; font-size: .94rem; }
.features h4 { margin-bottom: 1.2rem; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .features { grid-template-columns: 1fr; } }

/* Maps */
.map { width: 100%; height: clamp(320px, 46vw, 590px); border: 0; }

/* Newsletter + contact forms */
.newsletter { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 2.5rem; }
.newsletter input[type="email"] { width: 280px; max-width: 100%; }
.field { display: block; margin-bottom: 1.4rem; }
.field__label { display: block; font-size: .94rem; margin-bottom: .35rem; }
.field__label small { color: #555; font-size: .94rem; margin-left: .3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  font: 300 1rem/1.4 var(--font);
  padding: 1.1rem 1.6rem;
  border: 1px solid #a9a9a9;
  border-radius: 0;
  background: var(--white);
}
.contact-form input, .contact-form textarea { background: #fafafa; border-color: #000; padding: .8rem 1rem; }
textarea { min-height: 100px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 1rem; font-weight: 400; }
.form-status[data-state="error"] { color: #a12a2a; }

/* About page */
.about { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 900px; padding: 2.8rem 0 6rem; }
.about__text { padding: 0 clamp(1.5rem, 7vw, 90px); font-size: 1.06rem; line-height: 1.75; }
.about__text h1 { font-size: 1.06rem; margin: 0 0 8.5rem 50px; }
.about__media { height: 100%; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; min-height: 0; }
  .about__text h1 { margin: 0 0 1.5rem; }
  .about__media { order: -1; height: auto; margin-bottom: 2rem; }
}

/* Contact details */
.contact-heading { font-size: clamp(2.2rem, 3.6vw, 2.9rem); margin-bottom: 2rem; }
.contact-details a { color: var(--blue); }

/* Justified gallery rows (like Squarespace "strips") */
.gallery { display: flex; flex-wrap: wrap; gap: 20px; padding: 38px var(--gutter); }
.gallery::after { content: ""; flex-grow: 999999; }
.gallery__item { flex: calc(var(--ratio) * 260) 1 calc(var(--ratio) * 220px); display: block; overflow: hidden; background: #eee; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: var(--ratio); transition: transform .4s; }
.gallery__item:hover img { transform: scale(1.03); }
@media (max-width: 600px) { .gallery { gap: 10px; padding: 20px; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(255, 255, 255, .97); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: calc(100vw - 140px); max-height: calc(100vh - 80px); object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; font: 300 2.5rem/1 var(--font); cursor: pointer; padding: 1rem; color: #222; }
.lightbox__close { top: .5rem; right: .8rem; }
.lightbox__prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: .5rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox img { max-width: 100vw; } }

.full-image { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Development sub-navigation (Overview / Location / Gallery) */
.subnav { background: #eef2f5; border-bottom: 1px solid #dde4ea; font-size: .94rem; }
.subnav__inner { max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: .55rem var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; }
.subnav__title { font-weight: 500; color: var(--navy); }
.subnav__note { font-size: .8rem; font-weight: 400; color: #555; border: 1px solid #b9c4cc; border-radius: 300px; padding: .05rem .7rem; }
.subnav__links { margin-left: auto; display: flex; gap: 1.4rem; }
.subnav__links a { text-decoration: none; color: var(--navy); }
.subnav__links a:hover, .subnav__links a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 600px) { .subnav__links { margin-left: 0; width: 100%; } }

/* Status badge on hero banners */
.badge { display: inline-block; margin-top: 1rem; padding: .45em 1.2em; border-radius: 300px; background: rgba(255, 255, 255, .92); color: var(--navy); font-size: .9rem; font-weight: 500; letter-spacing: .02em; }
.badge--green { background: #2f7d4f; color: var(--white); }

/* Lot availability table */
.lots { width: 100%; max-width: 640px; margin: 2rem auto 0; border-collapse: collapse; font-size: 1rem; }
.lots th, .lots td { padding: .7rem 1rem; border-bottom: 1px solid #e3e3e3; text-align: left; }
.lots th { font-weight: 500; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: #555; }
.lots td:last-child, .lots th:last-child { text-align: right; }
.status { display: inline-block; padding: .15em .8em; border-radius: 300px; font-size: .85rem; font-weight: 500; }
.status--available { background: #d9f2d8; color: #1f5f32; }

/* Highlight box */
.callout { background: var(--muted); padding: clamp(1.5rem, 4vw, 2.5rem); text-align: center; }
.callout .button { margin-top: 1rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.8rem; }
.button--outline { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.button--outline:hover { background: var(--blue); color: var(--white); }

[id] { scroll-margin-top: 110px; }
