/* ===== BASE & RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }

/* ===== NAVIGATION ===== */
.nav-scrolled {
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.nav-link {
  position: relative;
}

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

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

/* ===== HERO ===== */
.hero-title {
  animation: fadeInUp 0.8s ease both;
}

.hero-badge {
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-img {
  transition: transform 0.6s ease;
}

.hero-image-wrapper:hover .hero-img {
  transform: scale(1.02);
}

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

/* ===== SERVICES ===== */
.service-card {
  animation: fadeInUp 0.6s ease both;
}

.service-card:nth-child(1) { animation-delay: 0.05s; }
.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.15s; }
.service-card:nth-child(4) { animation-delay: 0.2s; }
.service-card:nth-child(5) { animation-delay: 0.25s; }
.service-card:nth-child(6) { animation-delay: 0.3s; }

/* ===== ABOUT ===== */
.about-img {
  transition: transform 0.6s ease;
}

.about-img-wrapper:hover .about-img {
  transform: scale(1.02);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #059669;
  color: #fefdf8;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: #047857;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
  transform: translateY(-1px);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #059669;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  border: 2px solid #a7f3d0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-secondary:hover {
  background: #ecfdf5;
  border-color: #34d399;
  transform: translateY(-1px);
}

/* ===== SECTION TYPOGRAPHY ===== */
.service-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #059669;
  background: #d1fae5;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
}

.section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #064e3b;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-desc {
  color: #047857;
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.8;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  opacity: 0;
}

.service-card.visible {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== WHY CARDS ===== */
.why-card {
  opacity: 0;
}

.why-card.visible {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== CONTACT ===== */
.contact-card {
  opacity: 0;
}

.contact-card.visible {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== FORM ===== */
.input-field {
  font-family: 'Nunito', system-ui, sans-serif;
}

.input-field:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ===== MOBILE MENU ===== */
#mobileMenu.open {
  max-height: 400px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .nav-scrolled {
    background: rgba(254, 253, 248, 0.97);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .floating-card {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 1rem;
    display: inline-flex;
  }
}
