/* ============================================================
   Chester County Crawl Space Pros — Main Stylesheet
   Design: Deep slate + moisture blue + warm white
   Tone: Trustworthy, local, expert — not corporate
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fraunces:ital,wght@0,700;0,900;1,700&display=swap');

/* ---------- TOKENS ---------- */
:root {
  --navy:       #1a2b3c;
  --blue:       #2563a8;
  --blue-light: #3b82c4;
  --teal:       #0e7490;
  --cream:      #f8f6f1;
  --white:      #ffffff;
  --gray-100:   #f1f5f9;
  --gray-300:   #cbd5e1;
  --gray-500:   #64748b;
  --gray-700:   #334155;
  --text:       #1e293b;
  --accent:     #d97706;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius:  6px;
  --shadow:  0 2px 16px rgba(26,43,60,0.10);
  --shadow-lg: 0 8px 32px rgba(26,43,60,0.14);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; font-family: var(--font-body); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- LAYOUT ---------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section--gray { background: var(--gray-100); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--cream { background: var(--cream); }

/* ---------- HEADER / NAV ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1120px;
  margin: 0 auto;
  height: 68px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--white);
  line-height: 1.2;
}
.logo span { color: #60b4e8; }
.logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gray-300);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav { display: flex; align-items: center; gap: 6px; }
nav a {
  color: var(--gray-300);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
nav a:hover { color: var(--white); background: rgba(255,255,255,0.08); text-decoration: none; }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
}
.nav-cta:hover { background: #b45309 !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 60%, #0c2340 100%);
  color: var(--white);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563a8' fill-opacity='0.08'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(37,99,168,0.35);
  border: 1px solid rgba(96,180,232,0.3);
  color: #60b4e8;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { color: #60b4e8; font-style: normal; }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-badges {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 500;
}
.hero-badge::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- LEAD FORM CARD ---------- */
.lead-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
}
.lead-card h3 {
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 1.35rem;
}
.lead-card p {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.lead-card .phone-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  transition: background 0.15s;
}
.lead-card .phone-cta:hover { background: #b45309; text-decoration: none; }
.lead-card .divider {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.8rem;
  margin-bottom: 16px;
  position: relative;
}
.lead-card .divider::before,
.lead-card .divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--gray-300);
}
.lead-card .divider::before { left: 0; }
.lead-card .divider::after { right: 0; }

/* ---------- FORMS ---------- */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.15s;
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.btn-submit {
  width: 100%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 13px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
}
.btn-submit:hover { background: var(--blue-light); }
.form-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 10px;
}

/* ---------- TRUST BAR ---------- */
.trust-bar {
  background: var(--cream);
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
  padding: 20px 0;
}
.trust-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}
.trust-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* ---------- SECTION HEADERS ---------- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p { color: var(--gray-500); font-size: 1.05rem; }
.eyebrow {
  display: inline-block;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ---------- PROBLEM SECTION ---------- */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.problem-card {
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: 10px;
  padding: 28px 24px;
  border-top: 4px solid var(--blue);
}
.problem-icon { font-size: 2rem; margin-bottom: 14px; }
.problem-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.problem-card p { color: var(--gray-500); font-size: 0.9rem; }

/* ---------- SERVICES GRID ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--teal);
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--gray-500); font-size: 0.92rem; margin-bottom: 16px; }
.service-link {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.service-link:hover { text-decoration: none; color: var(--teal); }

/* ---------- WHY US ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.why-item { text-align: center; padding: 8px; }
.why-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: #60b4e8;
  line-height: 1;
  margin-bottom: 8px;
}
.why-item h4 { color: var(--white); margin-bottom: 8px; font-size: 1rem; }
.why-item p { color: rgba(255,255,255,0.68); font-size: 0.88rem; }

/* ---------- PROCESS ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--gray-300);
  z-index: 0;
}
.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}
.process-step h4 { margin-bottom: 6px; }
.process-step p { color: var(--gray-500); font-size: 0.85rem; }

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--white);
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 12px; }
.testimonial blockquote {
  color: var(--gray-700);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 16px;
  font-style: italic;
}
.reviewer { font-weight: 700; font-size: 0.875rem; color: var(--navy); }
.reviewer span { color: var(--gray-500); font-weight: 400; }

/* ---------- LOCATIONS ---------- */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.location-card {
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.location-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.location-card h4 { color: var(--navy); margin-bottom: 4px; }
.location-card p { color: var(--gray-500); font-size: 0.82rem; margin: 0; }

/* ---------- CTA BAND ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 32px; font-size: 1.05rem; }
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.btn-primary:hover { background: #b45309; text-decoration: none; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); text-decoration: none; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* ---------- INNER PAGE HERO ---------- */
.inner-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.inner-hero .eyebrow { color: #60b4e8; }
.inner-hero h1 { color: var(--white); margin-bottom: 14px; }
.inner-hero p { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 640px; margin: 0 auto 24px; }
.breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover { color: var(--white); }

/* ---------- CONTENT PAGE LAYOUT ---------- */
.content-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
.content-body h2 { margin: 36px 0 14px; }
.content-body h2:first-child { margin-top: 0; }
.content-body ul {
  list-style: none;
  margin-bottom: 1rem;
}
.content-body ul li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
  color: var(--gray-700);
}
.content-body ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ---------- SIDEBAR ---------- */
.sidebar { position: sticky; top: 88px; }
.sidebar-card {
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: 10px;
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.sidebar-card.primary {
  background: var(--navy);
  border-color: var(--navy);
}
.sidebar-card.primary h3 { color: var(--white); margin-bottom: 6px; }
.sidebar-card.primary p { color: rgba(255,255,255,0.75); font-size: 0.875rem; margin-bottom: 18px; }
.sidebar-card h3 { margin-bottom: 14px; font-size: 1.1rem; }
.sidebar-links { display: flex; flex-direction: column; gap: 6px; }
.sidebar-links a {
  color: var(--gray-700);
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-links a:hover { background: var(--gray-100); color: var(--blue); text-decoration: none; }
.sidebar-links a::before { content: '→'; color: var(--teal); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--gray-300);
  padding: 20px 0;
}
.faq-item:first-child { border-top: 1px solid var(--gray-300); }
.faq-q {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  font-size: 1.02rem;
}
.faq-a { color: var(--gray-700); font-size: 0.95rem; }

/* ---------- COST TABLE ---------- */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.92rem;
}
.cost-table th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.cost-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-300);
}
.cost-table tr:nth-child(even) td { background: var(--gray-100); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .lead-card { max-width: 480px; }
  .problems-grid,
  .why-grid,
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  nav { display: none; }
  nav.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 16px 24px; gap: 4px; border-top: 1px solid rgba(255,255,255,0.1); }
  nav.open a { padding: 10px 12px; }
  .hamburger { display: flex; }
  .site-header { position: relative; }
  .problems-grid,
  .why-grid,
  .testimonials-grid,
  .locations-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .trust-bar-inner { gap: 20px; }
  .hero { padding: 52px 0; }
  .hero-inner { gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
