/* Hampshire Roof Care — clean local-services design */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --navy: #14365a;
  --navy-dark: #0c2238;
  --blue: #2a6fb4;
  --slate: #4a5d75;
  --grey-bg: #f4f6f9;
  --grey-line: #e3e7ed;
  --text: #1c2733;
  --muted: #5d6c80;
  --accent: #f4a72c;
  --green: #2f8f4b;
  --white: #ffffff;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); margin: 0 0 0.5em; line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1100px, 92%); margin-inline: auto; }
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--navy-dark); }
.btn-primary:hover { background: #f5b54f; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { border: 2px solid var(--white); color: var(--white); padding: 12px 24px; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.btn-large { padding: 18px 32px; font-size: 1.1rem; }

/* Topbar */
.topbar { background: var(--navy-dark); color: var(--white); font-size: 0.9rem; padding: 8px 0; }
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.topbar a { color: var(--accent); font-weight: 600; }

/* Header */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); font-size: 1.15rem; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px;
  background: var(--navy);
  color: var(--white);
  border-radius: 7px;
  display: grid; place-items: center;
  font-size: 1.1rem; font-weight: 800;
}
nav.primary { display: flex; gap: 24px; }
nav.primary a { color: var(--slate); font-weight: 500; font-size: 0.97rem; }
nav.primary a:hover { color: var(--navy); text-decoration: none; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .phone { font-weight: 800; color: var(--navy); font-size: 1.05rem; }

/* Mobile nav toggle */
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; transition: 0.2s; }

@media (max-width: 880px) {
  nav.primary { display: none; }
  .menu-toggle { display: block; }
  nav.primary.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    padding: 16px 24px;
    border-bottom: 1px solid var(--grey-line);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
  }
  .header-cta .phone { display: none; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0c2238 0%, #1f4a7b 100%);
  color: var(--white);
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0 60 L100 30 L100 100 L0 100 Z" fill="rgba(255,255,255,0.04)"/></svg>') center/cover;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 700px; }
.hero .eyebrow { font-size: 0.95rem; font-weight: 600; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.hero .lede { font-size: 1.15rem; max-width: 620px; color: rgba(255,255,255,0.92); margin-bottom: 28px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero .trust { display: flex; gap: 28px; flex-wrap: wrap; font-size: 0.92rem; color: rgba(255,255,255,0.85); }
.hero .trust span { display: flex; align-items: center; gap: 8px; }
.hero .trust span::before {
  content: '✓';
  display: inline-block;
  width: 22px; height: 22px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.78rem; font-weight: 800;
}

/* Sections */
section { padding: 60px 0; }
section.alt { background: var(--grey-bg); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Service grid */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: 10px;
  padding: 28px 24px;
  transition: 0.2s;
}
.service-card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20,54,90,0.08); }
.service-card .icon {
  width: 52px; height: 52px;
  background: rgba(42,111,180,0.1);
  color: var(--blue);
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 16px; }
.service-card a { font-weight: 600; }

/* Why us / Features list */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.95rem; }
.feature .num {
  font-size: 1.6rem; font-weight: 800; color: var(--blue);
  margin-bottom: 8px; display: block;
}

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.step {
  background: var(--white);
  border-radius: 10px;
  padding: 26px 22px;
  border: 1px solid var(--grey-line);
  position: relative;
}
.step .step-num {
  background: var(--navy);
  color: var(--white);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  margin-bottom: 14px;
}

/* Areas */
.areas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.area-pill {
  background: var(--white);
  border: 1px solid var(--grey-line);
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}
.area-pill:hover { border-color: var(--blue); text-decoration: none; }

/* Stats band */
.stats {
  background: var(--navy);
  color: var(--white);
  padding: 40px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; text-align: center; }
.stat .number { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--accent); display: block; }
.stat .label { font-size: 0.95rem; color: rgba(255,255,255,0.85); }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.testimonial {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.stars { color: var(--accent); margin-bottom: 12px; font-size: 1.05rem; }
.testimonial p { font-style: italic; color: var(--text); flex-grow: 1; }
.testimonial .author { font-weight: 700; color: var(--navy); font-size: 0.93rem; margin-top: 12px; }
.testimonial .author span { display: block; color: var(--muted); font-weight: 500; font-size: 0.88rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #1f4a7b 0%, #14365a 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 24px; }

/* FAQ */
.faq-item {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  padding: 18px 22px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after { content: '+'; color: var(--blue); font-size: 1.5rem; font-weight: 700; transition: 0.2s; }
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 22px 18px; color: var(--text); }
.faq-a p { margin-bottom: 0.6em; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: 10px;
  padding: 30px;
}
.form-row { display: flex; flex-direction: column; margin-bottom: 16px; }
.form-row label { font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; color: var(--navy); }
.form-row input, .form-row textarea, .form-row select {
  padding: 12px 14px;
  border: 1px solid var(--grey-line);
  border-radius: 8px;
  font: inherit;
  background: var(--white);
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--grey-line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list strong { display: block; color: var(--navy); }

/* Footer */
footer.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  padding: 50px 0 20px;
  font-size: 0.93rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255,255,255,0.78); }
.footer-grid a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* Page-level helpers */
.page-hero { background: var(--navy-dark); color: var(--white); padding: 50px 0; }
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero .crumb { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-bottom: 14px; }
.page-hero .crumb a { color: var(--accent); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 22px; }
.prose ul li { margin-bottom: 0.5em; }
.callout-box {
  background: var(--grey-bg);
  border-left: 4px solid var(--blue);
  padding: 20px 22px;
  border-radius: 6px;
  margin: 24px 0;
}
.callout-box p:last-child { margin-bottom: 0; }
