/* =============================================
   Southam Bros Electrical — Guides / Blog styles
   Shares the design tokens used on the homepage
============================================= */
:root {
  --accent: #fcc67c;
  --accent-dark: #e8a84a;
  --dark: #2f3092;
  --dark-mid: #3d3ea8;
  --page-bg: #f7f7f8;
  --grey: #838487;
  --text: #2c2c2c;
  --body: 1.2rem;
  --small: 1.075rem;
  --label: 0.9375rem;
  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  font-size: var(--body);
  line-height: 1.7;
  color: var(--text);
  background: var(--page-bg);
  overflow-x: hidden;
  padding-bottom: 72px; /* room for mobile call bar */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; display: block; }
a { color: var(--dark); }
h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', sans-serif; line-height: 1.2; color: var(--dark); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* Header (matches homepage) */
#site-header {
  position: sticky; top: 0; z-index: 1000;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.25rem;
  height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.header-phone {
  display: flex; align-items: center; gap: .5rem;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.05rem;
  color: var(--dark); text-decoration: none; min-height: 48px; white-space: nowrap;
}
@media (max-width: 360px) { .header-phone .phone-text { display: none; } }

/* Article hero */
.article-hero {
  background: var(--dark); color: #fff;
  padding: 3rem 1.25rem 3.25rem; position: relative; overflow: hidden;
}
.article-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 15% 85%, rgba(252,198,124,.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(252,198,124,.08) 0%, transparent 40%);
}
.article-hero-inner { max-width: 820px; margin: 0 auto; position: relative; }
.breadcrumbs { font-size: var(--label); margin-bottom: 1.25rem; color: rgba(255,255,255,.7); }
.breadcrumbs a { color: rgba(255,255,255,.85); }
.breadcrumbs span[aria-hidden] { margin: 0 .4rem; }
.article-hero .eyebrow {
  display: inline-block; font-size: var(--label); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .6rem;
}
.article-hero h1 {
  color: #fff; font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 800;
  letter-spacing: -.02em; margin-bottom: 1rem;
}
.article-hero h1 em { font-style: normal; color: var(--accent); }
.article-hero .lede { color: rgba(255,255,255,.82); font-size: var(--small); max-width: 680px; margin-bottom: 1.5rem; }
.meta { font-size: var(--label); color: rgba(255,255,255,.65); display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.hero-ctas { display: flex; gap: .85rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: 0 1.6rem; border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1rem;
  text-decoration: none; border: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--dark); box-shadow: 0 4px 20px rgba(252,198,124,.4); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: rgba(255,255,255,.12); color: #fff; border: 2px solid rgba(255,255,255,.3); }
.btn-secondary:hover { background: rgba(255,255,255,.22); }
.btn-outline { background: #fff; color: var(--dark); border: 2px solid var(--dark); }
@media (max-width: 420px) { .hero-ctas .btn, .cta-box .btn { width: 100%; } }

/* Trust strip */
.trust-strip { background: #fff; border-bottom: 1px solid rgba(0,0,0,.07); padding: .9rem 1.25rem; }
.trust-strip ul {
  list-style: none; max-width: 1000px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: var(--label); color: var(--dark);
}
.trust-strip li::before { content: '✓'; color: #3DCA6F; margin-right: .4rem; font-weight: 800; }

/* Layout */
.article-wrap {
  max-width: 1200px; margin: 0 auto; padding: 3rem 1.25rem 4rem;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem;
}
@media (min-width: 1000px) { .article-wrap { grid-template-columns: minmax(0, 760px) 320px; justify-content: center; } }

article.guide { background: #fff; border-radius: 16px; padding: 2.5rem 2.25rem; box-shadow: 0 8px 40px rgba(0,0,0,.05); }
@media (max-width: 600px) { article.guide { padding: 1.75rem 1.25rem; border-radius: 12px; } }
article.guide h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); font-weight: 800; margin: 2.5rem 0 .9rem; letter-spacing: -.01em; scroll-margin-top: 100px; }
article.guide h3 { font-size: 1.2rem; font-weight: 800; margin: 1.75rem 0 .5rem; }
article.guide p { margin-bottom: 1.1rem; }
article.guide ul, article.guide ol { margin: 0 0 1.25rem 1.35rem; }
article.guide li { margin-bottom: .5rem; }
article.guide strong { color: #1d1d1d; }

/* Quick answer (featured-snippet target) */
.quick-answer {
  background: #fff8ec; border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.4rem 1.5rem; margin-bottom: 2rem;
}
.quick-answer h2 { margin: 0 0 .5rem !important; font-size: 1.15rem !important; text-transform: uppercase; letter-spacing: .06em; }
.quick-answer p:last-child { margin-bottom: 0; }

/* Table of contents */
.toc { background: var(--page-bg); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.toc h2 { margin: 0 0 .6rem !important; font-size: 1rem !important; text-transform: uppercase; letter-spacing: .08em; }
.toc ol { margin: 0 0 0 1.2rem !important; font-size: var(--small); }
.toc li { margin-bottom: .25rem !important; }

/* Checklist */
.checklist { list-style: none; margin-left: 0 !important; }
.checklist li { position: relative; padding-left: 2.1rem; margin-bottom: .8rem !important; }
.checklist li::before {
  content: '✓'; position: absolute; left: 0; top: .15rem;
  width: 1.45rem; height: 1.45rem; border-radius: 50%;
  background: rgba(61,202,111,.15); color: #1f9d4f; font-weight: 800; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}
.checklist.warn li::before { content: '!'; background: rgba(252,198,124,.3); color: #9a5b00; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; border-radius: var(--radius); border: 1px solid rgba(0,0,0,.08); }
table { width: 100%; border-collapse: collapse; font-size: var(--small); min-width: 520px; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid rgba(0,0,0,.07); vertical-align: top; }
th { background: var(--dark); color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-size: var(--label); }
tr:nth-child(even) td { background: var(--page-bg); }

/* Callouts */
.callout { background: var(--page-bg); border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 1.5rem 0; font-size: var(--small); }
.callout strong:first-child { display: block; font-family: 'Plus Jakarta Sans', sans-serif; color: var(--dark); margin-bottom: .3rem; }
.callout p:last-child { margin-bottom: 0; }

/* Inline CTA box */
.cta-box {
  background: var(--dark); color: #fff; border-radius: 14px;
  padding: 1.75rem 1.6rem; margin: 2.25rem 0; position: relative; overflow: hidden;
}
.cta-box::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  border-radius: 50%; background: rgba(252,198,124,.12); pointer-events: none;
}
.cta-box h3 { color: var(--accent) !important; margin: 0 0 .5rem !important; font-size: 1.35rem !important; }
.cta-box p { color: rgba(255,255,255,.85); margin-bottom: 1.1rem !important; font-size: var(--small); }
.cta-box .cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; position: relative; z-index: 1; }
.cta-box .small-print { font-size: .9rem; color: rgba(255,255,255,.6); margin: .9rem 0 0 !important; }

/* Review quote */
.review-quote { border-left: 4px solid var(--accent); padding: .5rem 0 .5rem 1.25rem; margin: 1.75rem 0; }
.review-quote .stars { color: #F5C518; letter-spacing: .05em; }
.review-quote p { font-style: italic; margin-bottom: .35rem !important; }
.review-quote cite { font-style: normal; font-weight: 700; font-size: var(--label); color: var(--dark); }

/* Area tags */
.area-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; }
.area-tag {
  background: rgba(47,48,146,.07); border: 1px solid rgba(47,48,146,.18);
  border-radius: 999px; padding: .25rem .85rem; font-size: var(--label); font-weight: 700; color: var(--dark);
}

/* FAQ */
.faq details { border: 1px solid rgba(0,0,0,.09); border-radius: 10px; margin-bottom: .75rem; background: #fff; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.2rem; position: relative;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--dark); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 1.2rem; top: .85rem; font-size: 1.4rem; color: var(--accent-dark); }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 1.2rem 1rem; font-size: var(--small); }
.faq details > div p:last-child { margin-bottom: 0; }

.sources { font-size: .95rem; color: #666; border-top: 1px solid rgba(0,0,0,.08); padding-top: 1.25rem; margin-top: 2.5rem; }
.sources ul { margin-top: .5rem; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1000px) { .sidebar-sticky { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 1.5rem; } }
.side-card { background: #fff; border-radius: 14px; padding: 1.6rem 1.4rem; box-shadow: 0 8px 32px rgba(0,0,0,.06); }
.side-card.dark { background: var(--dark); color: #fff; }
.side-card.dark h3 { color: var(--accent); }
.side-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.side-card p { font-size: 1rem; margin-bottom: 1rem; }
.side-card.dark p { color: rgba(255,255,255,.8); }
.side-card .btn { width: 100%; margin-bottom: .6rem; }
.side-card ul { list-style: none; font-size: 1rem; }
.side-card li { padding: .45rem 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.side-card li:last-child { border-bottom: none; }
.side-card li a { text-decoration: none; font-weight: 700; }
.side-card li a:hover { text-decoration: underline; }

/* Final CTA band */
.final-cta { background: var(--dark); color: #fff; text-align: center; padding: 4rem 1.25rem; }
.final-cta h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: .75rem; }
.final-cta h2 em { font-style: normal; color: var(--accent); }
.final-cta p { color: rgba(255,255,255,.8); max-width: 620px; margin: 0 auto 1.75rem; font-size: var(--small); }
.final-cta .hero-ctas { justify-content: center; }

/* Footer */
#site-footer { background: #23246f; color: rgba(255,255,255,.7); padding: 2.25rem 1.25rem; font-size: var(--label); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; }
#site-footer a { color: var(--accent); font-weight: 700; }
.footer-credit { width: 100%; color: #fff; font-weight: 700; }
.footer-credit a { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }

/* Mobile sticky call bar */
.mobile-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding: .6rem .75rem; padding-bottom: max(.6rem, env(safe-area-inset-bottom));
  background: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.12);
}
.mobile-cta-bar .btn { min-height: 48px; padding: 0 .75rem; font-size: .95rem; }
@media (min-width: 900px) { .mobile-cta-bar { display: none; } }
