/* ==========================================================================
   EntrepreneurDonor.com — High-Conversion Static Site Stylesheet
   Inspired by Cofertility, Ivy Surrogacy, Tulip, and ScientistDonor.com
   ========================================================================== */

:root {
  --bg-cream: #faf7f2;
  --bg-warm-alt: #f3ede3;
  --bg-card: #ffffff;
  --text-primary: #162825;
  --text-secondary: #435451;
  --text-muted: #687875;
  --forest-900: #10211e;
  --forest-800: #18302c;
  --forest-700: #21423d;
  --forest-100: #e7f0ee;
  --accent-coral: #df5638;
  --accent-coral-hover: #c54427;
  --accent-coral-light: #fdf0ed;
  --emerald-700: #146c4e;
  --emerald-100: #e6f5ef;
  --gold-700: #966919;
  --gold-100: #fef6e6;
  --border-subtle: #e6dfd5;
  --border-strong: #d2c8ba;
  --shadow-sm: 0 2px 8px rgba(22, 40, 37, 0.05);
  --shadow-md: 0 8px 24px rgba(22, 40, 37, 0.08);
  --shadow-lg: 0 16px 40px rgba(22, 40, 37, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --max-width: 1280px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 124px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--forest-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-coral);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Top Trust & Availability Bar
   ========================================================================== */
.top-banner {
  background-color: var(--forest-900);
  color: #f4f7f6;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.top-banner-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #34d399;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
}

/* ==========================================================================
   Main Header & Sticky Section Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--forest-800);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--forest-900);
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-stat-pill {
  display: none;
  align-items: center;
  gap: 0.4rem;
  background: var(--emerald-100);
  color: var(--emerald-700);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-full);
}

@media (min-width: 768px) {
  .header-stat-pill {
    display: inline-flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.68rem 1.35rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-coral);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(223, 86, 56, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-coral-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(223, 86, 56, 0.4);
}

.btn-secondary {
  background-color: var(--forest-800);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--forest-900);
  color: #ffffff;
}

.btn-outline {
  background-color: #ffffff;
  color: var(--forest-800);
  border: 1.5px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--forest-800);
  background-color: var(--forest-100);
  color: var(--forest-900);
}

/* Sticky Section Sub-Navigation (Ivy Surrogacy & Cofertility style) */
.section-nav-bar {
  border-top: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.88);
  overflow-x: auto;
  scrollbar-width: none;
}

.section-nav-bar::-webkit-scrollbar {
  display: none;
}

.section-nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0;
  list-style: none;
}

.section-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.section-nav-link:hover,
.section-nav-link.active {
  background-color: var(--forest-800);
  color: #ffffff;
}

.nav-count-badge {
  background: rgba(22, 40, 37, 0.1);
  color: inherit;
  padding: 0.05rem 0.42rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
}

.section-nav-link:hover .nav-count-badge,
.section-nav-link.active .nav-count-badge {
  background: rgba(255, 255, 255, 0.22);
}

/* ==========================================================================
   Hero Section: Cofertility / Tulip Multi-Photo Collage + Conversion Card
   ========================================================================== */
.hero-section {
  padding: 1.75rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 2rem;
  }
}

/* Left Column: Multi-Photo Mosaic + Quick Filmstrip */
.hero-Visual-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.hero-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 175px;
  gap: 0.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

@media (min-width: 640px) {
  .hero-bento {
    grid-auto-rows: 225px;
  }
}

.bento-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #e9e4dc;
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.35s ease;
}

.bento-item:hover img {
  transform: scale(1.04);
}

.bento-item-1 {
  grid-column: span 3;
  grid-row: span 2;
}

.bento-item-2 {
  grid-column: span 3;
  grid-row: span 1;
}

.bento-item-3 {
  grid-column: span 3;
  grid-row: span 1;
}

.bento-item-3 img {
  object-position: center 58%;
}

.bento-item-6 .bento-tag {
  bottom: auto;
  top: 0.5rem;
}

.bento-item-4 {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-item-5 {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-item-6 {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-tag {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: rgba(16, 33, 30, 0.78);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  pointer-events: none;
}

.view-all-photos-btn {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--forest-900);
  border: 1px solid var(--border-strong);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.view-all-photos-btn:hover {
  background: #ffffff;
  transform: scale(1.03);
}

/* Horizontal Mini-Thumbnails Filmstrip under Hero Bento */
.hero-filmstrip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  margin-bottom: 0.45rem;
  padding: 0 0.25rem;
}

.hero-filmstrip-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-filmstrip-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-coral);
  text-decoration: none;
}

.hero-filmstrip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.4rem;
}

@media (max-width: 640px) {
  .hero-filmstrip {
    grid-template-columns: repeat(6, 1fr);
  }
}

.filmstrip-thumb {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid transparent;
  background: #e9e4dc;
  position: relative;
}

.filmstrip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.2s ease;
}

.filmstrip-thumb:hover {
  border-color: var(--accent-coral);
}

.filmstrip-thumb:hover img {
  transform: scale(1.08);
}

/* Right Column: Donor Summary & Instant Conversion Card */
.hero-profile-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.profile-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
}

.badge-free {
  background: var(--accent-coral-light);
  color: var(--accent-coral-hover);
  border: 1px solid rgba(223, 86, 56, 0.25);
}

.badge-verified {
  background: var(--emerald-100);
  color: var(--emerald-700);
}

.badge-gold {
  background: var(--gold-100);
  color: var(--gold-700);
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--forest-900);
  letter-spacing: -0.025em;
  margin-bottom: 0.45rem;
}

.hero-subtitle {
  font-size: 0.96rem;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
}

/* Quick Stats Grid (Cofertility "About Donor" table style) */
.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  background: var(--bg-cream);
  padding: 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--forest-900);
}

.stat-value-highlight {
  color: var(--emerald-700);
}

/* Above-the-Fold High-Conversion Lead Form */
.hero-lead-box {
  background: linear-gradient(180deg, #ffffff 0%, #fcf9f5 100%);
  border: 2px solid var(--forest-800);
  border-radius: var(--radius-md);
  padding: 1.15rem;
}

.lead-box-header {
  margin-bottom: 0.75rem;
}

.lead-box-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--forest-900);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lead-box-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.68rem 0.85rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--forest-800);
  box-shadow: 0 0 0 3px rgba(24, 48, 44, 0.12);
}

.btn-block {
  width: 100%;
  padding: 0.82rem 1.25rem;
  font-size: 0.98rem;
}

.lead-trust-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.35rem;
}

.form-success-msg {
  display: none;
  background: var(--emerald-100);
  border: 1px solid var(--emerald-700);
  color: var(--forest-900);
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.form-success-msg.visible {
  display: block;
}

/* ==========================================================================
   Section Common Layout
   ========================================================================== */
.section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.section-alt {
  background-color: var(--bg-warm-alt);
}

.section-header {
  max-width: 780px;
  margin-bottom: 2rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-coral);
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--forest-900);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.section-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Full 22-Photo Interactive Gallery (Tulip Collage Style)
   ========================================================================== */
.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  background: #ffffff;
  border: 1.5px solid var(--border-strong);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--forest-800);
  color: var(--forest-900);
}

.filter-btn.active {
  background: var(--forest-800);
  border-color: var(--forest-800);
  color: #ffffff;
}

.photo-collage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

@media (min-width: 640px) {
  .photo-collage-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .photo-collage-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
  }
}

.photo-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-card.hidden {
  display: none;
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.photo-card-img-wrap {
  aspect-ratio: 4 / 4.5;
  overflow: hidden;
  background: #ebe6de;
  position: relative;
}

.photo-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.3s ease;
}

.photo-card:hover .photo-card-img-wrap img {
  transform: scale(1.04);
}

.photo-stage-pill {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: rgba(16, 33, 30, 0.8);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.photo-card-body {
  padding: 0.75rem 0.85rem;
}

.photo-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--forest-900);
  margin-bottom: 0.15rem;
}

.photo-card-caption {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   Why Choose a Known Donor? Section
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.why-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--forest-800);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--forest-900);
}

.why-card p {
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.case-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.84rem;
}

.case-links-list li {
  color: var(--text-secondary);
}

/* Comparison Table: Known Donor vs Commercial Sperm Bank */
.comparison-table-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: var(--forest-900);
  color: #ffffff;
  font-weight: 700;
}

.comparison-table th.highlight-col {
  background: var(--emerald-700);
}

.comparison-table td.highlight-col {
  background: rgba(230, 245, 239, 0.35);
  font-weight: 600;
  color: var(--forest-900);
}

/* ==========================================================================
   Academic, Career & Athletic Profile Section
   ========================================================================== */
.bio-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 960px) {
  .bio-two-col {
    grid-template-columns: 7fr 5fr;
  }
}

.accomplishment-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.accomplishment-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--forest-900);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.score-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.score-pill-box {
  background: var(--bg-cream);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
}

.score-pill-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--forest-900);
  line-height: 1.1;
}

.score-pill-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--emerald-700);
  margin-top: 0.2rem;
}

.score-pill-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.bio-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bio-bullet-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.bio-bullet-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--emerald-700);
  font-weight: 800;
}

.report-preview-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.report-preview-card img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.report-preview-card img:hover {
  opacity: 0.92;
}

.report-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Nebula Genomics Polygenic Percentiles Section
   ========================================================================== */
.nebula-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .nebula-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .nebula-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.nebula-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nebula-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--forest-700);
}

.nebula-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.nebula-percentile {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--forest-900);
  line-height: 1;
}

.nebula-direction {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--emerald-100);
  color: var(--emerald-700);
}

.nebula-trait-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--forest-900);
  margin-top: 0.35rem;
}

.nebula-citation {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.nebula-bar-track {
  width: 100%;
  height: 8px;
  background: #ece7df;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0.35rem 0;
}

.nebula-bar-fill {
  height: 100%;
  background: var(--emerald-700);
  border-radius: var(--radius-full);
}

.nebula-thumb-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16 / 11;
  background: #f7f4ef;
}

.nebula-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ==========================================================================
   Clinical Carrier Screening (Sema4 283-Gene Panel) & 23andMe Ancestry
   ========================================================================== */
.genetics-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 960px) {
  .genetics-split {
    grid-template-columns: 1fr 1fr;
  }
}

.clinical-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.clinical-summary-banner {
  background: var(--emerald-100);
  border-left: 4px solid var(--emerald-700);
  padding: 0.9rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--forest-900);
}

.carrier-note-box {
  background: var(--bg-cream);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.95rem;
  margin-bottom: 1.15rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   FAQ & Bottom Conversion Section
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.35rem;
}

.faq-item summary {
  font-weight: 700;
  font-size: 1rem;
  color: var(--forest-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-coral);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.93rem;
  color: var(--text-secondary);
}

/* Bottom Lead Capture Card */
.bottom-cta-section {
  background: var(--forest-900);
  color: #ffffff;
  padding: 4rem 0;
}

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

@media (min-width: 900px) {
  .bottom-cta-grid {
    grid-template-columns: 6fr 6fr;
  }
}

.bottom-cta-card {
  background: #ffffff;
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 20, 18, 0.92);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.lightbox-backdrop.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 1080px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrap {
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.lightbox-img-wrap img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: #ffffff;
  border-radius: var(--radius-sm);
}

.lightbox-caption-bar {
  margin-top: 0.85rem;
  text-align: center;
  color: #f4f7f6;
  max-width: 680px;
}

.lightbox-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.lightbox-caption {
  font-size: 0.88rem;
  color: #cbd5d3;
  margin-top: 0.2rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
}

.lightbox-prev {
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ==========================================================================
   Footer & Mobile Sticky CTA Bar
   ========================================================================== */
.site-footer {
  background: #0c1917;
  color: #9ab0ac;
  padding: 2.5rem 0 5rem;
  font-size: 0.84rem;
}

.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--border-strong);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

@media (min-width: 1024px) {
  .mobile-sticky-cta {
    display: none;
  }
  .site-footer {
    padding-bottom: 2.5rem;
  }
}
