/* Hot Water System Perth — shared styles */
:root {
  /* Sureflow brand — sampled from sureflow.com.au */
  --navy: #10202E;          /* their dark */
  --navy-dark: #0a1620;
  --blue: #006E68;          /* their button teal — 6.2:1 on white */
  --blue-dark: #00544F;
  --accent: #00857D;        /* CTA — brighter so it lifts off the dark header, 4.5:1 on white */
  --accent-dark: #006E68;   /* hover settles onto their exact brand teal */
  --mint-50: #eaf6f1;       /* their palest tint */
  --mint-100: #d3ede2;
  --mint-300: #81c2b2;
  --grey-50: #f6f8fa;
  --grey-100: #eceff3;
  --grey-300: #c9d2dc;
  --grey-600: #51606f;
  --grey-800: #26313d;
  --radius: 10px;
  --maxw: 1100px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--grey-800);
  line-height: 1.65;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cdd9e5;
  font-size: 0.85rem;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }

/* ---------- Header ---------- */
header.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.logo {
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  line-height: 1.2;
}
.logo span { color: var(--accent); }
nav.main-nav ul { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }
nav.main-nav a {
  color: #dbe6f1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
nav.main-nav a:hover { color: #fff; }
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-call:hover { background: var(--accent-dark); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(16,32,46,0.88) 0%, rgba(18,85,78,0.80) 100%),
    url('/images/plumber-customer-quote-1600.jpg') center/cover no-repeat;
  color: #fff;
  padding: 64px 0 72px;
}
.hero .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 18px; }
.hero p.lead { font-size: 1.15rem; color: #c7ded8; margin-bottom: 24px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hero-badges span {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); }
.btn.secondary { background: transparent; border: 2px solid #fff; margin-left: 10px; }
.btn.secondary:hover { background: rgba(255,255,255,0.1); }

/* ---------- Quote form ---------- */
.quote-card {
  background: #fff;
  color: var(--grey-800);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.3);
}
.quote-card h2 { font-size: 1.3rem; margin-bottom: 4px; color: var(--navy); }
.quote-card p.sub { color: var(--grey-600); font-size: 0.9rem; margin-bottom: 16px; }
.quote-card label { display: block; font-size: 0.85rem; font-weight: 600; margin: 10px 0 4px; }
.quote-card input, .quote-card select, .quote-card textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--grey-300);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}
.quote-card input:focus, .quote-card select:focus, .quote-card textarea:focus {
  outline: 2px solid var(--blue);
  border-color: var(--blue);
}
.quote-card .btn { width: 100%; margin-top: 16px; }

/* ---------- Sections ---------- */
section { padding: 60px 0; }
section.alt { background: var(--grey-50); }
.section-title { font-size: 1.9rem; color: var(--navy); margin-bottom: 12px; line-height: 1.25; }
.section-intro { color: var(--grey-600); max-width: 720px; margin-bottom: 32px; }
h2 { color: var(--navy); }
h3 { color: var(--navy); margin: 24px 0 8px; }
p + p { margin-top: 12px; }
ul.tick { list-style: none; margin: 12px 0; }
ul.tick li { padding-left: 28px; position: relative; margin-bottom: 8px; }
ul.tick li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(13,43,69,0.06);
}
.card h3 { margin-top: 0; font-size: 1.15rem; }
.card p { color: var(--grey-600); font-size: 0.95rem; }
.card a.card-link { font-weight: 700; text-decoration: none; display: inline-block; margin-top: 10px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 20px 0; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--grey-100); }
thead th { background: var(--navy); color: #fff; font-weight: 700; }
tbody tr:nth-child(even) { background: var(--grey-50); }
.price-note { font-size: 0.85rem; color: var(--grey-600); margin-top: 8px; }

/* ---------- FAQ ---------- */
details.faq {
  background: #fff;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 10px;
}
details.faq summary { font-weight: 700; color: var(--navy); cursor: pointer; }
details.faq p { margin-top: 10px; color: var(--grey-600); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #12554e 100%);
  color: #fff;
  text-align: center;
  padding: 56px 0;
}
.cta-band h2 { color: #fff; font-size: 2rem; margin-bottom: 10px; }
.cta-band p { color: #c7ded8; margin-bottom: 24px; }
.cta-phone { font-size: 2rem; font-weight: 800; color: #fff; text-decoration: none; display: block; margin-bottom: 18px; }

/* ---------- Areas ---------- */
.areas-list { display: flex; flex-wrap: wrap; gap: 10px; }
.areas-list a {
  background: #fff;
  border: 1px solid var(--grey-300);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
}
.areas-list a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.85rem; color: var(--grey-600); padding: 14px 0 0; }
.breadcrumbs a { color: var(--grey-600); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, #12554e 100%); color: #fff; padding: 48px 0; }
.page-hero h1 { font-size: 2.1rem; line-height: 1.2; margin-bottom: 10px; }
.page-hero p { color: #c7ded8; max-width: 720px; }

/* ---------- Prose ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin: 34px 0 10px; }
.prose h3 { font-size: 1.15rem; }
.prose ul:not(.tick) { margin: 10px 0 16px 22px; }
.prose li { margin-bottom: 6px; }

.callout {
  background: #fff7ed;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.callout strong { color: var(--navy); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy-dark); color: #a9bacb; padding: 48px 0 24px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 32px; }
footer.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
footer.site-footer ul { list-style: none; }
footer.site-footer li { margin-bottom: 8px; }
footer.site-footer a { color: #a9bacb; text-decoration: none; }
footer.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; }

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 14px;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  z-index: 200;
}


/* ---------- Mobile menu (CSS only, no JS) ---------- */
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.nav-burger { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 1.9rem; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  nav.main-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-call-bar { display: block; }
  body { padding-bottom: 52px; }
  .btn.secondary { margin-left: 0; margin-top: 10px; }

  /* burger replaces the hidden desktop nav */
  .site-header .container { position: relative; flex-wrap: nowrap; }
  .header-call { display: none; }            /* the fixed bottom call bar already shows the number */
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 42px; padding: 11px; flex: 0 0 auto; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.28); border-radius: 8px;
    background: rgba(255,255,255,0.07);
  }
  .nav-burger span { display: block; height: 2px; background: #fff; border-radius: 2px; }
  .nav-toggle:focus-visible + .main-nav + .header-call + .nav-burger,
  .nav-toggle:focus-visible ~ .nav-burger { outline: 2px solid var(--accent); outline-offset: 2px; }
  .nav-toggle:checked ~ nav.main-nav {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy); padding: 4px 0;
    border-top: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 12px 24px rgba(0,0,0,0.35);
  }
  .nav-toggle:checked ~ nav.main-nav ul { flex-direction: column; gap: 0; padding: 0 4px; }
  .nav-toggle:checked ~ nav.main-nav li { border-bottom: 1px solid rgba(255,255,255,0.09); }
  .nav-toggle:checked ~ nav.main-nav li:last-child { border-bottom: 0; }
  .nav-toggle:checked ~ nav.main-nav a { display: block; padding: 15px 4px; font-size: 1rem; }
}


/* ---------- Page photos ---------- */
.page-photo { margin: 26px 0 30px; }
.page-photo img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); background: var(--grey-100);
}
.page-photo figcaption {
  margin-top: 9px; font-size: 0.85rem; color: var(--grey-600);
}
@media (max-width: 860px) { .page-photo { margin: 20px 0 24px; } }

/* ---------- Honeypot ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


/* ---------- Quote form inside the closing CTA band ---------- */
.quote-card--band {
  max-width: 560px;
  margin: 26px auto 0;
  text-align: left;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero-actions .btn { margin: 0; }
@media (max-width: 860px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .quote-card--band { padding: 22px; }
}


/* ---------- Turnstile ---------- */
.cf-turnstile { margin: 16px 0 4px; min-height: 65px; }
