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

html { scroll-behavior: smooth; }

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

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

a { text-decoration: none; color: inherit; }

button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── NAV ── */
.nav-scrolled {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(5, 150, 105, 0.08);
}

.nav-toggle { display: none; }

#mobile-menu li a.nav-link {
  position: relative;
}

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

#mobile-menu li a.nav-link:hover::after {
  width: 100%;
}

/* ── HERO ── */
.hero-section {
  min-height: 90vh;
}

/* ── FLOATING CARDS ── */
.card-float {
  position: absolute;
}

.card-float-1 {
  top: 8%;
  left: 0;
  animation: float-1 5s ease-in-out infinite;
}

.card-float-2 {
  bottom: 18%;
  left: -10%;
  animation: float-2 6s ease-in-out infinite;
}

.card-float-3 {
  bottom: 2%;
  right: 5%;
  animation: float-3 5.5s ease-in-out infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(0deg); }
}

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

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

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #059669;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #059669;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid #059669;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-secondary:hover {
  background: #059669;
  color: #fff;
  transform: translateY(-2px);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #059669;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover {
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ── CARDS ── */
.card-service-inner {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-service-inner:hover {
  transform: translateY(-4px);
}

.card-testimonial {
  transition: transform 0.25s ease;
}

.card-testimonial:hover {
  transform: translateY(-4px);
}

/* ── INPUTS ── */
.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d1fae5;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #064e3b;
  background: #f0fdf4;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}

.input-field::placeholder {
  color: #6ee7b7;
}

.input-field:hover {
  border-color: #34d399;
  background: #ecfdf5;
}

.input-field:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
  background: #fff;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-active .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-visible {
  opacity: 1;
  transform: none;
}

/* staggered delays */
.js-active .reveal:nth-child(1) { transition-delay: 0.05s; }
.js-active .reveal:nth-child(2) { transition-delay: 0.12s; }
.js-active .reveal:nth-child(3) { transition-delay: 0.19s; }
.js-active .reveal:nth-child(4) { transition-delay: 0.26s; }
.js-active .reveal:nth-child(5) { transition-delay: 0.33s; }
.js-active .reveal:nth-child(6) { transition-delay: 0.40s; }

/* ── MOBILE ── */
@media (max-width: 767px) {
  .nav-toggle { display: block; }

  #mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.1);
    padding: 16px 24px;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }

  #mobile-menu.open { display: flex; }

  #mobile-menu li {
    width: 100%;
  }

  #mobile-menu li a.nav-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(5, 150, 105, 0.08);
  }

  #mobile-menu li:last-child a {
    border-bottom: none;
    margin-top: 8px;
  }

  .card-float-1 {
    top: 2%;
    left: -4%;
    width: 150px;
  }

  .card-float-2 {
    bottom: 12%;
    left: -6%;
    width: 150px;
  }

  .card-float-3 {
    bottom: -2%;
    right: -4%;
    width: 150px;
  }

  .hero-section {
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 60px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .card-float-1 { width: 170px; }
  .card-float-2 { width: 170px; }
  .card-float-3 { width: 170px; }
}
