/* EE Hot Water — trustworthy local services design system */
:root {
  --primary-900: #07394D;
  --primary-700: #0E5C7E;
  --primary-500: #1B8FB5;
  --primary-300: #87CEE4;
  --primary-50:  #EAF6FB;
  --accent-600:  #E25B27;
  --accent-500:  #FF6B35;
  --accent-50:   #FFF1EA;
  --warm-bg:     #FAF7F2;
  --bg:          #FAFBFC;
  --surface:     #FFFFFF;
  --ink:         #11202C;
  --ink-soft:    #2E3F4D;
  --muted:       #5F6B7A;
  --border:      #E3E8EE;
  --border-strong:#C9D2DC;
  --shadow-sm:   0 1px 2px rgba(7,57,77,.06), 0 1px 1px rgba(7,57,77,.04);
  --shadow-md:   0 4px 14px rgba(7,57,77,.08), 0 1px 3px rgba(7,57,77,.05);
  --shadow-lg:   0 12px 28px rgba(7,57,77,.10), 0 2px 6px rgba(7,57,77,.05);
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   18px;
  --maxw:        1180px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-700); text-decoration: none; }
a:hover { color: var(--primary-900); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); margin-top: 2em; }
h3 { font-size: 1.25rem; margin-top: 1.6em; }
h4 { font-size: 1rem; font-family: 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
p, ul, ol { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 4px; z-index: 100; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.2rem; letter-spacing: -.01em; }
.site-nav { display: flex; gap: 22px; margin-left: 18px; flex: 1; }
.site-nav a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-500); color: #fff !important;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  box-shadow: 0 4px 12px rgba(255,107,53,.28);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.cta:hover { background: var(--accent-600); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,107,53,.36); text-decoration: none; }
.cta-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--primary-700) !important; border: 1px solid var(--border-strong);
  padding: 10px 18px; border-radius: 999px; font-weight: 600;
}
.cta-ghost:hover { border-color: var(--primary-700); background: var(--primary-50); text-decoration: none; }

@media (max-width: 760px) {
  .site-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -20%, rgba(63,179,214,.25), transparent 60%),
    radial-gradient(900px 400px at 0% 0%, rgba(14,92,126,.18), transparent 60%),
    linear-gradient(180deg, #0B3D54 0%, #0E5C7E 70%, #1278A2 100%);
  color: #EAF6FB;
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: auto 0 -1px 0; height: 60px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero p.lead { font-size: 1.18rem; color: rgba(255,255,255,.86); max-width: 56ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-actions .cta-ghost { color: #fff !important; border-color: rgba(255,255,255,.4); }
.hero-actions .cta-ghost:hover { background: rgba(255,255,255,.12); }
.hero-trust { display: flex; gap: 32px; margin-top: 40px; }
.hero-trust .pill {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-size: .9rem;
}
.hero-trust svg { width: 18px; height: 18px; opacity: .85; }

.search-card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-lg); color: var(--ink);
}
.search-card h3 { margin-top: 0; font-family: 'Inter', sans-serif; font-size: 1.05rem; }
.search-card label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.search-card select, .search-card input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius);
  font: inherit; background: #fff;
}
.search-card .row { margin-bottom: 14px; }
.search-card .cta { width: 100%; justify-content: center; margin-top: 6px; }

@media (max-width: 920px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-trust { flex-wrap: wrap; gap: 18px; }
}

/* ---------- Section blocks ---------- */
section.block { padding: 64px 0; }
section.block.tight { padding: 40px 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
section.block.warm { background: var(--warm-bg); }
.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-600); margin-bottom: 10px; }

/* ---------- Feature row ---------- */
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-50); color: var(--primary-700);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature h3 { margin: 0 0 8px; font-family: 'Inter', sans-serif; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .feature-row { grid-template-columns: 1fr; } }

/* ---------- Suburb grid (homepage + /suburbs/) ---------- */
.suburb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.suburb-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 4px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.suburb-card:hover { text-decoration: none; border-color: var(--primary-300); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.suburb-card .name { font-weight: 700; color: var(--ink); }
.suburb-card .meta { font-size: .85rem; color: var(--muted); }

/* ---------- Plumber listing card ---------- */
.listings { display: grid; gap: 16px; }
.listing {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: grid; grid-template-columns: 1fr auto; gap: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.listing:hover { border-color: var(--primary-300); box-shadow: var(--shadow-sm); }
.listing .rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--primary-50); color: var(--primary-700);
  font-weight: 700; font-size: .85rem; margin-right: 10px; vertical-align: middle;
}
.listing h3 { display: inline; font-family: 'Inter', sans-serif; font-size: 1.15rem; margin: 0; }
.listing .addr { color: var(--muted); font-size: .92rem; margin: 8px 0 12px; }
.listing .meta-row { display: flex; flex-wrap: wrap; gap: 14px 22px; font-size: .9rem; color: var(--ink-soft); align-items: center; }
.listing .meta-row svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; opacity: .65; }
.listing .stars { color: var(--accent-600); font-weight: 600; }
.listing .stars-count { color: var(--muted); font-weight: 400; }
.listing .actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 170px; }
.listing .actions a { white-space: nowrap; padding: 9px 14px; font-size: .9rem; }
@media (max-width: 700px) {
  .listing { grid-template-columns: 1fr; }
  .listing .actions { flex-direction: row; }
  .listing .actions a { flex: 1; justify-content: center; }
}

/* ---------- Suburb header ---------- */
.suburb-hero {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 100%);
  color: #fff;
  padding: 56px 0 80px;
  position: relative;
}
.suburb-hero .breadcrumbs { font-size: .88rem; color: rgba(255,255,255,.75); margin-bottom: 12px; }
.suburb-hero .breadcrumbs a { color: rgba(255,255,255,.9); }
.suburb-hero h1 { color: #fff; margin-bottom: 12px; }
.suburb-hero p.lead { color: rgba(255,255,255,.86); font-size: 1.1rem; max-width: 56ch; }
.suburb-stats {
  display: flex; gap: 32px; margin-top: 28px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius); padding: 16px 24px; backdrop-filter: blur(8px);
  width: fit-content; max-width: 100%; flex-wrap: wrap;
}
.suburb-stats .stat .n { font-size: 1.4rem; font-weight: 700; color: #fff; font-family: 'Source Serif 4', serif; }
.suburb-stats .stat .l { font-size: .82rem; color: rgba(255,255,255,.78); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Article (prose) ---------- */
.article-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 56px; padding: 64px 0; align-items: start; }
@media (max-width: 920px) { .article-wrap { grid-template-columns: 1fr; gap: 32px; } }
.article-head .breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.article-head .breadcrumbs a { color: var(--muted); }
.article-head h1 { margin-bottom: 16px; }
.article-head .deck { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.article-head .byline { font-size: .9rem; color: var(--muted); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.prose { font-size: 1.05rem; max-width: 70ch; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.2rem; font-family: 'Inter', sans-serif; }
.prose p, .prose ul, .prose ol { color: var(--ink-soft); }
.prose ul li, .prose ol li { margin-bottom: .5em; }
.prose blockquote {
  border-left: 3px solid var(--accent-500); padding: 8px 0 8px 22px;
  margin: 24px 0; font-style: italic; color: var(--ink-soft);
}
.prose .callout {
  background: var(--primary-50); border: 1px solid #D2E7F0; border-radius: var(--radius);
  padding: 18px 22px; margin: 24px 0; font-size: .98rem;
}
.prose .callout strong { color: var(--primary-900); }

.sidebar { position: sticky; top: 88px; align-self: start; }
.sidebar .sidebar-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin-bottom: 20px;
}
.sidebar .sidebar-card h4 { margin-top: 0; }
.sidebar .sidebar-card ul { list-style: none; padding: 0; margin: 0; }
.sidebar .sidebar-card ul li { padding: 8px 0; border-top: 1px solid var(--border); font-size: .94rem; }
.sidebar .sidebar-card ul li:first-child { border-top: 0; }

/* ---------- TOC ---------- */
.toc { border-left: 2px solid var(--border); padding: 4px 0 4px 18px; margin: 28px 0; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { padding: 4px 0; font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); margin: 32px 0; }
.faq details {
  border-bottom: 1px solid var(--border); padding: 16px 0;
}
.faq summary {
  list-style: none; cursor: pointer; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--primary-700); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding-top: 12px; color: var(--ink-soft); }

/* ---------- Big CTA ---------- */
.big-cta {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  color: #fff; padding: 56px 24px; border-radius: var(--radius-lg);
  text-align: center; box-shadow: var(--shadow-md);
}
.big-cta h2 { color: #fff; margin-top: 0; }
.big-cta p { color: rgba(255,255,255,.92); max-width: 50ch; margin: 0 auto 24px; }
.big-cta .cta { background: #fff; color: var(--accent-600) !important; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.big-cta .cta:hover { background: #fff; color: var(--accent-600) !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-900); color: rgba(255,255,255,.85); padding: 56px 0 24px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.brand-footer { color: #fff; margin-bottom: 12px; }
.brand-footer .brand-name { color: #fff; }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: .85rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 4px 0; font-size: .92rem; }
.site-footer ul li a { color: rgba(255,255,255,.75); }
.site-footer ul li a:hover { color: #fff; }
.site-footer .muted { color: rgba(255,255,255,.65); font-size: .92rem; max-width: 40ch; }
.footer-bottom { padding-top: 32px; margin-top: 32px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.55); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* ---------- Small utilities ---------- */
.row-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
@media (max-width: 920px) { .row-2 { grid-template-columns: 1fr; } }
.tag { display: inline-block; background: var(--primary-50); color: var(--primary-700); border-radius: 999px; padding: 4px 10px; font-size: .78rem; font-weight: 600; }
.tag.warm { background: var(--accent-50); color: var(--accent-600); }
.tag.green { background: #E7F5EC; color: #1D7A3B; }
hr.soft { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
