/* ================================================
   Roof Rescue MI — Main Stylesheet
   ================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Source+Sans+3:wght@300;400;600&display=swap');

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Source Sans 3', sans-serif; font-size: 17px; color: #222; background: #fff; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: #c0392b; text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* Typography */
h1,h2,h3,h4,h5,h6 { font-family: 'Barlow Condensed', sans-serif; line-height: 1.15; color: #1a1a1a; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* Container */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ── HEADER ─────────────────────────────────── */
.site-header { background: #fff; border-bottom: 2px solid #e8e8e8; position: sticky; top: 0; z-index: 900; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; gap: 1rem; height: 72px; }
.logo-link { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-link img { height: 48px; width: auto; }
.logo-text { font-family: 'Barlow Condensed', sans-serif; font-size: 1.25rem; font-weight: 800; color: #1a1a1a; letter-spacing: .02em; white-space: nowrap; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: .15rem; flex-wrap: wrap; }
.main-nav a { padding: .4rem .65rem; font-size: .9rem; font-weight: 600; color: #333; border-radius: 4px; transition: background .2s, color .2s; }
.main-nav a:hover, .main-nav a.active { background: #c0392b; color: #fff; text-decoration: none; }
.header-phone { white-space: nowrap; font-weight: 700; color: #c0392b; font-size: .95rem; margin-left: .75rem; }
.header-phone:hover { text-decoration: none; color: #922b21; }
.header-phone i { margin-right: .3rem; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; margin-left: .5rem; }

/* ── HERO ────────────────────────────────────── */
.hero { background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%); color: #fff; padding: 6rem 1.5rem; text-align: center; position: relative; overflow: hidden; }
.hero::before { content:''; position:absolute; inset:0; background: url('/img/Professional-roofer-working-on-roof-restoration-in-Michigan.jpg') center/cover; opacity:.18; }
.hero-inner { position: relative; max-width: 860px; margin: 0 auto; }
.hero-label { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: #e74c3c; font-weight: 700; margin-bottom: 1rem; display: block; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero p { font-size: 1.2rem; color: #ddd; max-width: 680px; margin: 0 auto 2rem; }
.btn { display: inline-block; padding: .85rem 2rem; border-radius: 4px; font-weight: 700; font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; letter-spacing: .03em; transition: all .2s; text-decoration: none; }
.btn-primary { background: #c0392b; color: #fff; }
.btn-primary:hover { background: #a93226; text-decoration: none; color: #fff; }
.btn-secondary { background: transparent; color: #fff; border: 2px solid #fff; margin-left: 1rem; }
.btn-secondary:hover { background: #fff; color: #1a1a1a; text-decoration: none; }
.hero-note { font-size: .85rem; color: #aaa; margin-top: 1rem; }

/* ── FEATURE CARDS ───────────────────────────── */
.features { background: #f8f8f8; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.feature-card { background: #fff; padding: 2rem 1.5rem; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.06); text-align: center; }
.feature-icon { font-size: 2.2rem; margin-bottom: 1rem; display: block; }
.feature-card h3 { margin-bottom: .5rem; font-size: 1.2rem; }

/* ── SECTION HEADERS ─────────────────────────── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #c0392b; display: block; margin-bottom: .4rem; }
.section-header h2 { margin-bottom: .6rem; }
.section-header p { color: #555; max-width: 600px; margin: 0 auto; }

/* ── COMPARISON TABLE ────────────────────────── */
.comparison-table { width: 100%; border-collapse: collapse; margin-top: 2rem; box-shadow: 0 2px 16px rgba(0,0,0,.08); border-radius: 8px; overflow: hidden; }
.comparison-table th { background: #1a1a1a; color: #fff; padding: 1rem 1.5rem; font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; }
.comparison-table th:first-child { background: #111; }
.comparison-table td { padding: .85rem 1.5rem; border-bottom: 1px solid #eee; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: #fafafa; }
.comparison-table .yes { color: #27ae60; font-weight: 700; }
.comparison-table .no { color: #c0392b; }

/* ── HOW IT WORKS ────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 2rem; margin-top: 2.5rem; }
.step { text-align: center; }
.step-number { width: 56px; height: 56px; border-radius: 50%; background: #c0392b; color: #fff; font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.step h3 { margin-bottom: .5rem; }

/* ── CTA BAND ────────────────────────────────── */
.cta-band { background: #c0392b; color: #fff; text-align: center; padding: 4rem 1.5rem; }
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { font-size: 1.15rem; max-width: 600px; margin: 0 auto 2rem; color: #fdd; }
.cta-band .btn-white { background: #fff; color: #c0392b; font-size: 1.2rem; }
.cta-band .btn-white:hover { background: #f0e6e6; text-decoration: none; }
.cta-note { font-size: .85rem; color: #fdd; margin-top: 1rem; }

/* ── 2-COL CONTENT ───────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
@media(max-width:768px){ .two-col { grid-template-columns: 1fr; gap: 2rem; } .two-col.reverse { direction: ltr; } }

/* ── IMAGE GRIDS ─────────────────────────────── */
.img-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 2rem; }
.img-grid-3 img { border-radius: 6px; height: 220px; object-fit: cover; width: 100%; }
@media(max-width:600px){ .img-grid-3 { grid-template-columns: 1fr; } }

/* ── VALUES GRID ─────────────────────────────── */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 2rem; margin-top: 2.5rem; }
.value-card { padding: 1.75rem; border-left: 4px solid #c0392b; background: #fafafa; border-radius: 0 8px 8px 0; }
.value-icon { font-size: 1.8rem; margin-bottom: .75rem; display: block; }
.value-card h3 { margin-bottom: .5rem; }

/* ── TEAM GRID ───────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 2rem; margin-top: 2.5rem; }
.team-card { text-align: center; background: #fff; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.07); overflow: hidden; }
.team-card img { width: 100%; height: 260px; object-fit: cover; }
.team-card-body { padding: 1.25rem; }
.team-badge { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #c0392b; font-weight: 700; display: block; margin-bottom: .3rem; }
.team-card h3 { margin-bottom: .25rem; }
.team-role { color: #666; font-size: .95rem; }

/* ── STATS ROW ───────────────────────────────── */
.stats-row { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; margin: 2.5rem 0; text-align: center; }
.stat { }
.stat-number { font-family: 'Barlow Condensed', sans-serif; font-size: 3rem; font-weight: 800; color: #c0392b; line-height: 1; }
.stat-label { font-size: .9rem; color: #666; margin-top: .25rem; }

/* ── AREAS GRID ──────────────────────────────── */
.areas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 1rem; margin-top: 2rem; }
.area-card { background: #f5f5f5; border-radius: 6px; padding: 1.25rem 1rem; text-align: center; font-weight: 600; transition: background .2s, color .2s; }
.area-card:hover { background: #c0392b; color: #fff; text-decoration: none; }
.area-card a { color: inherit; font-weight: 700; font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; }

/* ── FAQ ─────────────────────────────────────── */
.faq-list { margin-top: 2rem; }
.faq-item { border-bottom: 1px solid #e0e0e0; padding: 1.25rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-family: 'Barlow Condensed', sans-serif; font-size: 1.2rem; font-weight: 700; color: #1a1a1a; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: '+'; font-size: 1.4rem; color: #c0392b; flex-shrink: 0; }
.faq-a { padding-top: .75rem; color: #444; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q::after { content: '−'; }

/* ── REVIEWS ─────────────────────────────────── */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 1.5rem; margin-top: 2rem; }
.review-card { background: #fff; border-radius: 8px; box-shadow: 0 2px 14px rgba(0,0,0,.08); padding: 1.75rem; }
.stars { color: #f39c12; font-size: 1.2rem; margin-bottom: .75rem; }
.review-text { color: #444; font-style: italic; margin-bottom: 1rem; }
.reviewer-name { font-weight: 700; color: #1a1a1a; }
.reviewer-location { font-size: .85rem; color: #888; }

/* ── CONTACT FORM ────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; }
@media(max-width:768px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { margin-bottom: 1rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-info-icon { font-size: 1.4rem; color: #c0392b; margin-top: .1rem; flex-shrink: 0; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .95rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: .75rem 1rem; border: 1.5px solid #ddd; border-radius: 5px; font-size: 1rem; font-family: 'Source Sans 3', sans-serif; transition: border-color .2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #c0392b; outline: none; }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(max-width:500px){ .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: #888; margin-top: .5rem; }

/* ── MAP EMBED ───────────────────────────────── */
.map-embed { border-radius: 8px; overflow: hidden; margin-top: 2rem; }
.map-embed iframe { width: 100%; height: 380px; border: none; }

/* ── VIDEO EMBED ─────────────────────────────── */
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── BLOG ────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 2rem; margin-top: 2.5rem; }
.blog-card { background: #fff; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.07); overflow: hidden; }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 1.5rem; }
.blog-card .post-meta { font-size: .82rem; color: #888; margin-bottom: .5rem; }
.blog-card h3 { margin-bottom: .5rem; font-size: 1.3rem; }
.blog-card h3 a { color: #1a1a1a; }
.blog-card h3 a:hover { color: #c0392b; text-decoration: none; }
.read-more { font-weight: 700; color: #c0392b; font-size: .9rem; }
.post-content h2 { margin: 2rem 0 1rem; }
.post-content h3 { margin: 1.75rem 0 .75rem; }
.post-content ul, .post-content ol { margin: 1rem 0 1rem 2rem; }
.post-content li { margin-bottom: .4rem; }
.post-content a { color: #c0392b; }

/* ── SERVICES PAGE ───────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 2rem; margin-top: 2.5rem; }
.service-card { background: #fff; border-radius: 8px; box-shadow: 0 2px 14px rgba(0,0,0,.08); overflow: hidden; transition: transform .2s; }
.service-card:hover { transform: translateY(-4px); }
.service-card img { width: 100%; height: 200px; object-fit: cover; }
.service-card-body { padding: 1.75rem; }
.service-card h3 { margin-bottom: .75rem; font-size: 1.5rem; }
.service-card p { color: #555; margin-bottom: 1.25rem; }
.service-cities { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.service-cities a { font-size: .8rem; background: #f0f0f0; border-radius: 3px; padding: .2rem .55rem; color: #444; transition: background .15s; }
.service-cities a:hover { background: #c0392b; color: #fff; text-decoration: none; }

/* ── CITY PAGE ───────────────────────────────── */
.city-hero { background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%); padding: 5rem 1.5rem; text-align: center; color: #fff; }
.city-hero h1 { color: #fff; margin-bottom: 1rem; }
.city-hero p { color: #ccc; max-width: 700px; margin: 0 auto 2rem; font-size: 1.1rem; }
.breadcrumb { font-size: .85rem; color: #aaa; margin-bottom: 1rem; }
.breadcrumb a { color: #e74c3c; }

/* ── FOOTER ──────────────────────────────────── */
.site-footer { background: #111; color: #ccc; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 4rem 1.5rem 2rem; display: grid; grid-template-columns: 180px 1fr 1fr; gap: 3rem; }
.footer-logo-col img { border-radius: 4px; }
.footer-nav-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav-col a { color: #bbb; font-size: .95rem; }
.footer-nav-col a:hover { color: #fff; text-decoration: none; }
.footer-contact-col p { font-size: .9rem; margin-bottom: .5rem; }
.footer-contact-col a { color: #bbb; }
.footer-contact-col a:hover { color: #fff; }
.footer-social { margin-top: 1rem; display: flex; gap: .75rem; }
.footer-social a { width: 36px; height: 36px; background: #333; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: .95rem; transition: background .2s, color .2s; }
.footer-social a:hover { background: #1877f2; color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid #2a2a2a; text-align: center; padding: 1.25rem 1.5rem; font-size: .82rem; color: #888; }
.footer-bottom a { color: #aaa; }
.footer-bottom a:hover { color: #fff; }

/* ── STICKY CTA ──────────────────────────────── */
.sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; background: #c0392b; z-index: 999; text-align: center; }
.sticky-cta a { display: block; padding: .85rem 1rem; color: #fff; font-weight: 700; font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; letter-spacing: .02em; }
.sticky-cta a:hover { text-decoration: none; background: #a93226; }
.sticky-cta i { margin-right: .4rem; }
body { padding-bottom: 52px; }

/* ── PRIVACY / GENERIC TEXT PAGE ─────────────── */
.text-page { max-width: 800px; margin: 4rem auto; padding: 0 1.5rem 4rem; }
.text-page h1 { margin-bottom: 2rem; }
.text-page h2 { margin: 2rem 0 .75rem; font-size: 1.4rem; }
.text-page ul, .text-page ol { margin: .75rem 0 1rem 2rem; }
.text-page li { margin-bottom: .4rem; }

/* ── RESPONSIVE ──────────────────────────────── */
@media(max-width:900px){
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-logo-col { grid-column: 1/-1; }
}
@media(max-width:768px){
  .main-nav { display: none; }
  .main-nav.open { display: block; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-top: 1px solid #eee; padding: 1rem 1.5rem; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
  .main-nav.open ul { flex-direction: column; gap: 0; }
  .main-nav.open a { display: block; padding: .7rem .5rem; border-bottom: 1px solid #f0f0f0; border-radius: 0; }
  .site-header { position: relative; }
  .nav-toggle { display: block; }
  .header-inner { flex-wrap: wrap; height: auto; padding: .75rem 1rem; }
}
@media(max-width:600px){
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 4rem 1rem; }
  .section { padding: 3rem 0; }
  .stats-row { gap: 1.5rem; }
}
