/* ShoreWash - exterior cleaning, North Shore Auckland
   Palette is taken from the logo. One warm accent (cleaned timber) and it only
   appears on the primary call to action. */

:root {
  --navy: #0b2a4a;
  --navy-deep: #071c33;
  --ocean: #1565c0;
  --wave: #37a6e0;
  --foam: #f4f8fb;
  --mist: #dfe8f0;
  --slate: #3b4a5a;
  --ink: #12202e;
  --timber: #d9b77e;
  --timber-deep: #b8934f;
  --white: #ffffff;

  --font: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --measure: 64ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --wrap: 72rem;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px -24px rgba(7, 28, 51, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-feature-settings: "ss01", "cv11";
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ocean); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--ocean);
  box-shadow: 0 0 0 6px var(--white);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: 1.2rem; color: var(--slate); }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
[id] { scroll-margin-top: 5.5rem; }
.section--foam { background: var(--foam); }
.section--navy { background: var(--navy); color: var(--foam); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: var(--mist); }

.section-head { max-width: var(--measure); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p { margin-bottom: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
  white-space: normal;
  text-align: center;
  min-height: 44px;
  font-family: inherit;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--timber); color: var(--navy-deep); border-color: var(--timber); }
.btn--primary:hover { background: var(--timber-deep); border-color: var(--timber-deep); color: var(--navy-deep); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--mist); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.section--navy .btn--ghost, .hero .btn--ghost.on-dark { color: var(--white); border-color: rgba(255,255,255,0.35); }
.section--navy .btn--ghost:hover { border-color: var(--white); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Header */
.topbar {
  background: var(--navy-deep);
  color: var(--mist);
  font-size: 0.9rem;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 2.4rem;
}
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar span { color: var(--mist); }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--mist);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}
.brand img { height: 2.6rem; width: auto; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  color: var(--slate);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--navy); }
.nav .btn { padding: 0.7rem 1.15rem; font-size: 0.95rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--mist);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--mist);
    padding: 0.5rem var(--gutter) 1rem;
    box-shadow: var(--shadow);
  }
  .nav-ready .nav.is-open { display: flex; }
  html:not(.js) .header .wrap { flex-wrap: wrap; padding-block: 1rem; }
  html:not(.js) .header .nav { flex-wrap: wrap; gap: 0.75rem 1.25rem; }
  .nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--foam); }
  .nav .btn { margin-top: 0.75rem; justify-content: center; }
  .topbar .topbar-note { display: none; }
}

/* Hero */
.hero {
  background: var(--foam);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy h1 { margin-bottom: 0.5em; max-width: 12ch; font-size: clamp(2.75rem, 5vw, 4.5rem); letter-spacing: -0.045em; }
.hero-media { margin: 0; min-width: 0; }
.hero-copy .lede { margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hero-proof {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  color: var(--slate);
  font-size: 0.95rem;
  font-weight: 600;
}
.hero-proof li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-proof svg { width: 1.1em; height: 1.1em; color: var(--ocean); flex: none; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* Before / after comparison. Two stacked images; the top one is clipped by a
   range input the visitor drags. Works with keyboard and touch through the
   native input. */
.compare {
  position: relative;
  aspect-ratio: 5 / 6;
  max-height: 34rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--mist);
  --pos: 50%;
  isolation: isolate;
  margin-inline: auto;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
@media (max-width: 860px) { .compare { max-height: none; } }
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.compare .compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  background: var(--white);
  transform: translateX(-1px);
  pointer-events: none;
  z-index: 2;
}
.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 2.75rem; height: 2.75rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 6px 20px rgba(7,28,51,0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2a4a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E");
  background-size: 1.3rem;
  background-repeat: no-repeat;
  background-position: center;
}
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  z-index: 3;
  -webkit-appearance: none;
  appearance: none;
}
.compare-ready { cursor: ew-resize; }
.compare-ready .compare-range { pointer-events: none; }
.compare:focus-within { outline: 3px solid var(--ocean);
  box-shadow: 0 0 0 6px var(--white); outline-offset: 3px; }
.compare-label {
  position: absolute;
  bottom: 1rem;
  z-index: 2;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(7,28,51,0.72);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  pointer-events: none;
}
.compare-label--before { left: 1rem; }
.compare-label--after { right: 1rem; }
.compare-caption {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--slate);
}

/* Trust strip */
.trust {
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
  background: var(--white);
}
.trust .wrap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 2rem;
  padding-block: 1.5rem;
}
.trust-item { display: flex; gap: 0.8rem; align-items: flex-start; }
.trust-item svg { width: 1.5rem; height: 1.5rem; color: var(--ocean); flex: none; margin-top: 0.15rem; }
.trust-item strong { display: block; color: var(--navy); font-weight: 700; }
.trust-item span { font-size: 0.9rem; color: var(--slate); }
@media (max-width: 860px) { .trust .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .trust .wrap { grid-template-columns: 1fr; } }

/* Services: a priced list. Rules, not cards, because these are five rows of
   the same thing and the price column is what people compare. */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--mist); }
.service {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  gap: 1.25rem 1.5rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--mist);
}
.service-icon {
  width: 3.25rem; height: 3.25rem;
  border-radius: var(--radius-sm);
  background: var(--foam);
  color: var(--ocean);
  display: grid; place-items: center;
}
.service-icon svg { width: 1.6rem; height: 1.6rem; }
.service h3 { margin-bottom: 0.3rem; }
.service p { margin: 0; color: var(--slate); max-width: 56ch; }
.service-price { text-align: right; white-space: nowrap; }
.service-price small { display: block; font-size: 0.8rem; color: var(--slate); font-weight: 600; }
.service-price strong { font-size: 1.5rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.services-note { margin-top: 1.25rem; font-size: 0.95rem; color: var(--slate); }
@media (max-width: 600px) {
  .service { grid-template-columns: 3.25rem minmax(0, 1fr); }
  .service-price { grid-column: 2; text-align: left; }
  .service-price strong { font-size: 1.25rem; }
}

/* Process: this genuinely is a sequence, so it is numbered. */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.steps li { counter-increment: step; position: relative; padding-top: 0.5rem; }
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--wave);
  color: var(--navy-deep);
  font-weight: 800;
  margin-bottom: 1rem;
}
.steps h3 { color: var(--white); }
.steps p { margin: 0; font-size: 0.98rem; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.gallery figure { margin: 0; }
.gallery .compare { aspect-ratio: 5 / 7; max-height: none; box-shadow: none; border: 1px solid var(--mist); }
.gallery .photo {
  aspect-ratio: 5 / 7;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--mist);
}
.gallery .photo picture { display: block; width: 100%; height: 100%; }
.gallery .photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { margin-top: 0.75rem; font-size: 0.9rem; color: var(--slate); }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr; max-width: 28rem; } }

/* Testimonial */
.quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  border-left: 4px solid var(--timber);
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
}
.quote blockquote {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--navy);
  max-width: 34ch;
  text-wrap: pretty;
}
.quote cite { font-style: normal; color: var(--slate); font-weight: 600; white-space: nowrap; }
@media (max-width: 700px) { .quote { grid-template-columns: 1fr; align-items: start; } }

/* Area */
.area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.suburbs {
  columns: 2;
  column-gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
  font-weight: 600;
  color: var(--navy);
}
.suburbs li { padding: 0.4rem 0; border-bottom: 1px solid var(--mist); break-inside: avoid; }
@media (max-width: 760px) { .area { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: var(--measure); border-top: 1px solid var(--mist); }
.faq details { border-bottom: 1px solid var(--mist); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 700;
  color: var(--navy);
  position: relative;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.35rem; top: 50%;
  width: 0.7rem; height: 0.7rem;
  border-right: 2px solid var(--ocean);
  border-bottom: 2px solid var(--ocean);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding-bottom: 1.15rem; color: var(--slate); }

/* Quote form */
.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-list svg { width: 1.35rem; height: 1.35rem; color: var(--wave); flex: none; margin-top: 0.2rem; }
.contact-list a { color: var(--white); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.contact-list a:hover { text-decoration: underline; }
.contact-list span { display: block; font-size: 0.9rem; color: var(--mist); }

.form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
}
.form p { color: var(--slate); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field label { font-weight: 700; font-size: 0.92rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid #77899a;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--ocean);
  outline-offset: 2px;
  border-color: var(--ocean);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field-hint { font-size: 0.85rem; color: var(--slate); }
.form .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }
.form-fine { font-size: 0.82rem; color: var(--slate); margin: 0.9rem 0 0; }
.honey { position: absolute; left: -9999px; }
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--navy-deep); color: var(--mist); padding-block: 3rem 2rem; font-size: 0.92rem; }
.footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 3rem;
}
.footer img { height: 2.4rem; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: 0.92; }
.footer h3 { color: var(--white); font-size: 0.95rem; margin-bottom: 0.75rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer a { color: var(--mist); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer p { color: var(--mist); max-width: 40ch; }
.footer-legal {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.82rem;
  color: rgba(223,232,240,0.75);
}
@media (max-width: 760px) { .footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer .wrap { grid-template-columns: 1fr; } }

/* Mobile call bar: the one thing a phone visitor wants is the number. */
.callbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--navy-deep);
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  gap: 0.6rem;
}
.callbar .btn { flex: 1; justify-content: center; }
.callbar .btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.35); }
@media (max-width: 860px) {
  .callbar { display: flex; }
  .has-callbar { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom: 6rem; }
}

/* Inner pages (privacy, accessibility, thanks) */
.page { padding-block: clamp(2.5rem, 6vw, 5rem); }
.page .wrap { max-width: var(--measure); }
.page h2 { font-size: 1.35rem; margin-top: 2rem; }
.page ul { padding-left: 1.2rem; }
.page li { margin-bottom: 0.3rem; }
.page .meta { color: var(--slate); font-size: 0.95rem; }

.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;
}

/* Progressive enhancement leaves navigation and photographs usable without JS. */
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 100; padding: 0.75rem 1rem; background: var(--white); color: var(--navy); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.nav .btn--primary { color: var(--navy-deep); }
.nav-toggle { min-height: 44px; }
.compare:not(.compare-ready) { display: flex; }
.compare:not(.compare-ready) picture { width: 50%; min-width: 0; }
.compare:not(.compare-ready) picture:first-child { order: 2; }
.compare:not(.compare-ready) img { position: static; height: 100%; clip-path: none; }
.compare:not(.compare-ready) .compare-range,
.compare:not(.compare-ready) .compare-handle { display: none; }
.compare-label { background: var(--navy-deep); }
.form-intro { font-size: 0.95rem; }
.form-status { min-height: 1.6em; font-weight: 600; font-size: 0.95rem; }
.form-status:empty { display: none; }
.field { min-width: 0; }
.field [aria-invalid="true"] { border-color: #a52828; }
.form .field-error { color: #a52828; font-size: 0.85rem; margin: 0; }
.form .field-error:empty { display: none; }
.btn:disabled { cursor: wait; opacity: 0.75; }
.contact-list a, .footer a { overflow-wrap: anywhere; }
.footer li a { display: inline-block; padding-block: 0.25rem; }
.page h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
@media (min-width: 861px) {
  #services .wrap, #faq .wrap { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 0 4rem; align-items: start; }
  #services .section-head, #faq .section-head { position: sticky; top: 7rem; }
  .services-note { grid-column: 2; }
}
@media (max-width: 860px) {
  .hero-media { width: 100%; max-width: 36rem; }
  .hero .compare { aspect-ratio: 1 / 1; }
  .hero-copy h1 { max-width: 16ch; }
  .gallery { margin-inline: auto; }
}
@media (max-width: 600px) {
  .service { grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; }
  .service-icon { display: none; }
  .service-price { grid-column: 2; grid-row: 1; text-align: right; }
  .service h3 { font-size: 1.15rem; }
  .hero-proof { gap: 0.5rem; flex-direction: column; margin-top: 1.5rem; }
  .hero-actions { align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
@media (forced-colors: active) {
  .compare:focus-within { outline: 3px solid Highlight; }
  .compare-handle { background: CanvasText; }
  .btn { border: 2px solid ButtonText; }
}
