html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: #F0F2EC;
  color: #1a1f14;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Honeypot — off-screen but not display:none so bots still see it */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* Accent underline for section titles */
.title-rule {
  border-bottom: 3px solid #7AB648;
  padding-bottom: 4px;
  display: inline-block;
}

/* Mobile nav slide animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
#mobile-menu.open { max-height: 500px; }

/* Season filter active */
.season-btn.active {
  background: #1B2A5A;
  color: #F5F7F2;
  border-color: #1B2A5A;
}

/* Pest season badge colours */
.badge-spring    { background: #dcfce7; color: #166534; }
.badge-summer    { background: #fef9c3; color: #854d0e; }
.badge-fall      { background: #ffedd5; color: #9a3412; }
.badge-winter    { background: #dbeafe; color: #1e40af; }
.badge-yearround { background: #ede9fe; color: #5b21b6; }

/* Contact method radio card selected state */
.contact-opt.selected {
  background: #1B2A5A;
  color: #F5F7F2;
  border-color: #1B2A5A;
}

/* Pest checkbox card checked state */
.pest-opt.checked {
  background: rgba(27,42,90,0.07);
  border-color: #1B2A5A;
  color: #1B2A5A;
}

/* Day picker selected state */
.day-opt {
  user-select: none;
}
.day-opt.selected {
  background: #1B2A5A !important;
  color: #F5F7F2 !important;
  border-color: #1B2A5A !important;
  font-weight: 700;
}
.day-opt.maxed {
  background: #f3f4f6;
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: not-allowed;
  pointer-events: none;
}

/* Time window picker selected state */
.time-opt {
  user-select: none;
}
.time-opt.selected {
  background: #1B2A5A !important;
  color: #F5F7F2 !important;
  border-color: #1B2A5A !important;
  font-weight: 700;
}

/* Line clamp for card preview */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Pest detail modal ────────────────────────────────────────────── */
.pest-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 31, 20, 0.7);
  z-index: 200;
  display: flex;
  align-items: flex-end;   /* bottom sheet on mobile */
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  -webkit-overflow-scrolling: touch;
}
.pest-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.pest-modal-panel {
  background: #fff;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  transform: translateY(30px);
  transition: transform 0.3s ease;
  overscroll-behavior: contain;
}
.pest-modal-overlay.open .pest-modal-panel {
  transform: translateY(0);
}
/* Drag handle pill */
.pest-modal-panel::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: #d1d5db;
  border-radius: 2px;
  margin: 12px auto 0;
}
@media (min-width: 640px) {
  .pest-modal-overlay {
    align-items: center;
    padding: 1.5rem;
  }
  .pest-modal-panel {
    border-radius: 16px;
    max-width: 580px;
    transform: scale(0.96);
    transition: transform 0.25s ease;
  }
  .pest-modal-panel::before { display: none; }
  .pest-modal-overlay.open .pest-modal-panel {
    transform: scale(1);
  }
}

/* Card tap hint */
.pest-card { cursor: pointer; }
.pest-card:hover  { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(27,42,90,0.12); }
.pest-card:active { transform: translateY(-1px); }

/* Checkbox/radio accent colour */
input[type="checkbox"],
input[type="radio"] { accent-color: #1B2A5A; }

/* Form input error state */
.form-input { transition: border-color 0.15s, box-shadow 0.15s; }
.form-input:focus {
  outline: none;
  border-color: #7AB648;
  box-shadow: 0 0 0 2px rgba(122,182,72,0.3);
}
.form-input.error {
  border-color: #d63031;
  box-shadow: 0 0 0 2px rgba(214,48,49,0.2);
}

/* Nav CTA pulse glow */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(122,182,72,0.6); }
  50%       { box-shadow: 0 0 0 8px rgba(122,182,72,0); }
}
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}
