/* ═══════════════ CUSTOM STYLES — INDY POOP SWOOP ═══════════════ */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* Selection color - Enhanced green */
::selection {
  background-color: #bbf7d0;
  color: #14532d;
}

/* Enhanced green theme overrides */
:root {
  --brand-primary: #16a34a;
  --brand-secondary: #22c55e;
  --brand-light: #dcfce7;
  --brand-dark: #15803d;
}

/* ─── Animations ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* ─── Intersection Observer animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── Navbar ─── */
.navbar-scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* ─── Pricing Calculator ─── */
.freq-btn, .lot-btn {
  cursor: pointer;
  transition: all 0.2s ease;
}

.active-freq, .active-lot {
  border-color: #22c55e !important;
  background-color: #f0fdf4 !important;
  color: #15803d !important;
}

/* ─── FAQ Accordion ─── */
.faq-icon.rotated {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-content.open {
  display: block;
  max-height: 500px;
}

/* ─── Back to Top ─── */
#back-to-top.visible {
  display: flex;
}

/* ─── Form focus states ─── */
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

/* ─── Loading spinner for form ─── */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.7s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Calendly container ─── */
.calendly-inline-widget {
  border-radius: 1rem;
  overflow: hidden;
}

/* ─── Mobile refinements ─── */
@media (max-width: 640px) {
  .font-display {
    letter-spacing: -0.02em;
  }
}

/* ─── Paw Print Animations ─── */
@keyframes pawBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.05); }
}

@keyframes pawFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes pawPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

/* Enhanced green focus states */
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
  border-color: var(--brand-primary);
}

/* Logo hover effect */
.logo-container:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* Paw print trail effects */
.paw-trail {
  animation: pawFloat 2s ease-in-out infinite;
}

.paw-trail:nth-child(2n) {
  animation-delay: 0.5s;
}

.paw-trail:nth-child(3n) {
  animation-delay: 1s;
}

/* Enhanced button hover effects */
.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.3);
}

/* Green gradient backgrounds */
.bg-brand-gradient {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 50%, #86efac 100%);
}

/* ─── Print styles ─── */
@media print {
  nav, #back-to-top, .calendly-inline-widget, footer { display: none; }
  section { page-break-inside: avoid; }
}
