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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #a7f3d0;
  color: #064e3b;
}

/* ========== NAVBAR ========== */
.nav {
  background: rgba(254, 253, 248, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.08);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(254, 253, 248, 0.95);
  box-shadow: 0 1px 20px rgba(6, 78, 59, 0.06);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #059669;
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #059669;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: #059669;
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  border-radius: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
  background: #047857;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #059669;
  padding: 0.75rem 1.75rem;
  border-radius: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(5, 150, 105, 0.3);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(5, 150, 105, 0.06);
  border-color: #059669;
  transform: translateY(-2px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  color: #059669;
  padding: 0.75rem 1.75rem;
  border-radius: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #fefdf8 0%, #ecfdf5 50%, #d1fae5 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(167, 243, 208, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(209, 250, 229, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-image {
  position: relative;
  z-index: 1;
}

/* ========== SERVICE CARDS ========== */
.service-card {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(16, 185, 129, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(6, 78, 59, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}

/* ========== INSURANCE CARDS ========== */
.insurance-card {
  border: 1px solid rgba(16, 185, 129, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insurance-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(6, 78, 59, 0.06);
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  animation: slideDown 0.3s ease;
}

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

.mobile-nav-link {
  position: relative;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(16, 185, 129, 0.08);
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

.mobile-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #059669;
  transition: width 0.3s ease;
}

.mobile-nav-link:hover::after {
  width: 100%;
}

/* ========== ACTIVE NAV LINK ========== */
.nav-link.active {
  color: #059669;
}

.nav-link.active::after {
  width: 100%;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
  html {
    scroll-padding-top: 70px;
  }

  .hero {
    padding-top: 1rem;
  }

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

  .hero-image {
    margin-top: 2rem;
  }

  .about-image {
    order: -1;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero h1 {
    font-size: 3rem;
  }
}
