/* Service page template (IVF, IUI, Egg Freezing …) — builds on style-index.css + v2.css */

/* Hero */
.svc-hero { position: relative; background: var(--blush); overflow: hidden; }
.svc-hero-lines { position: absolute; left: -40px; bottom: 24px; width: 520px; height: 170px; fill: none; stroke-width: 1.3; pointer-events: none; }
.svc-hero-lines path:first-child { stroke: #e7c9b6; }
.svc-hero-lines path:last-child { stroke: #efd9ca; }
.svc-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-top: 56px; padding-bottom: 88px; }
.svc-hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 30px; font-size: 13.5px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #d9c2b2; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 700; }
.svc-hero h1 { font-family: var(--serif); font-weight: 400; font-size: 60px; line-height: 1.08; letter-spacing: -.01em; color: var(--ink); margin-bottom: 22px; }
.svc-hero h1 span { font-style: italic; color: #b0603f; }
.svc-hero .lead { margin-bottom: 32px; }
.svc-hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.svc-call { gap: 10px; }
.svc-call svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.svc-hero-media { position: relative; height: 500px; }
.svc-hero-media .arch-outline { position: absolute; top: 0; right: 0; width: 90%; height: 480px; border: 1.5px solid var(--gold); border-radius: 260px 260px 260px 36px; }
.svc-hero-media .arch-img { position: absolute; top: 20px; right: 20px; width: 90%; height: 480px; border-radius: 260px 260px 260px 36px; overflow: hidden; background: var(--ink); }
.svc-hero-media .arch-img img { width: 100%; height: 100%; object-fit: cover; }

/* Sticky in-page nav */
.subnav { position: sticky; top: 82px; z-index: 80; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.subnav-inner { display: flex; gap: 6px 34px; overflow-x: auto; scrollbar-width: none; min-height: 58px; align-items: center; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { position: relative; flex: 0 0 auto; padding: 18px 0; font-size: 14.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.subnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--coral); transform: scaleX(0); transition: transform .2s ease; }
.subnav a:hover, .subnav a.is-active { color: var(--ink); }
.subnav a.is-active::after { transform: scaleX(1); }
section[id] { scroll-margin-top: 150px; }

/* Shared section rhythm */
.svc-overview, .svc-who, .svc-process, .svc-lab, .svc-team, .svc-costs, .svc-related { padding: var(--section-y) 0; }
.svc-overview { background: #fff; }
.svc-who { background: var(--cream); }
.svc-process { background: #fff; }
.svc-team { background: var(--blush); }
.svc-costs { background: #fff; }
.svc-related { background: var(--cream); }
.eyebrow.light { color: var(--gold-light); }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 48px; }
.head-row .eyebrow { margin-bottom: 14px; }

/* Overview */
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.overview-copy .h2 { margin-bottom: 22px; }
.overview-copy p:not(.eyebrow) { font-size: 17px; line-height: 1.8; color: var(--muted); }
.overview-copy p + p { margin-top: 16px; }
.facts-card { padding: 34px 36px; border-radius: var(--radius-lg); background: var(--blush); border: 1px solid var(--line-2); }
.facts-card h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; color: var(--ink); margin-bottom: 18px; }
.facts-card dl { margin: 0; }
.facts-card dl div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.facts-card dt { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: #8a6a2e; }
.facts-card dd { margin: 0; font-size: 15.5px; color: var(--ink); font-weight: 600; }
.facts-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Who */
.who-grid { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.who-card { padding: 32px 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.who-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.who-card svg { width: 46px; height: 46px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.who-card h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.3; color: var(--ink); margin-bottom: 8px; }
.who-card p { font-size: 15px; line-height: 1.65; color: var(--muted); }

/* Process */
.step-grid { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: s; }
.step-card { position: relative; padding: 30px 26px 30px; border-radius: var(--radius); background: var(--cream); border-top: 3px solid var(--line-2); transition: border-color .2s ease; }
.step-card:hover { border-top-color: var(--coral); }
.step-no { display: block; font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1; color: var(--coral); margin-bottom: 18px; }
.step-card h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.3; color: var(--ink); margin-bottom: 8px; }
.step-card p { font-size: 14.5px; line-height: 1.65; color: var(--muted); }

/* Lab */
.svc-lab { background: var(--ink); color: #fff; }
.lab-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.lab-copy .h2 { margin-bottom: 20px; }
.lab-copy > p:not(.eyebrow) { font-size: 16.5px; line-height: 1.8; color: #d9dce4; }
.lab-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lab-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; line-height: 1.6; color: #d9dce4; }
.lab-list strong { color: #fff; }
.lab-list svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--gold-light); stroke-width: 2.2; }
.lab-media { border-radius: var(--radius-lg); overflow: hidden; height: 460px; }
.lab-media img { width: 100%; height: 100%; object-fit: cover; }

/* Team (reuses .team-grid/.doc) */
.svc-team .team-grid { margin-top: 0; }

/* Costs */
.costs-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .9fr); gap: 24px; align-items: stretch; }
.costs-intro { display: flex; flex-direction: column; align-items: flex-start; padding-right: 24px; }
.costs-intro .h2 { margin-bottom: 18px; }
.costs-intro > p:not(.eyebrow) { font-size: 16px; line-height: 1.75; color: var(--muted); margin-bottom: 26px; }
.cost-box { padding: 32px 30px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.cost-box h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--ink); margin-bottom: 16px; }
.cost-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cost-box li { display: flex; gap: 12px; font-size: 15px; line-height: 1.55; color: var(--text); }
.cost-box li svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 2.2; margin-top: 1px; }
.cost-box-dark { background: var(--ink); border-color: var(--ink); display: flex; flex-direction: column; }
.cost-box-dark h3 { color: #fff; }
.cost-box-dark p { font-size: 15px; line-height: 1.7; color: #d9dce4; margin-bottom: auto; padding-bottom: 22px; }

/* Story */
.svc-story { background: var(--blush); }
.story-quote { margin: 0 auto; max-width: 880px; padding: 88px 0; text-align: center; }
.story-quote svg { width: 46px; height: 36px; fill: var(--coral); margin: 0 auto 22px; }
.story-quote blockquote { margin: 0 0 18px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 38px; line-height: 1.32; color: var(--ink); }
.story-quote figcaption { font-size: 15px; font-weight: 700; color: var(--ink); }
.disclaimer-dark { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* Related */
.related-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.related-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.related-card img { width: 100%; height: 200px !important; object-fit: cover; }
.related-card span { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px 26px; }
.related-card strong { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--ink); }
.related-card em { font-style: normal; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* CTA subline */
.cta-sub { margin: -6px auto 0; max-width: 560px; font-size: 17px; line-height: 1.7; color: var(--muted); }


/* Step grid with 3 columns (6-step services) */
@media (min-width: 1101px) { .step-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* "Good to know" band (pages without a matching patient story) */
.svc-story.svc-note { background: #fff; padding: 0 0 96px; }
.svc-note .note-box { max-width: 960px; margin: 0 auto; text-align: center; padding: 52px 56px; border-radius: var(--radius-lg); background: var(--blush-2); }
@media (max-width: 680px) { .svc-story.svc-note { padding-bottom: 60px; } .svc-note .note-box { padding: 34px 22px; } }
.svc-note .note-box p.note-text { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.45; color: var(--ink); margin: 0 0 18px; }
.svc-note .note-box p.note-sub { font-size: 15.5px; line-height: 1.7; color: var(--muted); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .costs-wrap { grid-template-columns: 1fr 1fr; }
  .costs-intro { grid-column: 1 / -1; padding-right: 0; }
}
@media (max-width: 1024px) {
  .svc-hero-grid { grid-template-columns: 1fr; gap: 44px; padding-top: 40px; }
  .svc-hero-media { height: 420px; max-width: 600px; width: 100%; margin: 0 auto; }
  .svc-hero-media .arch-outline, .svc-hero-media .arch-img { height: 400px; }
  .subnav { top: 82px; }
  .overview-grid, .lab-grid { grid-template-columns: 1fr; gap: 40px; }
  .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .svc-hero-grid { padding-top: 22px; padding-bottom: 48px; gap: 0; }
  .breadcrumb { margin-bottom: 18px; font-size: 12.5px; }
  .svc-hero h1 { font-size: 38px; margin-bottom: 16px; }
  .svc-hero .lead { margin-bottom: 24px; }
  .svc-hero-btns { flex-direction: column; width: 100%; }
  .svc-hero-btns .btn { width: 100%; }
  .svc-hero-media { order: -1; height: 300px; margin-bottom: 30px; }
  .svc-hero-media .arch-outline, .svc-hero-media .arch-img { height: 280px; width: 92%; border-radius: 150px 150px 150px 24px; }
  .svc-hero-media .arch-img { top: 14px; right: 14px; }
  .svc-hero-lines { display: none; }
  .subnav { top: 66px; }
  .subnav-inner { gap: 24px; min-height: 50px; }
  .subnav a { padding: 15px 0; font-size: 13.5px; }
  section[id] { scroll-margin-top: 126px; }
  .overview-copy p:not(.eyebrow) { font-size: 15.5px; }
  .facts-card { padding: 24px 22px; }
  .facts-card dl div { grid-template-columns: 1fr; gap: 4px; }
  .who-grid, .step-grid, .related-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
  .who-card { padding: 22px; display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px; }
  .who-card svg { width: 40px; height: 40px; margin: 0; grid-row: span 2; }
  .who-card h3 { font-size: 19px; margin: 0; }
  .step-card { padding: 22px; display: grid; grid-template-columns: 46px 1fr; gap: 4px 12px; }
  .step-no { grid-row: span 2; font-size: 28px; margin: 0; }
  .step-card h3 { font-size: 19px; margin: 0; }
  .lab-media { height: 240px; }
  .lab-copy > p:not(.eyebrow) { font-size: 15px; }
  .head-row { margin-bottom: 28px; }
  .costs-wrap { grid-template-columns: 1fr; }
  .cost-box { padding: 24px 22px; }
  .story-quote { padding: 56px 0; }
  .story-quote blockquote { font-size: 26px; }
  .related-card img { height: 170px !important; }
  .cta-sub { font-size: 15.5px; }
}
