/* ========== HAMBURGER ========== */
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
  border-radius: 2px;
}
.hamburger-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== MOBILE NAV ========== */
.mobile-nav-open {
  max-height: 400px;
  opacity: 1;
  visibility: visible;
}
.mobile-nav-closed {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
}

/* ========== NAVBAR ========== */
#navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
#navbar.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}
#navbar.nav-scrolled .nav-link {
  color: #333;
}
#navbar.nav-scrolled .nav-link::after {
  background-color: #18A558;
}

/* ========== NAV LINK HOVER UNDERLINE ========== */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
  border-radius: 2px;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ========== SERVICE CARD ========== */
.service-card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-card:hover {
  transform: translateY(-6px) scale(1.02);
}
.service-icon {
  transition: transform 0.4s ease;
}
.service-card:hover .service-icon {
  transform: scale(1.12) rotate(-4deg);
}

/* ========== GALLERY HOVER ========== */
.gallery-item {
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ========== TESTIMONIAL CAROUSEL ========== */
.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.testimonial-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ========== EMERGENCY PULSE ========== */
@keyframes emergencyPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.5); }
  70% { box-shadow: 0 0 0 16px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.emergency-pulse {
  animation: emergencyPulse 2s infinite;
}

/* ========== SOCIAL CARD ========== */
.social-card {
  transition: all 0.3s ease;
}
.social-card:hover {
  transform: translateY(-3px);
}

/* ========== FLOATING APPOINTMENT FORM ========== */
.appointment-form {
  width: 100%;
  max-width: 36rem;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}

.appointment-form__intro {
  background: #f4fbf7;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(11, 107, 58, 0.08);
}

.appointment-form__embed {
  background: #ffffff;
}

.appointment-form__iframe {
  display: block;
  width: 100%;
  border: 0;
  background: #fff;
  margin-bottom: -3.5rem;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #18A558;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0B6B3A;
}

/* ========== SELECT STYLING ========== */
select.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25rem;
  padding-right: 2.25rem;
}

/* ========== TOP BAR HIDE ON SCROLL ========== */
#top-bar {
  transition: all 0.3s ease;
}
#top-bar.hidden-bar {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  opacity: 0;
}

/* ========== RESPONSIVE TABLES ========== */
@media (max-width: 640px) {
  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 640px) {
  .appointment-form {
    border-radius: 20px;
  }

  .appointment-form__intro {
    padding: 1rem 1rem 0.875rem;
  }

}
