/* =========================================================
   Whack-A-Pest — design tokens + component styles
   Tailwind (CDN) handles layout utilities; this file covers
   colors, glass/gradient effects, and the custom component
   classes used in index.html that Tailwind can't express.
   ========================================================= */

:root {
  --background: #0a0e13;
  --surface: #12171d;
  --surface-elevated: #1a2129;
  --border: rgba(255, 255, 255, 0.08);
  --foreground: #f5f7f6;
  --muted-foreground: #98a3a0;
  --primary: #22c55e;
  --primary-light: #4ade80;
  --primary-foreground: #06170d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
section[id] { scroll-margin-top: 6rem; }

::selection { background: rgba(34, 197, 94, 0.35); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: var(--surface-elevated); border-radius: 9999px; }

/* ---------- header scroll state ---------- */
#site-header.scrolled {
  background: rgba(10, 14, 19, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.glass-nav {
  background: rgba(10, 14, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary) 60%, #16a34a);
}

.gradient-hero {
  background: linear-gradient(180deg, rgba(5, 8, 11, 0.55) 0%, rgba(5, 8, 11, 0.88) 55%, var(--background) 100%);
}

.gradient-glow {
  background: radial-gradient(600px circle at 15% 15%, rgba(34, 197, 94, 0.22), transparent 60%);
}

/* ---------- animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp 0.6s ease-out both; }

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}
.pulse-dot { display: inline-block; animation: pulseDot 2s ease-in-out infinite; }

/* ---------- section scaffolding ---------- */
.section-padding { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 640px) { .section-padding { padding-top: 5rem; padding-bottom: 5rem; } }
@media (min-width: 1024px) { .section-padding { padding-top: 6rem; padding-bottom: 6rem; } }

.eyebrow {
  display: block;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
@media (min-width: 640px) { .section-title { font-size: 2.5rem; } }
@media (min-width: 1024px) { .section-title { font-size: 3rem; } }

.section-sub {
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.7;
}
@media (min-width: 640px) { .section-sub { font-size: 1.125rem; } }
  /* ---------- services grid ---------- */
.service-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.75rem 1rem;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.4);
  background: var(--surface-elevated);
}
.service-icon {
  display: grid;
  place-items: center;
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
  background: rgba(34, 197, 94, 0.1);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.2);
  transition: background 0.3s ease, color 0.3s ease;
}
.service-card:hover .service-icon { background: var(--primary); color: var(--primary-foreground); }

/* ---------- why-choose-us cards ---------- */
.feature-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--background));
  padding: 1.5rem;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45);
  transition: border-color 0.3s ease;
}
.feature-card:hover { border-color: rgba(34, 197, 94, 0.4); }
.feature-icon {
  display: grid;
  place-items: center;
  height: 3rem;
  width: 3rem;
  border-radius: 0.75rem;
  flex-shrink: 0;
  background: rgba(34, 197, 94, 0.1);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.2);
  transition: background 0.3s ease, color 0.3s ease;
}
.feature-card:hover .feature-icon { background: var(--primary); color: var(--primary-foreground); }

/* ---------- commercial / residential split cards ---------- */
.split-card {
  position: relative;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.split-icon {
  display: grid;
  place-items: center;
  height: 3.5rem;
  width: 3.5rem;
  border-radius: 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
}
.tag {
  display: block;
  margin-top: 1.25rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--foreground);
  opacity: 0.85;
}

/* ---------- how-it-works steps ---------- */
.step-card {
  position: relative;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45);
}
.step-number {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

/* ---------- about ---------- */
.value-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
}
.about-quote-card {
  position: relative;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.about-quote-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at 75% 15%, rgba(34, 197, 94, 0.18), transparent 60%);
  pointer-events: none;
}
.about-quote-card > * { position: relative; z-index: 1; }

/* ---------- FAQ accordion ---------- */
.faq-item {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item:hover { border-color: rgba(34, 197, 94, 0.4); }
.faq-item.open { border-color: rgba(34, 197, 94, 0.5); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.25rem;
  background: transparent;
  border: 0;
  color: var(--foreground);
  cursor: pointer;
  font-size: 0.95rem;
}
.faq-chevron { transition: transform 0.3s ease, color 0.3s ease; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.25rem;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 320px; padding: 0 1.25rem 1.25rem; }

/* ---------- contact cards ---------- */
.contact-card {
  display: block;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.contact-card:hover { border-color: rgba(34, 197, 94, 0.4); background: var(--surface-elevated); }
.contact-icon {
  display: grid;
  place-items: center;
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(34, 197, 94, 0.1);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.2);
}

/* ---------- quote form ---------- */
.quote-form-card {
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.5);
}
.form-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.form-label:first-of-type { margin-top: 0; }
.form-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}
.form-input::placeholder { color: var(--muted-foreground); }
.form-input:focus { outline: none; border-color: rgba(34, 197, 94, 0.5); }
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a3a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}
textarea.form-input { resize: vertical; }

/* ---------- buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary) 60%, #16a34a);
  color: var(--primary-foreground);
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.5);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; filter: none; }
  /* ---------- final CTA panel ---------- */
.cta-panel {
  background: linear-gradient(135deg, #10151b, #0b0f13);
  position: relative;
}
.cta-panel::before {
  content: "";
  position: absolute;
  top: -4rem;
  right: -4rem;
  height: 18rem;
  width: 18rem;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.18);
  filter: blur(60px);
}
.cta-panel::after {
  content: "";
  position: absolute;
  bottom: -5rem;
  left: -3rem;
  height: 18rem;
  width: 18rem;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.1);
  filter: blur(60px);
}
.cta-panel > * { position: relative; z-index: 1; }
  /* ---------- floating WhatsApp button ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  display: grid;
  place-items: center;
  height: 3.5rem;
  width: 3.5rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 10px 30px -8px rgba(34, 197, 94, 0.65);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.whatsapp-fab:hover { transform: scale(1.06); filter: brightness(1.05); }

/* ----- The Kleeners additions: videos, carousel, lightbox, reviews, GLISS ----- */
.glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.review-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.25rem;
}
.stars { color: #F5A623; letter-spacing: 1px; font-size: 0.9rem; margin-bottom: 0.5rem; }

.video-reels {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.reel {
  width: min(260px, 80vw);
  aspect-ratio: 9 / 16;
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  position: relative;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,0.5);
}
.reel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reel-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  pointer-events: none;
}

.carousel-wrap {
  position: relative;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.carousel {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 14px;
  width: max-content;
  padding: 4px 2px;
}
.carousel-track img {
  flex: 0 0 auto !important;
  width: min(260px, 78vw) !important;
  aspect-ratio: 9 / 16 !important;
  height: auto !important;
  object-fit: cover !important;
  border-radius: 1rem;
  scroll-snap-align: start;
  cursor: pointer;
  border: 1px solid var(--border);
}
.carousel-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--foreground);
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-family: inherit;
}
.carousel-btn:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}
.carousel-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-top: 0.75rem;
}
@media (max-width: 600px) {
  .carousel-btn { display: none; }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lightbox[hidden] { display: none !important; }
.lightbox-img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 2;
}
.lightbox-close { top: 14px; right: 16px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 10px; }
.lightbox-nav.next { right: 10px; }
.lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}
@media (max-width: 600px) {
  .lightbox-nav { display: none; }
}

.gliss-credit {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.55), 0 0 18px rgba(34, 197, 94, 0.35);
}
.gliss-credit:hover {
  color: var(--primary-light);
  text-shadow: 0 0 12px rgba(34, 197, 94, 0.8), 0 0 28px rgba(34, 197, 94, 0.5);
}

.whatsapp-fab {
  background: #25D366 !important;
  color: #fff !important;
}
