/* ======================
   Global Reset & Basics
   ====================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #111827;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrapper {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ======================
   Header / Navigation
   ====================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 52px;
  height: auto;
  border-radius: 10px;
}

.nav-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-title span:first-child {
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #16a34a;
  font-size: 15px;
}

.nav-title span:last-child {
  font-size: 12px;
  color: #6b7280;
}

/* Desktop nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}

.nav-links a {
  position: relative;
  padding-bottom: 3px;
  color: #111827;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #16a34a;
  transition: width 0.18s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Burger button (hidden on desktop) */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 6px;
  margin-left: auto;
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  margin: 3px 0;
}

/* Mobile nav behaviour */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    gap: 6px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
    display: none; /* hidden by default */
  }

  .nav-links.nav-open {
    display: flex; /* shown when JS adds .nav-open */
  }
}

/* ======================
   Language Dropdown
   ====================== */
.nav-lang-dropdown {
  position: relative;
  margin-left: 1rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #ffffff;
  font-size: 12px;
  cursor: pointer;
  line-height: 1;
}

.lang-toggle span {
  font-weight: 500;
}

.lang-caret {
  font-size: 10px;
  opacity: 0.7;
}

.lang-flag-small {
  width: 18px;
  height: auto;
  border-radius: 2px;
  display: block;
}

/* Dropdown menu */
.lang-menu {
  position: absolute;
  right: 0;
  top: 110%;
  min-width: 150px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  padding: 6px 0;
  display: none;
  z-index: 40;
}

.lang-menu-open {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 13px;
  text-decoration: none;
  color: #0f172a;
}

.lang-option:hover {
  background: #f3f4f6;
}

/* Mobile positioning for dropdown */
@media (max-width: 768px) {
  .nav-lang-dropdown {
    margin-top: 4px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
}

/* ======================
   Hero Section
   ====================== */
.hero {
  padding: 40px 0 48px;
  background:
    radial-gradient(circle at top left, rgba(22, 163, 74, 0.09), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.04), transparent 55%);
  animation: heroFade 0.8s ease-out;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-grid-blog {
  grid-template-columns: minmax(0, 1fr);
}

.hero-text-block {
  animation: slideUp 0.7s ease-out;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #16a34a;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero-kicker span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #111827;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 12px 0 8px;
  color: #020617;
}

.hero-highlight {
  color: #16a34a;
}

.hero p {
  color: #4b5563;
  max-width: 580px;
  margin-bottom: 20px;
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: #16a34a;
  color: #f9fafb;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(22, 163, 74, 0.45);
}

.btn-outline {
  border: 1px solid #111827;
  color: #111827;
  background: #ffffff;
  font-weight: 500;
}

.btn-outline:hover {
  background: #f9fafb;
  transform: translateY(-2px);
}

.hero-note {
  font-size: 12px;
  color: #6b7280;
}

.hero-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecfdf3;
  font-size: 11px;
  color: #166534;
  border: 1px solid #bbf7d0;
  margin-top: 8px;
}

/* Trust badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 12px;
  color: #374151;
}

.trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #16a34a;
}

.hero-image-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.hero-anim {
  animation: floatHero 6s ease-in-out infinite;
}

.hero-image-card img {
  height: 100%;
  object-fit: cover;
}

.hero-image-footer {
  padding: 10px 14px;
  font-size: 11px;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.hero-blog {
  padding-bottom: 24px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 26px 0 32px;
  }

  .hero h1 {
    font-size: 26px;
  }
}

/* Hero animations */
@keyframes heroFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatHero {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

/* ======================
   Pest Carousel
   ====================== */
.pest-carousel {
  padding: 32px 0 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.pest-carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.pest-carousel-title {
  font-size: 20px;
  font-weight: 600;
  color: #020617;
}

.pest-carousel-subtitle {
  font-size: 13px;
  color: #6b7280;
}

.pest-carousel-track-wrapper {
  overflow: hidden;
  position: relative;
}

/* Track: always animating for continuous scroll on all devices */
.pest-carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: slidePests 26s linear infinite;
  will-change: transform;
}

/* slides */
.pest-slide {
  flex: 0 0 120px;
  text-align: center;
}

.pest-slide-inner {
  background: #f9fafb;
  border-radius: 16px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pest-slide-inner img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.pest-slide-inner:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.25);
}

.pest-name {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #111827;
}

/* fade edges */
.pest-carousel-track-wrapper::before,
.pest-carousel-track-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 26px;
  height: 100%;
  pointer-events: none;
}

.pest-carousel-track-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #ffffff, transparent);
}

.pest-carousel-track-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #ffffff, transparent);
}

/* small screens: slightly smaller cards */
@media (max-width: 600px) {
  .pest-slide {
    flex: 0 0 110px;
  }
}

/* keyframes for continuous scroll:
   since slides are duplicated in HTML (A B C ... A B C),
   -50% makes the loop seamless */
@keyframes slidePests {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ======================
   Generic Sections
   ====================== */
section {
  padding: 40px 0;
}

.section-title {
  font-size: 22px;
  margin-bottom: 6px;
  color: #020617;
}

.section-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 20px;
}

/* ======================
   Cards & Grids
   ====================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: #111827;
}

.card p {
  font-size: 14px;
  color: #4b5563;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

/* ======================
   Why Choose (subtle fade)
   ====================== */
.section-why .fade-container {
  animation: fadePulse 8s ease-in-out infinite;
}

@keyframes fadePulse {
  0%   { opacity: 0.93; transform: translateY(0); }
  50%  { opacity: 1; transform: translateY(-2px); }
  100% { opacity: 0.93; transform: translateY(0); }
}

/* ======================
   How It Works (green accent)
   ====================== */
.section-how .card {
  box-shadow: 0 16px 32px rgba(22, 163, 74, 0.12);
  border-color: #dcfce7;
}

/* ======================
   Blog previews on home
   ====================== */
.blog-section .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  .blog-section .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.blog-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.16);
}

.blog-content {
  padding: 14px 14px 12px;
}

.blog-meta {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 6px;
}

.blog-content h3 {
  font-size: 15px;
  margin: 0 0 6px;
  color: #111827;
}

.blog-content p {
  font-size: 13px;
  color: #4b5563;
  margin: 0 0 8px;
}

.blog-read-more {
  font-size: 13px;
  font-weight: 500;
  color: #16a34a;
}

/* ======================
   Blog Page Articles
   ====================== */
.blog-page {
  padding-top: 0;
}

.blog-article {
  margin: 40px 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.blog-article:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-article h2 {
  font-size: 22px;
  margin: 4px 0 10px;
  color: #020617;
}

.blog-article-image {
  border-radius: 16px;
  margin: 10px 0 12px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
}

.blog-article-body p {
  font-size: 15px;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* ======================
   Contact Page Layout
   ====================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
}

.contact-box {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.contact-line {
  margin-bottom: 8px;
  font-size: 14px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #111827;
  font-family: inherit;
  font-size: 13px;
}

.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-form button {
  margin-top: 10px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================
   CTA Section (bottom)
   ====================== */
.section-cta .card {
  text-align: left;
}

/* ======================
   Footer
   ====================== */
.site-footer {
  padding: 28px 0 18px;
  font-size: 12px;
  background: #16a34a;
  color: #e5e7eb;
  margin-top: 30px;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

.footer-column h3 {
  font-size: 14px;
  margin-bottom: 8px;
  color: #f9fafb;
}

.footer-column p,
.footer-column a,
.footer-column li {
  font-size: 12px;
  color: #e5e7eb;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 4px;
}

.footer-logo {
  width: 70px;
  border-radius: 12px;
  margin-bottom: 6px;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.footer-social img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

/* Bottom line */
.footer-bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.22);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom span {
  line-height: 1.4;
}

.builder-link {
  color: #facc15;
  font-weight: 600;
  text-decoration: none;
}

.builder-link:hover {
  text-decoration: underline;
}

/* Mobile footer alignment */
@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
  }
}

/* ======================
   Floating WhatsApp (mobile)
   ====================== */
.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 40;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #16a34a;
  color: #f9fafb;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.5);
}

.wa-circle {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid #f9fafb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.wa-circle::before {
  content: "☎";
  font-size: 11px;
  line-height: 1;
}

.wa-text {
  letter-spacing: 0.02em;
}

/* Show WhatsApp button only on mobile */
@media (max-width: 768px) {
  .whatsapp-float {
    display: inline-flex;
  }
}
