/* ===== RESET & VARIABLES ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #e63946;
  --red-dark: #c1121f;
  --green: #2d6a4f;
  --green-light: #52b788;
  --green-bright: #95d5b2;
  --yellow: #ffd60a;
  --dark: #1a1a2e;
  --dark-soft: #2d2d44;
  --light: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 16px;
  --font-display: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--light);
  overflow-x: hidden;
  cursor: crosshair;
}

/* ===== PEST LAYER ===== */
#pest-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

.pest {
  position: absolute;
  font-size: 28px;
  user-select: none;
  transition: transform 0.1s linear;
  filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.3));
  z-index: 9998;
}

.pest.dying {
  animation: pestDie 0.8s ease forwards;
  pointer-events: none;
}

.pest.dead {
  opacity: 0;
  transform: scale(0) rotate(180deg) !important;
}

@keyframes pestDie {
  0% { transform: scale(1) rotate(0deg); opacity: 1; }
  30% { transform: scale(1.3) rotate(-20deg); opacity: 1; }
  60% { transform: scale(0.8) rotate(90deg) translateY(10px); opacity: 0.6; }
  100% { transform: scale(0) rotate(180deg) translateY(30px); opacity: 0; }
}

.pest.legs {
  animation: pestWiggle 0.3s ease infinite alternate;
}

@keyframes pestWiggle {
  from { transform: rotate(-5deg); }
  to { transform: rotate(5deg); }
}

/* ===== SPRAY CANVAS ===== */
#spray-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* ===== SPRAY HINT ===== */
.spray-hint {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  animation: hintBounce 2s ease infinite;
  transition: opacity 0.5s, transform 0.5s;
}

.spray-hint.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

@keyframes hintBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

.hint-icon {
  font-size: 1.3rem;
  animation: sprayPulse 1s ease infinite;
}

@keyframes sprayPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: all 0.3s;
  padding-top: env(safe-area-inset-top, 0px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--dark);
}

.nav-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--red);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
}

.logo-text strong {
  color: var(--red);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.nav-menu a:hover {
  background: var(--green-bright);
  color: var(--green);
}

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
}

.nav-cta:hover {
  background: var(--red-dark) !important;
  transform: scale(1.05);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 100px 24px 60px;
  background: linear-gradient(135deg, #e8f5e9 0%, #fff3e0 50%, #fce4ec 100%);
  overflow: hidden;
}

.hero-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--green);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--red);
  bottom: -50px;
  left: -50px;
  animation: float 6s ease-in-out infinite reverse;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--yellow);
  top: 50%;
  left: 50%;
  animation: float 10s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
  text-align: center;
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: block;
  width: fit-content;
  margin: 0 auto 24px;
  background: var(--red);
  color: var(--white);
  padding: 8px 24px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  animation: badgePulse 2s ease infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(230, 57, 70, 0); }
}

.hero-logo-wrap {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 auto 16px;
}

.hero-logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--white);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.hero-logo-ring {
  position: absolute;
  inset: -10px;
  border: 3px dashed var(--green);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--dark);
}

.hero h1 .highlight {
  color: var(--red);
  position: relative;
}

.hero h1 .highlight::after {
  content: '💨';
  position: absolute;
  right: -40px;
  top: 0;
  font-size: 0.6em;
  animation: sprayEmoji 2s ease infinite;
}

@keyframes sprayEmoji {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(10px); opacity: 0.5; }
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 16px;
  line-height: 1.8;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--dark-soft);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  gap: 8px;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.5);
}

.btn-secondary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(45, 106, 79, 0.4);
}

.btn-secondary:hover {
  background: #1b4332;
  transform: translateY(-3px);
}

.btn-spray {
  background: linear-gradient(135deg, var(--green-light), var(--green));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(82, 183, 136, 0.4);
}

.btn-spray:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(82, 183, 136, 0.5);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--dark-soft);
  font-weight: 600;
}

.hero-pest-demo {
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 2;
}

.demo-label {
  background: var(--yellow);
  color: var(--dark);
  padding: 10px 20px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  animation: demoWiggle 1.5s ease infinite;
  box-shadow: var(--shadow);
}

@keyframes demoWiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

/* ===== SECTIONS COMMON ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  background: var(--green-bright);
  color: var(--green);
  padding: 6px 16px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.section-header p {
  color: var(--dark-soft);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SERVICES ===== */
.services {
  padding: 100px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: attr(data-pest);
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 80px;
  opacity: 0.08;
  transform: rotate(15deg);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--green-light);
  box-shadow: var(--shadow);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
  transition: transform 0.3s;
}

.service-card:hover .service-icon {
  transform: scale(1.2) rotate(10deg);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--dark);
}

.service-card p {
  color: var(--dark-soft);
  line-height: 1.6;
}

/* ===== WHY US ===== */
.why-us {
  padding: 100px 0;
  background: linear-gradient(180deg, #e8f5e9 0%, var(--light) 100%);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  margin-bottom: 32px;
  color: var(--dark);
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.why-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.why-list strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 4px;
  color: var(--dark);
}

.why-list p {
  color: var(--dark-soft);
  line-height: 1.5;
}

.why-visual {
  display: flex;
  justify-content: center;
}

.spray-animation-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.why-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--red);
  position: relative;
  z-index: 2;
}

.spray-mist-visual {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(149, 213, 178, 0.6) 0%, transparent 70%);
  animation: mistPulse 3s ease infinite;
  z-index: 1;
}

@keyframes mistPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.dead-pests {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.dead-pests span {
  font-size: 2rem;
  opacity: 0.4;
  transform: rotate(90deg);
  animation: deadPest 4s ease infinite;
}

.dead-pests span:nth-child(2) { animation-delay: 0.5s; }
.dead-pests span:nth-child(3) { animation-delay: 1s; }

@keyframes deadPest {
  0%, 80%, 100% { opacity: 0.4; transform: rotate(90deg) scale(1); }
  90% { opacity: 0; transform: rotate(180deg) scale(0); }
}

.why-caption {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--green);
  font-size: 1.1rem;
}

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.contact-card.highlight-card {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
}

.contact-card.highlight-card p {
  color: rgba(255,255,255,0.9);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.contact-card a {
  display: block;
  color: var(--red);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
  transition: color 0.2s;
}

.contact-card a:hover {
  color: var(--red-dark);
}

.contact-card.highlight-card a {
  color: var(--white);
}

.contact-card p {
  color: var(--dark-soft);
  line-height: 1.6;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 3px solid var(--red);
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-display);
  margin-bottom: 16px;
  color: var(--green-bright);
}

.footer-links a,
.footer-contact a {
  display: block;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--green-bright);
}

.footer-contact p {
  color: rgba(255,255,255,0.7);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* ===== PEST TOGGLE ===== */
.pest-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--white);
  color: var(--dark);
  border: 2px solid var(--green-light);
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 1001;
  transition: all 0.3s;
}

.pest-toggle:hover {
  background: var(--green-bright);
  border-color: var(--green);
  transform: translateY(-2px);
}

.pest-toggle.off {
  background: var(--light);
  border-color: #ccc;
  color: var(--dark-soft);
}

.pest-toggle-icon {
  font-size: 1.2rem;
  line-height: 1;
}

body.pests-off {
  cursor: default;
}

body.pests-off #pest-layer,
body.pests-off #spray-canvas,
body.pests-off .spray-hint,
body.pests-off .hero-pest-demo {
  display: none !important;
}

/* ===== FLOATING CALL ===== */
.floating-call {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.5);
  z-index: 1001;
  animation: callPulse 2s ease infinite;
  transition: transform 0.3s;
  border: 3px solid var(--white);
}

.floating-call .call-icon {
  width: 28px;
  height: 28px;
  color: var(--white);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.floating-call:hover {
  transform: scale(1.1);
  background: var(--red-dark);
}

@keyframes callPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(230, 57, 70, 0.5); }
  50% { box-shadow: 0 4px 30px rgba(230, 57, 70, 0.8), 0 0 0 10px rgba(230, 57, 70, 0.2); }
}

/* ===== SPRAY CURSOR EFFECT ===== */
.spray-burst {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: calc(72px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 0 24px;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    max-height: 80vh;
    padding: 24px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .hero {
    padding-top: calc(100px + env(safe-area-inset-top, 0px));
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-pest-demo {
    display: none;
  }

  .spray-hint {
    font-size: 0.8rem;
    padding: 10px 16px;
    bottom: 80px;
  }

  .pest-toggle {
    left: 16px;
    bottom: 16px;
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  .pest-toggle-text {
    max-width: 110px;
    line-height: 1.2;
    text-align: left;
  }
}
