/* =========================================================
   Westside Plumber — design system
   Navy + brass, trade-industrial feel. Archivo for headings,
   Public Sans for body copy.
   ========================================================= */

:root{
  --navy-950:#0B1C2C;
  --navy-900:#0E2438;
  --navy-800:#153350;
  --navy-700:#1E4165;
  --navy-600:#2C5883;
  --brass:#C98A3E;
  --brass-dark:#A96F2E;
  --brass-light:#E7B876;
  --paper:#F3F6F8;
  --card:#FFFFFF;
  --ink:#16232E;
  --ink-soft:#4B5A66;
  --line:#DCE3E8;
  --green:#3F7D5C;
  --radius:10px;
  --shadow: 0 6px 20px rgba(14,36,56,0.08);
  --maxw:1160px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:"Public Sans", -apple-system, Segoe UI, Roboto, sans-serif;
  color:var(--ink);
  background:var(--paper);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:"Archivo", "Public Sans", sans-serif;
  color:var(--navy-900);
  line-height:1.15;
  margin:0 0 0.5em;
  letter-spacing:-0.01em;
}
h1{font-size:clamp(2rem, 4.4vw, 3.1rem); font-weight:800;}
h2{font-size:clamp(1.5rem, 3vw, 2.1rem); font-weight:800;}
h3{font-size:1.25rem; font-weight:700;}
p{margin:0 0 1em; max-width:66ch;}
a{color:var(--navy-700); text-decoration-thickness:1.5px;}
a.plain{color:inherit; text-decoration:none;}
/* Any link placed on a dark background needs a light colour, or it inherits the
   default dark navy above and becomes unreadable — cover the dark containers
   here rather than relying on each call site to remember an inline override.
   (Footer links already have their own color via .footer-grid a, so excluded.) */
.hero a:not(.btn):not(.plain), .section--navy a:not(.btn):not(.plain),
.local-strip a:not(.btn):not(.plain), .cta-band a:not(.btn):not(.plain) {
  color: var(--brass-light);
}
ul{padding-left:1.2em;}
img,svg{max-width:100%; display:block;}

.container{max-width:var(--maxw); margin:0 auto; padding:0 20px;}
.section{padding:64px 0;}
.section--tight{padding:40px 0;}
.section--navy{background:var(--navy-900); color:#DCE7F0;}
.section--navy h2, .section--navy h3{color:#fff;}
.section--navy p{color:#B9C9D8;}
.section--band{background:var(--card); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}

/* ---------- Top utility bar ---------- */
.topbar{
  background:var(--navy-950); color:#C9D6E2; font-size:0.85rem;
}
.topbar .container{
  display:flex; justify-content:space-between; align-items:center; height:38px; gap:12px; flex-wrap:wrap;
}
.topbar a{color:#EFD8B0; text-decoration:none; font-weight:600;}

/* ---------- Header ---------- */
header.site{
  background:#fff; border-bottom:1px solid var(--line);
  position:sticky; top:0; z-index:40;
}
.nav-row{display:flex; align-items:center; justify-content:space-between; padding:12px 0; gap:16px;}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none;}
.brand img{width:46px; height:46px;}
.brand .wordmark{font-family:"Archivo",sans-serif; font-weight:800; color:var(--navy-900); font-size:1.15rem; line-height:1.1;}
.brand .wordmark span{display:block; font-family:"Public Sans",sans-serif; font-weight:600; font-size:0.72rem; color:var(--brass-dark); letter-spacing:0.02em;}

nav.main{display:flex; align-items:center; gap:22px;}
nav.main a{color:var(--navy-800); text-decoration:none; font-weight:600; font-size:0.96rem;}
nav.main a:hover{color:var(--brass-dark);}
.has-drop{position:relative;}
.dropdown{
  display:none; position:absolute; top:100%; left:0; background:#fff; border:1px solid var(--line);
  border-radius:8px; box-shadow:var(--shadow); padding:10px; min-width:220px; margin-top:10px;
}
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown{display:block;}
.dropdown a{display:block; padding:8px 10px; border-radius:6px; font-weight:500;}
.dropdown a:hover{background:var(--paper);}

.header-cta{display:flex; align-items:center; gap:14px;}
.phone-link{display:flex; align-items:center; gap:8px; font-family:"Archivo",sans-serif; font-weight:800; color:var(--navy-900); text-decoration:none; font-size:1.05rem;}
.phone-link svg{width:20px; height:20px; fill:var(--brass-dark);}

/* Icon sizing for every other context an <svg> can land in. The icon() helper
   gives every svg an 18x18 fallback; these rules override it where a different
   size or alignment is needed, and are deliberately broad (rather than one-off)
   so no button, list or card is ever left with an unstyled, oversized icon. */
.btn svg{width:18px; height:18px; fill:currentColor; flex-shrink:0; vertical-align:-3px;}
.btn--ghost svg, .btn--navy svg{fill:currentColor;}
li svg, p svg{width:16px; height:16px; fill:var(--brass-dark); flex-shrink:0; vertical-align:-2px; margin-right:2px;}
.section--navy li svg, .section--navy p svg, .cta-band li svg, .cta-band p svg{fill:var(--brass-light);}
.footer-grid li svg{width:14px; height:14px; fill:var(--brass-light); vertical-align:-1px;}
.local-strip ul li svg{width:16px; height:16px;}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  background:var(--brass); color:#fff; font-weight:700; font-family:"Archivo",sans-serif;
  padding:13px 22px; border-radius:8px; text-decoration:none; border:none; cursor:pointer;
  font-size:1rem; letter-spacing:0.01em; transition:background .15s ease, transform .15s ease;
}
.btn:hover{background:var(--brass-dark);}
.btn--navy{background:var(--navy-800);}
.btn--navy:hover{background:var(--navy-700);}
.btn--ghost{background:transparent; border:2px solid #fff; color:#fff;}
.btn--ghost:hover{background:rgba(255,255,255,.12);}
.btn--block{width:100%;}

.menu-toggle{display:none; background:none; border:none; cursor:pointer;}

/* ---------- Hero ---------- */
.hero{
  background:
    linear-gradient(155deg, rgba(14,36,56,0.92) 0%, rgba(21,51,80,0.90) 55%, rgba(30,65,101,0.88) 100%),
    url('/assets/hero-cover.jpg');
  background-size:cover; background-position:center 30%;
  color:#fff; padding:56px 0 64px; position:relative; overflow:hidden;
}
.hero h1, .hero h2{color:#fff;}
.hero::after{
  content:""; position:absolute; right:-120px; top:-120px; width:420px; height:420px;
  background:radial-gradient(circle, rgba(201,138,62,0.22) 0%, transparent 70%);
}
.hero-grid{display:grid; grid-template-columns:1.15fr 0.85fr; gap:40px; align-items:center; position:relative;}
.eyebrow-badge{
  display:inline-flex; align-items:center; gap:8px; background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.18); padding:7px 14px; border-radius:999px; font-size:0.85rem;
  color:#EFE3CF; margin-bottom:18px; font-weight:600;
}
.eyebrow-badge .dot{width:8px; height:8px; border-radius:50%; background:#5FD08A;}
.hero p.lead{color:#C7D6E3; font-size:1.12rem; max-width:52ch;}
.hero-actions{display:flex; gap:14px; flex-wrap:wrap; margin-top:26px;}
.hero-points{display:flex; gap:22px; flex-wrap:wrap; margin-top:30px; padding-top:24px; border-top:1px solid rgba(255,255,255,0.15);}
.hero-point{display:flex; align-items:center; gap:9px; color:#DCE7F0; font-weight:600; font-size:0.94rem;}
.hero-point svg{width:20px; height:20px; fill:var(--brass-light); flex-shrink:0;}
.hero-visual{
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.15); border-radius:16px;
  padding:28px; backdrop-filter:blur(2px);
}
.hero-visual h3{color:#fff; margin-bottom:14px;}
.hero-visual ul{list-style:none; padding:0; margin:0; display:grid; gap:12px;}
.hero-visual li{display:flex; gap:10px; align-items:flex-start; color:#DCE7F0; font-size:0.95rem;}
.hero-visual li svg{width:18px; height:18px; fill:var(--brass-light); margin-top:3px; flex-shrink:0;}

/* ---------- Sticky mobile call bar ---------- */
.mobile-call{
  display:none; position:fixed; bottom:0; left:0; right:0; z-index:50;
  background:var(--navy-950); padding:10px 14px; box-shadow:0 -6px 16px rgba(0,0,0,0.2);
}
.mobile-call .btn{width:100%;}

/* ---------- Cards / grids ---------- */
.grid{display:grid; gap:22px;}
.grid--3{grid-template-columns:repeat(3, 1fr);}
.grid--4{grid-template-columns:repeat(4, 1fr);}
.grid--2{grid-template-columns:repeat(2, 1fr);}

.card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:26px; box-shadow:var(--shadow);
}
.service-card svg{width:38px; height:38px; fill:var(--brass-dark); margin-bottom:14px;}

/* Full-bleed photo service cards, matching the reference mockup: whole card is
   the photo (or, until a real one exists, a clearly-marked placeholder pattern),
   with a bottom-up gradient scrim so the title/copy/CTA stay legible. */
.service-photo-card{
  position:relative; border-radius:var(--radius); overflow:hidden;
  aspect-ratio:4/3.1; min-height:230px; box-shadow:var(--shadow); background:var(--navy-900);
}
.service-photo-card img.spc-bg{position:absolute; top:0; left:0; right:0; bottom:0; width:100%; height:100%; object-fit:cover; margin:0;}
.spc-placeholder{
  position:absolute; top:0; left:0; right:0; bottom:0; display:block;
  background:repeating-linear-gradient(135deg, var(--navy-800), var(--navy-800) 14px, var(--navy-700) 14px, var(--navy-700) 28px);
}
.spc-badge{
  position:absolute; top:14px; left:14px; z-index:3;
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(231,184,118,0.16); border:1px solid rgba(231,184,118,0.45);
  color:#E7B876; font-size:0.7rem; font-weight:700; padding:5px 11px; border-radius:999px;
}
.spc-badge svg{width:13px; height:13px; fill:#E7B876;}
.spc-overlay{position:absolute; top:0; left:0; right:0; bottom:0; background:linear-gradient(to top, rgba(6,16,26,0.94) 0%, rgba(6,16,26,0.62) 42%, rgba(6,16,26,0.02) 75%); pointer-events:none;}
.spc-content{position:absolute; left:0; right:0; bottom:0; padding:22px; z-index:2;}
.spc-content h3{color:#fff; margin-bottom:8px; font-size:1.15rem;}
.spc-content p{color:#D7E1E8; font-size:0.9rem; margin-bottom:16px; max-width:34ch;}
.spc-more{display:inline-flex; align-items:center; gap:10px; color:#fff; text-decoration:none; font-weight:700; font-size:0.9rem;}
.spc-arrow{
  width:26px; height:26px; border-radius:50%; background:var(--brass); flex-shrink:0;
  display:inline-flex; align-items:center; justify-content:center; color:#fff; font-size:0.95rem;
}
.service-card h3{margin-bottom:8px;}
.service-card .more{font-weight:700; font-size:0.92rem; text-decoration:none; color:var(--brass-dark); display:inline-block; margin-top:4px;}
.service-card.plain:hover{border-color:var(--brass);}
.service-card.plain{transition:border-color .15s ease;}

.section-head{max-width:680px; margin-bottom:36px;}
.section-head p{color:var(--ink-soft);}
.kicker{color:var(--brass-dark); font-weight:700; font-size:0.92rem; margin-bottom:6px; display:block;}

/* ---------- Area chips / list ---------- */
.area-grid{display:grid; grid-template-columns:repeat(5,1fr); gap:14px;}
.area-chip{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:16px 14px; text-decoration:none; color:var(--navy-900); font-weight:700;
  display:flex; align-items:center; justify-content:space-between; gap:8px; transition:border-color .15s ease, transform .15s ease;
}
.area-chip:hover{border-color:var(--brass); transform:translateY(-2px);}
.area-chip svg{width:16px; height:16px; fill:var(--brass-dark); flex-shrink:0;}

/* ---------- Steps (real sequence) ---------- */
.steps{display:grid; grid-template-columns:repeat(3,1fr); gap:26px; counter-reset:step;}
.step{position:relative; padding-left:52px;}
.step::before{
  counter-increment:step; content:counter(step);
  position:absolute; left:0; top:0; width:38px; height:38px; border-radius:50%;
  background:var(--navy-900); color:#fff; font-family:"Archivo",sans-serif; font-weight:800;
  display:flex; align-items:center; justify-content:center; font-size:1.05rem;
}

/* ---------- Testimonials ---------- */
.testi{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow);}
.stars{color:var(--brass); letter-spacing:2px; margin-bottom:10px; font-size:1.05rem;}
.testi p{font-style:italic; color:var(--ink);}
.testi .who{font-weight:700; color:var(--navy-800); font-style:normal; margin-top:10px;}

/* ---------- FAQ ---------- */
details.faq{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:6px 20px; margin-bottom:12px;}
details.faq summary{
  cursor:pointer; font-weight:700; font-family:"Archivo",sans-serif; padding:16px 0; color:var(--navy-900);
  list-style:none; display:flex; justify-content:space-between; align-items:center; gap:12px;
}
details.faq summary::-webkit-details-marker{display:none;}
details.faq summary::after{content:"+"; font-size:1.4rem; color:var(--brass-dark); font-weight:400;}
details.faq[open] summary::after{content:"–";}
details.faq p{padding-bottom:16px; margin:0; color:var(--ink-soft);}

/* ---------- Suburb local strip ---------- */
.local-strip{background:var(--navy-900); border-radius:var(--radius); padding:26px; color:#DCE7F0;}
.local-strip h3{color:#fff;}
.local-strip ul{columns:2; gap:24px; list-style:none; padding:0; margin:12px 0 0;}
.local-strip li{margin-bottom:8px; font-size:0.95rem;}

/* ---------- CTA band ---------- */
.cta-band{
  background:linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius:18px; padding:44px; color:#fff; display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap;
}
.cta-band h2{color:#fff; margin-bottom:6px;}
.cta-band p{color:#C7D6E3; margin-bottom:0;}
.cta-actions{display:flex; gap:14px; flex-wrap:wrap;}

/* ---------- Breadcrumb ---------- */
.breadcrumb{font-size:0.88rem; color:var(--ink-soft); padding:16px 0 0;}
.breadcrumb a{color:var(--ink-soft); text-decoration:none;}
.breadcrumb a:hover{color:var(--navy-800);}

/* ---------- Footer ---------- */
footer.site{background:var(--navy-950); color:#B9C9D8; padding:56px 0 26px; margin-top:20px;}
.footer-grid{display:grid; grid-template-columns:1.6fr 1fr 1.2fr; gap:32px;}
.footer-grid h4{color:#fff; font-family:"Archivo",sans-serif; font-size:1rem; margin-bottom:14px;}
.footer-grid ul{list-style:none; padding:0; margin:0; display:grid; gap:9px;}
.footer-grid ul.footer-areas{display:block; columns:2; gap:20px;}
.footer-grid ul.footer-areas li{margin-bottom:9px; break-inside:avoid;}
.footer-grid a{color:#B9C9D8; text-decoration:none; font-size:0.92rem;}
.footer-grid a:hover{color:var(--brass-light);}
.foot-brand{display:flex; align-items:center; gap:10px; margin-bottom:12px;}
.foot-brand img{width:40px; height:40px;}
.foot-brand span{font-family:"Archivo",sans-serif; font-weight:800; color:#fff;}
.foot-bottom{
  border-top:1px solid rgba(255,255,255,0.12); margin-top:40px; padding-top:20px;
  display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; font-size:0.85rem; color:#8FA3B4;
}

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .hero-grid{grid-template-columns:1fr;}
  .grid--4{grid-template-columns:repeat(2,1fr);}
  .grid--3{grid-template-columns:repeat(2,1fr);}
  .area-grid{grid-template-columns:repeat(3,1fr);}
  .steps{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:720px){
  nav.main, .header-cta .btn{display:none;}
  .menu-toggle{display:block;}
  .mobile-call{display:block;}
  body{padding-bottom:64px;}
  .grid--4, .grid--3, .grid--2{grid-template-columns:1fr;}
  .area-grid{grid-template-columns:repeat(2,1fr);}
  .local-strip ul{columns:1;}
  .cta-band{padding:30px;}
  .footer-grid{grid-template-columns:1fr;}
  .topbar .container{justify-content:center; text-align:center;}
}
