/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  overflow: visible;
  .phone-link {
    color: var(--black);
    text-decoration: none;
    transition: all 0.3s;
    &:hover {
      color: var(--tussock);
    }
  }
  .cta-btn.service-btn {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--tussock);
    padding: 18px 40px;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 17px;
  }
}

/* Hero Slider */
.hero-slider {
  position: relative;
  width: 100%;
  height: 906px;
  overflow: visible;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  overflow: hidden;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-slide.slide-2 img {
  object-position: 30% center;
}

.hero-slide.slide-3 img {
  object-position: 65% center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.1);
}

.hero-content {
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 20px;
  position: relative;
  z-index: 20;
}

/* Desktop-only: Alternate text alignment for slides */
@media (min-width: 769px) {
  /* Slide 1: Left aligned - shifted towards center */
  .hero-slide.slide-1 .hero-overlay {
    justify-content: flex-start;
    padding-left: 100px;
  }

  .hero-slide.slide-1 .hero-content {
    text-align: left;
    transform: translateX(12%);
  }

  .hero-slide.slide-1.active .hero-content {
    transform: translateX(12%);
  }

  .hero-slide.slide-1 .hero-cta-btn {
    margin-left: 0;
    margin-right: auto;
  }

  /* Slide 2: Right aligned - shifted towards center */
  .hero-slide.slide-2 .hero-overlay {
    justify-content: flex-end;
    padding-right: 100px;
  }

  .hero-slide.slide-2 .hero-content {
    text-align: right;
    transform: translateX(-12%);
  }

  .hero-slide.slide-2.active .hero-content {
    transform: translateX(-12%);
  }

  .hero-slide.slide-2 .hero-cta-btn {
    margin-left: auto;
    margin-right: 0;
  }

  /* Slide 3: Left aligned - shifted towards center */
  .hero-slide.slide-3 .hero-overlay {
    justify-content: flex-start;
    padding-left: 100px;
  }

  .hero-slide.slide-3 .hero-content {
    text-align: left;
    transform: translateX(12%);
  }

  .hero-slide.slide-3.active .hero-content {
    transform: translateX(12%);
  }

  .hero-slide.slide-3 .hero-cta-btn {
    margin-left: 0;
    margin-right: auto;
  }

  /* Larger arrows on desktop */
  .hero-arrow {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    font-size: 28px;
  }
}

.hero-title {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 56px;
  line-height: 1.263157894736842em;
  color: var(--white);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-in-out 0.3s, transform 0.6s ease-in-out 0.3s;
}

.hero-slide.active .hero-title {
  opacity: 1;
  transform: translateY(0);
}

.hero-subtitle {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2222222222222223em;
  color: var(--white);
  margin-bottom: 32px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-in-out 0.4s, transform 0.6s ease-in-out 0.4s;
}

.hero-slide.active .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
}

.hero-cta-btn {
  background: var(--tussock);
  color: var(--white);
  border: 1px solid var(--black);
  padding: 20px 80px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, opacity 0.6s ease-in-out 0.5s,
    transform 0.3s ease-in-out 0s;
  opacity: 0;
  transform: translateY(20px);
  display: inline-block;
  text-decoration: none;
  position: relative;
  z-index: 25;
  pointer-events: auto;
}

a.hero-cta-btn {
  text-decoration: none;
  color: var(--white);
}

a.hero-cta-btn:hover {
  background: #a67a3a;
  color: var(--white);
  text-decoration: none;
  transform: scale(1.05);
}

.hero-slide.active .hero-cta-btn {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide.active .hero-cta-btn:hover {
  transform: translateY(0) scale(1.05);
}

/* Hero Navigation Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--tussock);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s, transform 0.3s;
  font-size: 16px;
}

.hero-arrow:hover {
  background: #a67a3a;
  transform: translateY(-50%) scale(1.1);
}

.hero-arrow-left {
  right: 20px;
}

.hero-arrow-right {
  left: 20px;
}

/* Hero Bullets */
.hero-bullets {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.hero-bullet {
  width: 15px;
  height: 15px;
  border-radius: 7.5px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.3s;
}

.hero-bullet.active {
  background: var(--white);
}

/* Hero Services (Cards Below Slider) */
.hero-services {
  background: transparent;
  padding: 0;
  margin-top: -180px;
  position: relative;
  z-index: 10;
  padding-bottom: 48px;
  margin-bottom: 100px;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 0 15px;
  position: relative;
  z-index: 10;
  max-width: 100%;
  box-sizing: border-box;
}

.service-card {
  background: var(--white);
  padding: 48px;
  border-radius: 8px;
  box-shadow: 0px 10px 30px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 11;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.service-icon {
  width: 104px;
  height: 104px;
  border-radius: 20px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.service-icon-calendar {
  width: 104px;
  height: 104px;
}

.service-icon-phone {
  width: 91px;
  height: 91px;
}

.service-image {
  width: 286px;
  max-width: 100%;
  height: 105px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.service-card h3 {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1999999682108562em;
  color: var(--haiti);
  margin-bottom: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.service-card p {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.8571428571428572em;
  color: var(--boulder);
  margin-bottom: 20px;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* Logo Card - Doctor Name Styling */
.service-card:has(.service-image) p {
  font-weight: 600;
  color: #4a4a4a;
  font-size: 15px;
}

.service-btn {
  background: var(--tussock);
  color: var(--white);
  border: none;
  padding: 18px 40px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.5em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  margin-top: auto;
  display: inline-block;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0px 4px 15px rgba(166, 122, 58, 0.3);
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

a.service-btn {
  text-decoration: none !important;
  color: var(--white);
}

.service-btn:hover {
  background: #a67a3a;
  transform: translateY(-2px);
  box-shadow: 0px 6px 20px rgba(166, 122, 58, 0.4);
  color: var(--white);
}

/* WhatsApp Button in Contact Card */
.whatsapp-btn {
  background: var(--tussock);
  color: var(--white);
  border: none;
  padding: 18px 40px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0px 4px 15px rgba(190, 146, 73, 0.3);
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.whatsapp-btn i {
  font-size: 20px;
  line-height: 1;
}

.whatsapp-btn:hover {
  background: #a67a3a;
  transform: translateY(-2px);
  box-shadow: 0px 6px 20px rgba(190, 146, 73, 0.4);
  color: var(--white);
  text-decoration: none;
}

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

/* Contact Branches Styling */
.contact-branches {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-bottom: 20px;
}

.branch-box {
  background: var(--white);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(190, 146, 73, 0.15);
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
}

.branch-box:hover {
  box-shadow: 0px 8px 24px rgba(190, 146, 73, 0.2);
  transform: translateY(-3px);
  border-color: rgba(190, 146, 73, 0.3);
}

.branch-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-bottom: 4px;
}

.branch-content {
  flex: 1;
  text-align: center;
  width: 100%;
}

.branch-title {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.5em;
  color: var(--haiti);
  margin-bottom: 10px;
}

.branch-phone {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.6em;
  color: var(--tussock);
  margin-bottom: 10px;
}

.branch-address {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.7em;
  color: var(--boulder);
  margin-bottom: 0;
}
