/* ==========================================================================
   We Love Sewers — site.css
   Trade heritage, modern execution.
   Cream paper, petrol navy ink, safety-orange accent, diagonal pipe motifs.
   ========================================================================== */

:root {
  --cream: #F6F1E7;
  --cream-deep: #EFE7D7;
  --navy: #12333B;
  --navy-deep: #0B2228;
  --orange: #F2600C;
  --orange-hot: #FF6B1A;
  --copper: #C97B4A;
  --ink: #1A2E33;
  --ink-soft: #4A5E63;
  --line: rgba(18, 51, 59, 0.16);

  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Public Sans", "Helvetica Neue", sans-serif;

  --step: clamp(1rem, 0.4vw + 0.9rem, 1.125rem);
  --wrap: 72rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--step);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }

::selection { background: var(--orange); color: #fff; }

/* --- Typography ------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  color: var(--navy);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.kicker {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.kicker::before {
  content: "";
  width: 2.2rem; height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-soft); max-width: 46ch; }

/* --- Layout helpers ---------------------------------------------------- */

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.grid-2 { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Diagonal pipe-stripe motif */
.stripes {
  background-image: repeating-linear-gradient(
    -45deg,
    var(--navy) 0 14px,
    transparent 14px 28px
  );
  opacity: 0.08;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn-call {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 0 rgba(18, 51, 59, 0.9);
}
.btn-call:hover { background: var(--orange-hot); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 0 rgba(18, 51, 59, 0.9); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--cream); }

.btn-navy {
  background: var(--navy);
  color: var(--cream);
  box-shadow: 0 6px 0 rgba(242, 96, 12, 0.9);
}
.btn-navy:hover { background: var(--navy-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 0 rgba(242, 96, 12, 0.9); }

/* --- Header ------------------------------------------------------------- */

.topbar {
  background: var(--navy);
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.topbar a { color: var(--cream); }
.topbar a:hover { color: var(--orange-hot); }
.topbar .tag { display: none; }
@media (min-width: 640px) { .topbar .tag { display: inline; opacity: 0.85; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 10px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy);
  line-height: 1;
}
.brand-name em { font-style: normal; color: var(--orange); }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--orange); }
.nav .btn { font-size: 0.95rem; padding: 0.6rem 1.2rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    border-bottom: 2px solid var(--navy);
    padding: 1rem var(--pad) 1.4rem;
    gap: 0.9rem;
  }
  .nav.open { display: flex; }
}

/* --- Hero ---------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 6rem); }
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 920px) { .hero-inner { grid-template-columns: 1.05fr 0.95fr; } }

.hero h1 em { font-style: normal; color: var(--orange); position: relative; white-space: nowrap; }

.hero-art { position: relative; }
.hero-art img {
  border-radius: var(--radius);
  border: 3px solid var(--navy);
  box-shadow: 12px 12px 0 var(--orange);
}
.hero-badge {
  position: absolute;
  bottom: -1.2rem;
  left: -1.2rem;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  transform: rotate(-3deg);
  font-size: 0.95rem;
  box-shadow: 4px 4px 0 rgba(242, 96, 12, 0.9);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero-points { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 1.8rem; padding: 0; list-style: none; }
.hero-points li { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); }
.hero-points li::before { content: "✓"; color: var(--orange); font-weight: 800; }

/* --- Trust marquee ------------------------------------------------------- */

.marquee {
  background: var(--navy);
  color: var(--cream);
  overflow: hidden;
  padding: 0.8rem 0;
  border-block: 3px solid var(--orange);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.marquee-track span::after { content: "♥"; color: var(--orange); margin-left: 3rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* --- Cards --------------------------------------------------------------- */

.card {
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 8px 8px 0 var(--orange); }
.card img { aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 2px solid var(--navy); }
.card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card-body p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.card-link { font-weight: 700; text-decoration: none; color: var(--orange); font-family: var(--font-display); }
.card-link::after { content: " →"; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--orange); }

/* --- Steps ---------------------------------------------------------------- */

.steps { counter-reset: step; display: grid; gap: 1.5rem; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step-item {
  counter-increment: step;
  background: var(--cream-deep);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  border: 2px solid transparent;
  position: relative;
}
.step-item:hover { border-color: var(--orange); }
.step-item::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--orange);
  display: block;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.step-item h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.step-item p { font-size: 0.92rem; color: var(--ink-soft); }

/* --- Dark band / CTA ------------------------------------------------------- */

.band {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(-45deg, rgba(246,241,231,0.05) 0 16px, transparent 16px 32px);
  pointer-events: none;
}
.band h2, .band h3 { color: var(--cream); }
.band .lede { color: rgba(246, 241, 231, 0.75); }
.band .wrap { position: relative; }

.phone-huge {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  color: var(--orange-hot);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-block;
  margin-block: 0.8rem;
}
.phone-huge:hover { color: #fff; }

/* --- FAQ -------------------------------------------------------------------- */

.faq-list { display: grid; gap: 0.9rem; max-width: 52rem; }
.faq-list details {
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
}
.faq-list summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.5rem; color: var(--orange); flex-shrink: 0; transition: transform 0.2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin-top: 0.8rem; color: var(--ink-soft); }
.faq-list details[open] { border-color: var(--orange); }

/* --- Content prose (service pages) ------------------------------------------ */

.prose { max-width: 46rem; display: grid; gap: 1rem; }
.prose h2 { margin-top: 1.5rem; }
.prose ul { padding-left: 1.3rem; display: grid; gap: 0.4rem; }
.prose strong { color: var(--navy); }

.symptom-list { list-style: none !important; padding: 0 !important; display: grid; gap: 0.7rem; }
.symptom-list li {
  background: #fff;
  border-left: 4px solid var(--orange);
  border-radius: 0 10px 10px 0;
  padding: 0.8rem 1.1rem;
  font-weight: 600;
}

/* --- Breadcrumbs -------------------------------------------------------------- */

.crumbs { font-size: 0.85rem; font-weight: 600; margin-bottom: 1.2rem; color: var(--ink-soft); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.5; }
.crumbs a { color: var(--ink-soft); }

/* --- Page hero (interior) ------------------------------------------------------ */

.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-hero .lede { margin-top: 1rem; }
.page-hero .hero-ctas { margin-top: 1.6rem; }

/* --- Review strip ---------------------------------------------------------------- */

.reviews { display: grid; gap: 1.5rem; }
@media (min-width: 820px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review {
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}
.review::before { content: "★★★★★"; color: var(--orange); letter-spacing: 0.15em; font-size: 0.9rem; display: block; margin-bottom: 0.7rem; }
.review blockquote { font-size: 0.98rem; color: var(--ink-soft); }
.review cite { display: block; margin-top: 0.9rem; font-style: normal; font-weight: 700; color: var(--navy); font-size: 0.9rem; }

/* --- Areas / suburbs -------------------------------------------------------------- */

.chip-list { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; }
.chip-list li {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
}

/* --- Contact form -------------------------------------------------------------------- */

.lead-form { display: grid; gap: 1rem; background: #fff; border: 2px solid var(--navy); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: 10px 10px 0 var(--orange); }
.lead-form label { font-weight: 700; font-size: 0.9rem; display: grid; gap: 0.35rem; color: var(--navy); }
.lead-form input, .lead-form select, .lead-form textarea {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  width: 100%;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--orange); }
.lead-form .btn { justify-content: center; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); }

/* --- Footer ------------------------------------------------------------------------------ */

.site-footer { background: var(--navy-deep); color: rgba(246, 241, 231, 0.8); padding-block: 3.5rem 6.5rem; font-size: 0.92rem; }
.site-footer h4 { color: var(--cream); font-size: 1rem; margin-bottom: 0.9rem; }
.site-footer a { color: rgba(246, 241, 231, 0.8); text-decoration: none; }
.site-footer a:hover { color: var(--orange-hot); }
.footer-grid { display: grid; gap: 2.2rem; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr 1fr; } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 1.4fr 0.9fr 1.3fr 0.9fr 0.9fr; } }

/* --- Guide/article pages ---------------------------------------------------- */

.article { max-width: 46rem; }
.article h2 { margin-top: clamp(2rem, 5vw, 3rem); margin-bottom: 0.8rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.article p, .article ul, .article ol { margin-bottom: 1rem; }
.article ul, .article ol { padding-left: 1.3rem; }
.article li { margin-bottom: 0.35rem; }
.article .answer {
  background: #fff;
  border-left: 4px solid var(--orange);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.3rem;
  font-weight: 600;
  color: var(--navy);
}
.article img { border-radius: var(--radius); border: 2px solid var(--navy); margin-block: 1.5rem; }
.callout {
  background: var(--cream-deep);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin-block: 1.5rem;
}
.callout strong { color: var(--navy); }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 0.45rem; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(246, 241, 231, 0.15); font-size: 0.8rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--cream); }
.footer-brand em { font-style: normal; color: var(--orange); }

/* --- Sticky mobile call bar ------------------------------------------------------------------ */

.callbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--navy);
  padding: 0.55rem 0.6rem calc(0.55rem + env(safe-area-inset-bottom));
}
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  text-decoration: none; border-radius: 10px; padding: 0.75rem 0.5rem;
}
.callbar .cb-call { background: var(--orange); color: #fff; }
.callbar .cb-quote { background: var(--cream); color: var(--navy); }
@media (max-width: 760px) { .callbar { display: grid; } body { padding-bottom: 4.2rem; } }

/* --- Reveal animation --------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  /* Only hide reveal targets once JS has confirmed it's running (html.js) —
     content stays visible for crawlers and no-JS visitors. */
  html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
  html.js .reveal.in { opacity: 1; transform: none; }
}

/* --- Utility ---------------------------------------------------------------------------------------- */

.center { text-align: center; }
.center .lede { margin-inline: auto; }
.mt-2 { margin-top: 2rem; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.alt-bg { background: var(--cream-deep); }
