/* ============================================
   Turnover Guardian — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.25rem;
  background: #1B5E20;
  color: #E8F5E9;
  border-radius: 0.75rem;
  font-weight: 700;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0.5rem;
}

/* --- Navbar --- */
.navbar {
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(27, 94, 32, 0.1);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: #1B5E20;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* --- Mobile Menu --- */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

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

.mobile-nav-link {
  display: block;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #FDFBF7 0%, #E8F5E9 50%, #F5F0E6 100%);
  position: relative;
}

.hero-image-container {
  position: relative;
}

.hero-image-blob {
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, #C8E6C9, #A5D6A7);
  border-radius: 2.5rem;
  z-index: -1;
  opacity: 0.5;
  filter: blur(1px);
}

.hero-img {
  aspect-ratio: 600 / 700;
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
}

.floating-badge {
  position: absolute;
  background: white;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(27, 94, 32, 0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: float 3s ease-in-out infinite;
}

.badge-1 {
  top: 15%;
  right: -10px;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 20%;
  left: -10px;
  animation-delay: 1.5s;
}

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

/* --- Buttons --- */
.cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: #1B5E20;
  color: #E8F5E9;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(27, 94, 32, 0.3);
  transition: all 0.25s ease;
}

.cta-primary:hover {
  background: #2E7D32;
  box-shadow: 0 12px 35px rgba(27, 94, 32, 0.4);
  transform: translateY(-2px);
  color: #E8F5E9;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: transparent;
  color: #1B5E20;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid #1B5E20;
  transition: all 0.25s ease;
}

.cta-secondary:hover {
  background: #1B5E20;
  color: #E8F5E9;
  transform: translateY(-2px);
}

.cta-white {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: white;
  color: #1B5E20;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.cta-white:hover {
  background: #E8F5E9;
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  color: #1B5E20;
}

.cta-outline-white {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: transparent;
  color: white;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.25s ease;
}

.cta-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
  color: white;
}

/* --- Section Labels --- */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #2E7D32;
  background: #E8F5E9;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  border: 1px solid #C8E6C9;
}

/* --- Service Cards --- */
.service-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(27, 94, 32, 0.06);
  border: 1px solid #E8F5E9;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(27, 94, 32, 0.12);
  border-color: #A5D6A7;
}

/* --- About --- */
.about-image-wrapper {
  position: relative;
}

.about-image-inner {
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

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

.about-stats-card {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 1.5rem;
  padding: 1.5rem 2.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
}

/* --- Why Cards --- */
.why-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid #F5F0E6;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1B5E20, #43A047);
  border-radius: 1.5rem 1.5rem 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.why-card:hover::before {
  opacity: 1;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(27, 94, 32, 0.1);
}

/* --- Testimonial Cards --- */
.testimonial-card {
  background: #FDFBF7;
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid #F5F0E6;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(27, 94, 32, 0.08);
  border-color: #C8E6C9;
}

/* --- Form Inputs --- */
.input-field {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #E8F5E9;
  border-radius: 0.875rem;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 1rem;
  color: #1B5E20;
  background: white;
  transition: all 0.2s ease;
  outline: none;
}

.input-field::placeholder {
  color: #A5D6A7;
}

.input-field:focus {
  border-color: #1B5E20;
  box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.1);
}

.input-field:hover:not(:focus) {
  border-color: #81C784;
}

/* --- Submit Button --- */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: #1B5E20;
  color: #E8F5E9;
  border: none;
  border-radius: 9999px;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 25px rgba(27, 94, 32, 0.3);
}

.btn-submit:hover {
  background: #2E7D32;
  box-shadow: 0 12px 35px rgba(27, 94, 32, 0.4);
  transform: translateY(-2px);
}

.btn-submit:active {
  transform: translateY(0);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero {
    padding-top: 8rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .floating-badge {
    display: none;
  }

  .about-stats-card {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 1.5rem;
    justify-content: center;
  }

  .cta-primary,
  .cta-secondary,
  .cta-white,
  .cta-outline-white {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.875rem;
  }

  .section-label {
    font-size: 0.7rem;
  }

  .font-serif.text-3xl {
    font-size: 1.75rem;
  }
}
