/* ===================================================
   Emergency Roof Repair Westminster CO
   Shared Stylesheet — All Pages
   Domain: emergencyroofrepairwestminsterco.us.com
=================================================== */

/* ===== CSS VARIABLES ===== */
:root {
  --navy: #0a1628;
  --navy-mid: #112240;
  --teal: #0e7490;
  --teal-light: #0891b2;
  --orange: #f97316;
  --orange-dark: #ea6c0a;
  --white: #ffffff;
  --off-white: #f8fafc;
  --light-grey: #f1f5f9;
  --mid-grey: #94a3b8;
  --text-dark: #1e293b;
  --text-body: #475569;
  --border: #e2e8f0;
  --green: #16a34a;
  --gold: #f59e0b;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text-body); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1,h2,h3,h4,h5 { color: var(--text-dark); line-height: 1.25; }

/* ===== UTILITY ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 56px 0; }
.section-label { display: inline-block; background: transparent; border: 2px solid var(--orange); color: var(--orange); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 14px; margin-bottom: 16px; }
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.text-white { color: var(--white) !important; }
.bg-navy { background: var(--navy); }
.bg-navy-mid { background: var(--navy-mid); }
.bg-teal { background: var(--teal); }
.bg-light { background: var(--light-grey); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; font-size: 1rem; font-weight: 700; border: none; cursor: pointer; transition: all 0.2s; text-align: center; justify-content: center; }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(249,115,22,0.4); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-mid); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-light); }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== ALERT BANNER ===== */
.alert-banner { background: var(--orange); color: var(--white); text-align: center; padding: 10px 24px; font-size: 0.9rem; font-weight: 600; position: relative; z-index: 1000; }
.alert-banner a { color: var(--white); text-decoration: underline; font-weight: 800; }

/* ===== NAVIGATION ===== */
.nav { background: var(--navy); position: sticky; top: 0; z-index: 999; box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; max-width: 1160px; margin: 0 auto; height: 68px; }
.nav-brand { display: flex; flex-direction: column; }
.nav-brand strong { color: var(--white); font-size: 1rem; font-weight: 800; line-height: 1.2; }
.nav-brand span { color: var(--teal-light); font-size: 0.7rem; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--mid-grey); font-size: 0.82rem; font-weight: 600; padding: 8px 9px; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta { background: var(--orange) !important; color: var(--white) !important; padding: 10px 16px !important; font-weight: 800 !important; margin-left: 6px; }
.nav-cta:hover { background: var(--orange-dark) !important; }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--white); font-size: 1.4rem; cursor: pointer; padding: 8px; }
.mobile-nav { display: none; background: var(--navy-mid); padding: 16px 24px; flex-direction: column; gap: 4px; }
.mobile-nav a { color: var(--mid-grey); padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.07); font-weight: 600; display: block; }
.mobile-nav .nav-cta { background: var(--orange); color: var(--white) !important; text-align: center; padding: 14px !important; margin-top: 8px; border-bottom: none; }

/* ===== BREADCRUMB ===== */
.breadcrumb { background: var(--navy-mid); padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.breadcrumb-inner { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.breadcrumb-inner a { color: var(--teal-light); }
.breadcrumb-inner a:hover { color: var(--orange); }
.breadcrumb-inner span { color: var(--mid-grey); }
.breadcrumb-inner .current { color: rgba(255,255,255,0.7); }

/* ===== PAGE HERO (supporting pages) ===== */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, #0d2137 50%, #0a3d52 100%); padding: 60px 0; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; opacity: 0.1; background-size: cover; background-position: center; }
.page-hero-inner { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: center; position: relative; z-index: 1; }
.page-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(249,115,22,0.15); border: 1px solid var(--orange); color: var(--orange); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 14px; margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 900; color: var(--white); line-height: 1.15; margin-bottom: 18px; }
.page-hero h1 .accent { color: var(--orange); }
.page-hero-sub { color: rgba(255,255,255,0.8); font-size: 1rem; margin-bottom: 24px; line-height: 1.7; }
.page-hero-checks { display: flex; flex-direction: column; gap: 9px; margin-bottom: 28px; }
.page-hero-checks li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500; }
.page-hero-checks li i { color: var(--orange); font-size: 0.85rem; }

/* ===== HERO FORM ===== */
.hero-form { background: var(--white); padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.hero-form h3 { color: var(--navy); font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.hero-form p { color: var(--text-body); font-size: 0.82rem; margin-bottom: 18px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 13px; border: 2px solid var(--border); font-size: 0.88rem; font-family: inherit; color: var(--text-dark); transition: border-color 0.2s; background: var(--white); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 72px; }
.form-submit { width: 100%; padding: 15px; background: var(--orange); color: var(--white); font-size: 0.95rem; font-weight: 800; border: none; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 10px; }
.form-submit:hover { background: var(--orange-dark); }
.form-privacy { text-align: center; font-size: 0.72rem; color: var(--mid-grey); margin-top: 8px; }

/* ===== STATS BAR ===== */
.stats-bar { background: var(--teal); padding: 24px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { text-align: center; padding: 0 16px; border-right: 1px solid rgba(255,255,255,0.2); }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 2rem; font-weight: 900; color: var(--white); line-height: 1; }
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.8); margin-top: 4px; font-weight: 500; }

/* ===== TRUST BAR ===== */
.trust-bar { background: var(--white); border-bottom: 3px solid var(--orange); padding: 18px 0; }
.trust-grid { display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 14px; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.trust-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.trust-icon.bbb { background: #003087; color: white; }
.trust-icon.licensed { background: var(--teal); color: white; }
.trust-icon.insured { background: var(--green); color: white; }
.trust-icon.google { background: #4285F4; color: white; }
.trust-icon.angi { background: #FF6B35; color: white; }
.trust-icon.workers { background: var(--navy); color: white; }
.trust-label { font-size: 0.75rem; font-weight: 700; color: var(--text-dark); text-align: center; line-height: 1.3; }
.trust-sub { font-size: 0.65rem; color: var(--mid-grey); text-align: center; }

/* ===== CONTENT SECTIONS ===== */
.section-heading { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 12px; }
.section-intro { max-width: 600px; margin: 0 auto; color: var(--text-body); line-height: 1.7; }

/* ===== SERVICE CARDS ===== */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.service-card { background: var(--white); border: 2px solid var(--border); padding: 24px; transition: all 0.2s; }
.service-card:hover { border-color: var(--orange); box-shadow: 0 8px 32px rgba(249,115,22,0.12); transform: translateY(-3px); }
.service-card-icon { width: 52px; height: 52px; background: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--white); margin-bottom: 14px; }
.service-card h3 { color: var(--navy); font-size: 1rem; margin-bottom: 8px; }
.service-card p { color: var(--text-body); font-size: 0.85rem; line-height: 1.6; margin-bottom: 14px; }
.service-card a { color: var(--orange); font-size: 0.82rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }

/* ===== PROCESS STEPS ===== */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 44px; position: relative; }
.steps::before { content: ''; position: absolute; top: 34px; left: 10%; right: 10%; height: 2px; background: var(--orange); z-index: 0; }
.step { text-align: center; position: relative; z-index: 1; padding: 0 10px; }
.step-num { width: 68px; height: 68px; background: var(--orange); color: var(--white); font-size: 1.5rem; font-weight: 900; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; border: 4px solid var(--white); box-shadow: 0 0 0 3px var(--orange); }
.step h4 { color: var(--navy); font-size: 0.9rem; margin-bottom: 6px; }
.step p { color: var(--text-body); font-size: 0.8rem; line-height: 1.5; }

/* ===== COMPARISON TABLE ===== */
.comparison-table { width: 100%; border-collapse: collapse; margin-top: 36px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.comparison-table th { padding: 16px 18px; font-size: 0.88rem; font-weight: 800; text-align: center; }
.comparison-table th:first-child { text-align: left; background: var(--light-grey); color: var(--text-dark); }
.comparison-table th.us { background: var(--orange); color: var(--white); }
.comparison-table th.them { background: var(--navy); color: var(--mid-grey); }
.comparison-table td { padding: 14px 18px; font-size: 0.85rem; text-align: center; border-bottom: 1px solid var(--border); }
.comparison-table td:first-child { text-align: left; font-weight: 600; color: var(--text-dark); background: var(--off-white); }
.comparison-table tr:last-child td { border-bottom: none; }
.check-yes { color: var(--green); font-size: 1.1rem; }
.check-no { color: #ef4444; font-size: 1.1rem; }
.check-maybe { color: var(--gold); font-size: 0.82rem; font-weight: 600; }

/* ===== REVIEWS ===== */
.review-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.review-card { background: var(--white); padding: 24px; border-top: 4px solid var(--orange); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.review-stars { color: var(--gold); font-size: 0.95rem; margin-bottom: 10px; }
.review-text { color: var(--text-body); font-size: 0.88rem; line-height: 1.7; margin-bottom: 14px; font-style: italic; }
.review-author { font-weight: 700; color: var(--text-dark); font-size: 0.88rem; }
.review-location { color: var(--mid-grey); font-size: 0.76rem; display: flex; align-items: center; gap: 4px; margin-top: 2px; }

/* ===== FAQ ===== */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.faq-item { border: 2px solid var(--border); overflow: hidden; }
.faq-question { padding: 16px 18px; background: var(--off-white); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-question h4 { color: var(--navy); font-size: 0.88rem; font-weight: 700; line-height: 1.4; }
.faq-question i { color: var(--orange); font-size: 0.85rem; flex-shrink: 0; transition: transform 0.2s; }
.faq-answer { padding: 16px 18px; background: var(--white); border-top: 2px solid var(--border); display: none; }
.faq-answer p { color: var(--text-body); font-size: 0.85rem; line-height: 1.7; }
.faq-item.open .faq-question { background: var(--navy); }
.faq-item.open .faq-question h4 { color: var(--white); }
.faq-item.open .faq-question i { transform: rotate(45deg); }
.faq-item.open .faq-answer { display: block; }

/* ===== INTERNAL LINKS (Related Services) ===== */
.related-services { background: var(--navy-mid); }
.related-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 32px; }
.related-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 20px 16px; text-align: center; transition: all 0.2s; }
.related-card:hover { background: rgba(249,115,22,0.15); border-color: var(--orange); }
.related-card i { font-size: 1.5rem; color: var(--orange); margin-bottom: 10px; display: block; }
.related-card h4 { color: var(--white); font-size: 0.82rem; font-weight: 700; line-height: 1.4; margin-bottom: 6px; }
.related-card span { color: var(--teal-light); font-size: 0.72rem; font-weight: 600; }

/* ===== INSURANCE SECTION ===== */
.insurance-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 36px; }
.insurance-step { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 24px 18px; text-align: center; }
.insurance-step-num { width: 44px; height: 44px; background: var(--orange); color: var(--white); font-size: 1.2rem; font-weight: 900; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.insurance-step h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 8px; }
.insurance-step p { color: var(--mid-grey); font-size: 0.8rem; line-height: 1.6; }
.insurance-logos { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1); }
.insurance-logo { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); font-size: 0.78rem; font-weight: 700; padding: 9px 18px; }

/* ===== FINAL CTA ===== */
.final-cta { background: var(--orange); padding: 72px 0; }
.final-cta h2 { color: var(--white); font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 900; margin-bottom: 14px; text-align: center; }
.final-cta p { color: rgba(255,255,255,0.9); font-size: 1.05rem; text-align: center; max-width: 580px; margin: 0 auto 32px; line-height: 1.7; }
.final-cta-buttons { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { background: var(--navy); padding: 52px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-brand strong { color: var(--white); font-size: 1rem; display: block; margin-bottom: 8px; }
.footer-brand p { color: var(--mid-grey); font-size: 0.82rem; line-height: 1.7; margin-bottom: 14px; }
.footer-phone { color: var(--orange); font-size: 1.2rem; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.footer-col h4 { color: var(--white); font-size: 0.88rem; font-weight: 700; margin-bottom: 14px; padding-bottom: 7px; border-bottom: 2px solid var(--orange); display: inline-block; }
.footer-col ul { display: flex; flex-direction: column; gap: 7px; }
.footer-col ul li a { color: var(--mid-grey); font-size: 0.82rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { color: var(--mid-grey); font-size: 0.78rem; }
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { color: var(--mid-grey); font-size: 0.78rem; }
.footer-bottom-links a:hover { color: var(--orange); }

/* ===== SMS WIDGET ===== */
.sms-widget { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sms-bubble { background: var(--white); color: var(--navy); font-size: 0.78rem; font-weight: 700; padding: 7px 13px; box-shadow: 0 4px 16px rgba(0,0,0,0.15); white-space: nowrap; border: 2px solid var(--orange); }
.sms-btn { width: 54px; height: 54px; background: var(--orange); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; box-shadow: 0 4px 16px rgba(249,115,22,0.4); transition: all 0.2s; }
.sms-btn:hover { transform: scale(1.1); }

/* ===== MOBILE STICKY ===== */
.mobile-sticky { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998; }
.mobile-sticky-inner { display: grid; grid-template-columns: 1fr 1fr; }
.mobile-sticky a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; font-size: 0.92rem; font-weight: 800; color: var(--white); }
.mobile-sticky .call-btn { background: var(--orange); }
.mobile-sticky .text-btn { background: var(--navy); }

/* ===== URGENCY TIMELINE ===== */
.timeline { display: flex; flex-direction: column; margin-top: 32px; }
.timeline-item { display: grid; grid-template-columns: 110px 1fr; border-bottom: 1px solid rgba(255,255,255,0.08); }
.timeline-item:last-child { border-bottom: none; }
.timeline-time { background: rgba(249,115,22,0.15); border-right: 3px solid var(--orange); padding: 18px 14px; display: flex; align-items: center; justify-content: center; }
.timeline-time span { color: var(--orange); font-weight: 800; font-size: 0.85rem; text-align: center; line-height: 1.3; }
.timeline-content { padding: 18px 22px; }
.timeline-content p { color: rgba(255,255,255,0.75); font-size: 0.87rem; line-height: 1.6; }
.timeline-content .cost { color: var(--orange); font-weight: 700; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .page-hero-inner { grid-template-columns: 1fr; }
  .hero-form { max-width: 500px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .review-cards, .service-cards { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding: 14px; }
  .insurance-steps { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-sticky { display: block; }
  .sms-widget { bottom: 76px; }
  .section-pad { padding: 52px 0; }
  .comparison-table { font-size: 0.78rem; }
  .comparison-table th, .comparison-table td { padding: 10px 8px; }
}
@media (max-width: 480px) {
  .insurance-steps { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .final-cta-buttons { flex-direction: column; }
  .btn-group { flex-direction: column; }
}
</style>
