/* ==========================================================================
   Colorado Springs Pest Control (CSPC) — main stylesheet
   Mobile-first, responsive, brand colors: green #4CAF50 / navy #14328C
   ========================================================================== */

:root {
  --green: #4CAF50;
  --green-dark: #3d8b40;
  --navy: #14328C;
  --navy-dark: #0d2266;
  --black: #111111;
  --white: #ffffff;
  --gray-light: #f4f6f8;
  --gray-mid: #6b7280;
  --gray-border: #e2e5e9;
  --shadow: 0 4px 14px rgba(17, 17, 17, 0.08);
  --radius: 10px;
  --max-width: 1180px;
  --font: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: #333; }

section { padding: 60px 0; }

.section-alt { background: var(--gray-light); }

.text-center { text-align: center; }

.eyebrow {
  display: inline-block;
  color: var(--green-dark);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.35);
}
.btn-primary:hover { background: var(--green-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(20, 50, 140, 0.3);
}
.btn-navy:hover { background: var(--navy-dark); }

.btn-block { width: 100%; }

/* -------------------- Header / Nav -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: var(--white); }
.topbar a:hover { color: var(--green); }
.topbar-item { display: flex; align-items: center; gap: 6px; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo svg, .logo img { width: 12px; height: 14px; flex-shrink: 0; object-fit: contain; }
.logo-text {
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.15;
  letter-spacing: 0.5px;
}
.logo-text .l1 { display: block; }
.logo-text .l2 { display: block; font-size: 0.95em; }
.logo-text .word-green { color: var(--green); }
.logo-text .word-navy { color: var(--navy); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 600;
  color: var(--black);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

.nav-cta { display: flex; align-items: center; gap: 12px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
}

/* -------------------- Hero -------------------- */
.hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 60%);
  color: var(--white);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero h1 .highlight { color: var(--green); }
.hero p.lead { color: #dbe2f5; font-size: 1.1rem; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero-badges {
  display: flex;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #cfd8f0;
}
.hero-badge svg { width: 20px; height: 20px; fill: var(--green); flex-shrink: 0; }

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual svg { width: 100%; max-width: 320px; }
.spider-badge {
  width: 220px;
  height: 220px;
  max-width: 60vw;
  max-height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #e7edfb);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.spider-badge img { width: 62%; height: auto; object-fit: contain; }

/* -------------------- Cards / Grids -------------------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(17,17,17,0.12); }

.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(76, 175, 80, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.icon-badge svg { width: 28px; height: 28px; fill: var(--green-dark); }

.card ul { margin: 0; padding-left: 20px; color: #444; }
.card ul li { margin-bottom: 6px; }

/* -------------------- Steps / Process -------------------- */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.step-num {
  counter-increment: step;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* -------------------- Testimonials -------------------- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green);
}
.stars { color: #f5b301; letter-spacing: 2px; margin-bottom: 10px; }
.testimonial .name { font-weight: 700; color: var(--navy); margin-top: 10px; }

/* -------------------- CTA band -------------------- */
.cta-band {
  background: var(--green);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band .btn-outline { border-color: var(--white); color: var(--white); }

/* -------------------- Forms -------------------- */
.form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.field input,
.field select,
.field textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--gray-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.85rem; color: var(--gray-mid); margin-top: 10px; }

/* -------------------- Map / contact info -------------------- */
.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-info-card h3 { color: var(--white); }
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-line svg { width: 22px; height: 22px; fill: var(--green); flex-shrink: 0; margin-top: 3px; }
.contact-line a, .contact-line span { color: #e4e9f7; }
.contact-line a:hover { color: var(--green); }
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 20px;
}
.map-frame iframe { width: 100%; height: 280px; border: 0; display: block; }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--black);
  color: #c9ccd1;
  padding: 50px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #2a2a2a;
}
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--green); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo svg { width: 32px; height: 38px; }
.footer-logo img {
  width: 32px;
  height: 38px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.footer-logo strong {
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}

/* -------------------- FAQ accordion -------------------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--green);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item[open] summary { border-bottom: 1px solid var(--gray-border); }
.faq-item .faq-answer { padding: 16px 22px 20px; color: #444; margin: 0; }

/* -------------------- Legal / plain content pages -------------------- */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { margin-top: 34px; }
.legal-content ul { color: #333; padding-left: 20px; }
.legal-updated { color: var(--gray-mid); font-size: 0.9rem; margin-bottom: 30px; }

/* -------------------- Truck / fleet photo -------------------- */
.truck-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

/* -------------------- Service area / SEO text block -------------------- */
.service-area-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.service-area-list li {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}

/* -------------------- Sticky mobile call bar -------------------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: var(--navy);
  padding: 10px 16px;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.2);
}
.mobile-call-bar .btn { width: 100%; }

/* -------------------- Responsive -------------------- */
@media (max-width: 991px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-visual { order: -1; max-width: 220px; margin: 0 auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-area-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar .container { justify-content: center; text-align: center; }
  .nav-links, .nav-cta-desktop { display: none; }
  .hamburger { display: flex; }
  .nav-cta { gap: 8px; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    gap: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
  .mobile-call-bar { display: block; }
  body { padding-bottom: 66px; }
  .service-area-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .logo-text { font-size: 0.95rem; }
  .hero { padding: 44px 0; }
}
