/*
Theme Name: Davenport Ant Control
Theme URI: https://davenportantcontrol.com
Description: White-label lead-gen theme for DavenportAntControl.com
Version: 1.0.0
*/

/* =====================================================
   CSS CUSTOM PROPERTIES
   ===================================================== */
:root {
  --orange: #FF6B00;
  --orange-dark: #e05e00;
  --dark: #1a1a1a;
  --gray: #4a4a4a;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --border: #e0e0e0;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-size-base: 1rem;
  --line-height: 1.65;

  --max-width: 1100px;
  --section-pad: clamp(3rem, 6vw, 5rem);
  --radius: 6px;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.5rem; }

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section { padding: var(--section-pad) 0; }
.section--alt { background: var(--light-gray); }
.section--orange { background: var(--orange); color: var(--white); }
.section--orange h2, .section--orange p { color: var(--white); }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  border: none;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--orange-dark);
  text-decoration: none;
  color: var(--white);
}
.btn--primary:active { transform: scale(0.98); }

.btn--large {
  padding: 1.1rem 2.25rem;
  font-size: 1.15rem;
}

.btn--white {
  background: var(--white);
  color: var(--orange);
}
.btn--white:hover { background: #f0f0f0; text-decoration: none; color: var(--orange); }

/* =====================================================
   SITE HEADER
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; color: var(--dark); }
.site-logo img { height: 40px; width: auto; }

/* Primary Nav */
.primary-nav { display: flex; align-items: center; gap: 0; list-style: none; padding: 0; margin: 0; }
.primary-nav a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.primary-nav a:hover { background: var(--light-gray); }

/* Header CTA */
.header-cta { flex-shrink: 0; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: transform 0.2s, opacity 0.2s;
}

/* =====================================================
   SITE FOOTER
   ===================================================== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 0;
  padding-bottom: calc(2.5rem + 60px);
}

@media (min-width: 768px) {
  .site-footer { padding-bottom: 2.5rem; }
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-phone {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}
.footer-phone:hover { color: var(--orange); text-decoration: none; }

.footer-service-area {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  color: rgba(255,255,255,0.6);
}

.footer-copy {
  width: 100%;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* =====================================================
   MOBILE STICKY BAR
   ===================================================== */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}
.mobile-sticky-bar:hover { background: var(--orange-dark); text-decoration: none; color: var(--white); }

@media (max-width: 767px) {
  .mobile-sticky-bar { display: flex; }
  .nav-toggle { display: flex; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 0.75rem 1rem; }
  .header-cta .btn { display: none; }
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: var(--white);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  text-align: center;
}

.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero .subheadline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* =====================================================
   TRUST STRIP
   ===================================================== */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

/* =====================================================
   SPECIES / SERVICE CARDS
   ===================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }

.card__name { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.3rem; }
.card__desc { font-size: 0.875rem; color: var(--gray); margin-bottom: 1rem; }
.card__link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange);
}

/* =====================================================
   HOW IT WORKS — 3 STEPS
   ===================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step { text-align: center; }
.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* =====================================================
   FAQ ACCORDION
   ===================================================== */
.faq-list { margin-top: 1.5rem; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--dark);
}
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.is-open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 0 1rem;
  color: var(--gray);
  font-size: 0.95rem;
}
.faq-item.is-open .faq-answer { display: block; }

/* =====================================================
   INLINE CTA BLOCK
   ===================================================== */
.cta-inline {
  background: var(--orange);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0;
}
.cta-inline__text {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
}
.cta-inline__sub {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  margin-top: 0.15rem;
}

/* =====================================================
   BOTTOM CTA SECTION
   ===================================================== */
.cta-bottom {
  background: var(--orange);
  padding: var(--section-pad) 0;
  text-align: center;
}
.cta-bottom h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-bottom p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
  font-size: 0.825rem;
  color: var(--gray);
  padding: 0.75rem 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb__sep { color: var(--border); }

/* =====================================================
   SPECIES / SERVICE PAGE SPECIFIC
   ===================================================== */
.species-hero-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.identifier-block {
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.identifier-block h3 { margin-bottom: 1rem; }
.identifier-list { list-style: none; padding: 0; }
.identifier-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
}
.identifier-list li::before { content: '→'; color: var(--orange); flex-shrink: 0; }
.identifier-list li:last-child { border-bottom: none; }

.service-link-block {
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Process steps for service pages */
.process-steps { counter-reset: step-counter; margin-top: 1.5rem; }
.process-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  counter-increment: step-counter;
}
.process-step::before {
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  flex-shrink: 0;
}

.guarantee-block {
  background: #fff8f0;
  border-left: 4px solid var(--orange);
  padding: 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

/* =====================================================
   BLOG
   ===================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.blog-card__img { width: 100%; height: 200px; object-fit: cover; }
.blog-card__body { padding: 1.25rem; }
.blog-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.blog-card__excerpt { font-size: 0.875rem; color: var(--gray); margin-bottom: 1rem; }

.post-content h2 { margin-top: 2rem; }
.post-content h3 { margin-top: 1.5rem; }
.post-content ul, .post-content ol { margin-bottom: 1rem; }
.post-content li { margin-bottom: 0.35rem; }

/* =====================================================
   SERVICE AREA MENTIONS
   ===================================================== */
.service-area-block {
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}
.service-area-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.service-area-cities span {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.2rem 0.75rem;
  font-size: 0.85rem;
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-phone-block {
  text-align: center;
  padding: 3rem 0;
}
.contact-phone-number {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  display: block;
}
.contact-phone-number:hover { color: var(--orange-dark); text-decoration: none; }

/* =====================================================
   SPECIES SHOWCASE (HOME PAGE)
   ===================================================== */
.section-subhead {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 0;
}

.species-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 1.5rem;
  margin-top: 2.5rem;
}

.species-card {
  flex: 0 0 210px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}
.species-card:hover { transform: translateY(-4px); text-decoration: none; }

.species-card img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.species-card__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--orange);
  margin-bottom: 0.35rem;
}

.species-card__desc {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.5;
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--orange);
  color: var(--orange);
}
.btn--outline:hover {
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
}

@media (max-width: 520px) {
  .species-card { flex: 0 0 calc(50% - 0.75rem); }
  .species-card img { height: 100px; }
}

/* =====================================================
   UTILITIES
   ===================================================== */
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
