/* ==========================================================================
   Reviews, FAQ, closing CTA + quote form, footer
   ========================================================================== */

/* ---------- Reviews: a slow vertical scroll of cards ---------- */
.reviews {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(45% 60% at 100% 0%, rgb(16 140 181 / 0.10), transparent 70%),
    radial-gradient(40% 55% at 0% 100%, rgb(211 171 125 / 0.16), transparent 70%),
    var(--paper);
}
/* faint dot grid that fades out from the bottom-left corner */
.reviews::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle, rgb(9 84 115 / 0.16) 1px, transparent 1.6px) 0 0 / 26px 26px;
  -webkit-mask-image: radial-gradient(60% 80% at 0% 100%, #000, transparent 75%);
  mask-image: radial-gradient(60% 80% at 0% 100%, #000, transparent 75%);
  pointer-events: none;
}
.reviews__grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.reviews__head .eyebrow { color: var(--teal-700); }
.reviews__head h2 { color: var(--teal-700); max-width: 22ch; }
.reviews__sub { margin-top: 1.25rem; max-width: 26rem; color: var(--text-muted-on-light); }

.reviews__window {
  width: 100%;
  max-width: 44rem;
  height: clamp(26rem, 68svh, 36rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
}
/* --n = number of reviews: more reviews, longer loop, same reading speed */
.reviews__track { animation: reviews-run calc(var(--n, 4) * 12s) linear infinite; }
/* pause while the visitor is reading (mouse only: touch screens keep scrolling) */
@media (hover: hover) {
  .reviews__window:hover .reviews__track { animation-play-state: paused; }
}
.reviews__list { display: grid; gap: 1rem; padding-bottom: 1rem; }
@keyframes reviews-run { to { transform: translateY(-50%); } }

.review {
  margin: 0;
  padding: 1.35rem 1.5rem 1.25rem;
  border-radius: var(--radius-l);
  background: var(--white);
  border: 1px solid rgb(9 84 115 / 0.1);
  box-shadow: var(--shadow-soft);
}
.review::before {
  content: "\201C";
  display: block;
  height: 1.5rem;
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.9;
  color: var(--sand-400);
}
.review blockquote { margin: 0; }
.review p { font-size: 1rem; line-height: 1.6; }
.review figcaption { margin-top: 0.9rem; font-weight: 700; font-size: 0.95rem; color: var(--teal-700); }

@media (min-width: 64em) {
  .reviews__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: clamp(2rem, 4vw, 4rem); }
  .reviews__window { justify-self: end; }
}
@media (prefers-reduced-motion: reduce) {
  .reviews__window { height: auto; -webkit-mask-image: none; mask-image: none; }
  .reviews__track { animation: none; }
  .reviews__list[aria-hidden="true"] { display: none; }
}

/* ---------- FAQ ---------- */
.faq { padding-block: var(--space-section); background: var(--white); }
.faq__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.faq__head .eyebrow { color: var(--teal-700); }
.faq__head h2 { margin-top: 1rem; font-size: var(--step-4); text-transform: uppercase; color: var(--teal-700); }
.faq__photo { display: none; margin: 2rem 0 0; border-radius: 12rem 12rem var(--radius-l) var(--radius-l); overflow: hidden; max-width: 20rem; box-shadow: var(--shadow-soft); }
.faq__photo img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; filter: saturate(0.85); }

.faq__list { border-top: 1px solid rgb(9 84 115 / 0.18); }
.faq__list details { border-bottom: 1px solid rgb(9 84 115 / 0.18); }
.faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.3rem 0.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.2;
  color: var(--teal-700);
  transition: color 0.3s, padding-left 0.4s var(--ease-out-expo);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary svg { flex: none; transition: transform 0.5s var(--ease-out-expo); }
.faq__list details[open] summary svg { transform: rotate(45deg); }
@media (hover: hover) { .faq__list summary:hover { padding-left: 0.75rem; } }
.faq__list details[open] summary { color: var(--abyss-800); }

.faq__a { padding: 0 0.25rem 1.5rem; max-width: 42rem; color: var(--text-muted-on-light); }
.faq__list details[open] .faq__a { animation: faq-in 0.5s var(--ease-out-expo); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-0.5rem); } }

@media (min-width: 64em) {
  .faq__grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); align-items: start; }
  .faq__head { position: sticky; top: calc(var(--header-h) + 2rem); }
  .faq__photo { display: block; }
}

/* ---------- Closing CTA + quote ---------- */
.closing {
  position: relative;
  isolation: isolate;
  padding-block: var(--space-section) clamp(2.5rem, 5vw, 4rem);
  color: var(--text-on-dark);
  background: var(--abyss-900);
  overflow: hidden;
}
.closing__bg { position: absolute; inset: 0; z-index: -1; background: var(--teal-700); }
.closing__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: luminosity;
  opacity: 0.55;
}
.closing__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 100% 100%, rgb(242 137 74 / 0.4), transparent 70%),
    linear-gradient(180deg, rgb(3 27 38 / 0.82), rgb(3 27 38 / 0.6) 50%, rgb(3 27 38 / 0.92));
}

/* Tighter section, dimmer photo, darker overlay: text stays readable */
.closing { padding-block: clamp(4rem, 8vw, 6rem) 0; }
.closing__bg img { opacity: 0.4; }
.closing__bg::after {
  background:
    radial-gradient(50% 60% at 100% 100%, rgb(242 137 74 / 0.28), transparent 70%),
    linear-gradient(180deg, rgb(3 27 38 / 0.9), rgb(3 27 38 / 0.82) 50%, rgb(3 27 38 / 0.95));
}

/* Contact page: same section, with the page heading (h1) and room for the floating header */
.closing--page { padding-top: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem)); }
.closing__copy h1 { margin-top: 0.6rem; font-size: var(--display-section); line-height: 1.04; letter-spacing: -0.005em; }

.closing__grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.closing__copy .eyebrow { color: var(--sand-400); }
.closing__copy p { margin-top: 1rem; max-width: 34rem; color: rgb(236 248 254 / 0.9); }
.closing__lead { color: #fff !important; font-size: var(--step-0); line-height: 1.5; }
.closing__lead strong { font-weight: 600; }
.closing__trust {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--sand-400);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand-400) !important;
}
.closing__contact { display: grid; gap: 0.5rem; margin-top: 1.75rem; max-width: 34rem; }
.closing__contact li { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; align-items: baseline; padding-top: 0.5rem; border-top: 1px solid rgb(236 248 254 / 0.22); }
.closing__contact span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand-400); }
.closing__contact a, .closing__contact b { font-weight: 500; color: #fff; overflow-wrap: anywhere; }

/* Quote form: compact, fields two across, near-solid panel for contrast */
.quote {
  display: grid;
  gap: 0.85rem;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border-radius: var(--radius-l);
  background: rgb(4 30 42 / 0.9);
  border-color: rgb(236 248 254 / 0.28);
}
.quote__title { font-size: var(--step-1); line-height: 1.15; }
.field { display: grid; gap: 0.3rem; }
.field label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(236 248 254 / 0.88); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgb(236 248 254 / 0.35);
  border-radius: var(--radius-s);
  background: rgb(3 27 38 / 0.85);
  color: #fff;
  font: inherit;
  font-size: 1rem;           /* 16px+ stops iOS zooming into fields */
  transition: border-color 0.3s, background 0.3s;
}
.field textarea { resize: vertical; min-height: 4rem; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 1.3rem) 55%, calc(100% - 1rem) 55%; background-size: 0.3rem 0.3rem; background-repeat: no-repeat; }
.field select option { color: #04202d; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sand-400); background: rgb(3 27 38 / 0.95); box-shadow: 0 0 0 3px rgb(211 171 125 / 0.35); }
.field [aria-invalid="true"] { border-color: #ff9d7a; }
.quote__error { color: #ffb59a; font-weight: 500; }
.quote__error[hidden] { display: none; }
.quote .btn { justify-content: space-between; }

/* Areas: one slow band of outlined names */
.areas {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-block: 1.5rem clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid rgb(236 248 254 / 0.22);
}
.areas__label { margin-bottom: 0.5rem; color: var(--sand-400); }
.areas__row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.areas__track { display: flex; width: max-content; animation: areas-run 70s linear infinite; }
.areas__list { display: flex; flex: none; }
.areas__list li {
  display: flex;
  align-items: center;
  padding-block: 0.05em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  line-height: 1.2;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--sand-400);
}
.areas__list li::after {
  content: "";
  width: 0.4rem; height: 0.4rem;
  margin-inline: clamp(1.5rem, 3vw, 3rem);
  background: var(--sand-400);
  transform: rotate(45deg);
}
@keyframes areas-run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .areas__row { -webkit-mask-image: none; mask-image: none; }
  .areas__track { width: auto; animation: none; justify-content: center; padding-inline: var(--gutter); }
  .areas__list { flex-wrap: wrap; justify-content: center; }
  .areas__list[aria-hidden="true"] { display: none; }
}

@media (min-width: 40em) {
  .quote { grid-template-columns: 1fr 1fr; column-gap: 0.85rem; }
  .quote > * { grid-column: 1 / -1; }
  .quote > .field:nth-of-type(-n+4) { grid-column: auto; }  /* name, phone, email, suburb sit two across */
}
@media (min-width: 64em) {
  .closing__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); }
}

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(3rem, 6vw, 5rem) 2rem; background: var(--abyss-950); color: var(--text-muted-on-dark); font-size: 0.95rem; }
.site-footer__grid { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.site-footer__brand { display: inline-block; align-self: start; justify-self: start; padding: 0.6rem 1rem; border-radius: var(--radius-m); background: #fff; line-height: 0; }
.site-footer__brand img { width: 12rem; height: auto; }
.site-footer h2 { margin-bottom: 0.9rem; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sand-400); }
.site-footer ul { display: grid; gap: 0.4rem; }
.site-footer address { font-style: normal; display: grid; gap: 0.4rem; align-content: start; }
.site-footer a { color: var(--cyan-50); text-decoration-color: rgb(236 248 254 / 0.3); text-underline-offset: 0.2em; }
.site-footer a:hover { color: var(--sand-400); }
.site-footer__legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(236 248 254 / 0.14); font-size: 0.8rem; }