/* Focused visual corrections: proportional photography and unified custom icons. */
#top { scroll-margin-top: 96px; }
.section[id] { scroll-margin-top: 110px; }

.circle-icon svg,
.service-icon svg,
.steps > article > svg {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.doctor-photo {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 100%;
  min-height: 100%;
}

.doctor-photo.photo-1 { background-image: url('assets/doctor-1.png'); }
.doctor-photo.photo-2 { background-image: url('assets/doctor-2.png'); }
.doctor-photo.photo-3 { background-image: url('assets/doctor-3.png'); }

.doctor-card > div:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.doctor-card .text-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 12px;
}

.case-photo {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: auto;
  aspect-ratio: 2 / 1;
}

.case-photo.case-1 {
  background-image: url('assets/case-wide-1.png');
}

.case-photo.case-2 {
  background-image: url('assets/case-wide-2.png');
}

.case-photo.case-3 {
  background-image: url('assets/case-wide-3.png');
}

.case-card {
  display: flex;
  flex-direction: column;
}

.case-card .case-more {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 16px;
}

.banner-pets {
  display: block;
  background: url('assets/booking-banner.png') center / cover no-repeat;
}

.banner-pets::before,
.banner-pets::after { content: none; }

.selector-section {
  margin-top: 0;
  padding-top: 56px;
}

@media (min-width: 1181px) {
  .hero-photo {
    background-position: center 8%;
  }

  .hero,
  .hero-grid {
    height: calc(100svh - 96px);
    min-height: 760px;
    max-height: 900px;
  }

  .hero-content {
    padding: 36px 0 30px;
  }

  .hero h1 {
    max-width: 680px;
    margin-bottom: 20px;
    font-size: clamp(48px, 3.4vw, 60px);
    line-height: 1.08;
    letter-spacing: -2.5px;
  }

  .hero-lead {
    margin-bottom: 22px;
    font-size: 18px;
    line-height: 1.55;
  }

  .hero-actions .btn {
    min-height: 54px;
  }

  .hero-stats {
    margin-top: 28px;
  }

  .hero-stats > div {
    min-height: 136px;
    padding: 18px 20px;
  }

  .hero-stats svg {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
  }

  .hero-stats strong {
    font-size: 24px;
  }
}

@media (min-width: 1181px) and (max-height: 800px) {
  .hero,
  .hero-grid {
    height: calc(100svh - 96px);
    min-height: 0;
    max-height: none;
  }

  .hero-content {
    padding: 18px 0;
  }

  .eyebrow {
    margin-bottom: 10px;
  }

  .hero h1 {
    margin-bottom: 14px;
    font-size: 46px;
    line-height: 1.04;
  }

  .hero-lead {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.4;
  }

  .hero-actions .btn {
    min-height: 48px;
  }

  .hero-stats {
    margin-top: 16px;
  }

  .hero-stats > div {
    min-height: 124px;
    padding: 12px 16px;
  }

  .hero-stats svg {
    width: 30px;
    height: 30px;
    margin-bottom: 4px;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 4px;
  }

  .hero-stats strong {
    font-size: 21px;
  }

  .hero-stats small {
    font-size: 13px;
  }
}

.emergency-icon {
  width: 82px;
  height: 82px;
  border: 2px solid var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.emergency-icon svg {
  width: 36px;
  height: 36px;
  fill: var(--green);
  stroke: none;
  transform: translate(-7px, 7px);
}

.emergency-icon b {
  left: auto;
  right: -10px;
  top: 7px;
  min-width: 45px;
  padding: 4px 7px;
  border: 2px solid var(--mint);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-size: 13px;
  line-height: 1;
  text-align: center;
}

.socials a svg {
  width: 20px;
  height: 20px;
  color: var(--ink);
}

.socials a:nth-child(1) svg,
.socials a:nth-child(2) svg {
  fill: currentColor;
  stroke: none;
}

.socials a:nth-child(3) svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

@media (max-width: 560px) {
  .doctor-photo { background-position: center; }
  .case-photo { height: auto; }
}

@media (max-width: 820px) {
  #top { scroll-margin-top: 70px; }
  .section[id] { scroll-margin-top: 84px; }
}
