/* ============================================================
   Pristine Pest — Master Stylesheet
   Brand: Forest Green (#2E7D32) + Light Sage (#A5D6A7) + Deep Teal (#004D40)
   Domain: pestcontrolscarsdale.com
   ============================================================ */

/* --- Variables --- */
:root {
  --primary: #2E7D32;
  --primary-dark: #1B5E20;
  --secondary: #A5D6A7;
  --accent: #004D40;
  --accent-light: #00695C;
  --bg-light: #F5F9F6;
  --text-dark: #1A1A1A;
  --text-gray: #555555;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--primary); color: #fff; padding: .5rem 1rem;
  border-radius: 0 0 .375rem .375rem; z-index: 9999; font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
  position: sticky; top: 0; z-index: 100;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: .75rem 1.25rem;
}

.logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.logo-icon { width: 36px; height: 36px; }
.logo-text { font-size: 1.25rem; font-weight: 700; color: var(--primary); letter-spacing: -.01em; }
.logo-text span { color: var(--text-dark); }

/* Nav */
.hp-nav { display: flex; align-items: center; gap: .125rem; list-style: none; }

.hp-nav > li { position: relative; }

.hp-nav > li > a,
.hp-nav > li > button {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .8125rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #374151;
  padding: .5rem .75rem; border: none; background: none; cursor: pointer;
  transition: color .2s;
}
.hp-nav > li > a:hover,
.hp-nav > li > button:hover { color: var(--primary); }

.dropdown-icon { width: 12px; height: 12px; transition: transform .2s; }

/* Dropdown */
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid #E5E7EB; border-radius: .5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,.08); min-width: 220px;
  padding: .5rem 0; z-index: 200;
}
.dropdown-menu.active { display: block; }

.dropdown-menu a {
  display: block; padding: .5rem 1rem; font-size: .875rem; color: #374151;
  transition: background .15s, color .15s;
}
.dropdown-menu a:hover { background: var(--bg-light); color: var(--primary); }

/* Mobile toggle */
.mobile-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: .5rem;
}
.mobile-toggle svg { width: 24px; height: 24px; color: #374151; }

/* CTA header button */
.header-cta {
  display: inline-flex; align-items: center; gap: .375rem;
  background: var(--primary); color: #fff; font-size: .875rem; font-weight: 600;
  padding: .625rem 1.25rem; border-radius: 50px; border: none; cursor: pointer;
  text-transform: uppercase; letter-spacing: .04em; transition: background .2s;
}
.header-cta:hover { background: var(--primary-dark); color: #fff; }
.header-cta svg { width: 16px; height: 16px; }

/* ============================================================
   NOTICE BOX (Lead-Gen Disclaimer)
   ============================================================ */
.hp-notice-box {
  background: var(--secondary); border-bottom: 1px solid var(--primary);
  padding: .625rem 0;
}
.hp-notice-box__inner {
  display: flex; align-items: center; justify-content: center;
  max-width: 1200px; margin: 0 auto; padding: 0 1.25rem;
}
.hp-notice-box__icon { flex-shrink: 0; width: 18px; height: 18px; color: var(--accent); margin-right: .5rem; }
.hp-notice-box__text { font-size: .8125rem; color: var(--accent); font-weight: 500; }
.hp-notice-box__text a { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #fff 0%, var(--bg-light) 50%, var(--secondary) 100%);
  padding: 3.5rem 0;
}

.hero .container {
  display: flex; align-items: center; gap: 3rem;
  max-width: 1200px; margin: 0 auto; padding: 0 1.25rem;
}

.hero-content { flex: 1; max-width: 540px; }

.hero h1 {
  font-size: 2.375rem; font-weight: 700; color: var(--text-dark);
  line-height: 1.2; margin-bottom: 1rem;
}
.hero h1 span { color: var(--primary); }
.hero p {
  font-size: 1.0625rem; color: var(--text-gray); margin-bottom: 1.75rem; line-height: 1.7;
}

.hero-image {
  flex: 1; max-width: 540px;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.hero-image img { width: 100%; height: auto; object-fit: cover; }

.hero-cta-group { display: flex; gap: .75rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--primary); color: #fff; font-size: 1rem; font-weight: 600;
  padding: .875rem 2rem; border-radius: 50px; border: none; cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; color: var(--primary); font-size: 1rem; font-weight: 600;
  padding: .875rem 2rem; border-radius: 50px;
  border: 2px solid var(--primary); cursor: pointer; transition: background .2s;
}
.btn-secondary:hover { background: var(--bg-light); }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar { background: #fff; padding: 1rem 0; border-bottom: 1px solid #E8E8E8; }

.hp-trust-bar__list {
  display: flex; justify-content: center; flex-wrap: wrap;
  list-style: none; max-width: 1200px; margin: 0 auto;
}
.hp-trust-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem 1.5rem; color: var(--text-dark);
  font-size: .8125rem; font-weight: 600; white-space: nowrap;
}
.hp-trust-item + .hp-trust-item { border-left: 1px solid #DDD; }
.hp-trust-item__svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.services-section { padding: 3.5rem 0; background: var(--bg-light); }
.services-section h2 {
  text-align: center; font-size: 1.75rem; font-weight: 700;
  margin-bottom: .5rem; color: var(--text-dark);
}
.services-section .section-subtitle {
  text-align: center; font-size: 1rem; color: var(--text-gray);
  margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto;
}

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 1200px; margin: 0 auto;
}

.hp-svc-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #E8E8E8; border-radius: 12px;
  overflow: hidden; transition: box-shadow .2s, border-color .2s;
}
.hp-svc-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(46,125,50,.12); }

.hp-svc-card-image {
  width: 100%; height: 160px; object-fit: cover;
}

.hp-svc-card-content { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }

.hp-svc-card-header { margin-bottom: .625rem; }
.hp-svc-title { font-size: 1rem; font-weight: 700; color: var(--text-dark); }
.hp-svc-desc { font-size: .875rem; color: var(--text-gray); line-height: 1.6; margin-bottom: 1rem; flex: 1; }

.hp-svc-link {
  display: inline-flex; align-items: center; gap: .375rem;
  font-size: .8125rem; font-weight: 600; color: var(--primary);
}
.hp-svc-link svg { width: 14px; height: 14px; transition: transform .2s; }
.hp-svc-link:hover svg { transform: translateX(3px); }

/* ============================================================
   GLOSSARY & DIRECTORY
   ============================================================ */
.glossary-list, .directory-list {
  margin-top: 2rem;
}
.glossary-item, .directory-item {
  background: #fff; border: 1px solid #E8E8E8; border-radius: 12px;
  padding: 1.5rem; margin-bottom: 1rem; transition: border-color .2s;
}
.glossary-item:hover, .directory-item:hover { border-color: var(--primary); }
.glossary-item h3, .directory-item h3 {
  font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: .5rem;
}
.glossary-item p, .directory-item p { color: var(--text-gray); line-height: 1.6; }
.directory-item .dir-contact { margin-top: .75rem; font-size: .875rem; color: var(--primary); font-weight: 600; }
.directory-item .dir-website { margin-top: .5rem; font-size: .875rem; }
.directory-item .dir-website a { color: var(--primary); text-decoration: underline; }

/* ============================================================
   CONTENT SECTIONS (Articles, Service Pages)
   ============================================================ */
.content-section { padding: 3rem 0; }
.content-section:nth-child(even) { background: #F9F9F9; }

.article-content {
  max-width: 800px; margin: 0 auto; padding: 0 1.25rem;
}
.article-content h1 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.25; color: var(--text-dark); }
.article-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 1rem; color: var(--text-dark); }
.article-content h3 { font-size: 1.25rem; font-weight: 600; margin: 1.5rem 0 .75rem; color: var(--text-dark); }
.article-content p { margin-bottom: 1rem; color: var(--text-gray); }
.article-content ul, .article-content ol { margin: 1rem 0 1rem 1.5rem; color: var(--text-gray); }
.article-content li { margin-bottom: .5rem; }
.article-content img { border-radius: .5rem; margin: 1.5rem 0; }

.article-content blockquote {
  border-left: 4px solid var(--primary); background: var(--bg-light);
  padding: 1rem 1.5rem; margin: 1.5rem 0; border-radius: 0 .5rem .5rem 0;
  font-style: italic; color: var(--text-gray);
}

.article-content table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
  font-size: .9rem;
}
.article-content th {
  background: #0F766E; color: #fff; padding: .75rem 1rem;
  text-align: left; font-weight: 600;
}
.article-content td { padding: .75rem 1rem; border-bottom: 1px solid #E5E7EB; }
.article-content tr:hover { background: #F0FDFA; }

/* FAQ Section */
.faq-section { margin: 2.5rem 0; }
.faq-item { border-bottom: 1px solid #E5E7EB; padding: 1rem 0; }
.faq-question { font-size: 1.0625rem; font-weight: 600; color: #111827; margin-bottom: .5rem; }
.faq-answer { font-size: .9375rem; color: #374151; line-height: 1.65; }

/* ============================================================
   SERVICE AREA CARDS
   ============================================================ */
.sa-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem; margin: 2rem 0;
}
.sa-card {
  background: #fff; border: 1px solid #E8E8E8; border-radius: 12px;
  padding: 1.5rem; transition: border-color .2s, box-shadow .2s;
}
.sa-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(46,125,50,.1); }
.sa-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: .25rem; color: var(--text-dark); }
.sa-card .sa-zip { font-size: .8125rem; color: var(--text-gray); margin-bottom: .75rem; }
.sa-card p { font-size: .9rem; color: var(--text-gray); line-height: 1.6; margin-bottom: 1rem; }
.sa-card a { font-size: .875rem; font-weight: 600; color: var(--primary); }

/* ============================================================
   GLOSSARY
   ============================================================ */
.glossary-term {
  border-bottom: 1px dotted var(--primary); cursor: help; position: relative;
  color: inherit;
}
.glossary-tooltip {
  display: none; position: absolute; bottom: 100%; left: 50%;
  transform: translateX(-50%); background: #1A1A1A; color: #fff;
  padding: .75rem 1rem; border-radius: .5rem; font-size: .8125rem;
  line-height: 1.5; width: 280px; z-index: 300;
  box-shadow: 0 4px 12px rgba(0,0,0,.2); pointer-events: none;
}
.glossary-term:hover .glossary-tooltip { display: block; }
.glossary-tooltip::after {
  content: ''; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%); border: 6px solid transparent;
  border-top-color: #1A1A1A;
}

/* ============================================================
   CTA SECTIONS
   ============================================================ */
.cta-section {
  background: var(--bg-light);
  padding: 3.5rem 0; text-align: center; color: var(--text-dark);
  border-top: 1px solid #E8E8E8;
}
.cta-section h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: .75rem; }
.cta-section p { font-size: 1rem; color: var(--text-gray); margin-bottom: 1.5rem; }

.btn-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--primary); color: #fff; font-size: 1rem; font-weight: 600;
  padding: .875rem 2rem; border-radius: 50px; border: none; cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-cta:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }

.cta-phone {
  display: block; margin-top: 1rem; font-size: 1.5rem; font-weight: 700;
  color: var(--primary); letter-spacing: .02em;
}
.cta-phone a { color: var(--primary); }
.cta-phone a:hover { color: var(--primary-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #1A1A1A; color: rgba(255,255,255,.7); padding: 3rem 0 1.5rem; }

.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  max-width: 1200px; margin: 0 auto; padding: 0 1.25rem;
}
.footer-col h4 { color: #fff; font-size: .9375rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .875rem; transition: color .2s; }
.footer-col a:hover { color: var(--secondary); }
.footer-col p { font-size: .875rem; line-height: 1.6; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2rem; padding-top: 1.5rem; text-align: center;
  max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem;
}
.footer-bottom p { font-size: .75rem; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.5); }

/* ============================================================
   INFOGRAPHIC CONTAINER
   ============================================================ */
.infographic-container {
  margin: 2rem 0; text-align: center;
  background: #F9F9F9; border: 1px solid #E8E8E8; border-radius: .75rem;
  padding: 1.5rem; overflow-x: auto;
}
.infographic-container figcaption {
  font-size: .8125rem; color: var(--text-gray); margin-top: .75rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .container { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-image { max-width: 100%; width: 100%; }
  .hero-cta-group { justify-content: center; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 1.75rem; }
  .hero { padding: 2.5rem 0; }

  /* Mobile nav */
  .hp-nav {
    display: none; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid #E8E8E8; padding: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
  }
  .hp-nav.active { display: flex; }
  .hp-nav > li > a, .hp-nav > li > button { padding: .75rem 0; font-size: .875rem; }

  .dropdown-menu {
    position: static; border: none; box-shadow: none;
    padding-left: 1rem; background: #F9F9F9; border-radius: .375rem;
  }

  .mobile-toggle { display: block; }
  .header-cta { display: none; }

  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hp-trust-bar__list { justify-content: flex-start; }
  .hp-trust-item { padding: .5rem 1rem; font-size: .8125rem; }
  .hp-trust-item + .hp-trust-item { border-left: none; border-top: 1px solid #DDD; }
  .hp-trust-bar__list { flex-direction: column; align-items: center; }

  .footer-grid { grid-template-columns: 1fr; }
  .sa-grid { grid-template-columns: 1fr; }

  .hero-cta-group { flex-direction: column; align-items: center; }

  .glossary-tooltip {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
    transform: none; width: auto;
  }
}
