/* Content Styles (Migrated) */
:root {
  /* Map Old Variables to New Stitch/Tailwind Colors */
  --green-primary: #009B77;
  /* Teal */
  --green-dark: #005F4B;
  /* Dark Teal */
  --green-hover: #007a5e;
  --green-light: #4ccbb3;

  --bg-white: #ffffff;
  --bg-off-white: #F8FAFC;
  /* Slate-50 */
  --bg-green-faint: #F0FDFA;
  /* Teal-50 */

  --text-dark: #0F172A;
  /* Slate-900 */
  --text-body: #334155;
  /* Slate-700 */
  --text-light: #64748B;
  /* Slate-500 */
  --text-white: #ffffff;

  --border-light: #E2E8F0;
  /* Slate-200 */
  --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  --font-main: 'Open Sans', sans-serif;
  --font-display: 'Montserrat', sans-serif;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Additional Helpers */
  --secondary: #F2A93B;
}

/* Shim for .container to match Tailwind max-w-7xl */
.container {
  width: 100%;
  max-width: 80rem;
  /* 7xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ===== RESET & BASE ===== */
@import url('https://fonts.googleapis.com/css2?family=dataset:Inter:wght@300;400;500;600&family=Playfair+Display:wght@400;600;700&display=swap');

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Vector Cero Brand Palette - Minimalist */
  --green-primary: #7C9537;
  --green-dark: #354C38;
  --green-hover: #6a802f;
  --green-light: #9AB856;

  /* Backgrounds */
  --bg-white: #ffffff;
  --bg-off-white: #fafbf8;
  /* Very subtle warm white */
  --bg-green-faint: #f4f7ef;

  /* Typography Colors */
  --text-dark: #1a1a1a;
  --text-body: #555555;
  --text-light: #888888;
  --text-white: #ffffff;

  /* UI Elements */
  --border-light: #e6e6e6;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.08);

  /* Fonts */
  --font-main: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;

  /* Spacing */
  --container-width: 1400px;
  /* Wider for modern look */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text-body);
  line-height: 1.8;
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5 {
  color: var(--text-dark);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}


/* Navbar & Header Removed for Stitch Integration */
/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  /* Focus on technician */
  z-index: 1;
}

.hero-overlay-card {
  position: absolute;
  top: 50%;
  left: 10%;
  /* Positioning from screenshot */
  transform: translateY(-50%);
  background: #2e4332;
  /* Dark green card */
  padding: 48px;
  border-radius: 20px;
  max-width: 480px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.hero-overlay-card::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(197, 217, 122, 0.3);
  /* Thin yellow border inside */
  border-radius: 16px;
  pointer-events: none;
}

.hero-brand-name {
  color: white;
  font-size: 1rem;
  margin-bottom: 20px;
  display: block;
  font-family: var(--font-main);
}

.hero-title {
  color: #dbeeb3;
  /* Yellowish green text */
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 32px;
  font-weight: 500;
}

.btn-hero-call {
  display: inline-block;
  border: 2px solid #dbeeb3;
  color: #dbeeb3;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
}

.btn-hero-call:hover {
  background: #dbeeb3;
  color: #2e4332;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
  .top-bar .container {
    padding: 0 20px;
  }

  .top-bar-logo {
    display: none;
  }

  /* On mobile usually logo moves */
  .main-nav .nav-links,
  .main-nav .btn-get-quote {
    display: none;
  }

  .mobile-toggle {
    display: block;
    color: #1a1a1a;
  }

  .hero-overlay-card {
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    padding: 32px;
  }

  .hero-title {
    font-size: 2rem;
  }
}


/* ===== SECTIONS ===== */
.section-tag {
  display: inline-block;
  background: var(--bg-green-faint);
  color: var(--green-primary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--green-dark);
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-body);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Features / Expertise */
.expertise,
.features-section {
  padding: 100px 0;
  background: var(--bg-white);
}

.expertise-grid,
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.expertise-card,
.feature-item {
  background: transparent;
  padding: 0;
  text-align: center;
}

.expertise-card:hover {
  transform: translateY(-5px);
}

.expertise-icon,
.feature-icon {
  font-size: 3rem;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--bg-green-faint);
  border-radius: 50%;
  color: var(--green-primary);
}

.expertise-card h3,
.feature-text h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.expertise-card p,
.feature-text p {
  color: var(--text-body);
  font-size: 1rem;
}

/* Coverage / Map Section */
.coverage {
  padding: 100px 0;
  background: var(--bg-off-white);
}

/* Pests Grid (Minimalist) */
.pests-section {
  padding: 100px 0;
  background: var(--bg-white);
}

.pest-carousel,
.pest-library-grid,
.pest-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.pest-card,
.pest-lib-card {
  background: var(--bg-off-white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}

.pest-card:hover,
.pest-lib-card:hover {
  background: white;
  border-color: var(--border-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-8px);
}

.pest-card-icon,
.pest-lib-card .emoji {
  font-size: 3.5rem;
  margin-bottom: 24px;
  display: block;
}

.pest-card h3,
.pest-lib-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.pest-card p,
.pest-lib-card p {
  font-size: 0.95rem;
  margin-bottom: 24px;
  color: var(--text-body);
}

.learn-more,
.card-link {
  color: var(--green-primary);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.learn-more:hover,
.card-link:hover {
  border-color: var(--green-primary);
}

/* FAQ */
.faq-section {
  padding: 100px 0;
  background: var(--bg-off-white);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.faq-question {
  padding: 24px 32px;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-dark);
}

.faq-question:hover {
  color: var(--green-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--bg-off-white);
}

.faq-answer-content {
  padding: 0 32px 32px;
  color: var(--text-body);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* CTA */
.cta-section {
  padding: 100px 0;
  background: var(--green-primary);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  color: white;
  font-size: 3rem;
  margin-bottom: 24px;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}


/* Footer Removed */
/* Mobile */
@media (max-width: 900px) {
  .container {
    padding: 0 20px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .expertise-grid,
  .features-grid,
  .dropdown-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-links,
  .nav-phone,
  .btn-quote {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }
}

/* Mobile Menu Overlay - Restored */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: white;
  z-index: 2000;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  transform: translateX(0);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
}

.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-dark);
  margin-bottom: 32px;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu ul li a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  display: block;
}

/* ===== COVERAGE DIAGRAM ===== */
.house-diagram {
  position: relative;
  width: 100%;
  height: 400px;
  background: #e8f0e0;
  /* Light green placeholder */
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 24px;
}

.house-icon-large {
  font-size: 8rem;
  opacity: 0.2;
}

.coverage-points {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.coverage-point {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

/* Approximate positions for dots */
.coverage-point:nth-child(1) {
  top: 20%;
  left: 50%;
}

/* A - Eaves */
.coverage-point:nth-child(2) {
  top: 40%;
  left: 20%;
}

/* B - Bedrooms */
.coverage-point:nth-child(3) {
  top: 70%;
  left: 80%;
}

/* C - Garage */
.coverage-point:nth-child(4) {
  top: 50%;
  left: 50%;
}

/* D - Living Room */
.coverage-point:nth-child(5) {
  top: 60%;
  left: 40%;
}

/* E - Kitchen */
.coverage-point:nth-child(6) {
  top: 80%;
  left: 20%;
}

/* F - Yard */
.coverage-point:nth-child(7) {
  top: 90%;
  left: 60%;
}

/* G - Foundation */
.coverage-point:nth-child(8) {
  top: 85%;
  left: 50%;
}

/* H - Basement */

.coverage-dot {
  width: 32px;
  height: 32px;
  background: var(--green-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
  border: 2px solid white;
}

.coverage-point:hover .coverage-dot {
  transform: scale(1.2);
  background: var(--green-dark);
}

.coverage-label {
  background: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.coverage-point:hover .coverage-label {
  opacity: 1;
}

.coverage-text {
  padding: 40px;
}

.coverage-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 32px;
}

.coverage-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--text-dark);
}

.check {
  color: var(--green-primary);
  font-weight: 800;
}

/* ===== BLOG SECTION ===== */
.blog-section {
  padding: 100px 0;
  background: var(--bg-white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.blog-card-img {
  height: 200px;
  background: var(--bg-green-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.blog-card-content {
  padding: 24px;
}

.blog-card-tag {
  color: var(--green-primary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card p {
  color: var(--text-body);
  font-size: 0.95rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 100px 0;
  background: var(--bg-off-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-stars {
  color: #FFC107;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-dark);
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: var(--green-dark);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.testimonial-author-info strong {
  display: block;
  color: var(--text-dark);
}

.testimonial-author-info span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== BADGES BAR ===== */
.badges-bar {
  background: var(--green-dark);
  padding: 40px 0;
  color: white;
  text-align: center;
}

.badges-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.badge-item:hover {
  opacity: 1;
}

.badge-icon {
  font-size: 2rem;
}

.badge-item span {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mobile Adjustments for new sections */
@media (max-width: 900px) {

  .coverage-list,
  .blog-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .badges-grid {
    gap: 32px;
  }

  .house-diagram {
    height: 300px;
  }
}

/* About Us Page Pattern */
.hero-pattern {
  background-image: radial-gradient(rgba(0, 155, 119, 0.1) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Library Page Styles */
.hero-overlay {
    background: linear-gradient(rgba(0, 143, 122, 0.85), rgba(0, 109, 93, 0.9));
}
.pest-icon-circle {
    transition-property: all;
    transition-duration: 500ms;
    border-width: 1px;
    border-color: #e2e8f0;
    background-color: white;
}
.pest-card-hover:hover .pest-icon-circle {
    transform: scale(1.1) translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 143, 122, 0.1), 0 10px 10px -6px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 143, 122, 0.4);
}
.pest-card-hover:hover h3 {
    color: var(--secondary);
    transform: translateY(-4px);
}
.pest-card-hover h3 {
    transition-property: all;
    transition-duration: 300ms;
}
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.zoom-reveal {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.zoom-reveal.active {
    opacity: 1;
    transform: scale(1);
}
.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }
.stagger-3 { transition-delay: 300ms; }
.stagger-4 { transition-delay: 400ms; }
.stagger-5 { transition-delay: 500ms; }
.stagger-6 { transition-delay: 600ms; }
