/* Hero slider */
.hero {
  border-bottom: 1px solid var(--border);
  min-height: 75vh;
  overflow: hidden;
  position: relative;
}

.hero video, .hero-overlay {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-overlay {
  background: linear-gradient(120deg, rgba(10,20,40,.92), rgba(10,20,40,.72) 70%, rgba(10,20,40,.55));
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 75vh;
  position: relative;
  z-index: 2;
}

.hero-slide {
  max-width: 42rem;
  padding-block: 4rem;
}

.hero-slide--wide {
  max-width: 70rem;
}

.hero-heading {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin: 0;
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
}

.hero-heading em {
  color: #6ee7da;
  font-style: normal;
}

.hero .hero-slide--wide .hero-heading {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero-slide--wide .hero-heading em {
  display: block;
}

.hero p {
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 1rem 0 2rem;
  max-width: 35rem;
}

.hero .button-row .button {
  border-width: 1px;
  box-sizing: border-box;
  height: 3rem;
  max-height: 3rem;
  min-height: 3rem;
  padding-block: 0;
}

.slider-dots {
  bottom: 3rem;
  display: flex;
  gap: .55rem;
  position: absolute;
}

.slider-dots button {
  background: rgba(255,255,255,.75);
  border: 0;
  height: .5rem;
  padding: 0;
  transition: width .25s;
  width: .5rem;
}

.slider-dots button.active {
  background: var(--focus);
  width: 1.6rem;
}

/* Clinic statistics */
.stats-bar {
  background: #0f2240;
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 1.2rem;
}

.stats-grid div {
  border-right: 1px solid rgba(255,255,255,.24);
  text-align: center;
}

.stats-grid div:last-child {
  border-right: 0;
}

.stats-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
}

.stats-grid span {
  color: #c9d4e8;
  font-size: 1rem;
  font-weight: 500;
}

/* Service cards and sidebar */
.section-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.home-services-layout {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 2fr 1fr;
}

.service-card-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, 1fr);
}

.image-card {
  min-height: 12rem;
  overflow: hidden;
  position: relative;
}

.image-card > img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transition: transform .5s;
  width: 100%;
}

.image-card:hover > img {
  transform: scale(1.04);
}

.image-card-overlay {
  background: linear-gradient(155deg, rgba(15,34,64,.86), rgba(15,34,64,.72));
  inset: 0;
  position: absolute;
}

.image-card.featured {
  border: 2px solid var(--focus);
}

.image-card-content {
  bottom: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  position: absolute;
}

.image-card-content small {
  align-self: flex-start;
  background: var(--teal-light);
  color: #fff;
  font-size: var(--font-size-min);
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: .5rem;
  padding: .2rem .35rem;
  text-transform: uppercase;
}

.image-card-content strong {
  font-size: var(--font-size-body);
  margin-bottom: .25rem;
}

.image-card-content > span {
  color: #fff;
  font-size: var(--font-size-body);
  line-height: 1.45;
}

/* Patient testimonials */
.testimonials {
  background: var(--card);
  border-block: 1px solid var(--border);
}

.reviews-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.reviews-heading h2 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
}

.reviews-heading p {
  color: var(--muted);
  font-size: var(--font-size-min);
  margin: .45rem 0 0;
}

.google-g {
  color: var(--google-blue);
  font-weight: 800;
}

.stars {
  color: var(--rating);
  letter-spacing: .05em;
}

.stars span {
  color: var(--input);
}

.review-controls {
  align-items: center;
  display: flex;
  gap: .65rem;
}

.review-controls button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  height: 2rem;
  width: 2rem;
}

.review-controls span {
  color: var(--muted);
  font-size: var(--font-size-min);
}

.review-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1rem;
}

.review-card {
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.review-card header {
  align-items: center;
  display: flex;
  gap: .7rem;
}

.review-card header > span:nth-child(2) {
  flex: 1;
}

.review-card header strong {
  display: block;
  font-size: var(--font-size-min);
}

.avatar {
  align-items: center;
  background: var(--teal-bright);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: var(--font-size-min);
  font-weight: 700;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.review-card .stars {
  font-size: var(--font-size-min);
  margin: .8rem 0;
}

.review-card p {
  font-size: var(--font-size-body);
  line-height: 1.65;
  margin-bottom: 0;
}

.review-translation-note {
  color: var(--muted);
  display: block;
  font-size: var(--font-size-min);
  font-style: italic;
  margin-top: .75rem;
}

/* About the clinic */
.about-strip {
  background: var(--sand);
  padding-block: 2rem;
}

.split {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
}

.split p {
  color: var(--muted);
  font-size: var(--font-size-body);
  line-height: 1.7;
  margin: 1rem 0;
}

.split img {
  height: 14rem;
  object-fit: cover;
  width: 100%;
}

/* Responsive layout */
@media (max-width: 960px) {
  .home-services-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero, .hero-content {
    min-height: 67vh;
  }
  .hero-slide {
    padding-block: 3rem 5rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1.2rem;
  }
  .stats-grid div:nth-child(2) {
    border-right: 0;
  }
  .service-card-grid {
    grid-template-columns: 1fr 1fr;
  }
  .review-grid {
    grid-template-columns: 1fr;
  }
  .review-card {
    min-height: 12rem;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split img {
    order: -1;
  }
}

@media (max-width: 520px) {
  .hero-heading {
    font-size: 2.45rem;
  }
  .hero .hero-slide--wide .hero-heading {
    font-size: 2.2rem;
  }
  .service-card-grid {
    grid-template-columns: 1fr;
  }
  .image-card {
    min-height: 11rem;
  }
  .reviews-heading {
    align-items: start;
    gap: 1rem;
  }
}
