/* ============================================================
   Smith's Heating Services — shared marketing stylesheet.
   Served from 'self' (CSP-safe). Used by the homepage and every
   marketing page (services, areas, finance, contact, gallery).
   Brand tokens match smithsheating.co.uk: navy / navydeep / red.
   ============================================================ */

/* Self-hosted brand fonts (CSP forbids third-party CDNs). */
@font-face { font-family:'Montserrat'; font-weight:600; src:url('/fonts/montserrat-600.ttf') format('truetype'); font-display:swap; }
@font-face { font-family:'Montserrat'; font-weight:700; src:url('/fonts/montserrat-700.ttf') format('truetype'); font-display:swap; }
@font-face { font-family:'Roboto'; font-weight:400; src:url('/fonts/roboto-400.ttf') format('truetype'); font-display:swap; }
@font-face { font-family:'Roboto'; font-weight:500; src:url('/fonts/roboto-500.ttf') format('truetype'); font-display:swap; }
@font-face { font-family:'Roboto'; font-weight:700; src:url('/fonts/roboto-700.ttf') format('truetype'); font-display:swap; }

:root{ --navy:#2354A2; --navydeep:#16345E; --red:#DD1A1A; --ice:#E8F0FB; --slate:#4A5568; --line:#E3E8F0; }
*{ box-sizing:border-box; }
html,body{ margin:0; }
body{ font-family:Roboto,system-ui,-apple-system,sans-serif; color:#1f2a3a; background:#fff; -webkit-font-smoothing:antialiased; line-height:1.55; }
h1,h2,h3,h4{ font-family:Montserrat,Roboto,sans-serif; color:var(--navydeep); margin:0 0 .4em; line-height:1.15; }
a{ color:var(--navy); }
img{ max-width:100%; }
.wrap{ max-width:1160px; margin:0 auto; padding:0 20px; }

/* Buttons */
.btn{ display:inline-block; font-family:Montserrat,sans-serif; font-weight:700; text-decoration:none; border-radius:10px; padding:13px 22px; font-size:15px; cursor:pointer; border:0; line-height:1.2; }
.btn-red{ background:var(--red); color:#fff; }
.btn-navy{ background:var(--navy); color:#fff; }
.btn-ghost{ background:transparent; color:var(--navy); border:2px solid var(--navy); padding:11px 20px; }
.btn-white{ background:#fff; color:var(--navy); }
.btn:disabled{ opacity:.6; cursor:default; }

/* Header / nav */
header.site{ position:sticky; top:0; z-index:30; background:#fff; border-bottom:1px solid var(--line); }
.bar{ display:flex; align-items:center; gap:18px; padding:12px 0; }
.bar img{ height:46px; width:auto; }
nav.main{ margin-left:auto; display:flex; align-items:center; gap:22px; }
nav.main a.navlink{ color:var(--navydeep); text-decoration:none; font-weight:500; font-size:15px; }
nav.main a.navlink:hover{ color:var(--navy); }
.phone{ font-family:Montserrat,sans-serif; font-weight:700; color:var(--navy); text-decoration:none; white-space:nowrap; }
.burger{ display:none; margin-left:auto; background:none; border:0; cursor:pointer; padding:8px; }
.burger span{ display:block; width:24px; height:2px; background:var(--navydeep); margin:5px 0; }
@media(max-width:860px){
  nav.main{ display:none; position:absolute; top:100%; left:0; right:0; background:#fff; border-bottom:1px solid var(--line); flex-direction:column; align-items:stretch; gap:0; padding:8px 20px 16px; box-shadow:0 12px 24px rgba(22,52,94,.08); }
  nav.main.open{ display:flex; }
  nav.main a.navlink{ padding:12px 0; border-bottom:1px solid var(--line); font-size:16px; }
  nav.main .phone{ padding:12px 0; }
  nav.main .btn{ margin-top:10px; text-align:center; }
  .burger{ display:block; }
}

/* Hero (homepage) */
.hero{ background:linear-gradient(180deg,#16345E 0%,#2354A2 100%); color:#fff; padding:64px 0 72px; }
.hero h1{ color:#fff; font-size:clamp(30px,5vw,52px); letter-spacing:.5px; }
.hero .sub{ font-size:clamp(16px,2.4vw,21px); max-width:680px; opacity:.95; }
.hero .since{ display:inline-block; margin-top:18px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.25); border-radius:999px; padding:6px 16px; font-size:14px; font-weight:500; }
.hero .ctas{ margin-top:30px; display:flex; gap:14px; flex-wrap:wrap; }

/* Page hero (inner pages) */
.pagehero{ background:linear-gradient(180deg,#16345E 0%,#2354A2 100%); color:#fff; padding:46px 0 50px; }
.pagehero h1{ color:#fff; font-size:clamp(26px,4vw,40px); }
.pagehero p{ max-width:720px; opacity:.95; font-size:clamp(15px,2vw,18px); margin:.2em 0 0; }
.pagehero .ctas{ margin-top:22px; display:flex; gap:12px; flex-wrap:wrap; }
.breadcrumb{ font-size:13px; opacity:.85; margin-bottom:14px; }
.breadcrumb a{ color:#fff; text-decoration:none; }
.breadcrumb a:hover{ text-decoration:underline; }

/* Accreditation strip */
.accred{ background:var(--ice); padding:22px 0; }
.accred .row{ display:flex; flex-wrap:wrap; gap:10px 26px; align-items:center; justify-content:center; }
.accred .badge{ font-family:Montserrat,sans-serif; font-weight:700; color:var(--navydeep); font-size:14px; letter-spacing:.3px; opacity:.85; }
.accred .dot{ color:var(--red); }

/* Sections */
section{ padding:58px 0; }
.section-tight{ padding:40px 0; }
.eyebrow{ font-family:Montserrat,sans-serif; font-weight:700; color:var(--red); letter-spacing:2px; text-transform:uppercase; font-size:13px; }
h2.section-title{ font-size:clamp(24px,3.5vw,34px); }
.lead{ color:var(--slate); max-width:760px; }
.muted{ color:var(--slate); }
.prose{ max-width:760px; }
.prose p{ color:#33415c; }
.prose h3{ margin-top:1.4em; }
.alt{ background:#F7FAFE; }

/* Card grids */
.grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:32px; }
.grid.two{ grid-template-columns:repeat(2,1fr); }
@media(max-width:900px){ .grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:600px){ .grid, .grid.two{ grid-template-columns:1fr; } }
.card{ border:1px solid var(--line); border-radius:14px; padding:24px; background:#fff; }
.card h3{ font-size:18px; }
.card p{ color:var(--slate); margin:.3em 0 0; font-size:15px; }
.card a.more{ display:inline-block; margin-top:12px; font-weight:700; font-size:14px; text-decoration:none; color:var(--navy); }
.card.linkcard{ transition:box-shadow .15s ease, transform .15s ease; }
.card.linkcard:hover{ box-shadow:0 10px 26px rgba(22,52,94,.10); transform:translateY(-2px); }
.card.feature{ grid-column:1/-1; background:var(--navydeep); color:#fff; display:flex; gap:24px; align-items:center; flex-wrap:wrap; }
.card.feature h3{ color:#fff; font-size:24px; }
.card.feature p{ color:rgba(255,255,255,.9); max-width:560px; }
.card.feature .grow{ flex:1 1 360px; }

/* Three-pillar block */
.pillars{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:28px; }
@media(max-width:760px){ .pillars{ grid-template-columns:1fr; } }
.pillar{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:22px; }
.pillar .ico{ font-size:22px; }
.pillar h3{ font-size:17px; margin-top:8px; }
.pillar p{ color:var(--slate); font-size:14px; margin:.3em 0 0; }

/* Pills / badges */
.badges{ display:flex; gap:10px; flex-wrap:wrap; margin:18px 0 6px; }
.pill{ display:inline-flex; align-items:center; gap:8px; border:1px solid var(--line); background:#fff; color:var(--navydeep); border-radius:999px; padding:7px 14px; font-weight:600; font-size:13px; }
.pill .dot{ color:var(--red); }

/* About / stats */
.about .cols{ display:grid; grid-template-columns:1.3fr 1fr; gap:40px; align-items:start; }
@media(max-width:820px){ .about .cols{ grid-template-columns:1fr; } }
.stat{ font-family:Montserrat,sans-serif; font-weight:700; color:var(--navy); font-size:40px; line-height:1; }
.stat + span{ color:var(--slate); }

/* Reviews / testimonials */
.chips{ display:flex; gap:12px; flex-wrap:wrap; margin-top:18px; }
.chip{ border:1px solid var(--line); border-radius:999px; padding:8px 16px; font-weight:500; color:var(--navydeep); }
.quote{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:22px; }
.quote .stars{ color:#F5A623; letter-spacing:2px; }
.quote p{ color:#33415c; font-style:italic; margin:.5em 0; }
.quote .who{ font-weight:700; color:var(--navydeep); font-size:14px; font-style:normal; }
.reviewgrid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:26px; }
@media(max-width:760px){ .reviewgrid{ grid-template-columns:1fr; } }
.reviewcard{ display:block; text-decoration:none; border:1px solid var(--line); border-radius:14px; padding:24px; background:#fff; transition:box-shadow .15s ease, transform .15s ease; }
.reviewcard:hover{ box-shadow:0 10px 26px rgba(22,52,94,.10); transform:translateY(-2px); }
.reviewcard .plat{ font-family:Montserrat,sans-serif; font-weight:700; color:var(--navydeep); font-size:16px; }
.reviewcard .score{ font-family:Montserrat,sans-serif; font-weight:800; color:var(--navy); font-size:34px; line-height:1; margin:.25em 0 .05em; }
.reviewcard .stars{ color:#F5A623; letter-spacing:3px; font-size:15px; }
.reviewcard .cnt{ color:var(--slate); font-size:13.5px; margin-top:5px; }
.reviewcard .go{ display:inline-block; margin-top:12px; color:var(--red); font-weight:700; font-size:14px; }

/* FAQ accordion (native, no JS) */
.faq{ max-width:820px; margin-top:18px; }
.faq details{ border:1px solid var(--line); border-radius:12px; padding:0 18px; margin-bottom:10px; background:#fff; }
.faq summary{ cursor:pointer; font-family:Montserrat,sans-serif; font-weight:700; color:var(--navydeep); padding:16px 0; list-style:none; display:flex; justify-content:space-between; gap:12px; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:'+'; color:var(--red); font-size:20px; line-height:1; }
.faq details[open] summary::after{ content:'\2212'; }
.faq details > p{ color:var(--slate); margin:0 0 16px; }

/* Price table */
.pricetable{ width:100%; border-collapse:collapse; margin-top:20px; font-size:15px; }
.pricetable th, .pricetable td{ text-align:left; padding:12px 14px; border-bottom:1px solid var(--line); }
.pricetable th{ font-family:Montserrat,sans-serif; color:var(--navydeep); background:var(--ice); }
.pricetable td:last-child, .pricetable th:last-child{ text-align:right; white-space:nowrap; }

/* Contact / enquiry form */
.contact{ background:var(--navydeep); color:#fff; }
.contact h2{ color:#fff; }
.contact .cols{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; margin-top:24px; }
@media(max-width:760px){ .contact .cols{ grid-template-columns:1fr; } }
.contact a:not(.btn){ color:#fff; }  /* detail links white; buttons keep their own colour */
.contact .k{ font-family:Montserrat,sans-serif; font-weight:700; font-size:14px; letter-spacing:1px; text-transform:uppercase; opacity:.7; }
.contact .v{ font-size:18px; margin-top:4px; }
.emergency{ background:var(--red); border-radius:12px; padding:18px 20px; margin-top:10px; }

.formcard{ background:#fff; border:1px solid var(--line); border-radius:16px; padding:26px; box-shadow:0 10px 30px rgba(22,52,94,.10); }
.formrow{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media(max-width:600px){ .formrow{ grid-template-columns:1fr; } }
.field{ margin-bottom:16px; }
.field label{ display:block; font-weight:600; font-size:14px; color:var(--navydeep); margin-bottom:6px; }
.field input, .field select, .field textarea{ width:100%; border:1px solid #cdd6e4; border-radius:10px; padding:12px 14px; font-size:16px; font-family:inherit; color:#1f2a3a; background:#fff; }
.field textarea{ min-height:120px; resize:vertical; }
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--navy); box-shadow:0 0 0 3px rgba(35,84,162,.15); }
.check{ display:flex; gap:10px; align-items:flex-start; font-size:14px; color:var(--slate); }
.check input{ width:auto; margin-top:3px; }
.formnote{ font-size:13px; color:var(--slate); margin-top:10px; }
.formmsg{ display:none; border-radius:10px; padding:14px 16px; margin-bottom:16px; font-size:15px; }
.formmsg.show{ display:block; }
.formmsg.ok{ background:#e7f6ec; color:#1c6b34; border:1px solid #b7e3c4; }
.formmsg.err{ background:#fdecec; color:#a32020; border:1px solid #f3c2c2; }

/* Gallery */
.gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:28px; }
@media(max-width:820px){ .gallery{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:520px){ .gallery{ grid-template-columns:1fr; } }
.gallery figure{ margin:0; border:1px solid var(--line); border-radius:12px; overflow:hidden; background:var(--ice); }
.gallery img{ display:block; width:100%; height:220px; object-fit:cover; }
.gallery .ph{ display:flex; align-items:center; justify-content:center; height:220px; color:var(--navy); font-weight:600; opacity:.5; font-size:13px; text-align:center; padding:0 12px; }
.gallery figcaption{ padding:12px 14px; font-size:13px; color:var(--slate); }

/* Map embed (Guild map) */
.map-embed{ position:relative; border-radius:16px; overflow:hidden; border:1px solid var(--line); box-shadow:0 10px 30px rgba(22,52,94,.12); background:var(--ice); }
.map-embed iframe{ display:block; width:100%; height:520px; border:0; }
.map-cap{ font-size:13px; color:var(--slate); margin-top:12px; }
@media(max-width:600px){ .map-embed iframe{ height:430px; } }

/* CTA band */
.ctaband{ background:var(--ice); border-radius:18px; padding:34px; text-align:center; }
.ctaband h2{ font-size:clamp(22px,3vw,30px); }
.ctaband .ctas{ margin-top:18px; display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* Footer */
footer.site{ background:#0E1E36; color:rgba(255,255,255,.7); font-size:14px; padding:34px 0; }
footer.site h4{ color:#fff; font-size:14px; letter-spacing:.5px; text-transform:uppercase; margin-bottom:12px; }
footer.site .fcols{ display:grid; grid-template-columns:2fr 1fr 1fr 1.3fr; gap:28px; }
@media(max-width:820px){ footer.site .fcols{ grid-template-columns:1fr 1fr; } }
@media(max-width:520px){ footer.site .fcols{ grid-template-columns:1fr; } }
footer.site a{ color:rgba(255,255,255,.82); text-decoration:none; display:block; padding:3px 0; }
footer.site a:hover{ color:#fff; }
footer.site .legal{ margin-top:22px; padding-top:18px; border-top:1px solid rgba(255,255,255,.12); opacity:.7; font-size:12px; }
footer.site .legal p{ margin:.4em 0; }

/* Review platform cards */
.reviewcards, .reviewgrid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:24px; }
@media(max-width:760px){ .reviewcards, .reviewgrid{ grid-template-columns:1fr; } }
.reviewcard{ display:block; background:#fff; border:1px solid var(--line); border-radius:14px; padding:22px; text-decoration:none; transition:box-shadow .15s ease, transform .15s ease; }
.reviewcard:hover{ box-shadow:0 10px 26px rgba(22,52,94,.10); transform:translateY(-2px); }
.reviewcard .plat{ font-family:Montserrat,sans-serif; font-weight:800; color:var(--navydeep); font-size:18px; }
.reviewcard .score{ font-family:Montserrat,sans-serif; font-weight:800; color:var(--navy); font-size:38px; line-height:1; margin:6px 0 2px; }
.reviewcard .stars{ color:#F5A623; font-size:18px; letter-spacing:2px; margin:2px 0; }
.reviewcard .count, .reviewcard .cnt{ color:var(--slate); font-size:14px; }
.reviewcard .go{ color:var(--navy); font-weight:700; font-size:14px; margin-top:10px; display:inline-block; }

/* Gallery lightbox */
.gallery figure[data-lb]{ cursor:pointer; }
.lb{ position:fixed; inset:0; background:rgba(8,16,30,.93); z-index:60; display:none; align-items:center; justify-content:center; }
.lb.open{ display:flex; }
.lb img{ max-width:90vw; max-height:80vh; border-radius:10px; box-shadow:0 20px 60px rgba(0,0,0,.5); background:#0E1E36; }
.lb .cap{ position:absolute; bottom:22px; left:0; right:0; text-align:center; color:#fff; font-size:15px; padding:0 70px; }
.lb button{ position:absolute; background:rgba(255,255,255,.14); color:#fff; border:0; width:52px; height:52px; border-radius:50%; font-size:28px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.lb button:hover{ background:rgba(255,255,255,.28); }
.lb .prev{ left:18px; top:50%; transform:translateY(-50%); }
.lb .next{ right:18px; top:50%; transform:translateY(-50%); }
.lb .close{ top:18px; right:18px; font-size:24px; }
@media(max-width:600px){ .lb button{ width:44px; height:44px; font-size:22px; } .lb .cap{ padding:0 16px; bottom:84px; } }

/* Finance calculator + examples */
.calc{ display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:24px; align-items:start; }
@media(max-width:760px){ .calc{ grid-template-columns:1fr; } }
.calc .inputs, .calc .result{ border-radius:16px; padding:24px; }
.calc .inputs{ background:#fff; border:1px solid var(--line); }
.calc .result{ background:var(--navydeep); color:#fff; }
.calc .result .lbl{ font-size:13px; letter-spacing:1px; text-transform:uppercase; opacity:.7; font-family:Montserrat,sans-serif; font-weight:700; }
.calc .result .big{ font-family:Montserrat,sans-serif; font-weight:800; font-size:44px; color:#fff; line-height:1; margin-top:4px; }
.calc .result .rows{ margin-top:20px; }
.calc .result .rowi{ display:flex; justify-content:space-between; padding:9px 0; border-bottom:1px solid rgba(255,255,255,.15); font-size:15px; }
.calc .result .repr{ font-size:12.5px; opacity:.8; margin-top:14px; line-height:1.5; }
.calc .quick{ display:flex; gap:8px; flex-wrap:wrap; margin-top:6px; }
.calc .quick button{ border:1px solid #cdd6e4; background:#fff; border-radius:999px; padding:6px 12px; font-size:13px; cursor:pointer; font-family:Montserrat,sans-serif; font-weight:600; color:var(--navy); }
.calc .quick button:hover{ background:var(--ice); }
.examplecard{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:22px; }
.examplecard .tag{ display:inline-block; background:var(--ice); color:var(--navy); font-weight:700; font-size:12px; border-radius:999px; padding:4px 12px; font-family:Montserrat,sans-serif; }
.examplecard .apr{ font-family:Montserrat,sans-serif; font-weight:800; font-size:30px; color:var(--navy); margin:.25em 0 .1em; }
.examplecard ul{ margin:.4em 0 0; padding-left:18px; color:var(--slate); font-size:14px; }
.legalbox{ background:var(--ice); border:1px solid var(--line); border-radius:14px; padding:22px 24px; font-size:13.5px; color:#3a4659; }
.legalbox h3{ font-size:15px; }
.legalbox p{ margin:.5em 0; }

/* Sticky mobile call bar */
.sticky-cta{ display:none; }
@media(max-width:860px){
  .sticky-cta{ display:flex; position:fixed; bottom:0; left:0; right:0; z-index:40; box-shadow:0 -6px 18px rgba(0,0,0,.12); }
  .sticky-cta a{ flex:1; text-align:center; padding:14px 8px; font-family:Montserrat,sans-serif; font-weight:700; text-decoration:none; font-size:15px; }
  .sticky-cta .call{ background:var(--navy); color:#fff; }
  .sticky-cta .quote{ background:var(--red); color:#fff; }
  body{ padding-bottom:54px; }
}

@media (prefers-reduced-motion: reduce){ *,*::before,*::after{ transition-duration:.01ms !important; } }
