/* ============================================
   Greenville Crawl Space Pros - Main Stylesheet
   greenvillecrawlspace.com
   Blue & Gray Professional Theme
   ============================================ */

:root {
  --primary: #1a3a5c;
  --primary-dark: #102740;
  --primary-light: #2257894;
  --accent: #2e86c1;
  --accent-hover: #1a6699;
  --gray-dark: #2c3e50;
  --gray-mid: #5d6d7e;
  --gray-light: #aab7b8;
  --gray-bg: #f4f6f8;
  --white: #ffffff;
  --success: #27ae60;
  --warning: #e67e22;
  --danger: #c0392b;
  --text-dark: #1c2833;
  --text-mid: #424949;
  --border: #d5d8dc;
  --shadow: 0 2px 12px rgba(26,58,92,0.10);
  --shadow-lg: 0 6px 32px rgba(26,58,92,0.16);
  --radius: 6px;
  --radius-lg: 12px;
  --font-main: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-heading: 'Inter', 'Segoe UI', Georgia, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; color: var(--text-mid); }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; color: var(--text-mid); }
li { margin-bottom: .4rem; }

/* ============ LAYOUT ============ */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--gray-bg); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* ============ HEADER / NAV ============ */
#top-bar {
  background: var(--primary-dark);
  padding: 8px 0;
  font-size: .88rem;
  color: var(--gray-light);
}
#top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#top-bar a { color: #fff; font-weight: 600; font-size:.95rem; }
#top-bar a:hover { color: var(--accent); }
.top-bar-phone { display: flex; align-items: center; gap: 6px; }
.top-bar-phone svg { width:16px; height:16px; }

header {
  background: var(--primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}
nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -.5px;
  text-decoration: none;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.logo span.brand-sub { font-weight: 400; color: var(--gray-light); font-size:.82rem; display:block; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.88);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.12); color: #fff; }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after { content: ' ▾'; font-size:.7rem; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  z-index: 999;
}
.dropdown a {
  display: block;
  color: var(--text-dark) !important;
  padding: 9px 18px !important;
  background: transparent !important;
  font-size: .9rem !important;
  border-radius: 0 !important;
  border-left: 3px solid transparent;
}
.dropdown a:hover { background: var(--gray-bg) !important; border-left-color: var(--accent); }
.has-dropdown:hover .dropdown { display: block; }

/* Mobile menu */
.hamburger {
  display: none;
  background: none; border: none;
  cursor: pointer;
  flex-direction: column; gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: .3s;
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--accent) 100%);
  color: #fff;
  padding: 90px 0 80px;
  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='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: .82rem; font-weight: 600;
  padding: 5px 14px; border-radius: 50px;
  margin-bottom: 20px; letter-spacing: .5px; text-transform: uppercase;
}
.hero h1 { color: #fff; margin-bottom: 20px; font-size: clamp(1.9rem, 4.5vw, 3rem); }
.hero h1 span { color: #7fc8e8; }
.hero p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 28px; }
.hero-bullets { list-style: none; padding: 0; margin-bottom: 32px; }
.hero-bullets li {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.9); font-size: .97rem;
  margin-bottom: 10px;
}
.hero-bullets li::before {
  content: '✓';
  width: 22px; height: 22px;
  background: var(--success);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero form card */
.hero-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
}
.hero-form-card h3 {
  font-size: 1.2rem; color: var(--primary);
  margin-bottom: 6px; text-align: center;
}
.hero-form-card p { font-size: .88rem; text-align: center; color: var(--gray-mid); margin-bottom: 20px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 700; font-size: .97rem;
  cursor: pointer; transition: all .2s;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(46,134,193,.4); }
.btn-secondary { background: #fff; color: var(--primary); border-color: #fff; }
.btn-secondary:hover { background: var(--gray-bg); color: var(--primary); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-phone { background: var(--success); color: #fff; }
.btn-phone:hover { background: #219a52; color: #fff; }
.btn-block { display: flex; width: 100%; }

/* ============ FORMS ============ */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--primary); margin-bottom: 5px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font-main);
  color: var(--text-dark);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46,134,193,.15);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-note { font-size: .78rem; color: var(--gray-mid); text-align: center; margin-top: 10px; }

/* ============ CARDS ============ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  transition: box-shadow .25s, transform .25s;
  border: 1px solid var(--border);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; fill: #fff; }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p { font-size: .92rem; margin-bottom: 0; }

/* Service cards */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow .25s, transform .25s;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex; align-items: center; justify-content: center;
}
.service-card-img svg { width: 64px; height: 64px; fill: rgba(255,255,255,.85); }
.service-card-body { padding: 22px 20px; }
.service-card-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service-card-body p { font-size: .9rem; margin-bottom: 14px; }

/* ============ WHY CHOOSE US ============ */
.trust-bar {
  background: var(--primary);
  padding: 20px 0;
}
.trust-items {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 32px;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.9); font-size: .93rem; font-weight: 500;
}
.trust-item svg { width: 20px; height: 20px; fill: var(--accent); flex-shrink: 0; }

/* ============ REVIEW STARS ============ */
.stars { color: #f39c12; font-size: 1.1rem; letter-spacing: 2px; }
.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.review-card p { font-size: .93rem; font-style: italic; margin-bottom: 14px; }
.reviewer { display: flex; align-items: center; gap: 10px; }
.reviewer-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.reviewer-name { font-weight: 700; font-size: .9rem; color: var(--primary); }
.reviewer-loc { font-size: .8rem; color: var(--gray-mid); }

/* ============ FAQ ============ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  font-weight: 600; font-size: .97rem; color: var(--primary);
  cursor: pointer;
  background: var(--white);
  transition: background .2s;
}
.faq-q:hover { background: var(--gray-bg); }
.faq-q .faq-icon { font-size: 1.2rem; color: var(--accent); transition: transform .3s; flex-shrink: 0; }
.faq-a { display: none; padding: 0 20px 16px; font-size: .93rem; color: var(--text-mid); }
.faq-item.open .faq-q { background: var(--gray-bg); }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ============ PROCESS STEPS ============ */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 56px; height: 56px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.2rem;
  margin: 0 auto 14px;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
}
.step h4 { font-size: .97rem; margin-bottom: 8px; }
.step p { font-size: .87rem; }

/* ============ CTA SECTION ============ */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 72px 0;
  text-align: center;
  color: #fff;
}
.cta-section h2 { color: #fff; margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-section .btn-ctas { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ============ BREADCRUMB ============ */
.breadcrumb {
  background: var(--gray-bg);
  padding: 12px 0;
  font-size: .85rem;
  border-bottom: 1px solid var(--border);
}
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
.breadcrumb li { display: flex; align-items: center; color: var(--gray-mid); }
.breadcrumb li + li::before { content: ' › '; margin: 0 6px; }
.breadcrumb a { color: var(--accent); }

/* ============ PAGE HERO (inner pages) ============ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 56px 0 48px;
  color: #fff;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 640px; }

/* ============ AREA HIGHLIGHTS ============ */
.area-highlight {
  background: linear-gradient(135deg, #eaf4fb 0%, #f4f6f8 100%);
  border: 1px solid #c8e0f0;
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  margin-bottom: 28px;
}
.area-highlight h3 { color: var(--primary); margin-bottom: 10px; }

/* ============ PROBLEM/INTENT PAGE ============ */
.problem-callout {
  background: #fef9f0;
  border-left: 4px solid var(--warning);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 24px;
}
.problem-callout h4 { color: var(--warning); margin-bottom: 6px; }
.problem-callout p { margin: 0; font-size: .94rem; }

.solution-callout {
  background: #eafaf1;
  border-left: 4px solid var(--success);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 24px;
}
.solution-callout h4 { color: var(--success); margin-bottom: 6px; }
.solution-callout p { margin: 0; font-size: .94rem; }

/* ============ STAT BOXES ============ */
.stat-box {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: .88rem; color: var(--gray-mid); font-weight: 500; }

/* ============ FOOTER ============ */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.75);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
footer h4 { color: #fff; font-size: .97rem; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-logo { color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; }
.footer-desc { font-size: .9rem; line-height: 1.7; margin-bottom: 16px; }
.footer-phone a { color: var(--accent); font-weight: 700; font-size: 1.1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--accent); }

/* ============ SCHEMA / SEO HIDDEN ============ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ============ THANK YOU PAGE ============ */
.thankyou-hero {
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  text-align: center; color: #fff;
  padding: 60px 20px;
}
.thankyou-check {
  width: 80px; height: 80px;
  background: var(--success);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.2rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-form-card { max-width: 480px; }
  .process-steps { grid-template-columns: repeat(2,1fr); }
  .process-steps::before { display: none; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--primary-dark); padding: 16px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links .has-dropdown .dropdown { position: static; box-shadow: none; background: rgba(255,255,255,.08); }
  .nav-links .dropdown a { color: rgba(255,255,255,.85) !important; }
  .hamburger { display: flex; }
  .trust-items { gap: 16px; justify-content: flex-start; }
  .trust-item { font-size: .85rem; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-ctas { flex-direction: column; }
  .btn-lg { width: 100%; }
  .cta-section .btn-ctas { flex-direction: column; align-items: center; }
  #top-bar .container { flex-direction: column; gap: 4px; text-align: center; }
}

@media (max-width: 480px) {
  .section { padding: 48px 0; }
  .hero { padding: 60px 0 48px; }
  h1 { font-size: 1.7rem; }
}
