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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
}

/* === Hero Background === */
.hero-bg {
  background: url('https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.65);
}

/* === Navigation Links === */
.nav-link {
  position: relative;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

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

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

.nav-link:hover {
  color: #8FDC97;
}

/* === Mobile Menu === */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  background-color: #14191E;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity 0.25s ease-in-out, visibility 0.25s ease-in-out, transform 0.25s ease-in-out;
  pointer-events: none;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Close Button */
.mobile-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
  line-height: 0;
}

.mobile-close-btn:hover {
  color: #8FDC97;
}

/* Mobile Logo */
.mobile-logo {
  margin-bottom: 1rem;
}

/* Nav Links */
.mobile-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-link {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.mobile-nav-link:hover {
  color: #8FDC97;
}

/* Mobile Divider */
.mobile-divider {
  width: 3rem;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.15);
  margin: 0.5rem 0;
}

/* Mobile Contact Info */
.mobile-contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.mobile-contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-contact-link:hover {
  color: #8FDC97;
}

/* CTA Button */
.mobile-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #ffffff;
  color: #14191E;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  margin-top: 1.5rem;
}

.mobile-cta-btn:hover {
  background-color: #f3f4f6;
}

.mobile-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: #8FDC97;
  color: #ffffff;
  flex-shrink: 0;
}

/* Hide on desktop */
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* === Hamburger Animation === */
.hamburger-active {
  opacity: 0;
  pointer-events: none;
}

.hamburger-active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* === Testimonial Card — Glassmorphism === */
.testimonial-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* === About Section — Image Grid === */
.about-image-grid .grid {
  min-height: 400px;
}

.about-img {
  transition: transform 0.4s ease;
}

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

/* === About Section — Stats Animation === */
.stat-number {
  transition: color 0.3s;
}

.stat-item:hover .stat-number {
  color: #21897E;
}

/* === Services Section === */
.services-badge {
  background: rgba(33, 137, 126, 0.08);
  border: 1px solid rgba(33, 137, 126, 0.3);
}

.services-grid::-webkit-scrollbar {
  display: none;
}

.services-cta {
  transition: all 0.3s ease-out;
}

.services-cta:hover {
  background-color: #c94d20;
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(33, 137, 126, 0.4);
}

.service-card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card-bg {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card-content {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-detail-link {
  transition: color 0.3s, opacity 0.3s;
}

.service-card:hover {
  transform: scale(1.03) translate(3px, -3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.service-card:hover .service-card-bg {
  transform: scale(1.08);
}

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

.service-card:hover .service-detail-link {
  color: #21897E;
}

@media (hover: none) and (pointer: coarse) {
  .service-card:hover {
    transform: none;
    box-shadow: none;
  }
  .service-card:hover .service-card-bg {
    transform: none;
  }
  .service-card:hover .service-card-content {
    transform: none;
  }
  .service-card:active {
    transform: scale(0.98);
  }
}

/* === Testimonials Section === */
.testimonials-badge {
  background: rgba(33, 137, 126, 0.08);
  border: 1px solid rgba(33, 137, 126, 0.3);
}

.testimonial-small-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-small-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.featured-testimonial-bg {
  background: url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}

/* === FAQ Section === */
.faq-badge {
  background: rgba(33, 137, 126, 0.08);
  border: 1px solid rgba(33, 137, 126, 0.3);
}

.faq-item {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.faq-item.is-open .faq-icon {
  color: #21897E;
  transform: rotate(45deg);
}

/* === Footer === */
.footer-cta {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

.footer-link {
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover {
  padding-left: 4px;
}

.footer-social {
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.footer-social:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.footer-watermark {
  user-select: none;
  pointer-events: none;
}

/* === Contact Section === */
.contact-badge {
  background: rgba(33, 137, 126, 0.08);
  border: 1px solid rgba(33, 137, 126, 0.3);
}

.contact-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-input:focus {
  border-color: #21897E;
  box-shadow: 0 0 0 3px rgba(33, 137, 126, 0.1);
}

.contact-card {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.contact-submit {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-submit:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.form-message {
  animation: form-message-in 0.3s ease-out;
}

@keyframes form-message-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === CTA Banner Section === */
.cta-bg {
  background: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.cta-overlay {
  background: rgba(0, 0, 0, 0.72);
}

.cta-badge {
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid #21897E;
}

.cta-primary-btn {
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-primary-btn:hover {
  background-color: #f3f3f3;
  transform: translateY(-1px);
}

.cta-secondary-btn {
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.cta-secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

/* === Floating WhatsApp Button === */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: whatsapp-pulse 2s ease-in-out 3;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6), 0 0 0 12px rgba(37, 211, 102, 0.1); }
}

/* === Responsive Adjustments === */
@media (max-width: 1023px) {
  .testimonial-card {
    max-width: 100%;
  }

  .about-image-grid .grid {
    min-height: 300px;
  }
}

@media (max-width: 639px) {
  h1 {
    font-size: 2rem;
    line-height: 1.12;
  }

  .about-image-grid .grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .about-image-grid .grid > div:first-child {
    row-span: unset;
  }

  .about-image-grid .grid img {
    height: 220px;
  }
}
