/* 
  KC Metro Irrigation - Custom Styles
  Separate CSS file (paired with index.html)
  Adds movement, polish, and overrides beyond Tailwind CDN
*/

@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;600;700;900&family=Inter:wght@400;500;600&display=swap');

/* Base enhancements */
:root {
  --brand-gold: #e6b000;
  --brand-navy: #1e2933;
  --brand-blue: #0f3b66;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
}

h1, h2, h3, .brand-heading {
  font-family: 'Red Hat Display', system-ui, sans-serif;
}

/* Hero with movement */
#hero {
  position: relative;
  overflow: hidden;
}

#hero img.hero-bg {
  transition: transform 0.2s ease-out;
}

#hero:hover img.hero-bg {
  transform: scale(1.03);
}

/* Subtle parallax / movement on scroll for hero */
.hero-parallax {
  will-change: transform;
}

/* Animated sprinkler spray (CSS movement) */
.sprinkler {
  position: relative;
}

.sprinkler::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.85), transparent);
  transform-origin: left center;
  animation: spray 1.8s infinite ease-in-out;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(230, 176, 0, 0.6);
  opacity: 0.9;
}

@keyframes spray {
  0%, 100% { transform: rotate(-25deg) scaleX(0.6); opacity: 0.6; }
  50% { transform: rotate(28deg) scaleX(1.15); opacity: 1; }
}

/* Section entrance animations (lots of movement) */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Service cards */
.service-card {
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.2s ease, border-color 0.2s;
  border: 1px solid #e5e7eb;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  border-color: var(--brand-gold);
}

/* Hunter product / spray visual */
.spray-demo {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.spray-demo:hover {
  border-color: var(--brand-gold);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.05);
}

.spray-pattern {
  width: 140px;
  height: 140px;
  border-radius: 9999px;
  background: radial-gradient(circle at 40% 45%, #e6b00033 0%, transparent 55%);
  position: relative;
  overflow: hidden;
}

.spray-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 35% 38%, #e6b00055 8%, transparent 20%),
    radial-gradient(circle at 62% 55%, #e6b00044 6%, transparent 18%),
    radial-gradient(circle at 48% 72%, #e6b00033 10%, transparent 25%);
  animation: pattern-pulse 3.5s ease-in-out infinite;
}

@keyframes pattern-pulse {
  0%, 100% { opacity: 0.75; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

/* Quote form styling */
.quote-form {
  background: white;
  border: 1px solid #e5e7eb;
}

.quote-form input,
.quote-form select {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.quote-form input:focus,
.quote-form select:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(230, 176, 0, 0.15);
  outline: none;
}

.quote-form .form-label {
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #475569;
  font-weight: 600;
}

/* Trust bar movement */
.trust-item {
  transition: color 0.2s ease;
}

.trust-item:hover {
  color: var(--brand-navy);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* CTA buttons with movement */
.cta-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.cta-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );
  transition: left 0.6s;
}

.cta-btn:hover::after {
  left: 200%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sprinkler::after {
    width: 80px;
  }
  
  .spray-pattern {
    width: 110px;
    height: 110px;
  }
}

/* SEO friendly hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Pricing / Packages Comparison Table */
.pricing-table-container {
  min-height: 320px;
}

/* Advantage / Comparison Table */
#advantage table td {
  vertical-align: top;
  line-height: 1.4;
}

#advantage table tr:hover td {
  background-color: #fefce8;
}

#advantage table tr:hover td:first-child {
  background-color: #f1f5f9;
}

.pricing-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.05);
}

.pricing-table th,
.pricing-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.95rem;
}

.pricing-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #1e2933;
  font-size: 0.875rem;
  white-space: nowrap;
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table .package-header {
  background: #1e2933;
  color: white;
  text-align: center;
  font-size: 1rem;
  padding-top: 18px;
  padding-bottom: 14px;
}

.pricing-table .package-header.popular {
  background: #1e2933;
  position: relative;
}

.pricing-table .package-header.popular::after {
  content: "MOST POPULAR";
  position: absolute;
  top: -1px;
  right: 12px;
  font-size: 9px;
  letter-spacing: 0.5px;
  background: #e6b000;
  color: #071022;
  padding: 1px 8px;
  border-radius: 0 0 6px 6px;
  font-weight: 700;
}

.pricing-table td:first-child {
  font-weight: 600;
  color: #334155;
  background: #fafbfc;
  width: 190px;
}

.pricing-table .price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e2933;
}

.pricing-table .highlight {
  background: #fefce8;
  font-weight: 600;
}

.pricing-table .center {
  text-align: center;
}

