/* =============================================================
   Home Source Roofing — shared site styles (mobile-first)
   Brand kit: White lead · Green (#1CBE72) accent · Black contrast.
   Fonts: Oswald (headings), Montserrat (body).
   Base styles target mobile (320px+); min-width queries scale up.
   ============================================================= */
:root {
  --paper:#FFFFFF; --ink:#000000;
  --green:#1CBE72; --green-light:#61D29E; --green-hover:#16A862; --green-press:#128A50; --green-tint:#E9F9F1;
  --surface-muted:#FAFAFA; --surface-subtle:#F4F5F4;
  --fg:#0c0c0c; --fg-muted:rgba(0,0,0,.64); --fg-subtle:rgba(0,0,0,.45);
  --border-subtle:rgba(0,0,0,.08); --border:rgba(0,0,0,.14);
  --shadow-sm:0 1px 2px rgba(0,0,0,.06),0 1px 1px rgba(0,0,0,.04);
  --shadow-md:0 4px 12px rgba(0,0,0,.08),0 1px 3px rgba(0,0,0,.05);
  --shadow-lg:0 14px 40px rgba(0,0,0,.12),0 4px 10px rgba(0,0,0,.06);
  --font-display:"Oswald",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-body:"Montserrat",system-ui,-apple-system,"Segoe UI",sans-serif;
  --maxw:1200px;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body { font-family:var(--font-body); font-size:16px; color:var(--fg); background:var(--paper); -webkit-font-smoothing:antialiased; line-height:1.6; }
img { display:block; max-width:100%; height:auto; }
a { color:inherit; text-decoration:none; }
:target { scroll-margin-top:130px; }

.wrap { max-width:var(--maxw); margin:0 auto; padding:0 20px; }
@media (min-width:768px){ .wrap { padding:0 28px; } }

.eyebrow { font-family:var(--font-body); font-weight:700; font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--green); }
.green { color:var(--green); }
.lede { font-size:16px; line-height:1.65; color:var(--fg-muted); }
.head { font-family:var(--font-display); font-weight:600; text-transform:uppercase; letter-spacing:.01em; line-height:1.06; }
.pill { display:inline-flex; align-items:center; gap:7px; font-weight:700; font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:#fff; background:var(--green); padding:7px 14px; border-radius:999px; }
.pill.ghost { background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.3); }
@media (min-width:768px){ .lede { font-size:18px; } }

.sec-head { max-width:680px; }
.sec-head.center { margin:0 auto; text-align:center; }
.sec-head h2 { font-size:clamp(26px,5vw,42px); margin:14px 0 0; }
.sec-head .lede { margin-top:14px; }

.section { padding:56px 0; }
@media (min-width:768px){ .section { padding:76px 0; } }
.bg-subtle { background:var(--surface-subtle); }
.bg-muted { background:var(--surface-muted); }

/* ---- buttons (>=44px touch targets) ---- */
.btn { font-family:var(--font-body); font-weight:700; font-size:14px; letter-spacing:.04em; text-transform:uppercase; border:0; min-height:46px; padding:13px 24px; border-radius:9px; display:inline-flex; align-items:center; justify-content:center; gap:9px; color:#fff; cursor:pointer; transition:transform .12s ease, box-shadow .12s ease, background .12s ease; }
.btn svg { width:17px; height:17px; flex:0 0 auto; }
.btn-primary { background:var(--green); box-shadow:inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 4px rgba(0,0,0,.22), 0 8px 22px rgba(28,190,114,.26); }
.btn-primary:hover { background:var(--green-hover); transform:translateY(-1px); }
.btn-ghost { background:#fff; color:var(--green-hover); border:1.5px solid var(--green); }
.btn-ghost:hover { background:#F4FBF6; }
.btn-ondark { background:none; color:#fff; border:1.5px solid rgba(255,255,255,.4); }
.btn-ondark:hover { background:rgba(255,255,255,.08); }
.btn-sm { min-height:40px; padding:10px 18px; font-size:12px; }
.btn-lg { min-height:52px; padding:16px 30px; font-size:15px; }
.btn-block { width:100%; }
.btn-link { background:none; border:0; min-height:auto; padding:13px 4px; color:var(--green-hover); text-decoration:underline; text-underline-offset:3px; }
.btn-link:hover { color:var(--green); }

/* ---- top bar ---- */
.topbar { background:#000; color:#fff; font-size:12.5px; }
/* mobile default: hide static layout */
.topbar .wrap { display:none; }
.topbar .tb-left { display:none; }
.topbar .vo { color:var(--green); font-weight:700; letter-spacing:.04em; text-transform:uppercase; font-size:11px; }
.topbar .tb-right { display:none; }
.topbar a { font-weight:600; }
.topbar .ph { display:inline-flex; gap:7px; align-items:center; color:#fff; font-weight:700; }
.topbar .tb-mil { display:none; }
/* mobile ticker */
.tb-ticker { overflow:hidden; height:40px; }
.tb-track { display:flex; align-items:center; width:max-content; height:40px; animation:ticker 35s linear infinite; will-change:transform; }
.tb-track > * { color:#1CBE72; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; white-space:nowrap; flex-shrink:0; text-decoration:none; padding:0 16px; }
.tb-track .tb-sep { color:rgba(28,190,114,.45); padding:0; font-size:15px; font-weight:400; }
@keyframes ticker { from { transform:translateX(0); } to { transform:translateX(-50%); } }
/* desktop: static layout, hide ticker */
@media (min-width:768px){
  .topbar .wrap { display:flex; align-items:center; justify-content:space-between; min-height:40px; gap:16px; }
  .topbar .tb-left { display:flex; gap:20px; align-items:center; }
  .topbar .tb-right { display:flex; gap:14px; align-items:center; color:rgba(255,255,255,.8); }
  .topbar .tb-mil { display:inline; }
  .tb-ticker { display:none; }
}

/* ---- header / nav (hamburger on mobile) ---- */
.site-header { position:sticky; top:0; z-index:50; background:rgba(255,255,255,.95); backdrop-filter:saturate(1.4) blur(10px); border-bottom:1px solid var(--border-subtle); }
.site-header .wrap { display:flex; align-items:center; gap:18px; min-height:70px; }
.logo img { height:46px; width:auto; }
@media (min-width:768px){ .logo img { height:58px; } .site-header .wrap { min-height:78px; gap:24px; } }
.nav-toggle { margin-left:auto; width:46px; height:46px; display:inline-flex; align-items:center; justify-content:center; background:none; border:0; color:var(--fg); }
.nav { display:flex; }
.h-cta { display:none; }
.h-phone { display:inline-flex; gap:8px; align-items:center; font-family:var(--font-display); font-weight:600; font-size:19px; color:var(--fg); }
.h-phone svg { color:var(--green); }

/* mobile nav drawer */
.nav { position:fixed; inset:110px 0 auto 0; flex-direction:column; align-items:stretch; gap:0; background:#fff; border-bottom:1px solid var(--border-subtle); box-shadow:var(--shadow-lg); padding:6px 20px 20px; max-height:calc(100vh - 110px); overflow:auto; transform:translateY(-12px); opacity:0; visibility:hidden; transition:opacity .18s, transform .18s, visibility .18s; }
.nav.open { opacity:1; visibility:visible; transform:none; }
.nav > a, .nav-item > .nav-top { font-family:var(--font-body); font-weight:600; font-size:16px; color:var(--fg); min-height:48px; display:flex; align-items:center; justify-content:space-between; gap:5px; padding:12px 0; border-bottom:1px solid var(--border-subtle); width:100%; background:none; border-left:0; border-right:0; border-top:0; cursor:pointer; }
.nav-item { position:relative; width:100%; }
.nav-top .caret { width:16px; height:16px; transition:transform .18s ease; }
.dropdown { overflow:hidden; max-height:0; transition:max-height .25s ease; padding-left:12px; }
.nav-item.open .dropdown { max-height:760px; }
.nav-item.open .nav-top .caret { transform:rotate(180deg); }
.dropdown a { display:block; min-height:44px; display:flex; align-items:center; padding:10px 0; font-size:15px; font-weight:600; color:var(--fg-muted); }
.dropdown a:hover { color:var(--green-hover); }
.dropdown .dd-sep { height:1px; background:var(--border-subtle); margin:6px 0; }

/* desktop nav */
@media (min-width:1000px){
  .nav-toggle { display:none; }
  .h-cta { margin-left:auto; display:flex; align-items:center; gap:16px; }
  .nav { position:static; flex-direction:row; align-items:center; gap:22px; margin-left:8px; background:none; border:0; box-shadow:none; padding:0; max-height:none; overflow:visible; transform:none; opacity:1; visibility:visible; }
  .nav > a, .nav-item > .nav-top { font-size:14.5px; min-height:0; width:auto; padding:8px 0; border:0; justify-content:flex-start; }
  .nav > a:hover, .nav-item:hover > .nav-top, .nav > a.active { color:var(--green-hover); }
  .nav-item:hover .nav-top .caret { transform:rotate(180deg); }
  .dropdown { position:absolute; top:100%; left:-14px; min-width:240px; background:#fff; border:1px solid var(--border-subtle); border-radius:12px; box-shadow:var(--shadow-lg); padding:8px; max-height:none; overflow:visible; padding-left:8px; opacity:0; visibility:hidden; transform:translateY(8px); transition:opacity .16s, transform .16s, visibility .16s; }
  .nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity:1; visibility:visible; transform:translateY(6px); }
  .dropdown a { min-height:0; padding:10px 12px; border-radius:8px; color:var(--fg); }
  .dropdown a:hover { background:var(--green-tint); color:var(--green-hover); }
  .dropdown .dd-sep { margin:6px 8px; }
}

/* ---- generic page hero (dark band) ---- */
.page-hero { position:relative; background:#0a0a0a; color:#fff; overflow:hidden; padding:56px 0; text-align:center; }
.page-hero::before { content:""; position:absolute; inset:0; background:radial-gradient(120% 140% at 80% 0%, rgba(28,190,114,.22), transparent 55%), linear-gradient(180deg,#101312,#0a0a0a); }
.page-hero .wrap { position:relative; }
.page-hero .eyebrow { color:var(--green-light); }
.page-hero h1 { font-family:var(--font-display); font-weight:600; text-transform:uppercase; letter-spacing:.01em; font-size:clamp(32px,7vw,60px); line-height:1.03; margin-top:10px; }
.page-hero h1 .green { color:var(--green); }
.page-hero .sub { color:rgba(255,255,255,.82); font-size:clamp(15px,2.2vw,19px); line-height:1.6; max-width:640px; margin:16px auto 0; }
.page-hero .accent { width:60px; height:4px; background:var(--green); border-radius:3px; margin:22px auto 0; }
@media (min-width:768px){ .page-hero { padding:80px 0; } }

/* ---- generic prose (text-heavy pages) ---- */
.prose { max-width:760px; margin:0 auto; padding:48px 20px 64px; }
@media (min-width:768px){ .prose { padding:64px 28px 80px; } }
.prose h2 { font-family:var(--font-display); font-weight:600; text-transform:uppercase; font-size:clamp(22px,4vw,30px); line-height:1.12; margin:40px 0 14px; }
.prose h3 { font-family:var(--font-body); font-weight:700; font-size:19px; margin:28px 0 10px; }
.prose p { font-size:16px; line-height:1.75; color:var(--fg-muted); margin:0 0 16px; }
.prose a { color:var(--green-hover); font-weight:600; text-decoration:underline; text-underline-offset:2px; }
.prose ul, .prose ol { margin:0 0 18px 1.2em; }
.prose li { font-size:16px; line-height:1.7; color:var(--fg-muted); margin:8px 0; }
.prose strong { color:var(--fg); }
.prose img { border-radius:14px; box-shadow:var(--shadow-md); margin:22px auto; max-height:520px; width:auto; }

/* ---- generic bottom CTA ---- */
.cta { position:relative; background:linear-gradient(120deg,#0a0a0a,#13211b); color:#fff; overflow:hidden; }
.cta::after { content:""; position:absolute; right:-40px; bottom:-40px; width:280px; height:280px; background:radial-gradient(circle, rgba(28,190,114,.3), transparent 70%); }
.cta .wrap { position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:24px; padding:48px 20px; }
.cta-copy { max-width:560px; }
.cta-copy h2 { font-family:var(--font-display); font-weight:600; text-transform:uppercase; letter-spacing:.01em; line-height:1.06; font-size:clamp(24px,5vw,40px); }
.cta-copy p { color:rgba(255,255,255,.78); margin-top:12px; font-size:16px; }
.cta-actions { display:flex; flex-direction:column; gap:12px; width:100%; }
@media (min-width:768px){
  .cta .wrap { flex-direction:row; align-items:center; justify-content:space-between; gap:36px; padding:60px 28px; }
  .cta-actions { flex-direction:row; width:auto; flex-shrink:0; }
}

/* ---- footer ---- */
.site-footer { background:#0a0a0a; color:rgba(255,255,255,.7); padding:52px 0 28px; }
.site-footer .cols { display:grid; grid-template-columns:1fr; gap:32px; }
.site-footer .flogo { height:52px; margin-bottom:16px; }
.site-footer p { font-size:14px; line-height:1.6; max-width:320px; }
.site-footer h5 { color:#fff; font-family:var(--font-display); font-weight:600; text-transform:uppercase; letter-spacing:.04em; font-size:14px; margin-bottom:14px; }
.site-footer ul { list-style:none; display:flex; flex-direction:column; gap:10px; }
.site-footer ul a { font-size:14px; color:rgba(255,255,255,.7); display:inline-flex; min-height:24px; align-items:center; }
.site-footer ul a:hover { color:var(--green); }
.site-footer .fbar { border-top:1px solid rgba(255,255,255,.1); margin-top:36px; padding-top:22px; display:flex; flex-direction:column; gap:8px; font-size:12.5px; color:rgba(255,255,255,.5); }
@media (min-width:768px){
  .site-footer { padding:64px 0 28px; }
  .site-footer .cols { grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:36px; }
  .site-footer .fbar { flex-direction:row; justify-content:space-between; }
}

/* ---- HS forms: consent checkbox, radio groups, file input, honeypot ---- */
.hs-hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hs-form-error { background: #FEF2F2; border: 1px solid #FCA5A5; color: #B91C1C; font-size: 13px; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.hs-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; cursor: pointer; }
.hs-consent input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); cursor: pointer; }
.hs-consent span { font-size: 12px; line-height: 1.5; color: var(--fg-muted); }
.hs-consent a { color: var(--green-hover); text-decoration: underline; }
.hs-radio-row { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.hs-radio { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 9px; transition: border-color .12s, background .12s; }
.hs-radio:has(input:checked) { border-color: var(--green); background: var(--green-tint); }
.hs-radio input[type="radio"] { accent-color: var(--green); width: 16px; height: 16px; flex: 0 0 auto; }
.hs-skip-link { display: block; text-align: center; font-size: 12.5px; color: var(--fg-subtle); margin-top: 12px; text-decoration: underline; cursor: pointer; }
