/* ===========================
   ACME ROOFING — DELTA CSS
   Loads after /pgm-base.css
   Overrides accent colors and carries all structural
   layout rules needed by the roofing niche pages.

   Accent palette (Storm Blue — trust-first for roofing):
     --pgm-accent:          #1565C0  (storm blue)
     --pgm-accent-deep:     #0D3F7E  (deep navy)
     --pgm-accent-rgb:      21, 101, 192
     --pgm-accent-deep-rgb: 13, 63, 126

   Rationale: Roofing has a trust problem — storm chasers,
   fly-by-night contractors, and insurance scams are common.
   Blue communicates reliability and professionalism over
   aggressive reds or oranges.
   =========================== */

/* ---- 1. ACCENT COLOR OVERRIDES ---- */
:root {
  --pgm-accent:          #1565C0;
  --pgm-accent-deep:     #0D3F7E;
  --pgm-accent-rgb:      21, 101, 192;
  --pgm-accent-deep-rgb: 13, 63, 126;
}

/* ---- 2. GLOBAL RHYTHM ---- */
#pgm-wrap { line-height: 1.55; }
#pgm-wrap p { margin: 0 0 12px; }
#pgm-wrap h1, #pgm-wrap h2, #pgm-wrap h3 { margin: 0 0 14px; }
#pgm-wrap .muted { opacity: .85; }

/* Sticky header breathing room */
#pgm-wrap main { padding-top: 18px; }

/* ---- 3. CONTAINER ---- */
#pgm-wrap .container {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (max-width: 820px) {
  #pgm-wrap .container {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* ---- 4. SECTIONS ---- */
#pgm-wrap .section { padding: 56px 0; }
#pgm-wrap .section--alt { padding: 60px 0; }
@media (max-width: 820px) {
  #pgm-wrap .section { padding: 46px 0; }
  #pgm-wrap .section--alt { padding: 50px 0; }
}

#pgm-wrap .section.section--tight { padding: 18px 0; }
#pgm-wrap .section.section--alt.section--tight { padding: 20px 0; }
#pgm-wrap .section.section--tight .section__head { margin-bottom: 12px; }
#pgm-wrap .section > .container > :last-child { margin-bottom: 0 !important; }
@media (max-width: 820px) {
  #pgm-wrap .section.section--tight { padding: 16px 0; }
  #pgm-wrap .section.section--alt.section--tight { padding: 18px 0; }
}

/* Section head */
#pgm-wrap .section__head { margin-bottom: 28px; }
#pgm-wrap .section__head h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.5px; }
#pgm-wrap .section__head .lead { color: var(--pgm-muted); max-width: 68ch; }

/* ---- 5. UTILITY SPACING ---- */
#pgm-wrap .mt-12 { margin-top: 12px; }
#pgm-wrap .mt-16 { margin-top: 16px; }
#pgm-wrap .mt-20 { margin-top: 20px; }
#pgm-wrap .mt-24 { margin-top: 24px; }
#pgm-wrap .mt-32 { margin-top: 32px; }
#pgm-wrap .mt-40 { margin-top: 40px; }

/* ---- 6. GRID & CARDS ---- */
#pgm-wrap .grid { gap: 22px; }
#pgm-wrap .card { padding: 22px; }
#pgm-wrap .card__text { margin-top: 10px; }

@media (max-width: 820px) {
  #pgm-wrap .grid { gap: 16px; }
  #pgm-wrap .card { padding: 18px; }
}

/* ---- 7. LISTS ---- */
#pgm-wrap .list { margin: 12px 0 0; padding-left: 18px; }
#pgm-wrap .list li { margin: 9px 0; }
@media (max-width: 820px) { #pgm-wrap .list li { margin: 7px 0; } }

/* Check list */
#pgm-wrap .list--checks {
  list-style: none;
  padding-left: 0;
  margin: 14px 0 0;
}
#pgm-wrap .list--checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0;
}
#pgm-wrap .list--checks li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  background: rgba(var(--pgm-accent-rgb), .18);
  border: 1px solid rgba(var(--pgm-accent-rgb), .35);
  box-shadow: 0 0 0 2px rgba(var(--pgm-accent-rgb), .08);
  margin-top: 2px;
  flex: 0 0 auto;
}

/* ---- 8. BUTTONS ---- */
#pgm-wrap .btn--block { margin-top: 10px; }

#pgm-wrap .btn.btn--primary {
  background: linear-gradient(180deg, rgba(var(--pgm-accent-rgb), .95), rgba(var(--pgm-accent-deep-rgb), .95));
  border: 1px solid rgba(var(--pgm-accent-rgb), .55);
  box-shadow: 0 10px 30px rgba(var(--pgm-accent-rgb), .18);
}
#pgm-wrap .btn.btn--primary:hover {
  box-shadow: 0 12px 34px rgba(var(--pgm-accent-rgb), .28);
  transform: translateY(-1px);
}

#pgm-wrap .btn.btn--ghost {
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.04);
}
#pgm-wrap .btn.btn--ghost:hover {
  border-color: rgba(255,255,255,.30);
  background: rgba(255,255,255,.06);
}

/* ---- 9. TOPBAR ---- */
#pgm-wrap .footer { padding: 34px 0; }

#pgm-wrap .topbar .topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}
#pgm-wrap .topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex: 0 0 auto;
}
#pgm-wrap .topbar .nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
}
#pgm-wrap .topbar .nav__link { white-space: nowrap; }
#pgm-wrap .topbar .topbar__cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  white-space: nowrap;
}
#pgm-wrap .topbar .topbar__cta .btn { width: auto; }

@media (max-width: 980px) {
  #pgm-wrap .topbar .topbar__inner {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
  }
  #pgm-wrap .topbar .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }
  #pgm-wrap .topbar .topbar__cta {
    order: 2;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* ---- 10. HERO ---- */
#pgm-wrap .hero { padding: 88px 0 64px; }
@media (max-width: 820px) { #pgm-wrap .hero { padding: 74px 0 54px; } }

#pgm-wrap .hero__inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-areas:
    "content panel"
    "actions trust";
  gap: 24px;
  align-items: start;
}
#pgm-wrap .hero__content { grid-area: content; min-width: 0; }
#pgm-wrap .hero__panel  { grid-area: panel;   min-width: 0; position: relative; top: 6px; }
#pgm-wrap .hero__actions { grid-area: actions; margin-top: 0; }
#pgm-wrap .hero__trust   { grid-area: trust;   margin-top: 0; gap: 12px; }
#pgm-wrap .chip { padding: 10px 12px; }

@media (max-width: 980px) {
  #pgm-wrap .hero__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "panel"
      "actions"
      "trust";
  }
}

/* Hero mini-points */
#pgm-wrap .hero__points {
  list-style: none;
  padding-left: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
  max-width: 60ch;
}
#pgm-wrap .hero__points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255,255,255,.88);
}
#pgm-wrap .hero__points li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  background: rgba(var(--pgm-accent-rgb), .18);
  border: 1px solid rgba(var(--pgm-accent-rgb), .35);
  box-shadow: 0 0 0 2px rgba(var(--pgm-accent-rgb), .08);
  margin-top: 2px;
  flex: 0 0 auto;
}

/* Hero qualifier line */
#pgm-wrap .hero__qualify { margin: 14px 0 0; max-width: 62ch; color: rgba(255,255,255,.86); }
#pgm-wrap .hero__qualify strong { color: rgba(255,255,255,.96); }

/* Hero actions */
#pgm-wrap .hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
}
#pgm-wrap .hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

/* ---- 11. ROOFING-SPECIFIC STYLES ---- */

/* Niche badge accent strip */
#pgm-wrap .niche-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--pgm-accent-rgb), .30);
  background: rgba(var(--pgm-accent-rgb), .08);
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
  margin-bottom: 14px;
}
#pgm-wrap .niche-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pgm-accent);
  box-shadow: 0 0 0 4px rgba(var(--pgm-accent-rgb), .18);
}

/* Service area pill list */
#pgm-wrap .area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
#pgm-wrap .area-pill {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  font-size: 13px;
  color: var(--pgm-muted);
}

/* Process step number */
#pgm-wrap .step-num {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pgm-accent), var(--pgm-accent-deep));
  border: 1px solid rgba(var(--pgm-accent-rgb), .40);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: #fff;
  margin-bottom: 12px;
  flex: 0 0 auto;
}

/* Info grid (hours / contact) */
#pgm-wrap .info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 560px) {
  #pgm-wrap .info-grid { grid-template-columns: 1fr; }
}

/* Booking placeholder block */
#pgm-wrap .booking-placeholder {
  min-height: 280px;
  border-radius: var(--pgm-radius-lg);
  border: 2px dashed rgba(var(--pgm-accent-rgb), .28);
  background: rgba(var(--pgm-accent-rgb), .03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  gap: 12px;
  margin-top: 14px;
}
#pgm-wrap .booking-placeholder .ph-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--pgm-accent);
}
#pgm-wrap .booking-placeholder p {
  color: var(--pgm-muted);
  max-width: 44ch;
  margin: 0;
}

/* Legal pages */
#pgm-wrap.pgm-legal .card { padding: 28px; }
#pgm-wrap.pgm-legal .card p,
#pgm-wrap.pgm-legal .card li { line-height: 1.7; }
#pgm-wrap.pgm-legal .card h2,
#pgm-wrap.pgm-legal .card h3 { margin-top: 24px; }
#pgm-wrap.pgm-legal ul { padding-left: 20px; margin: 10px 0 14px; }
#pgm-wrap.pgm-legal ul li { margin: 7px 0; }
