/* ===== Roofing Pros — Design System =====
   Fonts: Manrope (headings) + Source Sans 3 (body)
   Colors: Navy #0B2545 primary / Orange #F97316 accent
=========================================== */

:root{
  --p-50:#EFF3F8; --p-100:#D8E1EC; --p-200:#B3C4DA; --p-300:#7E9BBE;
  --p-400:#4E729D; --p-500:#2C4E79; --p-600:#173A63; --p-700:#0F2C50;
  --p-800:#0B2545; --p-900:#081A33;
  --off-white:#F7F6F3; --border:#E3E1DC;
  --accent:#F97316; --accent-dark:#EA6608;
  --ink:#20262E; --ink-soft:#4A525C;
  --on-dark:#F7F6F3; --on-dark-soft:#C7CFDA;

  --font-head:'Manrope',-apple-system,sans-serif;
  --font-body:'Source Sans 3',-apple-system,sans-serif;

  --h1: clamp(2.5rem, 1.9rem + 2.6vw, 4.5rem);
  --h2: clamp(2rem, 1.7rem + 1.3vw, 3rem);
  --h3: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --body: clamp(1.0625rem, 1.02rem + 0.2vw, 1.125rem);

  --pad-section: 64px;
  --radius: 20px;
  --shadow-card: 0 1px 2px rgba(11,37,69,.06), 0 8px 24px rgba(11,37,69,.08);
  --shadow-card-hover: 0 4px 10px rgba(11,37,69,.08), 0 16px 36px rgba(11,37,69,.14);
}

@media (min-width: 1024px){
  :root{ --pad-section: 112px; }
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; font-family:var(--font-body); font-size:var(--body); line-height:1.7;
  color:var(--ink); background:#fff; padding-bottom:64px;
}
@media (min-width:1024px){ body{ padding-bottom:0; } }

img,svg{ max-width:100%; display:block; }
a{ color:var(--p-700); }
.container{ width:100%; max-width:1200px; margin:0 auto; padding:0 20px; }
.prose p{ max-width:68ch; }
h1,h2,h3,h4{ font-family:var(--font-head); font-weight:800; letter-spacing:-0.02em; margin:0 0 .5em; color:var(--p-900); }
h1{ font-size:var(--h1); line-height:1.05; }
h2{ font-size:var(--h2); line-height:1.1; }
h3{ font-size:var(--h3); line-height:1.3; font-weight:700; }
p{ margin:0 0 1em; }

.skip-link{
  position:absolute; left:-999px; top:0; background:var(--p-800); color:#fff;
  padding:12px 20px; z-index:200; border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; }

:focus-visible{ outline:3px solid var(--accent); outline-offset:2px; }

.eyebrow{
  display:inline-block; text-transform:uppercase; letter-spacing:.12em; font-size:.8rem;
  font-weight:700; color:var(--accent-dark); margin-bottom:.75em;
}
.section-intro{ max-width:62ch; color:var(--ink-soft); font-size:1.05em; }

section{ padding:var(--pad-section) 0; }
.bg-white{ background:#fff; }
.bg-offwhite{ background:var(--off-white); }
.bg-tint{ background:var(--p-50); }
.bg-dark{ background:var(--p-900); color:var(--on-dark); }
.bg-dark h1,.bg-dark h2,.bg-dark h3{ color:var(--on-dark); }
.bg-dark .section-intro{ color:var(--on-dark-soft); }

/* ---- Shingle-course divider (signature element) ---- */
.shingle-divider{ height:26px; width:100%; overflow:hidden; line-height:0; }
.shingle-divider svg{ width:100%; height:100%; display:block; }

/* ---- Header / Nav ---- */
.site-header{
  position:sticky; top:0; z-index:100; background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px); border-bottom:1px solid var(--border);
}
.header-row{ display:flex; align-items:center; justify-content:space-between; padding:14px 20px; }
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-head); font-weight:800; color:var(--p-900); text-decoration:none; font-size:1.15rem; }
.brand svg{ width:34px; height:34px; }
.main-nav{ display:none; }
.main-nav ul{ list-style:none; display:flex; gap:28px; margin:0; padding:0; align-items:center; }
.main-nav a{ text-decoration:none; color:var(--p-800); font-weight:600; }
.main-nav a:hover{ color:var(--accent-dark); }
.header-call{ display:none; }

.hamburger{
  width:44px; height:44px; border:1px solid var(--border); border-radius:10px; background:#fff;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.hamburger svg{ width:22px; height:22px; }

.mobile-panel{
  position:fixed; inset:0; background:var(--p-900); color:#fff; z-index:200;
  display:none; flex-direction:column; padding:20px;
}
.mobile-panel.open{ display:flex; }
.mobile-panel-top{ display:flex; justify-content:space-between; align-items:center; }
.mobile-panel a{ color:#fff; text-decoration:none; font-family:var(--font-head); font-weight:700; font-size:1.4rem; }
.mobile-panel ul{ list-style:none; margin:40px 0 0; padding:0; display:flex; flex-direction:column; gap:24px; }
.mobile-close{ background:none; border:none; color:#fff; width:44px; height:44px; cursor:pointer; }

@media (min-width:1024px){
  .main-nav{ display:block; }
  .header-call{ display:inline-flex; }
  .hamburger, .mobile-panel{ display:none; }
}

/* ---- Buttons ---- */
.btn{
  display:inline-flex; align-items:center; gap:10px; padding:14px 26px; border-radius:999px;
  font-weight:700; font-family:var(--font-head); text-decoration:none; font-size:1rem;
  min-height:44px; border:2px solid transparent; cursor:pointer;
}
.btn svg{ width:18px; height:18px; }
.btn-primary{
  background:var(--accent); color:#fff; box-shadow:0 6px 20px rgba(249,115,22,.35);
}
.btn-primary:hover{ background:var(--accent-dark); }
.btn-outline{
  background:transparent; border-color:currentColor; color:inherit;
}
.btn-outline:hover{ background:rgba(255,255,255,.08); }
.bg-white .btn-outline, .bg-offwhite .btn-outline, .bg-tint .btn-outline{ border-color:var(--p-700); color:var(--p-700); }
@media (max-width:639px){ .btn{ width:100%; justify-content:center; } }

/* ---- Trust chips ---- */
.trust-row{ display:flex; flex-wrap:wrap; gap:10px 18px; margin-top:20px; }
.trust-chip{ display:flex; align-items:center; gap:8px; font-size:.9rem; color:var(--on-dark-soft); }
.trust-chip svg{ width:16px; height:16px; color:var(--accent); }

/* ---- Hero ---- */
.hero{
  position:relative; background:var(--p-900); color:#fff; overflow:hidden;
  padding:56px 0 var(--pad-section);
}
.hero::before{
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(circle at 15% 20%, rgba(249,115,22,.18), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(46,90,150,.35), transparent 50%);
}
.hero-grain{ position:absolute; inset:0; opacity:.05; mix-blend-mode:overlay; }
.hero-grid{ position:relative; display:grid; gap:40px; }
@media (min-width:1024px){ .hero-grid{ grid-template-columns:1.1fr .9fr; align-items:center; } }
.hero h1{ color:#fff; }
.hero h1 .hl{ position:relative; white-space:nowrap; }
.hero h1 .hl::after{
  content:''; position:absolute; left:0; right:0; bottom:.05em; height:.14em;
  background:var(--accent); border-radius:2px; z-index:-1; opacity:.55;
}
.hero-scene{ position:relative; }
.floating-cards{ display:none; }
@media (min-width:768px){
  .floating-cards{ display:block; position:absolute; }
  .fcard{
    position:absolute; background:rgba(255,255,255,.1); backdrop-filter:blur(12px);
    border:1px solid rgba(255,255,255,.18); border-radius:16px; padding:14px 16px;
    display:flex; align-items:center; gap:10px; font-size:.85rem; font-weight:700; color:#fff;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
  }
  .fcard svg{ width:20px; height:20px; color:var(--accent); }
  .fcard-1{ top:-6%; left:-4%; }
  .fcard-2{ bottom:8%; right:-6%; }
  .fcard-3{ top:42%; left:56%; }
}

/* ---- Bento grid ---- */
.bento{ display:grid; gap:20px; grid-template-columns:1fr; }
@media (min-width:640px){ .bento{ grid-template-columns:1fr 1fr; } }
@media (min-width:1024px){
  .bento{ grid-template-columns:repeat(4,1fr); grid-auto-rows:minmax(180px,auto); }
  .bento .card.big{ grid-column:span 2; grid-row:span 2; }
}
.card{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow-card); padding:28px; transition:transform .2s ease, box-shadow .2s ease;
  display:flex; flex-direction:column; gap:12px; text-decoration:none; color:inherit;
}
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-card-hover); }
.icon-tile{
  width:48px; height:48px; border-radius:12px; background:var(--p-50);
  display:flex; align-items:center; justify-content:center; color:var(--p-700);
}
.icon-tile svg{ width:24px; height:24px; }
.card .arrow{ margin-top:auto; display:flex; align-items:center; gap:6px; font-weight:700; color:var(--p-700); }
.card .arrow svg{ width:16px; height:16px; }

/* ---- Symptom checker ---- */
.symptom-grid{ display:grid; gap:16px; grid-template-columns:1fr; }
@media (min-width:640px){ .symptom-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1024px){ .symptom-grid{ grid-template-columns:repeat(3,1fr); } }
.symptom-card{
  background:#fff; border:1px solid var(--border); border-radius:16px; padding:20px;
  display:flex; flex-direction:column; gap:8px;
}
.symptom-card b{ font-family:var(--font-head); }

/* ---- Process (numbered) ---- */
.process{ position:relative; display:grid; gap:32px; grid-template-columns:1fr; counter-reset:step; }
@media (min-width:768px){ .process{ grid-template-columns:repeat(4,1fr); } }
.process-step{ position:relative; padding-left:0; }
.process-num{
  font-family:var(--font-head); font-weight:800; font-size:2.6rem; color:transparent;
  -webkit-text-stroke:2px var(--p-300); line-height:1;
}
.process::after{ content:''; }

/* ---- Split section ---- */
.split{ display:grid; gap:40px; grid-template-columns:1fr; align-items:center; }
@media (min-width:1024px){ .split{ grid-template-columns:1fr 1fr; } }
.split.reverse .split-media{ order:-1; }
@media (min-width:1024px){ .split.reverse .split-media{ order:2; } }

/* ---- Callouts ---- */
.callout{ border-left:4px solid var(--p-500); background:var(--p-50); border-radius:8px; padding:18px 20px; display:flex; gap:12px; margin:1.5em 0; }
.callout svg{ width:22px; height:22px; flex:none; color:var(--p-700); }
.callout.warning{ border-color:var(--accent); background:#FFF3EA; }
.callout.warning svg{ color:var(--accent-dark); }

/* ---- Table ---- */
.table-wrap{ overflow-x:auto; border:1px solid var(--border); border-radius:12px; }
table{ width:100%; border-collapse:collapse; min-width:480px; }
th,td{ text-align:left; padding:12px 16px; border-bottom:1px solid var(--border); }
th{ background:var(--p-50); font-family:var(--font-head); }
tr:last-child td{ border-bottom:none; }

/* ---- CTA band ---- */
.cta-band{
  position:relative; background:var(--p-900); color:#fff; text-align:center; overflow:hidden;
}
.cta-band::before{
  content:''; position:absolute; inset:-40% -10%; background:radial-gradient(circle, rgba(249,115,22,.35), transparent 60%);
}
.cta-phone{ position:relative; font-family:var(--font-head); font-weight:800; font-size:clamp(2.2rem,1.8rem+2vw,4rem); color:#fff; text-decoration:none; display:block; margin:16px 0; }

/* ---- FAQ accordion ---- */
.faq-item{ border-bottom:1px solid var(--border); }
.faq-item summary{
  list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center;
  padding:20px 0; font-family:var(--font-head); font-weight:700; gap:16px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-plus{ width:26px; height:26px; flex:none; position:relative; }
.faq-plus::before,.faq-plus::after{ content:''; position:absolute; background:var(--p-700); border-radius:2px; }
.faq-plus::before{ width:16px; height:2px; top:12px; left:5px; }
.faq-plus::after{ width:2px; height:16px; left:12px; top:5px; transition:transform .2s ease; }
.faq-item[open] .faq-plus::after{ transform:rotate(90deg); }
.faq-item .faq-a{ padding-bottom:20px; color:var(--ink-soft); }

/* ---- Areas grid ---- */
.areas-grid{ display:grid; gap:20px; grid-template-columns:1fr; }
@media (min-width:640px){ .areas-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1024px){ .areas-grid{ grid-template-columns:repeat(3,1fr); } }

/* ---- TOC + sticky call card (service pages) ---- */
.service-layout{ display:grid; gap:40px; grid-template-columns:1fr; }
@media (min-width:1024px){ .service-layout{ grid-template-columns:2.2fr 1fr; } }
.service-sidebar{ display:flex; flex-direction:column; gap:20px; }
@media (min-width:1024px){ .service-sidebar{ position:sticky; top:96px; align-self:start; } }
.toc{ background:var(--off-white); border:1px solid var(--border); border-radius:16px; padding:20px; }
.toc-title{ font-family:var(--font-head); font-weight:800; margin-bottom:10px; }
.toc ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.toc a{ text-decoration:none; font-size:.95rem; }
.call-card{ background:var(--p-900); color:#fff; border-radius:16px; padding:24px; text-align:center; }
.call-card .cta-phone{ font-size:1.6rem; margin:8px 0; }

/* ---- Breadcrumbs ---- */
.breadcrumbs{ font-size:.85rem; color:var(--ink-soft); margin-bottom:16px; }
.breadcrumbs a{ color:var(--ink-soft); text-decoration:underline; }

/* ---- Footer ---- */
.site-footer{ background:var(--p-900); color:var(--on-dark-soft); padding:64px 0 32px; }
.footer-grid{ display:grid; gap:32px; grid-template-columns:1fr; }
@media (min-width:768px){ .footer-grid{ grid-template-columns:repeat(4,1fr); } }
.footer-grid h4{ color:#fff; font-size:1rem; }
.footer-grid ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.footer-grid a{ color:var(--on-dark-soft); text-decoration:none; font-size:.92rem; }
.footer-grid a:hover{ color:#fff; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.12); margin-top:48px; padding-top:24px; font-size:.82rem; }

/* ---- Sticky mobile call bar ---- */
.mobile-call-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:150; background:var(--accent);
  padding:10px 16px calc(10px + env(safe-area-inset-bottom)); display:flex;
}
.mobile-call-bar a{ flex:1; color:#fff; text-decoration:none; font-family:var(--font-head); font-weight:800; text-align:center; display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; }
@media (min-width:1024px){ .mobile-call-bar{ display:none; } }

/* ---- Motion ---- */
.reveal{ opacity:0; transform:translateY(16px); transition:opacity .5s ease, transform .5s ease; }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}

.small-print{ font-size:.8rem; color:var(--ink-soft); }
.bg-dark .small-print{ color:var(--on-dark-soft); }
.stack{ display:flex; flex-wrap:wrap; gap:14px; }
