/* ============================================================
   SYDNEY PEST REMOVAL — custom.css
   Mobile-first · High-conversion · Google Ads optimised
   Brand: #43B047 green
   ============================================================ */

/* --- CSS VARIABLES --- */
:root {
  --green:             #43B047;
  --green-dark:        #36953B;
  --green-light:       #e8f5e9;
  --yellow:            #fbbf24;
  --color-primary:     #43B047;
  --color-primary-hover:#36953B;
  --color-secondary:   #ffffff;
  --color-text-dark:   #1f2937;
  --color-text-body:   #374151;
  --color-background:  #f9fafb;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --- BASE --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-text-body);
  /* prevent horizontal scroll on mobile */
  overflow-x: hidden;
  max-width: 100vw;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- MOBILE TAP TARGETS --- */
a, button {
  -webkit-tap-highlight-color: rgba(67,176,71,0.15);
}

/* ============================================================
   HERO SECTION — iOS Safari safe (no background-attachment:fixed)
   ============================================================ */
.hero-bg,
.hero-modern {
  background-attachment: scroll !important; /* iOS Safari fix */
  background-size: cover !important;
  background-position: center top !important;
}

/* ============================================================
   PREMIUM BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--green);
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 0.625rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(67,176,71,0.35);
  letter-spacing: 0.02em;
  min-height: 48px;
  font-size: 1rem;
}
.btn-primary:hover {
  background-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(67,176,71,0.45);
}
.btn-primary:active { transform: scale(0.97); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 0.625rem;
  border: 2px solid #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  letter-spacing: 0.02em;
  min-height: 48px;
  font-size: 1rem;
}
.btn-outline:hover {
  background-color: #fff;
  color: var(--green);
  transform: translateY(-1px);
}

/* ============================================================
   SCROLL-REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   TRUST BADGE BAR
   ============================================================ */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 0.75rem 0;
}
.trust-bar span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: #4b5563;
  font-weight: 600;
}

/* ============================================================
   PREMIUM CARD HOVER — lift + green left accent
   ============================================================ */
.card-premium {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
  border-left: 4px solid transparent;
}
.card-premium:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.12);
  border-left-color: var(--green);
}

/* ============================================================
   SECTION TITLE UNDERLINE
   ============================================================ */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
  margin: 0.6rem auto 0;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
  padding: 0 1.5rem;
}
.faq-item.faq-open .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
}
.faq-item .faq-icon { transition: transform 0.3s ease; }
.faq-item.faq-open .faq-icon { transform: rotate(45deg); }

/* Legacy group.active accordion */
.group.active .hidden {
  display: block !important;
  animation: slideDown 0.25s ease-out;
}
.group.active svg { transform: rotate(45deg); }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   STATS COUNTER
   ============================================================ */
.stats-counter {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #43B047, #36953B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   PULSE CTA
   ============================================================ */
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(67,176,71,0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(67,176,71,0); }
}
.cta-pulse { animation: cta-pulse 2s ease-in-out infinite; }

/* ============================================================
   STICKY MOBILE CALL BAR
   ============================================================ */
#mobile-call-bar {
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

/* ============================================================
   NAVIGATION — dropdown scrollbar
   ============================================================ */
.group:hover .overflow-y-auto::-webkit-scrollbar { width: 4px; }
.group:hover .overflow-y-auto::-webkit-scrollbar-track { background: #f1f5f9; }
.group:hover .overflow-y-auto::-webkit-scrollbar-thumb { background: var(--green); border-radius: 4px; }
#mobile-menu-panel::-webkit-scrollbar { width: 4px; }
#mobile-menu-panel::-webkit-scrollbar-track { background: #f9fafb; }
#mobile-menu-panel::-webkit-scrollbar-thumb { background: var(--green); border-radius: 4px; }

/* ============================================================
   FA ICON FIXES
   ============================================================ */
.why-icon i, .service-icon i { font-size: 1.5rem; }

/* ============================================================
   FORM FOCUS STYLING
   ============================================================ */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green) !important;
  box-shadow: 0 0 0 3px rgba(67,176,71,0.15) !important;
}

/* ============================================================
   FEATURE CARD (home floating section)
   ============================================================ */
.feature-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
}
@media (min-width: 769px) {
  .feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--green);
    box-shadow: 0 25px 50px -12px rgba(67,176,71,0.25);
  }
}
@media (max-width: 768px) {
  .feature-card { transform: none !important; }
}

/* ============================================================
   PROSE / BLOG CONTENT
   ============================================================ */
.prose, .prose * { color: var(--color-text-body) !important; }
.prose h1,.prose h2,.prose h3,.prose h4,.prose h5,.prose h6 { color: var(--color-text-dark) !important; }
.prose a { color: var(--green) !important; text-decoration: none; }
.prose a:hover { color: var(--green-dark) !important; text-decoration: underline; }
.prose strong, .prose b { color: var(--color-text-dark) !important; font-weight: 700; }
@media (max-width: 640px) {
  .prose { overflow-wrap: break-word; word-wrap: break-word; hyphens: auto; }
  .prose table { display: block; overflow-x: auto; }
}

/* ============================================================
   MOBILE — hero form & page spacing
   ============================================================ */
@media (max-width: 767px) {
  /* Space for sticky call bar at bottom */
  body { padding-bottom: 68px; }

  /* WhatsApp button above call bar */
  #floatingWA { bottom: 88px !important; }

  /* Hero min-height */
  .hero-bg { min-height: 100svh !important; }

  /* Glassmorphism card full-width on mobile */
  .glass-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 1rem;
  }

  /* CTA buttons full-width on mobile */
  .hero-cta-wrap .btn-primary,
  .hero-cta-wrap .btn-outline {
    width: 100%;
    justify-content: center;
  }

  /* Responsive heading clamp */
  h1 { font-size: clamp(1.6rem, 6vw, 2.5rem) !important; line-height: 1.2 !important; }
  h2 { font-size: clamp(1.3rem, 5vw, 2rem) !important; }

  /* Stats grid */
  .grid.md\:grid-cols-3 { gap: 1rem; }
  .grid.md\:grid-cols-4 { gap: 1rem; }

  /* Secondary sticky navbar hidden on mobile (already hidden via tailwind hidden md:block,
     but also ensure no positioning conflict) */
  .top-\[76px\], .top-\[72px\] { top: auto !important; }
}

/* ============================================================
   DESKTOP — large text scale
   ============================================================ */
@media (max-width: 640px) {
  .text-5xl, .text-6xl { font-size: clamp(1.6rem, 7vw, 2.5rem) !important; line-height: 1.2 !important; }
  .text-4xl             { font-size: clamp(1.4rem, 6vw, 2rem) !important; }
}

/* ============================================================
   GLASS CARD (hero form)
   ============================================================ */
.glass-card {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   SECTION BADGE
   ============================================================ */
.section-badge {
  display: inline-block;
  padding: 0.4rem 1.25rem;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(67,176,71,0.35);
}

/* ============================================================
   FLOATING SECTION SHADOW
   ============================================================ */
section.z-30 > .container > div {
  box-shadow: 0 20px 60px -12px rgba(0,0,0,0.12);
}

/* ============================================================
   FORM INPUTS — touch-friendly
   ============================================================ */
input, textarea, select {
  border-color: #d1d5db;
  font-size: 16px; /* prevents iOS auto-zoom on focus */
}
input, textarea, select, button {
  border-radius: 0.5rem;
}
@media (max-width: 640px) {
  input, textarea, select { min-height: 48px; }
}

/* ============================================================
   BLOG CONTENT
   ============================================================ */
.blog-content { color: var(--color-text-body); }
.blog-content h1,.blog-content h2,.blog-content h3 { color: var(--color-text-dark); }
.blog-content a { color: var(--green); }
.blog-content a:hover { color: var(--green-dark); }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   STICKY SIDEBAR FIX (tablet)
   ============================================================ */
@media (max-width: 1024px) {
  aside .sticky { position: static !important; }
}

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
#floatingWA {
  position: fixed !important;
  bottom: 20px !important;
  left: 20px !important;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999 !important;
  box-shadow: 0 5px 25px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
#floatingWA:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
#floatingWA img { width: 32px; height: 32px; }
@media (max-width: 480px) {
  #floatingWA { width: 50px; height: 50px; bottom: 85px !important; left: 12px !important; }
  #floatingWA img { width: 26px; height: 26px; }
}

