/* ============================================================
   Sherwood Storm Restoration — Main Stylesheet
   Colors: #0D2B4E (Deep Navy), #CC1F2A (Signal Red), #F5F7FA (BG)
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0D2B4E;
  --red: #CC1F2A;
  --bg: #F5F7FA;
  --text: #1A1A1A;
  --text-light: #4A5568;
  --white: #ffffff;
  --border: #E2E8F0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; font-size: 16px; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.4em; }

/* ---- UTILITY ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-alt { background: var(--white); padding: 64px 0; }
.text-center { text-align: center; }
.text-red { color: var(--red); }
.text-navy { color: var(--navy); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---- BUTTONS ---- */
.btn { display: inline-block; padding: 14px 32px; border-radius: 4px; font-weight: 700; font-size: 15px; cursor: pointer; border: none; text-decoration: none; transition: background 0.2s, transform 0.1s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #a81720; }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #0a1f38; }

/* ---- TOP BAR ---- */
.topbar { background: var(--red); color: var(--white); padding: 8px 0; font-size: 13px; font-weight: 600; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar a { color: var(--white); }
.topbar a:hover { text-decoration: underline; }

/* ---- HEADER / NAV ---- */
header { background: var(--navy); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; max-width: 1100px; margin: 0 auto; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 48px; width: auto; }
.nav-logo-text { color: var(--white); font-weight: 700; font-size: 18px; line-height: 1.2; }
.nav-logo-text span { display: block; color: var(--red); font-size: 13px; font-weight: 600; letter-spacing: 0.05em; }
nav ul { list-style: none; display: flex; gap: 4px; padding: 0; margin: 0; }
nav ul li a { color: #CBD5E0; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 4px; transition: color 0.2s, background 0.2s; display: block; }
nav ul li a:hover, nav ul li a.active { color: var(--white); background: rgba(255,255,255,0.1); text-decoration: none; }
nav ul li a.nav-cta { background: var(--red); color: var(--white); padding: 8px 18px; }
nav ul li a.nav-cta:hover { background: #a81720; }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- HERO ---- */
.hero { position: relative; background: var(--navy); color: var(--white); min-height: 520px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center top; opacity: 0.35; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,43,78,0.92) 0%, rgba(13,43,78,0.7) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 80px 24px; margin: 0 auto; }
.hero-badge { display: inline-block; background: var(--red); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; padding: 4px 14px; border-radius: 2px; margin-bottom: 16px; text-transform: uppercase; }
.hero h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero p { font-size: 1.15rem; opacity: 0.92; margin-bottom: 32px; max-width: 580px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust { margin-top: 40px; display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; opacity: 0.85; }
.hero-trust-item { display: flex; align-items: center; gap: 6px; }
.hero-trust-item::before { content: "✓"; color: var(--red); font-weight: 700; }

/* ---- TRUST BAR ---- */
.trust-bar { background: var(--white); border-bottom: 3px solid var(--red); padding: 20px 0; }
.trust-bar .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; text-align: center; }
.trust-item { padding: 12px; }
.trust-item .trust-num { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.trust-item .trust-label { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* ---- SECTION HEADINGS ---- */
.section-heading { text-align: center; margin-bottom: 48px; }
.section-heading h2 { font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.section-heading p { font-size: 1.05rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }
.section-heading .eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }

/* ---- SERVICES GRID ---- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.service-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: box-shadow 0.2s, transform 0.2s; }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card img { width: 100%; height: 200px; object-fit: cover; }
.service-card-body { padding: 24px; }
.service-card-body h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.service-card-body p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 16px; }
.service-card-body a { font-size: 14px; font-weight: 600; color: var(--red); }

/* ---- PROCESS STEPS ---- */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; counter-reset: step; }
.process-step { text-align: center; padding: 24px 16px; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.process-step h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.process-step p { font-size: 0.9rem; color: var(--text-light); }

/* ---- TESTIMONIALS ---- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial-card { background: var(--white); border-radius: 8px; padding: 28px; box-shadow: var(--shadow); border-left: 4px solid var(--red); }
.testimonial-stars { color: #F59E0B; font-size: 18px; margin-bottom: 12px; }
.testimonial-text { font-size: 0.95rem; color: var(--text); font-style: italic; margin-bottom: 16px; line-height: 1.6; }
.testimonial-author { font-weight: 700; color: var(--navy); font-size: 14px; }
.testimonial-location { font-size: 13px; color: var(--text-light); }

/* ---- CTA BAND ---- */
.cta-band { background: var(--navy); color: var(--white); padding: 64px 0; text-align: center; }
.cta-band h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.cta-band p { font-size: 1.1rem; opacity: 0.88; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .cta-phone { font-size: 2rem; font-weight: 800; color: var(--red); display: block; margin-bottom: 24px; }
.cta-band .cta-phone a { color: inherit; }

/* ---- GALLERY ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-grid img { border-radius: 8px; width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.2s; }
.gallery-grid img:hover { transform: scale(1.02); }

/* ---- ABOUT ---- */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-layout img { border-radius: 10px; width: 100%; }
.about-text h2 { font-size: 1.8rem; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.about-text p { color: var(--text-light); margin-bottom: 16px; }
.about-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.about-badge { background: var(--bg); border: 2px solid var(--navy); color: var(--navy); padding: 6px 16px; border-radius: 4px; font-size: 13px; font-weight: 700; }

/* ---- SERVICE AREA MAP ---- */
.map-embed { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-md); }
.map-embed iframe { width: 100%; height: 400px; border: none; display: block; }

/* ---- CONTACT FORM ---- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-form { background: var(--white); border-radius: 10px; padding: 36px; box-shadow: var(--shadow); }
.contact-form h2 { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; border: 2px solid var(--border); border-radius: 4px; font-size: 15px; color: var(--text); background: var(--bg); transition: border-color 0.2s; font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--navy); }
.form-group textarea { min-height: 120px; resize: vertical; }
.contact-info { padding: 8px 0; }
.contact-info h2 { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: 24px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-info-icon { width: 44px; height: 44px; background: var(--navy); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-info-text strong { display: block; color: var(--navy); font-weight: 700; margin-bottom: 2px; }
.contact-info-text a { color: var(--red); }

/* ---- FAQ ---- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-question { font-size: 1.05rem; font-weight: 700; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: "+"; font-size: 1.4rem; color: var(--red); font-weight: 400; }
.faq-answer { font-size: 0.95rem; color: var(--text-light); margin-top: 12px; line-height: 1.7; display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question::after { content: "−"; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero { background: var(--navy); color: var(--white); padding: 60px 0 48px; text-align: center; }
.page-hero .eyebrow { display: inline-block; background: var(--red); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; padding: 4px 14px; border-radius: 2px; margin-bottom: 16px; text-transform: uppercase; }
.page-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; }
.page-hero p { font-size: 1.1rem; opacity: 0.88; max-width: 600px; margin: 0 auto 24px; }
.breadcrumb { font-size: 13px; opacity: 0.7; margin-bottom: 16px; }
.breadcrumb a { color: #93C5FD; }
.breadcrumb span { margin: 0 6px; }

/* ---- FOOTER ---- */
footer { background: var(--navy); color: #94A3B8; padding: 56px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img { height: 48px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #94A3B8; font-size: 14px; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); text-decoration: none; }
.footer-nap { font-size: 14px; line-height: 1.8; }
.footer-nap strong { color: var(--white); }
.footer-nap a { color: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.footer-bottom a { color: #94A3B8; }
.footer-bottom a:hover { color: var(--white); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 16px; gap: 4px; border-top: 2px solid var(--red); }
  nav ul.open { display: flex; }
  nav ul li a { padding: 10px 16px; }
  header { position: relative; }
  .nav-inner { position: relative; }
  .hero h1 { font-size: 1.9rem; }
  .section-heading h2 { font-size: 1.6rem; }
  .cta-band h2 { font-size: 1.6rem; }
  .cta-band .cta-phone { font-size: 1.6rem; }
  .page-hero h1 { font-size: 1.7rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; }
  .trust-bar .container { grid-template-columns: 1fr 1fr; }
  .section { padding: 48px 0; }
  .section-alt { padding: 48px 0; }
}
