/* ═══════════════════════════════════════
   THE DENVER ROOFING PROS — shared.css
   thedenverroofingpros.com
═══════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #1c2b3a; background: #f4f7fa; line-height: 1.6; }

/* ── TOKENS ── */
:root {
  --navy:   #0f2744;
  --navy2:  #1a3a5c;
  --orange: #e07b1a;
  --orange2:#c96d10;
  --green:  #2dbd6e;
  --sky:    #dceefa;
  --border: #cdd8e6;
  --text:   #1c2b3a;
  --muted:  #5a7a94;
  --light:  #f4f7fa;
  --white:  #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(15,39,68,0.13);
}

/* ── TYPOGRAPHY ── */
h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 700; line-height: 1.25; }
h3 { font-size: 16px; font-weight: 600; }

/* ── HEADER ── */
.site-header {
  background: var(--navy);
  padding: 0 24px;
  position: sticky; top: 0; z-index: 200;
  border-bottom: 2px solid var(--orange);
}
.header-inner {
  max-width: 1040px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 58px; gap: 16px;
}
.logo { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 22px; }
.logo-text { font-size: 17px; font-weight: 700; color: #fff; line-height: 1.15; }
.logo-text span { color: var(--orange); }
.header-phone { color: #b8d0e8; font-size: 14px; text-decoration: none; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.header-phone:hover { color: #fff; }
.header-btn {
  background: var(--orange); color: #fff;
  border: none; padding: 9px 20px; border-radius: 6px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; white-space: nowrap;
  transition: background .15s;
}
.header-btn:hover { background: var(--orange2); }

/* ── HERO ── */
.hero {
  background: linear-gradient(150deg, #0a1e35 0%, #0f2744 55%, #1a3a5c 100%);
  padding: 52px 24px 0;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { max-width: 1040px; margin: 0 auto; display: flex; gap: 44px; align-items: flex-start; position: relative; }
.hero-content { flex: 1; padding-bottom: 52px; min-width: 0; }

.hero-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.eyebrow-pill {
  background: var(--orange); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 12px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: .6px;
}
.eyebrow-stars { color: #f5c430; font-size: 14px; letter-spacing: 2px; }
.eyebrow-count { color: #7aa8cc; font-size: 12px; }

.hero h1 { color: #fff; margin-bottom: 16px; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-sub { font-size: 16px; color: #8cb8d8; line-height: 1.7; margin-bottom: 24px; max-width: 520px; }

.hero-checks { list-style: none; margin-bottom: 30px; }
.hero-checks li { font-size: 14px; color: #c8dff0; padding: 5px 0; display: flex; align-items: flex-start; gap: 9px; }
.hc-icon { color: var(--green); font-size: 15px; flex-shrink: 0; margin-top: 2px; }

.cert-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cert-label { font-size: 11px; color: #5a7a94; text-transform: uppercase; letter-spacing: .5px; }
.cert-tag { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 4px; padding: 3px 10px; font-size: 11px; color: #aac8e0; font-weight: 500; }

/* ── LEAD FORM ── */
.form-col { width: 340px; flex-shrink: 0; }
.form-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  border-top: 4px solid var(--orange);
}
.form-badge { background: #eaf8ef; color: #1a6b38; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; display: inline-block; margin-bottom: 14px; }
.form-card h2 { font-size: 18px; color: var(--navy); margin-bottom: 4px; }
.form-card .form-sub { font-size: 12px; color: var(--muted); margin-bottom: 18px; line-height: 1.55; }

.fl { font-size: 12px; color: #344a5e; font-weight: 600; display: block; margin-bottom: 4px; }
.fi, .fs {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid var(--border); border-radius: 7px;
  font-size: 14px; color: var(--text);
  margin-bottom: 13px; background: #f8fafc;
  font-family: inherit; transition: border-color .15s, background .15s;
}
.fi:focus, .fs:focus { outline: none; border-color: var(--navy2); background: #fff; }
.fs { appearance: none; cursor: pointer; }
.form-btn {
  width: 100%; padding: 14px;
  background: var(--orange); border: none; border-radius: 8px;
  color: #fff; font-size: 16px; font-weight: 700;
  cursor: pointer; font-family: inherit; letter-spacing: .2px;
  transition: background .15s, transform .1s;
}
.form-btn:hover { background: var(--orange2); }
.form-btn:active { transform: scale(.98); }
.form-disclaimer { font-size: 10px; color: #8aa8c0; margin-top: 10px; line-height: 1.6; text-align: center; }
.form-lock { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 8px; font-size: 10px; color: var(--muted); }
.form-lock-icon { color: var(--green); font-size: 12px; }

.form-success { display: none; text-align: center; padding: 24px 0; }
.success-icon { font-size: 44px; display: block; margin-bottom: 12px; }
.form-success h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.form-success p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── WAVE ── */
.hero-wave { display: block; width: 100%; margin-bottom: -2px; position: relative; }

/* ── STATS BAR ── */
.stats-bar { background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); padding: 16px 24px; }
.stats-inner { max-width: 1040px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.stat { text-align: center; flex: 1; min-width: 100px; }
.stat-n { font-size: 22px; font-weight: 700; color: var(--orange); }
.stat-l { font-size: 11px; color: #7aa8cc; margin-top: 2px; }

/* ── MAIN WRAPPER ── */
.main { max-width: 1040px; margin: 0 auto; padding: 44px 24px; }

/* ── SECTION LABELS ── */
.sec-eyebrow { font-size: 11px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.sec-h { color: var(--navy); margin-bottom: 10px; }
.sec-sub { font-size: 15px; color: var(--muted); margin-bottom: 32px; line-height: 1.7; max-width: 640px; }

/* ── URGENCY ── */
.urgency {
  background: #fff8eb; border: 1.5px solid #f5a623; border-radius: 10px;
  padding: 16px 20px; display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 40px;
}
.urgency-icon { font-size: 24px; flex-shrink: 0; margin-top: 1px; }
.urgency strong { font-size: 14px; color: #7a3f00; font-weight: 700; display: block; margin-bottom: 3px; }
.urgency p { font-size: 13px; color: #a06020; line-height: 1.6; }

/* ── HOW IT WORKS ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; margin-bottom: 52px; }
.step { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; }
.step-num {
  width: 38px; height: 38px; background: var(--orange); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 14px;
}
.step h3 { color: var(--navy); margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── SERVICE CARDS ── */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-bottom: 52px; }
.svc-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 18px; cursor: pointer; text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  display: block;
}
.svc-card:hover { border-color: var(--orange); box-shadow: 0 4px 18px rgba(224,123,26,.15); transform: translateY(-2px); }
.svc-icon { font-size: 30px; margin-bottom: 10px; display: block; }
.svc-card h3 { color: var(--navy); font-size: 14px; margin-bottom: 5px; }
.svc-card p { font-size: 12px; color: var(--muted); line-height: 1.55; }
.svc-link { font-size: 12px; color: var(--orange); font-weight: 600; margin-top: 10px; display: inline-block; }

/* ── REVIEWS ── */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 52px; }
.review-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.rv-stars { color: #f5c430; font-size: 15px; margin-bottom: 10px; letter-spacing: 1px; }
.rv-text { font-size: 13px; color: #3a5268; line-height: 1.65; margin-bottom: 14px; font-style: italic; }
.rv-author { display: flex; align-items: center; gap: 10px; }
.rv-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy2); display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff; font-weight: 700; flex-shrink: 0;
}
.rv-name { font-size: 13px; font-weight: 600; color: var(--navy); }
.rv-loc { font-size: 11px; color: var(--muted); }

/* ── AREAS ── */
.areas-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; margin-bottom: 52px; }
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; margin-top: 20px; }
.area-pill {
  background: var(--sky); border-radius: 6px; padding: 10px 14px;
  font-size: 13px; color: var(--navy2); font-weight: 500;
  cursor: pointer; border: 1px solid transparent;
  transition: border-color .12s, background .12s;
}
.area-pill:hover { border-color: var(--orange); background: #fff; }

/* ── FAQ ── */
.faq-list { margin-bottom: 52px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.faq-btn { width: 100%; text-align: left; padding: 17px 22px; background: none; border: none; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: background .12s; }
.faq-btn:hover { background: #f8fafc; }
.faq-icon { font-size: 22px; color: var(--orange); flex-shrink: 0; transition: transform .2s; font-weight: 400; }
.faq-body { font-size: 14px; color: #3a5268; line-height: 1.75; padding: 0 22px 18px; display: none; }
.faq-item.open .faq-body { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ── SEO TEXT ── */
.seo-block { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; margin-bottom: 52px; }
.seo-block h2 { font-size: 22px; margin-bottom: 12px; }
.seo-block h3 { font-size: 16px; color: var(--navy); margin: 22px 0 7px; }
.seo-block p { font-size: 14px; color: #3a5268; line-height: 1.8; margin-bottom: 6px; }

/* ── FOOTER CTA ── */
.cta-band {
  background: linear-gradient(135deg, var(--navy), #0a1e35);
  border-radius: var(--radius); padding: 44px 32px;
  text-align: center; margin-bottom: 44px;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { font-size: 15px; color: #7aa8cc; margin-bottom: 24px; }
.cta-band-btn {
  background: var(--orange); color: #fff; border: none;
  padding: 16px 44px; border-radius: 8px; font-size: 16px;
  font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.cta-band-btn:hover { background: var(--orange2); }

/* ── TRUST STRIP ── */
.trust-strip { display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; padding: 20px 0 36px; border-top: 1px solid var(--border); }
.ts-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.ts-ck { color: var(--green); font-size: 15px; }

/* ── FOOTER ── */
.site-footer { background: var(--navy); padding: 24px; text-align: center; }
.site-footer p { font-size: 12px; color: #4a7090; line-height: 1.8; }
.site-footer a { color: #6a9ac8; text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .hero-inner { flex-direction: column; }
  .form-col { width: 100%; }
  .header-phone { display: none; }
}
@media (max-width: 480px) {
  .stats-inner { gap: 6px; }
  .stat-n { font-size: 18px; }
}
