/* =========================================================
   HOME PAGE
   Hero video, treatment rows, doctors, technology partners.
   ========================================================= */

/* =========================
   HERO
   ========================= */
.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 71px);
  min-height: 620px;
  max-height: 960px;
  overflow: hidden;
  background: #1d1410;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hero .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(29, 20, 16, 0.35) 0%, rgba(29, 20, 16, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  padding: 0 32px;
  text-align: center;
  color: var(--cream);
}

.hero .eyebrow {
  color: var(--beige);
  margin-bottom: 26px;
}

.hero-title {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-size: 84px;
  font-weight: 400;
  line-height: 1;
  color: var(--cream);
}

.hero-desc {
  max-width: 560px;
  text-wrap: balance;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(249, 238, 223, 0.85);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 44px;
}

/* =========================
   TREATMENTS
   ========================= */
.home-treatments {
  padding: 104px 48px 96px;
  background: var(--cream);
}

.feature-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 96px;
  align-items: start;
}

.feature-intro {
  position: sticky;
  top: 140px;
}

.feature-lede {
  margin: 24px 0 40px;
  max-width: 380px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.feature-list {
  border-top: 1px solid var(--line);
}

.feature-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 36px;
  padding: 36px 12px 36px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  transition: background 0.5s ease;
}

.feature-seal {
  width: 112px;
  height: 112px;
  display: block;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.feature-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feature-num {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.feature-name {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.12;
  transition: transform 0.5s ease;
}

.feature-desc {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.feature-arrow {
  justify-self: end;
  font-size: 18px;
  color: var(--gold);
  opacity: 0.45;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature-row:hover .feature-seal {
  transform: rotate(-10deg) scale(1.04);
}

.feature-row:hover .feature-name {
  transform: translateX(6px);
}

.feature-row:hover .feature-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* =========================
   DOCTORS
   ========================= */
.doctor-section {
  /* Same colour as the photo's backdrop so the photo blends in */
  padding: 88px 48px 0;
  background: #EEE7D4;
}

.doctor-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.doctor-layout {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: end;
}

/* Full photo, never cropped; it rests on the section's bottom edge */
.doctor-photo {
  margin: 0;
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

.doctor-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.doctor-info {
  align-self: center;
  padding-bottom: 88px;
}

.doctor-lede {
  max-width: 460px;
  margin: 22px 0 40px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* Names side by side, in the same order as in the photo */
.doctor-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid rgba(63, 33, 21, 0.18);
}

.doctor-person {
  padding: 24px 24px 0 0;
}

.doctor-person + .doctor-person {
  padding-left: 24px;
  border-left: 1px solid rgba(63, 33, 21, 0.18);
}

.doctor-position {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.doctor-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.25;
  color: var(--text);
}

.doctor-degree {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.doctor-role {
  margin: 12px 0 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (max-width: 900px) {
  .doctor-section {
    padding: 72px 24px 0;
  }

  .doctor-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Text first, then the photo resting on the section edge */
  .doctor-photo {
    order: 2;
    justify-self: center;
    max-width: 420px;
  }

  .doctor-info {
    padding-bottom: 0;
    text-align: center;
  }

  .doctor-lede {
    margin-left: auto;
    margin-right: auto;
  }

  .doctor-list {
    max-width: 480px;
    margin: 0 auto;
  }

  .doctor-person {
    padding: 22px 12px 0 0;
  }

  .doctor-person + .doctor-person {
    padding-left: 12px;
  }
}

@media (max-width: 600px) {
  .doctor-name {
    font-size: 19px;
  }

  .doctor-degree {
    font-size: 13px;
  }

  .doctor-position,
  .doctor-role {
    font-size: 10px;
    letter-spacing: 0.18em;
  }
}

/* =========================
   TECHNOLOGY PARTNERS
   ========================= */
.tech-partners {
  background: var(--cream);
  padding: 96px 48px 104px;
  text-align: center;
}

.tech-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 80px;
  align-items: center;
  justify-items: center;
}

.tech-grid img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.55;
  transition: opacity 0.35s ease;
}

.tech-grid img:hover {
  opacity: 0.85;
}

/* Normalize visual weight for smaller logos */
.tech-grid img.logo-small {
  transform: scale(1.25);
}

.tech-grid img[alt="Ultraformer III"] {
  max-height: 42px;
  transform: scale(1.05);
}

.tech-grid img[alt="Morpheus8"] {
  transform: scale(1.4);
}

@media (max-width: 600px) {
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 20px;
  }

  .tech-grid img {
    max-width: 88%;
    max-height: 30px;
    height: auto;
  }

  .tech-grid img[alt="Ultraformer III"] {
    max-height: 30px;
    transform: none;
  }
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1100px) {
  .feature-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .feature-intro {
    position: static;
    text-align: center;
  }

  .feature-lede {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 900px) {
  .hero {
    height: 78vh;
    min-height: 520px;
  }

  .hero-title {
    font-size: 56px;
  }

  .home-treatments,
  .tech-partners {
    padding: 72px 24px;
  }
}

@media (max-width: 640px) {
  .hero .eyebrow {
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  .hero-title {
    font-size: 44px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 300px;
    margin: 36px auto 0;
  }

  .feature-row {
    grid-template-columns: 72px minmax(0, 1fr) 16px;
    gap: 20px;
    padding: 28px 0;
  }

  .feature-seal {
    width: 72px;
    height: 72px;
  }

  .feature-num {
    margin-bottom: 6px;
  }

  .feature-name {
    font-size: 26px;
  }

  .feature-desc {
    font-size: 14px;
  }
}

