/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(26rem, 70vh, 48rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-navy);
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 65%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 44, 63, 0.75) 0%,
    rgba(20, 44, 63, 0.15) 45%,
    transparent 70%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

.hero__tagline {
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  line-height: 1.15;
  color: var(--color-white);
}

/* ---------- Intro ---------- */
.intro {
  padding-bottom: calc(var(--section-pad) + 4rem);
}

.intro__title em {
  font-weight: 400;
  color: var(--color-teal);
}

.intro__body {
  max-width: 26rem;
  font-size: var(--text-sm);
}

.intro__lead {
  font-weight: 600;
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-top: var(--space-md);
}

.curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(2.5rem, 7vw, 6rem);
  pointer-events: none;
}

.curve__fill {
  fill: var(--color-bg);
}

.curve__line {
  fill: none;
  stroke: var(--color-copper);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

/* ---------- Team ---------- */
.team-card {
  display: grid;
  gap: var(--space-xl);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--color-mist);
  border-radius: var(--radius-md);
}

.team-card__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.team {
  padding-block: clamp(2rem, 1rem + 3vw, 3.5rem);
}

.team-card__photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius-sm);
}

.team-card__body {
  max-width: 22rem;
}

.team-card__body p {
  font-size: var(--text-sm);
}

.team-card__body .btn {
  margin-top: var(--space-lg);
}

@media (min-width: 56em) {
  .team-card {
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: var(--space-2xl);
  }
}

/* ---------- Services ---------- */
.services {
  padding-bottom: calc(var(--section-pad) + 4rem);
  text-align: center;
  overflow: hidden;
}

.services__title {
  margin-bottom: var(--space-2xl);
  color: var(--color-white);
}

.services__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(14rem, 85%);
  gap: var(--space-xl);
  /* Margin (not padding) so cards are clipped inside the page gutter,
     aligned with the container on wide screens */
  margin-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  padding-bottom: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  text-align: left;
  cursor: grab;
}

.services__track::-webkit-scrollbar {
  display: none;
}

.services__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

@media (min-width: 48em) {
  .services__track {
    grid-auto-columns: calc((100% - 2 * var(--space-xl)) / 3);
  }
}

.service {
  scroll-snap-align: start;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-on-dark);
}

.service__title {
  margin-bottom: var(--space-xs);
  font-size: var(--text-lg);
  color: var(--color-white);
}

.service__text {
  font-size: var(--text-xs);
  color: var(--color-on-dark-muted);
}

.services__nav {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

.services__arrow {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-border-on-dark);
  border-radius: 50%;
  color: var(--color-white);
  transition: background-color var(--transition), border-color var(--transition);
}

.services__arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
}

.services__arrow svg {
  width: 1rem;
  height: 1rem;
}

.services .btn {
  margin-top: var(--space-xl);
}

/* ---------- Patient stories ---------- */
.reviews__intro {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.reviews__intro p {
  max-width: 26rem;
  font-size: var(--text-sm);
}

.reviews__list {
  display: grid;
  gap: var(--space-lg);
}

.story-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
}

.story-card p + p {
  margin-top: var(--space-sm);
}

.story-card__tag {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-copper-dark);
}

.story-card__title {
  margin: var(--space-xs) 0 var(--space-md);
  font-size: var(--text-xl);
}

/* Name sits at the bottom so cards of different lengths line up */
.story-card .story-card__name {
  margin-top: auto;
  padding-top: var(--space-lg);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-teal);
}

@media (min-width: 56em) {
  .reviews__intro {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .reviews__intro p {
    justify-self: end;
  }

  .reviews__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Fees ---------- */
.fees__title {
  max-width: 11ch;
  color: var(--color-white);
}

.fees__text {
  max-width: 24rem;
  margin-top: var(--space-xl);
  font-size: var(--text-sm);
  color: var(--color-on-dark-muted);
}

.fees__panel {
  max-width: 24rem;
}

.fees__panel .btn {
  margin-top: var(--space-2xl);
}

@media (min-width: 56em) {
  .fees__panel {
    margin-left: auto;
    width: 100%;
  }
}

/* ---------- Questions ---------- */
.questions {
  display: grid;
  place-items: center;
  min-height: clamp(18rem, 45vw, 30rem);
  text-align: center;
}

.questions__title {
  color: var(--color-white);
}

.questions__title a {
  color: var(--color-mist);
  text-decoration-thickness: 1px;
}

.questions__title a:hover {
  color: var(--color-white);
  text-decoration-color: var(--color-copper);
}

/* ---------- Location ---------- */
.location__body p {
  max-width: 26rem;
  font-size: var(--text-sm);
}

.location__map {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-mist);
}

.location__map-frame {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.85) contrast(0.95);
  transition: filter var(--transition);
}

.location__map:hover .location__map-frame {
  filter: none;
}

/* Shaded circle marking the general area (no exact pin) */
.location__map-area {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 67.5%;
  aspect-ratio: 1 / 1;
  border: 2px solid var(--color-teal);
  border-radius: 50%;
  background: rgba(42, 107, 107, 0.18);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

@media (min-width: 56em) {
  .location__map {
    aspect-ratio: 5 / 4;
  }
}

.curve__fill--alt {
  fill: var(--color-surface-alt);
}
