/* ─── HORMOX HOMEPAGE — clean, static, no scroll/scrub animation ─── */

/* ─── SHARED SECTION HEAD ─────────────────────────────────────── */
.hm-section-head {
  max-width: 60ch;
  margin-bottom: 56px;
}
.hm-section-head .tag { margin-bottom: 18px; }
.hm-section-head .section-sub { margin-top: 16px; }

/* ─── HERO ────────────────────────────────────────────────────── */
.hm-hero {
  padding: 140px 0 80px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, var(--accent-light) 0%, transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border-subtle);
}
.hm-hero-inner {
  max-width: 760px;
  min-width: 0;
}
.hm-hero .tag { margin-bottom: 28px; }
.hm-hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.hm-hero-title .accent { color: var(--accent-mid); }
.hm-hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 58ch;
  margin-bottom: 36px;
}
.hm-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
/* Hero two-column layout */
.hm-hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 380px);
  gap: 56px;
  align-items: center;
}
.hm-hero-visual { display: flex; justify-content: center; min-width: 0; }

/* Hero photo — generated at 2:3 to fit this card with no crop. */
.hm-hero-photo {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.hm-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── STANDARD OF CARE (trust strip, after hero) ─────────────────
   Same treatment as the TRT page's post-hero trust strip: centred
   label, centred chip row, on a warm band. */
.hm-standard { padding: 44px 0; background: var(--bg-warm); border-bottom: 1px solid var(--border); }
.hm-standard-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-align: center;
}
.hm-standard-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
  margin: 4px 0 24px;
}
.hm-standard-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 32px;
}
.hm-standard-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}
.hm-standard-list i { color: var(--accent-mid); font-size: 18px; }
.hm-standard-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-align: center;
}
.hm-standard-foot i { font-size: 16px; }
@media (max-width: 720px) {
  .hm-standard-list { gap: 10px 20px; }
  .hm-standard-list li { font-size: 13px; }
}

/* ─── TREATMENTS ──────────────────────────────────────────────── */
.hm-treatments { padding: 110px 0; }
.hm-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.hm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.hm-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Photo variant: image replaces the icon, spanning the card's full width
   at the top — border-radius comes from the card itself via overflow:hidden. */
.hm-card--photo { padding: 0; overflow: hidden; }
.hm-card-photo { width: 100%; aspect-ratio: 3 / 2; overflow: hidden; }
.hm-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.hm-card--photo:hover .hm-card-photo img { transform: scale(1.03); }
.hm-card-body { padding: 28px 32px 32px; display: flex; flex-direction: column; flex: 1; }
.hm-card-body .hm-card-title { margin-bottom: 12px; }

/* Coming-soon cards: present but not yet interactive */
.hm-card--soon { cursor: default; }
.hm-card--soon:hover {
  border-color: var(--border);
  box-shadow: none;
  transform: none;
}
.hm-card--soon .hm-card-link {
  color: var(--text-muted);
  cursor: default;
}
.hm-card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  /* The photo's hover-zoom transform promotes it to its own paint layer;
     without an explicit z-index here the badge has none either (both
     default to auto) and loses on DOM order, disappearing behind the
     photo whenever it overlaps the badge's corner. */
  z-index: 2;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-warm);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}
.hm-card-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.hm-card-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}
.hm-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-ink);
}
.hm-card-link i { transition: transform 0.2s ease; }
.hm-card:hover .hm-card-link i { transform: translateX(4px); }

/* ─── PHYSICIAN-LED ───────────────────────────────────────────── */
.hm-lead {
  padding: 110px 0;
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
}
.hm-lead-inner {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 64px;
  align-items: center;
}
.hm-lead-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-warm);
  aspect-ratio: 4 / 5;
}
.hm-lead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hm-lead-body .tag { margin-bottom: 18px; }
.hm-lead-body .section-sub { margin: 16px 0 28px; }
.hm-lead-person { margin-bottom: 20px; }
.hm-lead-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.hm-lead-role {
  font-size: 14px;
  color: var(--text-muted);
}

/* ─── PATIENT PORTAL ──────────────────────────────────────────── */
.hm-portal { padding: 110px 0; }
.hm-portal-inner {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 64px;
  align-items: center;
}
.hm-portal-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}
.hm-portal-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.hm-portal-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-mid);
  font-size: 24px;
  margin-bottom: 18px;
}
.hm-portal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.hm-portal-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── CTA ─────────────────────────────────────────────────────── */
.hm-cta {
  padding: 110px 0;
  background: var(--text-primary);
}
.hm-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hm-cta-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
  margin: 16px 0 20px;
}
.hm-cta-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  max-width: 46ch;
}
.hm-cta-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.hm-cta-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.82);
}
.hm-cta-points i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c7dbff;
  font-size: 15px;
  flex-shrink: 0;
}

/* form */
.hm-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 36px;
}
.hm-form-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}
.hm-form-quiz-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 10px 14px;
  border-radius: 10px;
  margin: -8px 0 20px;
}
.hm-form-quiz-notice i { font-size: 16px; flex-shrink: 0; }
.hm-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.form-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.form-input,
.form-select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  color: #fff;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-input::placeholder { color: rgba(255,255,255,0.66); }
.form-input:focus,
.form-select:focus {
  border-color: var(--accent-border);
  background: rgba(255,255,255,0.09);
}
.form-select {
  appearance: none;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
}
.form-select option { background: #1a1a18; }
.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: #fff;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  margin-top: 20px;
  transition: background 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}
.btn-cta:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn-cta:active { transform: scale(0.98); }
.hm-form-disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,0.66);
  margin-top: 14px;
  text-align: center;
  line-height: 1.5;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hm-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hm-hero-visual { max-width: 480px; margin: 0 auto; }
  /* Centred, matching the treatment pages' mobile hero layout. */
  .hm-hero-inner { text-align: center; }
  .hm-hero-sub { margin-left: auto; margin-right: auto; }
  .hm-hero-actions { justify-content: center; }
  .hm-lead-inner { grid-template-columns: 1fr; gap: 40px; }
  .hm-lead-media { max-width: 420px; aspect-ratio: 4 / 4; margin: 0 auto; }
  .hm-cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .hm-portal-inner { grid-template-columns: 1fr; gap: 40px; }
  .hm-portal-media { max-width: 420px; aspect-ratio: 4 / 3; margin: 0 auto; }
}
@media (max-width: 768px) {
  .hm-hero { padding: 120px 0 60px; }
  .hm-cards { grid-template-columns: 1fr; }
  .hm-portal-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hm-treatments, .hm-lead, .hm-portal, .hm-cta { padding: 72px 0; }
  .hm-form-row { grid-template-columns: 1fr; }
}
