/* Oamaru Property Management — airy white layout with a single teal accent.
   Structure inspired by contemporary NZ property-management sites (not copied).
   Headings in Fraunces; photography includes local Oamaru views and lifestyle stills.
   No trackers. */

@import url("fonts.css");

:root {
  --ink: #1C1916;
  --ink-soft: #5A534C;
  --paper: #FFFFFF;
  --paper-2: #F6F3EE;
  --line: #E7E2DA;
  --accent: #0D6F63;
  --accent-deep: #0A554E;
  --accent-soft: #E6F1EE;
  --foam: #FFFFFF;
  --highlight: #D4B56A;
  --focus: #0D6F63;
  --danger: #8A2E2E;
  --nav: #FFFFFF;
  --footer: #1A211F;
  --utility: #1A211F;

  --font-display: "Fraunces", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-place: "Fraunces", "Palatino Linotype", Palatino, "Times New Roman", serif;

  --page: min(calc(100% - 2.5rem), 74rem);
  --measure: 38rem;
  --utility-h: 2.65rem;
  --header-h: 4.35rem;
  --banner-h: 2.75rem;
  /* Banner height is included so heroes and in-page anchors clear the sticky chrome.
     To remove the banner, delete .site-banner from the HTML and set --banner-h: 0. */
  --chrome: calc(var(--banner-h) + var(--utility-h) + var(--header-h) + 0.75rem);
  --radius: 14px;
  --photo-radius: 16px;
  --pill: 999px;
  --shadow: 0 0.85rem 2rem rgba(28, 25, 22, 0.10);
  --shadow-soft: 0 0.4rem 1.2rem rgba(28, 25, 22, 0.06);

  --step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.175rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.45vw, 1.28rem);
  --step-2: clamp(1.45rem, 1.2rem + 1vw, 1.85rem);
  --step-3: clamp(1.85rem, 1.3rem + 1.8vw, 2.65rem);
  --display: clamp(2.35rem, 1.2rem + 3.2vw, 4.15rem);

  color-scheme: light;
}

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

html {
  hanging-punctuation: first last;
  scroll-padding-top: calc(var(--chrome) + 1.1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, picture, svg { display: block; max-width: 100%; height: auto; }
img { object-fit: cover; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, blockquote, fieldset { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: var(--display); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-weight: 700; }

a { color: var(--accent-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -5rem;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}
.skip:focus { top: 0.75rem; color: #fff; }

.wrap, .wrap-header, .wrap-utility {
  width: var(--page);
  margin-inline: auto;
}
.wrap-header, .wrap-utility { width: min(calc(100% - 1.75rem), 76rem); }

/* ----- Chrome: utility bar + white nav, sticky together ----- */
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
}

/* Under-construction banner (temporary).
   To remove: delete the .site-banner element from every HTML page,
   delete this CSS block, and set --banner-h: 0 in :root. */
.site-banner {
  background: var(--accent-deep);
  color: #F4F8F7;
  border-bottom: 1px solid rgba(212, 181, 106, 0.42);
}
.site-banner-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.2rem 0.7rem;
  text-align: center;
  padding-block: 0.55rem 0.6rem;
  width: min(calc(100% - 1.75rem), 76rem);
  margin: 0 auto;
}
.site-banner-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.35;
}
.site-banner-label::after {
  content: "—";
  margin-left: 0.7rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.75;
}
.site-banner-copy {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  color: #F4F8F7;
}
.site-banner a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}
.site-banner a:hover { color: #fff; text-decoration-thickness: 2px; }
.tbc {
  color: var(--ink-soft);
  font-weight: 700;
  letter-spacing: 0.04em;
}
@media (max-width: 40rem) {
  .site-banner-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding-block: 0.6rem 0.65rem;
  }
  .site-banner-label::after { display: none; content: none; }
  .site-banner-copy { font-size: 0.9rem; }
}

.utility-bar {
  background: var(--utility);
  color: #F3F7F7;
  min-height: var(--utility-h);
}
.wrap-utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  min-height: var(--utility-h);
  padding-block: 0.35rem;
}
.utility-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
  font-size: 0.95rem;
  color: #E4EEEE;
}
.utility-contact a { color: #fff; text-decoration: none; }
.utility-contact a:hover { text-decoration: underline; }
.utility-email { }
.utility-sep { opacity: 0.45; }
.btn-utility {
  flex: 0 0 auto;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 0.38rem 0.95rem;
  border-radius: var(--pill);
  white-space: nowrap;
  border: 0;
}
.btn-utility:hover { background: var(--accent-deep); color: #fff !important; }

.site-header {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem 1.25rem;
  min-height: var(--header-h);
}

.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.05;
  padding: 0.35rem 0;
}
.wordmark .place {
  font-family: var(--font-place);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}
.wordmark .trade {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.12rem;
}
.wordmark:hover { color: var(--accent-deep); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 1.15rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.35rem 0;
  display: inline-block;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] {
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.btn.btn-header { display: none; } /* utility bar already has the always-visible CTA */

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 0.4rem 0.85rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid var(--accent);
  border-radius: var(--pill);
  padding: 0.7rem 1.35rem;
  line-height: 1.2;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn-secondary {
  background: #fff;
  color: var(--accent-deep);
  border-color: var(--accent);
}
.btn-secondary:hover { background: var(--accent-soft); color: var(--accent-deep); }

.accent { color: var(--accent); }
.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 36rem;
  margin-top: 0.85rem;
}
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ----- Hero: typography over a soft photo fade into white ----- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(46rem, calc(100vh - var(--chrome)));
  min-height: min(46rem, calc(100dvh - var(--chrome)));
  display: grid;
  align-items: stretch;
  overflow: hidden;
  background: var(--paper);
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo picture, .hero-photo img {
  width: 100%;
  height: 100%;
}
.hero-photo img {
  object-fit: cover;
  object-position: 72% 50%;
  min-height: 100%;
}
.hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      #fff 0%,
      #fff 28%,
      rgba(255,255,255,0.96) 38%,
      rgba(255,255,255,0.55) 52%,
      rgba(255,255,255,0.12) 66%,
      rgba(255,255,255,0) 78%),
    linear-gradient(180deg,
      rgba(255,255,255,0.2) 0%,
      transparent 18%,
      transparent 82%,
      rgba(255,255,255,0.55) 100%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem 0 5rem;
  max-width: 34rem;
}
.hero-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.8rem;
  margin-top: 1.6rem;
}
.hero-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.5rem;
  margin-top: 2.1rem;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}
.hero-promises li { position: relative; padding-left: 0; }

/* ----- Path tiles (Landlords / Tenants) ----- */
.paths {
  padding: 2.5rem 0 3.25rem;
  background: var(--paper);
}
.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.path-card {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.15rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem 1rem 1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
  min-height: 8.5rem;
}
.path-card:hover { border-color: var(--accent); color: inherit; }
.path-card img {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 10px;
  object-fit: cover;
}
.path-card h2 { font-size: 1.55rem; margin-bottom: 0.3rem; }
.path-card p { color: var(--ink-soft); font-size: 1rem; }
.path-card .go {
  display: inline-block;
  margin-top: 0.55rem;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}

/* ----- Parallax: sticky photo, tiles scroll over it (iOS-friendly) ----- */
.parallax-scene {
  display: grid;
  grid-template-columns: 1fr;
}
.parallax-bg,
.parallax-fore {
  grid-column: 1;
  grid-row: 1;
}
.parallax-bg {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  /* overflow hidden on this sticky box is ok; do not put it on ancestors */
  overflow: hidden;
}
.parallax-bg picture, .parallax-bg img {
  width: 100%;
  height: 100%;
}
.parallax-bg img { object-fit: cover; object-position: center 40%; min-height: 100%; }
.parallax-dim {
  position: absolute;
  inset: 0;
  background: rgba(16, 28, 30, 0.28);
  pointer-events: none;
}
.parallax-fore {
  position: relative;
  z-index: 1;
  padding: 28vh 0 32vh;
  display: flex;
  flex-direction: column;
  gap: 28vh;
  pointer-events: none;
}
.tile {
  pointer-events: auto;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 2.1rem;
  box-shadow: var(--shadow);
  width: min(var(--page), calc(100% - 2.5rem));
  margin-inline: auto;
}
.tile > .badge { margin-bottom: 0.45rem; }
.tile > h2 { margin-bottom: 0.4rem; }
.tile > .lede { margin-bottom: 1.4rem; }
.tile-foot { margin-top: 1.4rem; }

@media (prefers-reduced-motion: reduce) {
  .parallax-scene { display: block; }
  .parallax-bg {
    position: relative;
    height: 42vh;
    height: 42dvh;
  }
  .parallax-fore {
    padding: 2rem 0 3rem;
    gap: 1.5rem;
    background: var(--paper-2);
  }
}

/* ----- Reveal on scroll (visible if JS does not run) ----- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(0.9rem);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .js-reveal .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* ----- Shared sections ----- */
.section, .section-tight, .section-mute, .about-band {
  padding: 4.25rem 0;
}
.section-tight { padding: 2.75rem 0 4.25rem; }
.section-mute { background: var(--paper-2); }
.section-intro { max-width: var(--measure); margin-bottom: 1.75rem; }

.page-head {
  padding: 3.25rem 0 1.25rem;
}
.page-head .lede { margin-top: 0.9rem; }

.prose {
  max-width: var(--measure);
}
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 1em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.35em; }

/* Photos */
.photo-card { margin: 0; }
.photo-card img {
  width: 100%;
  border-radius: var(--photo-radius);
}
.caption, .stack-caption, .credit {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-top: 0.55rem;
  max-width: 40rem;
}
.bleed { padding: 0; }
.bleed img { width: 100%; border-radius: 0; }
.bleed .caption, .split .caption, .about-photo + * .stack-caption {
  width: auto;
  margin-left: 0;
  margin-right: 0;
}
.figure-tall img { width: 100%; border-radius: var(--photo-radius); aspect-ratio: 3 / 4; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split.reverse .split-text { order: -1; }

/* About */
.about-band { background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.about-photo img { width: 100%; border-radius: var(--photo-radius); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; padding: 0; list-style: none; }
.chip {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--pill);
}
.about-more { margin-top: 1.4rem; }

/* How it works / steps */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.step-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem 1.15rem 1.3rem;
}
.tile .step-card { background: var(--paper-2); }
.step-card .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.step-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.step-card p { color: var(--ink-soft); font-size: 1rem; }

/* Services */
.svc-wrap { position: relative; }
.svc-track, .service-grid, .svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.svc-card, .service-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem 1.2rem 1.35rem;
}
.section-mute .svc-card, .section-mute .service-block,
.tile .svc-card {
  background: var(--paper-2);
}
.svc-card h3, .service-block h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.svc-card p, .service-block p { color: var(--ink-soft); }
.svc-more { margin-top: 1.4rem; }
.svc-nav { display: none; } /* grid replaces the carousel visually; JS remains harmless */
.k { color: var(--accent); font-weight: 700; }

/* Lifestyle photo row */
.lifestyle {
  padding: 4rem 0;
  background: var(--paper);
}
.lifestyle-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 0.9fr;
  gap: 1rem;
  align-items: end;
}
.lifestyle-grid figure img {
  width: 100%;
  border-radius: var(--photo-radius);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.lifestyle-grid .is-wide img { aspect-ratio: 4 / 5; }

/* Rentals */
.empty-rental {
  background: var(--paper-2);
  border: 1px dashed var(--ink-soft);
  border-radius: var(--radius);
  padding: 1.75rem 1.4rem;
  max-width: 40rem;
}
.empty-rental h3 { margin-bottom: 0.4rem; }

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 0.75fr) 1.25fr;
  gap: 2.5rem;
  align-items: start;
}
.faq-list, .faq-item { margin: 0; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.15rem 1rem;
  margin-bottom: 0.65rem;
}
.section-mute .faq-item { background: #fff; }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.85rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.chev {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  display: inline-flex;
  transition: transform 0.2s ease;
}
.chev svg { width: 1.1rem; height: 1.1rem; fill: var(--accent); display: block; }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-body { padding: 0 0 1rem; color: var(--ink-soft); }

/* Contact / forms */
.contact-band {
  position: relative;
  isolation: isolate;
  padding: 4.5rem 0;
  display: grid;
  justify-items: center;
}
.contact-band-media, .contact-band-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.contact-band-media picture, .contact-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-band-scrim {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(18,36,38,0.28)),
    rgba(18, 36, 38, 0.25);
}
.contact-card {
  position: relative;
  z-index: 1;
  background: #fff;
  width: min(40rem, calc(100% - 2rem));
  border-radius: var(--radius);
  padding: 2rem 1.6rem 1.8rem;
  box-shadow: var(--shadow);
}
.card-top { margin-bottom: 1.1rem; }
.form-note {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  margin: 0 0 1.15rem;
  font-size: 0.98rem;
}
form.appraisal, form.contact-form, form.js-form { display: grid; gap: 0.95rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}
.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.req { color: var(--accent-deep); }
.hint { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #C9D2D2;
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 0;
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin-top: 0.4rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
}
.form-status.is-ok { background: var(--accent-soft); color: var(--accent-deep); }
.form-status.is-error { background: #F8E8E8; color: var(--danger); }
.form-status[hidden] { display: none; }
button.btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* Fees */
.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.4rem;
  background: #fff;
}
.fee-table caption {
  text-align: left;
  font-weight: 700;
  margin-bottom: 0.7rem;
  caption-side: top;
}
.fee-table th, .fee-table td {
  text-align: left;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.fee-table thead th {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--ink);
}
.placeholder {
  display: inline;
  background: #F3E7C8;
  color: #3E3420;
  font-weight: 700;
  padding: 0.05em 0.35em;
  border-radius: 4px;
  white-space: normal;
}
.placeholder-long { white-space: normal; }
.draft-note {
  font-size: 0.9em;
  color: #3E474C;
  font-weight: 600;
}
.site-footer .draft-note { color: #C9D4D3; }

/* Healthy Homes */
.checked-note {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin: 1rem 0 1.5rem;
  max-width: 44rem;
}
.official-guides {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 1.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  max-width: 44rem;
}
.official { font-weight: 700; }
.check-list { display: grid; gap: 0.9rem; }
.check-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.15rem 1.2rem;
}
.check-item h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.check-item p { color: var(--ink-soft); }
.check-item p + p { margin-top: 0.6em; }

/* Legal */
.legal-doc { max-width: 42rem; }
.legal-toc { margin: 1rem 0 1.5rem; }
.legal-toc ul { padding-left: 1.2em; }
a[href^="mailto:"] { overflow-wrap: anywhere; }

.facts {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  max-width: 40rem;
}
.facts li {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}
.facts li:last-child { border-bottom: 1px solid var(--line); }

/* 404 */
.page-404 { padding: 4rem 0 5rem; max-width: 36rem; }

/* Footer */
.site-footer {
  background: var(--footer);
  color: #E4EEEE;
  padding: 3.25rem 0 1.6rem;
  margin-top: 0;
}
.site-footer h2 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}
.site-footer a { color: #F3F7F7; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 2rem 1.5rem;
}
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li + li { margin-top: 0.4rem; }
.legal {
  margin-top: 2.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 0.92rem;
  color: #C9D4D3;
}
.legal a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* ----- Responsive ----- */
@media (max-width: 72rem) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 60rem) {
  .path-grid, .about-grid, .split, .split.reverse, .faq-grid, .lifestyle-grid {
    grid-template-columns: 1fr;
  }
  .split.reverse .split-text { order: 0; }
  .step-grid, .svc-track, .service-grid, .svc-grid { grid-template-columns: 1fr 1fr; }
  .hero-copy { max-width: 32rem; }
  .hero-fade {
    background:
      linear-gradient(90deg,
        #fff 0%,
        #fff 22%,
        rgba(255,255,255,0.94) 34%,
        rgba(255,255,255,0.4) 52%,
        rgba(255,255,255,0) 70%),
      linear-gradient(180deg, transparent 70%, rgba(255,255,255,0.7) 100%);
  }
}

@media (max-width: 52rem) {
  :root { --banner-h: 3.35rem; }
  .site-header .wrap-header {
    grid-template-columns: 1fr auto;
  }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 0 1rem;
    box-shadow: var(--shadow-soft);
    z-index: 6;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    display: block;
    width: min(calc(100% - 1.75rem), 76rem);
    margin: 0 auto;
    padding: 0.2rem 0;
  }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a { display: block; padding: 0.75rem 0; }
  .utility-email, .utility-sep { display: none; }
  .wrap-utility { flex-wrap: nowrap; gap: 0.5rem; }
  .utility-contact { flex-wrap: nowrap; font-size: 0.82rem; min-width: 0; }
  .utility-contact > span { white-space: nowrap; }
  .utility-contact .placeholder { font-size: 0.8rem; }
  .btn-utility { font-size: 0.82rem; padding: 0.35rem 0.7rem; }
  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .hero-photo {
    position: relative;
    order: 2;
    min-height: 18rem;
    height: min(28rem, 58vw);
  }
  .hero-fade {
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.85) 12%, rgba(255,255,255,0.15) 32%, transparent 48%);
  }
  .hero-copy {
    order: 1;
    padding: 2rem 0 1.25rem;
    max-width: none;
    width: var(--page);
    margin-inline: auto;
  }
  .path-card { grid-template-columns: 5.5rem 1fr; min-height: 0; }
  .path-card img { width: 5.5rem; height: 5.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .parallax-fore { padding: 18vh 0 22vh; gap: 22vh; }
  .tile { padding: 1.5rem 1.15rem 1.6rem; }
}

@media (max-width: 40rem) {
  :root { --banner-h: 5.1rem; }
}

@media (max-width: 28rem) {
  .step-grid, .svc-track, .service-grid, .svc-grid { grid-template-columns: 1fr; }
  /* Stack fee table columns on small phones */
  .fee-table, .fee-table tbody, .fee-table tr, .fee-table th, .fee-table td, .fee-table thead {
    display: block;
    width: 100%;
  }
  .fee-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fee-table tr { border-bottom: 1px solid var(--line); padding: 0.6rem 0; }
  .fee-table td { padding: 0.2rem 0; border: 0; }
  .fee-table td:first-child { font-weight: 700; }
}

@media (min-width: 52.01rem) {
  /* Keep enquiry + appraisal visible; nav in the white bar. */
  .site-nav { display: block !important; }
  .header-actions { display: none; }
  .site-header .wrap-header { grid-template-columns: auto 1fr; }
}
