/* Sunwest Pools website. Brand refresh of 18 October 2026: light, bright and fresh.
   Tokens mirror docs/brand/tokens.css (brand guide, ClickUp 14ym01umxkn).
   Fonts are self-hosted (SIL OFL 1.1, licences in /assets/fonts/). */
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin-800-900.woff2") format("woff2");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/nunito-sans-latin-400-700.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --sw-sunshine: #F6C744;
  --sw-sunshine-hover: #F2B91E;
  --sw-blue: #1679AC;
  --sw-blue-hover: #11648F;
  --sw-aqua: #3BBFDF;
  --sw-sky-wash: #EAF7FC;
  --sw-sand: #FFF8E1;
  --sw-deep-water: #24475B;
  --sw-mowing-green: #2E7D46;
  --sw-heading-ink: #1A4D66;
  --sw-white: #FFFFFF;
  --sw-line: #D4E6EE;
  --sw-border: #6F8E9D;
  --sw-muted: #4A6878;
  --sw-disabled-bg: #E3EDF2;
  --sw-disabled-text: #5E7A88;
  --sw-error: #B42318;
  --sw-error-bg: #FDEEEC;
  --sw-success-bg: #E8F5EC;
  --sw-caution: #8A5300;
  --sw-text-on-sunshine: #1A3A4A;

  --sw-font-heading: "Nunito", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --sw-font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sw-text-display: clamp(2.5rem, 1.6rem + 3.6vw, 3.5rem);
  --sw-text-h1: clamp(2.125rem, 1.6rem + 2.2vw, 2.75rem);
  --sw-text-h2: clamp(1.75rem, 1.45rem + 1.2vw, 2.125rem);
  --sw-text-h4: 1.3125rem;
  --sw-text-body-lg: 1.1875rem;
  --sw-text-small: 0.9375rem;
  --sw-measure: 68ch;

  --sw-radius-input: 12px;
  --sw-radius-card-sm: 16px;
  --sw-radius-card: 20px;
  --sw-radius-card-lg: 24px;
  --sw-shadow-sm: 0 1px 2px rgba(22, 121, 172, 0.08), 0 2px 8px rgba(22, 121, 172, 0.10);
  --sw-shadow-md: 0 2px 4px rgba(22, 121, 172, 0.08), 0 8px 24px rgba(22, 121, 172, 0.12);
  --sw-duration-fast: 150ms;

  --gutter: 16px;
  --section: 64px;
  --header-h: 64px;
}
@media (min-width: 768px) { :root { --gutter: 24px; --header-h: 76px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --section: 96px; } }
@media (prefers-reduced-motion: reduce) { :root { --sw-duration-fast: 0ms; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--sw-font-body); color: var(--sw-deep-water); background: var(--sw-white); }
/* Short pages (thanks, error pages): the footer sits at the bottom of the window. */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sw-blue); text-underline-offset: 3px; }
a:hover { color: var(--sw-blue-hover); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--sw-font-heading); color: var(--sw-blue); margin: 0 0 .5em; }
h1 { font-size: var(--sw-text-h1); font-weight: 900; line-height: 1.12; }
h2 { font-size: var(--sw-text-h2); font-weight: 800; line-height: 1.18; }
h3 { font-size: var(--sw-text-h4); font-weight: 800; line-height: 1.3; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sw-heading-ink); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 12px 16px; border-radius: 999px; background: var(--sw-sunshine); color: var(--sw-text-on-sunshine); font-weight: 700; }
.skip-link:focus { top: 8px; }

/* Buttons: pills, 48 px tall (44 px minimum in the header). */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px; border: 1.5px solid transparent; border-radius: 999px; font: 700 1.0625rem/1.2 var(--sw-font-body); text-decoration: none; text-align: center; cursor: pointer; transition: background-color var(--sw-duration-fast), box-shadow var(--sw-duration-fast); }
.btn-lg { min-height: 52px; padding: 14px 28px; }
.btn-primary { background: var(--sw-sunshine); color: var(--sw-text-on-sunshine); }
.btn-primary:hover { background: var(--sw-sunshine-hover); color: var(--sw-text-on-sunshine); box-shadow: var(--sw-shadow-sm); }
.btn-secondary { background: var(--sw-blue); color: var(--sw-white); }
.btn-secondary:hover { background: var(--sw-blue-hover); color: var(--sw-white); }
.btn-secondary:focus-visible { outline-color: var(--sw-heading-ink); }
.btn-outline { border-color: var(--sw-blue); color: var(--sw-blue); background: var(--sw-white); }
.btn-outline:hover { background: var(--sw-sky-wash); color: var(--sw-heading-ink); border-color: var(--sw-heading-ink); }
.btn-call { gap: .3em; border-color: var(--sw-blue); color: var(--sw-blue); background: var(--sw-white); white-space: nowrap; min-height: 44px; padding: 8px 14px; font-size: 1rem; }
.btn-call:hover { background: var(--sw-sky-wash); color: var(--sw-heading-ink); }

/* Header: white, full-colour horizontal logo. */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--sw-line); }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: var(--header-h); }
.brand { flex: 0 0 auto; display: block; padding: 6px 0; }
.brand img { width: 128px; height: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.btn-quote { min-height: 44px; padding: 8px 16px; font-size: 1rem; white-space: nowrap; }
/* Phones: the logo keeps at least 120 px. With a quote button beside it, the call
   button shortens to "Call" (its accessible name keeps the number); under 380 px
   the quote button hides and the number returns. */
.call-label { display: none; }
.has-quote .call-label { display: inline; }
.has-quote .call-number { display: none; }
@media (max-width: 379px) {
  .brand img { width: 120px; }
  .btn-quote { display: none; }
  .has-quote .call-label { display: none; }
  .has-quote .call-number { display: inline; }
}
@media (min-width: 560px) { .call-label, .has-quote .call-label, .has-quote .call-number { display: inline; } .brand img { width: 160px; } }
@media (min-width: 768px) { .brand img { width: 192px; } }

/* Hero: white, Sunwest Blue display heading, image in a 24 px frame. */
.hero { background: var(--sw-white); padding: 32px 0 48px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { font-size: var(--sw-text-display); line-height: 1.08; }
.hero-sub { font-size: var(--sw-text-body-lg); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero-actions .btn { flex: 1 1 220px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .15em; width: 24px; height: 24px; border-radius: 50%; background: var(--sw-success-bg); }
.ticks li::after { content: ""; position: absolute; left: 9px; top: calc(.15em + 5px); width: 6px; height: 11px; border: solid var(--sw-mowing-green); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.hero-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--sw-radius-card-lg); box-shadow: var(--sw-shadow-md); }
@media (min-width: 960px) {
  .hero { padding: 64px 0 88px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* Sections alternate white and Sky Wash. On Sky Wash, headings and links use Heading ink. */
.section { padding: var(--section) 0; }
.band { background: var(--sw-sky-wash); }
.band h2, .band a:not(.btn) { color: var(--sw-heading-ink); }
.section-lead { max-width: 40em; font-size: var(--sw-text-body-lg); }

/* Service cards */
.cards { display: grid; gap: 24px; margin-top: 32px; }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; padding: 20px; border-radius: var(--sw-radius-card); background: var(--sw-white); box-shadow: var(--sw-shadow-sm); }
@media (min-width: 720px) { .card { padding: 24px; } }
.card h3 { margin-bottom: .25em; }
.card-note { color: var(--sw-muted); font-size: var(--sw-text-small); }
.included { padding-left: 1.2em; margin: 0 0 1em; }
.included li { margin-bottom: .35em; }
.price { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--sw-line); font-weight: 700; }
.card .btn { align-self: stretch; }

/* Steps */
.steps-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .steps-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 20px; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; }
.step-num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--sw-sunshine); color: var(--sw-text-on-sunshine); font: 900 1.25rem/1 var(--sw-font-heading); }
.steps-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--sw-radius-card-lg); box-shadow: var(--sw-shadow-md); }

/* About: text on its own, a readable centred column. */
.about-inner { max-width: 820px; }
.about-inner p { max-width: var(--sw-measure); }
.about-name { font-weight: 700; font-size: 1.125rem; color: var(--sw-heading-ink); }
.facts { display: grid; gap: 8px; margin: 20px 0 0; }
.facts div { display: flex; gap: 8px; flex-wrap: wrap; }
.facts dt { font-weight: 700; min-width: 8.5em; }
.facts dd { margin: 0; }

/* Area: a rounded Sky Wash panel on white. */
.area-inner { text-align: center; }
.area-inner > * { max-width: 40em; margin-inline: auto; }
.area .wrap { background: var(--sw-sky-wash); border-radius: var(--sw-radius-card-lg); padding-block: 40px; max-width: calc(1200px - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); }
.area h2 { color: var(--sw-heading-ink); }
.area-copy { font-size: var(--sw-text-body-lg); }

/* FAQ */
.faq-inner { max-width: 820px; }
.faq-list { margin-top: 24px; display: grid; gap: 12px; }
.faq details { border-radius: var(--sw-radius-card-sm); background: var(--sw-white); box-shadow: var(--sw-shadow-sm); padding: 0 20px; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0; cursor: pointer; font-weight: 700; color: var(--sw-blue); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; font: 900 1.5rem/1 var(--sw-font-heading); color: var(--sw-blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--sw-deep-water); padding-bottom: 8px; }

/* Quote section: white, the form in a raised white card. */
.quote { background: var(--sw-white); }
.quote-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .quote-grid { grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; } }
.quote-aside h2:focus { outline: none; }
.aside-call a { font-weight: 700; }
.quote-panel { background: var(--sw-white); border-radius: var(--sw-radius-card-lg); box-shadow: var(--sw-shadow-md); padding: 20px; }
@media (min-width: 720px) { .quote-panel { padding: 32px; } }

/* Quote form */
.quote-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.step-title { font-size: var(--sw-text-h4); margin-bottom: 16px; }
.step-title:focus { outline: none; }
.step-count { color: var(--sw-muted); font: 700 1rem var(--sw-font-body); }
.field { margin-bottom: 20px; }
.field label, .field legend { display: block; font-weight: 700; font-size: 1rem; line-height: 1.4; color: var(--sw-deep-water); margin-bottom: 6px; padding: 0; }
.field-short input { max-width: 9em; }
.opt, .req { font-weight: 400; color: var(--sw-muted); }
.hint { margin: 0 0 6px; color: var(--sw-muted); font-size: var(--sw-text-small); }
input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--sw-border); border-radius: var(--sw-radius-input);
  background: var(--sw-white); color: var(--sw-deep-water); font: 400 1.0625rem/1.4 var(--sw-font-body);
}
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, textarea:focus-visible { border-color: var(--sw-heading-ink); }
[aria-invalid="true"]:not([type="radio"]) { border: 2px solid var(--sw-error); }
.choices { display: grid; gap: 8px; }
@media (min-width: 520px) { .choices { grid-template-columns: 1fr 1fr; } }
.choices-inline { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.choice { display: flex !important; align-items: center; gap: 10px; min-height: 48px; margin: 0 !important; padding: 8px 14px; border: 1.5px solid var(--sw-line); border-radius: var(--sw-radius-input); font-weight: 600 !important; cursor: pointer; background: var(--sw-white); }
.choice:has(input:checked) { border-color: var(--sw-blue); background: var(--sw-sky-wash); }
.choice input { width: 24px; height: 24px; margin: 0; accent-color: var(--sw-blue); flex: 0 0 auto; }
.field-error { margin: 0 0 6px; color: var(--sw-error); font-weight: 700; }
.field-error::before { content: "! "; }
.suburb-check { margin: 6px 0 0; min-height: 1.6em; color: var(--sw-muted); }
.suburb-check .ok { color: var(--sw-mowing-green); font-weight: 700; }
.counter { margin: 4px 0 0; color: var(--sw-muted); font-size: var(--sw-text-small); }
.counter.over { color: var(--sw-error); font-weight: 700; }
/* Bot trap (name hp_x7, label "Leave this empty"): off-screen, out of the tab order. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--sw-muted); font-size: var(--sw-text-small); }
.step-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.step-actions .btn { flex: 1 1 160px; }
.btn:disabled { background: var(--sw-disabled-bg); color: var(--sw-disabled-text); border-color: transparent; box-shadow: none; cursor: progress; }
.error-summary { margin-bottom: 20px; padding: 16px 20px; border: 2px solid var(--sw-error); border-radius: var(--sw-radius-card-sm); background: var(--sw-error-bg); }
.error-summary h3 { color: var(--sw-error); font-size: 1.125rem; }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary li { padding: 4px 0; }
.error-summary a { color: var(--sw-error); font-weight: 700; }
.form-status { margin-bottom: 20px; padding: 16px 20px; border: 2px solid var(--sw-caution); border-radius: var(--sw-radius-card-sm); background: var(--sw-sand); }
.form-status p { margin-bottom: 12px; font-weight: 600; }
.form-status p:last-child { margin-bottom: 0; }
.confirmation { padding: 20px; border-radius: var(--sw-radius-card-sm); background: var(--sw-success-bg); }
.confirmation h3 { font-size: 1.375rem; color: var(--sw-heading-ink); }
.confirmation h3:focus { outline: none; }
.confirmation strong { font-size: 1.15em; letter-spacing: .04em; }

/* Placeholder values awaiting confirmation: deliberately visible. */
.tbc { display: inline-block; padding: 0 6px; border: 1px dashed var(--sw-caution); border-radius: 6px; background: var(--sw-sand); color: var(--sw-caution); font-weight: 700; font-size: .9em; line-height: 1.5; }

/* Footer: Sky Wash, Deep Water text, Heading ink links, full-colour logo. */
.site-footer { background: var(--sw-sky-wash); color: var(--sw-deep-water); padding: 48px 0 32px; border-top: 1px solid var(--sw-line); }
.site-footer a { color: var(--sw-heading-ink); }
.footer-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-logo { width: 176px; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-links a { display: inline-block; padding: 10px 0; overflow-wrap: anywhere; }
.copyright { grid-column: 1 / -1; margin: 0; font-size: var(--sw-text-small); color: var(--sw-muted); }

/* Privacy, thanks and server-rendered pages */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 780px; }
.doc h2 { font-size: 1.5rem; margin-top: 1.6em; }
.doc-meta { color: var(--sw-muted); }
.doc .btn { margin-top: 8px; }
.thanks-ref strong { font-size: 1.15em; letter-spacing: .04em; }
