/* ============================================================
   A LOAD OF CRAP — Dog Waste Services
   Design system · navy #11253E · gold #CAA229 · cream #F8F1E1
   Headings: Baloo 2 · Body: Nunito
   ============================================================ */

:root {
  --navy: #11253E;
  --navy-deep: #0B1A2E;
  --navy-soft: #1D3557;
  --gold: #CAA229;
  --gold-bright: #E0B93B;
  --gold-tint: #F0E3BC;
  --cream: #F8F1E1;
  --cream-bright: #FDF9EF;
  --white: #FFFFFF;
  --ink: var(--navy);
  --font-display: "Baloo 2", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Segoe UI", Arial, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 6px 24px rgba(17, 37, 62, 0.12);
  --shadow-lg: 0 14px 40px rgba(17, 37, 62, 0.18);
  --wrap: 1140px;
  --focus-ring: 3px solid var(--navy);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; /* keep anchor targets clear of the sticky header */ }
@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: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1em; max-width: 65ch; }
a { color: var(--navy); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
ul, ol { padding-left: 1.3em; }
:focus-visible { outline: var(--focus-ring); outline-offset: 2px; border-radius: 4px; }
.band :focus-visible, .card--navy :focus-visible, .founding :focus-visible,
.on-navy :focus-visible, .site-footer :focus-visible { outline-color: var(--cream); }
::selection { background: var(--gold); color: var(--navy); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.center { text-align: center; }
.center p { margin-inline: auto; }

/* Punchy kicker line above headings */
.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold-tint);
  border-radius: 999px;
  padding: 0.25em 1em;
  margin-bottom: 1rem;
}
.band .kicker, .on-navy .kicker { background: rgba(202, 162, 41, 0.18); color: var(--gold-bright); }
.lead { font-size: clamp(1.15rem, 2vw, 1.3rem); font-weight: 600; }

/* Highlighted words inside display headings.
   On light surfaces: navy text over a gold highlighter swash (gold text on cream fails AA).
   On navy surfaces: bright gold text (6.4:1 — passes). */
.hl {
  color: var(--navy);
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 100% 0.34em;
  background-position: 0 78%;
  background-repeat: no-repeat;
}
.band .hl, .card--navy .hl, .founding .hl, .on-navy .hl { color: var(--gold-bright); background-image: none; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--navy); color: var(--cream);
  padding: 0.7em 1.2em; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 100; transition: top 0.2s;
}
.skip-link:focus { top: 0; color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 2px solid rgba(17, 37, 62, 0.08);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.65rem; max-width: 1240px;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand:hover { color: inherit; }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__text { line-height: 1; }
.brand__top {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.22em; color: var(--navy);
}
.brand__main {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 1.6rem; letter-spacing: 0.02em; color: var(--gold); margin-top: 2px;
}
.site-nav ul { display: flex; align-items: center; gap: clamp(0.2rem, 1.2vw, 0.9rem); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-block; padding: 0.55em 0.75em; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 0.98rem; color: var(--navy);
}
.site-nav a:hover { background: var(--gold-tint); color: var(--navy); }
.site-nav a[aria-current="page"] { background: var(--navy); color: var(--cream); }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--navy); border-radius: 12px;
  padding: 0.5rem 0.65rem; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 800; font-family: var(--font-display); }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 3px solid var(--gold);
    box-shadow: var(--shadow-lg); display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 0.8rem 1.2rem 1.2rem; gap: 0.2rem; }
  .site-nav a { display: block; font-size: 1.1rem; padding: 0.7em 1em; }
  .site-nav .nav-cta { margin-top: 0.5rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  padding: 0.8em 1.7em; min-height: 48px; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 3px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-bright); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--cream); }
.btn--navy:hover { background: var(--navy-soft); color: var(--white); }
.btn--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--cream); }
.band .btn--outline, .on-navy .btn--outline { border-color: var(--cream); color: var(--cream); }
.band .btn--outline:hover, .on-navy .btn--outline:hover { background: var(--cream); color: var(--navy); }
.btn--lg { font-size: 1.2rem; padding: 0.9em 2.1em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.center .btn-row { justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 5.5rem) 0; }
.hero__grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
@media (max-width: 820px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { margin-bottom: 1.4em; }
.hero__art { position: relative; }
.hero__art img, .hero__art svg { margin-inline: auto; }

/* Trust ticks under hero CTA */
.tick-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; padding: 0; margin: 1.4rem 0 0; list-style: none; }
.tick-row li { display: flex; align-items: center; gap: 0.45em; font-weight: 700; font-size: 0.98rem; }
.tick-row svg, .tick-row img { width: 20px; height: 20px; flex: none; }

/* ---------- Wave dividers ---------- */
.wave { display: block; width: 100%; height: auto; }
.wave--flip { transform: scaleY(-1); }

/* Navy band sections */
.band { background: var(--navy); color: var(--cream); }
.band h2, .band h3 { color: var(--white); }
.band p { color: var(--cream); }
.band a { color: var(--gold-bright); }
.band a:hover { color: var(--white); }

/* Gold CTA band */
.cta-band { background: var(--gold); color: var(--navy); }
.cta-band h2 { color: var(--navy); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border-radius: var(--radius);
  padding: clamp(1.3rem, 2.5vw, 1.9rem); box-shadow: var(--shadow);
  border: 2px solid rgba(17, 37, 62, 0.06);
}
.card--navy { background: var(--navy); color: var(--cream); border-color: transparent; }
.card--navy h3 { color: var(--white); }
.card--gold-edge { border-top: 6px solid var(--gold); }
.card__icon { width: 64px; height: 64px; margin-bottom: 0.9rem; }
.card h3 { margin-bottom: 0.35em; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Step cards (How it works) ---------- */
.step {
  position: relative; background: var(--white); border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.5rem; box-shadow: var(--shadow);
  border: 2px solid rgba(17, 37, 62, 0.06);
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  margin-bottom: 0.8rem;
}
.step h3 { margin-bottom: 0.3em; }

/* ---------- Pricing ---------- */
.price-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 2px solid rgba(17, 37, 62, 0.06);
  padding: 2rem 1.6rem 1.8rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
}
.price-card--featured { border: 3px solid var(--gold); box-shadow: var(--shadow-lg); }
.price-card .dogs { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.price-card .price { font-family: var(--font-display); font-weight: 800; font-size: 3.2rem; line-height: 1; color: var(--navy); }
.price-card .per { font-weight: 700; font-size: 0.95rem; color: var(--navy-soft); }
.price-card .btn { margin-top: 1rem; }
.badge {
  display: inline-block; background: var(--navy); color: var(--gold-bright);
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 999px; padding: 0.3em 1em; margin-bottom: 0.4rem;
}

/* Includes list */
.includes { list-style: none; padding: 0; margin: 0; }
.includes li { display: flex; gap: 0.6em; align-items: flex-start; padding-block: 0.45em; }
.includes svg, .includes img { width: 22px; height: 22px; flex: none; margin-top: 0.15em; }

/* ---------- Postcode chips & checker ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0.8rem 0; list-style: none; }
.chip {
  font-family: var(--font-display); font-weight: 700;
  background: var(--gold-tint); color: var(--navy);
  border-radius: 999px; padding: 0.35em 1.1em; font-size: 1rem;
}
.on-navy .chip, .band .chip { background: rgba(248, 241, 225, 0.14); color: var(--cream); }

.postcode-checker { max-width: 560px; }
.postcode-checker form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.postcode-checker input {
  flex: 1; min-width: 200px; font: inherit; font-weight: 700;
  padding: 0.75em 1.1em; border-radius: 999px; border: 3px solid var(--navy);
  background: var(--white); color: var(--navy); text-transform: uppercase;
}
.postcode-checker input::placeholder { color: rgba(17, 37, 62, 0.7); text-transform: none; }
.checker-result { margin-top: 1rem; font-weight: 700; display: none; }
.checker-result.is-visible { display: block; }
.checker-result--yes { color: var(--navy); }
.checker-result--no { color: var(--navy); }

/* ---------- FAQ accordion ---------- */
.faq details {
  background: var(--white); border-radius: var(--radius-sm);
  border: 2px solid rgba(17, 37, 62, 0.08);
  box-shadow: var(--shadow); margin-bottom: 0.9rem;
  padding: 0;
  overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
  padding: 1.05rem 1.3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.6rem; line-height: 1; color: var(--gold);
  font-family: var(--font-display); font-weight: 800; flex: none;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 2px dashed var(--gold-tint); }
.faq .faq__body { padding: 1rem 1.3rem 1.2rem; }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border-top: 8px solid var(--gold);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.3rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 800; font-size: 0.98rem; }
.field .hint { font-size: 0.88rem; color: var(--navy-soft); font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--navy);
  padding: 0.7em 1em; border-radius: var(--radius-sm);
  border: 2px solid rgba(17, 37, 62, 0.25); background: var(--cream-bright);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: var(--focus-ring); outline-offset: 1px; border-color: var(--navy);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-success {
  display: none; background: var(--gold-tint); border: 2px solid var(--gold);
  border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; font-weight: 700;
}
.form-success.is-visible { display: block; }

/* ---------- Social strip ---------- */
.social-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .social-strip { grid-template-columns: repeat(2, 1fr); } }
.social-strip img {
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  border: 2px solid rgba(17, 37, 62, 0.08); width: 100%;
}

/* ---------- Founding 20 banner ---------- */
.founding {
  background: var(--navy); color: var(--cream); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 0.7fr; align-items: center;
  border: 3px solid var(--gold);
}
@media (max-width: 760px) { .founding { grid-template-columns: 1fr; } }
.founding__copy { padding: clamp(1.6rem, 3.5vw, 2.6rem); }
.founding__copy h2, .founding__copy h3 { color: var(--white); }
.founding__art { padding: 1.5rem; display: flex; justify-content: center; }
.founding__art svg, .founding__art img { width: min(240px, 60vw); }

/* ---------- Sparkles / decorations ---------- */
.sparkle { position: absolute; width: 22px; height: 22px; opacity: 0.9; pointer-events: none; }

/* ---------- Reveal on scroll (only ever hidden when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--cream); padding-block: 3.2rem 2rem; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold-bright); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: var(--gold-bright); font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding-block: 0.25em; }
.footer-tagline { font-family: var(--font-display); font-weight: 700; color: var(--gold-bright); font-size: 1.15rem; }
.footer-legal {
  margin-top: 2.5rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(248, 241, 225, 0.18);
  font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem;
  justify-content: space-between; color: rgba(248, 241, 225, 0.75);
}

/* ---------- Tables (pricing extras) ---------- */
.nice-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.nice-table th, .nice-table td { padding: 0.9em 1.1em; text-align: left; border-bottom: 2px solid var(--cream); }
.nice-table th { background: var(--navy); color: var(--cream); font-family: var(--font-display); letter-spacing: 0.04em; }
.nice-table tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; border-radius: var(--radius-sm); }

/* ---------- Helpers ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.maxw { max-width: 720px; }
.center .maxw { margin-inline: auto; }
.tbc { border-bottom: 2px dotted var(--gold); cursor: help; }

/* ---------- Cookie consent banner (Meta Pixel is consent-gated) ---------- */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--navy); color: var(--cream);
  border-top: 3px solid var(--gold);
  box-shadow: 0 -8px 30px rgba(17, 37, 62, 0.35);
}
.consent-banner__inner {
  max-width: var(--wrap); margin-inline: auto;
  padding: 1rem clamp(1.1rem, 4vw, 2rem);
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem;
  align-items: center; justify-content: space-between;
}
.consent-banner p { margin: 0; max-width: 62ch; font-size: 0.98rem; }
.consent-banner a { color: var(--gold-bright); }
.consent-banner a:hover { color: var(--white); }
.consent-banner .btn { font-size: 0.95rem; padding: 0.6em 1.4em; min-height: 44px; }
.consent-banner .btn--outline { border-color: var(--cream); color: var(--cream); }
.consent-banner .btn--outline:hover { background: var(--cream); color: var(--navy); }
.consent-banner :focus-visible { outline-color: var(--cream); }

/* ---------- Footer social links ---------- */
.footer-socials { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer-socials a {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 700; text-decoration-thickness: 2px;
}
.footer-socials svg { width: 19px; height: 19px; flex: none; }
