*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --green: #0F6E56; --green-mid: #1D9E75; --green-dark: #085041;
  --green-light: #E8F5F0; --green-pale: #F2FAF7;
  --navy: #1a3a6b; --navy-light: #EBF2FB;
  --purple: #7c3aed; --purple-light: #F5F0FF;
  --amber: #D97706; --amber-light: #FFFBEB;
  --white: #FFFFFF; --off-white: #FAFAF8; --black: #111111;
  --gray-1: #F5F5F3; --gray-2: #E8E8E4; --gray-3: #9A9A94; --gray-4: #555550;
  --nav-blur: rgba(255,255,255,0.88);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
  --max: 1100px;
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--off-white); color: var(--black); -webkit-font-smoothing: antialiased; }

/* NAV */
.secondary-bar {
  position: fixed; top: 56px; left: 0; right: 0; z-index: 99;
  height: 36px; background: white; border-bottom: 0.5px solid var(--gray-2);
  display: flex; align-items: center; justify-content: center; gap: 40px;
}
.secondary-bar a {
  font-size: 12px; font-weight: 500; color: var(--green-dark);
  text-decoration: none; display: flex; align-items: center; gap: 6px;
  letter-spacing: 0.01em; transition: color 0.2s;
}
.secondary-bar a:hover { color: var(--green); }
.secondary-bar .sep { width: 1px; height: 14px; background: var(--gray-2); }
.bar-arrow {
  font-size: 13px; font-weight: 900; color: var(--green);
  line-height: 1; display: inline-flex; flex-shrink: 0;
  transform: scaleX(1.1);
}
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 56px; background: var(--nav-blur); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 0.5px solid var(--gray-2); display: flex; align-items: center; justify-content: space-between; padding: 0 44px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-logo span { font-size: 15px; font-weight: 600; color: var(--black); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 13px; color: var(--gray-4); text-decoration: none; }
.nav-links a:hover { color: var(--black); }
.nav-cta { background: var(--green); color: white; padding: 7px 18px; border-radius: 50px; font-size: 13px; font-weight: 500; text-decoration: none; }
.nav-reorder {
  border: 1px solid var(--gray-2); color: var(--gray-4);
  padding: 7px 18px; border-radius: 50px;
  font-size: 13px; font-weight: 400; text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.nav-reorder:hover { border-color: var(--green); color: var(--green); }

.page-wrap { padding-top: 92px; }

/* HERO */
.hero { background: white; border-bottom: 0.5px solid var(--gray-2); padding: 80px 44px 64px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); margin-bottom: 20px; }
.eyebrow::before { content: ''; display: block; width: 20px; height: 1.5px; background: var(--green); }
.hero h1 { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.1; color: var(--black); margin-bottom: 16px; }
.hero h1 em { color: var(--green); font-style: italic; }
.hero p { font-size: 17px; font-weight: 300; color: var(--gray-4); max-width: 580px; margin: 0 auto; line-height: 1.7; }

/* STICKY NAV */
.sticky-nav { background: white; border-bottom: 0.5px solid var(--gray-2); position: sticky; top: 56px; z-index: 50; }
.sticky-nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 44px; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.sticky-nav-inner::-webkit-scrollbar { display: none; }
.snav-link { padding: 16px 18px; font-size: 13px; font-weight: 500; color: var(--gray-3); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.snav-link:hover { color: var(--black); }
.snav-link.active { color: var(--green); border-bottom-color: var(--green); }

/* BODY */
.body-wrap { max-width: var(--max); margin: 0 auto; padding: 0 44px; }

/* PHLEBOTOMY NOTICE */
.phlebotomy-notice {
  background: var(--amber-light); border: 1px solid #fcd34d; border-radius: 16px;
  padding: 24px 28px; margin: 48px 0 0;
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
}
.phlebotomy-notice .icon { font-size: 22px; margin-top: 2px; }
.phlebotomy-notice h4 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 6px; }
.phlebotomy-notice p { font-size: 14px; color: #78350F; line-height: 1.7; }
.phlebotomy-notice strong { color: #92400E; }

/* SECTION */
.bt-section { padding: 72px 0; border-bottom: 0.5px solid var(--gray-2); }
.bt-section:last-of-type { border-bottom: none; }

.section-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.section-tag::before { content: ''; display: block; width: 20px; height: 1.5px; }
.section-tag.green { color: var(--green); } .section-tag.green::before { background: var(--green); }
.section-tag.navy { color: var(--navy); } .section-tag.navy::before { background: var(--navy); }
.section-tag.purple { color: var(--purple); } .section-tag.purple::before { background: var(--purple); }
.section-tag.amber { color: var(--amber); } .section-tag.amber::before { background: var(--amber); }

.section-title { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.12; color: var(--black); margin-bottom: 12px; }
.section-title em { color: var(--green); font-style: italic; }
.section-sub { font-size: 16px; font-weight: 300; color: var(--gray-4); line-height: 1.75; max-width: 640px; margin-bottom: 40px; }

/* RECOMMENDED PROFILE - HERO CARD */
.recommended-card {
  background: linear-gradient(180deg, #0F6E56 0%, #2EAF82 35%, #6ECFAB 60%, #B8E8D8 85%, #ffffff 100%);
  border-radius: 24px; padding: 48px; color: white; margin-bottom: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.rec-left h3 { font-family: var(--serif); font-size: 1.8rem; margin-bottom: 12px; line-height: 1.2; color: white; }
.rec-left h3 em { font-style: italic; opacity: 0.9; }
.rec-left p { font-size: 15px; color: rgba(255,255,255,0.85); line-height: 1.75; margin-bottom: 24px; }
.rec-price { font-family: var(--serif); font-size: 3rem; color: white; line-height: 1; margin-bottom: 4px; }
.rec-price sup { font-size: 1.3rem; vertical-align: super; }
.rec-price-note { font-size: 13px; color: rgba(255,255,255,0.75); margin-bottom: 20px; }
.rec-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.rec-btn-w { background: white; color: var(--green-dark); padding: 13px 26px; border-radius: 50px; font-size: 14px; font-weight: 500; text-decoration: none; transition: opacity 0.15s; }
.rec-btn-w:hover { opacity: 0.9; }
.rec-btn-o { border: 1.5px solid rgba(255,255,255,0.4); color: white; padding: 13px 26px; border-radius: 50px; font-size: 14px; font-weight: 400; text-decoration: none; }
.rec-btn-o:hover { border-color: rgba(255,255,255,0.8); }
.rec-tests { display: flex; flex-direction: column; gap: 0; }

/* CHECKOUT */
.checkout-card { background: white; border: 1px solid var(--gray-2); border-radius: 20px; padding: 36px 40px; max-width: 600px; }
.checkout-empty { font-size: 14px; color: var(--gray-3); text-align: center; padding: 12px 0; }
.checkout-item { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--gray-2); }
.checkout-item-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-3); margin-bottom: 4px; }
.checkout-item-name { font-family: var(--serif); font-size: 1.3rem; }
.checkout-item-price { font-family: var(--serif); font-size: 1.6rem; color: var(--green); }
.checkout-options-label { font-size: 13px; font-weight: 600; color: var(--black); margin-bottom: 12px; }
.checkout-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--gray-2); border-radius: 14px; margin-bottom: 10px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.checkout-option:hover { border-color: var(--navy); }
.checkout-option input[type="radio"] { width: 18px; height: 18px; accent-color: var(--navy); flex-shrink: 0; }
.checkout-option input[type="radio"]:checked ~ .checkout-option-body .checkout-option-name { color: var(--navy); }
.checkout-option:has(input:checked) { border-color: var(--navy); background: var(--navy-light); }
.checkout-option-body { flex: 1; display: flex; flex-direction: column; }
.checkout-option-name { font-size: 14px; font-weight: 500; color: var(--black); }
.checkout-option-desc { font-size: 12px; color: var(--gray-3); margin-top: 2px; }
.checkout-option-fee { font-size: 13px; font-weight: 600; color: var(--gray-4); flex-shrink: 0; }
.checkout-total-row { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; margin-top: 8px; border-top: 1px solid var(--gray-2); font-size: 15px; font-weight: 500; }
.checkout-total { font-family: var(--serif); font-size: 1.8rem; color: var(--navy); }
.checkout-pay-btn { display: block; width: 100%; text-align: center; background: var(--navy); color: white; padding: 15px; border-radius: 50px; font-size: 15px; font-weight: 500; text-decoration: none; margin-top: 20px; transition: background 0.2s; }
.checkout-pay-btn:hover { background: #234d8a; }
.checkout-note { font-size: 12px; color: var(--gray-3); text-align: center; margin-top: 12px; line-height: 1.5; }
.checkout-calendar-wrap { margin-top: 8px; }
.checkout-calendar-iframe { width: 100%; height: 560px; border: 1px solid var(--gray-2); border-radius: 14px; display: block; }
.rec-group { margin-bottom: 16px; }
.rec-group-label { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.rec-test-list { display: flex; flex-wrap: wrap; gap: 6px; }
.rec-pill { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); font-size: 12px; padding: 4px 10px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.15); }
.rec-pill.highlight { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.3); font-weight: 500; }

/* PACKAGE GRID */
.packages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.packages-grid.two { grid-template-columns: repeat(2, 1fr); }
/* PACKAGE CARDS - equal height with footer pinned to bottom */
.packages-grid { align-items: stretch; }
.packages-grid.two { align-items: stretch; }
.specialist-grid { align-items: stretch; }

.package-card {
  background: white; border: 1px solid var(--gray-2); border-radius: 20px;
  overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column; /* KEY: makes footer pin to bottom */
}
.package-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.07); }
.package-card.featured { border-color: var(--green); border-width: 2px; }
.pkg-head { padding: 24px 24px 18px; border-bottom: 1px solid var(--gray-2); flex-shrink: 0; }
.pkg-head.green { background: var(--green-pale); border-bottom-color: var(--green-light); }
.pkg-head.navy { background: var(--navy-light); border-bottom-color: #c8daf5; }
.pkg-head.purple { background: var(--purple-light); border-bottom-color: #ddd0f9; }
.pkg-head.amber { background: var(--amber-light); border-bottom-color: #fde68a; }
.pkg-badge { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; margin-bottom: 8px; }
.pkg-badge.green { background: var(--green-light); color: var(--green-dark); }
.pkg-badge.navy { background: var(--navy-light); color: var(--navy); }
.pkg-badge.purple { background: var(--purple-light); color: var(--purple); }
.pkg-badge.amber { background: var(--amber-light); color: var(--amber); }
.pkg-head h4 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 4px; }
.pkg-head p { font-size: 12px; color: var(--gray-3); line-height: 1.5; }
.pkg-price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.pkg-price { font-family: var(--serif); font-size: 2rem; color: var(--black); }
.pkg-price sup { font-size: 0.9rem; vertical-align: super; }
.pkg-price-note { font-size: 12px; color: var(--gray-3); }
.pkg-body { padding: 16px 24px 20px; flex: 1; /* grows to fill space */ }
.pkg-group { margin-bottom: 14px; }
.pkg-group:last-child { margin-bottom: 0; }
.pkg-group-label { font-size: 10px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--gray-3); margin-bottom: 6px; }
.pkg-tests { display: flex; flex-wrap: wrap; gap: 5px; }
.pkg-test { font-size: 12px; color: var(--gray-4); background: var(--gray-1); padding: 3px 9px; border-radius: 20px; border: 1px solid var(--gray-2); }
.pkg-foot { padding: 14px 24px 20px; border-top: 1px solid var(--gray-2); flex-shrink: 0; /* stays at bottom */ margin-top: auto; }
.pkg-foot a { display: block; text-align: center; padding: 12px; border-radius: 50px; font-size: 13px; font-weight: 500; text-decoration: none; transition: all 0.15s; }
.pkg-foot a.green { background: var(--green); color: white; }
.pkg-foot a.green:hover { background: var(--green-mid); }
.pkg-foot a.navy { background: var(--navy); color: white; }
.pkg-foot a.navy:hover { background: #243f7a; }
.pkg-foot a.purple { background: var(--purple); color: white; }
.pkg-foot a.amber { background: var(--amber); color: white; }
.pkg-foot a.outl { border: 1.5px solid var(--gray-2); color: var(--black); }
.pkg-foot a.outl:hover { border-color: var(--black); }

/* SPECIALIST SECTION */
.specialist-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* STANDALONE TESTS - equal height, price pinned to bottom */
.standalone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: stretch; }
.standalone-card {
  background: white; border: 1px solid var(--gray-2); border-radius: 14px; padding: 20px;
  transition: border-color 0.15s;
  display: flex; flex-direction: column; /* equal height */
}
.standalone-card:hover { border-color: var(--green); }
.standalone-card h5 { font-family: var(--serif); font-size: 1rem; margin-bottom: 4px; }
.standalone-card p { font-size: 13px; color: var(--gray-3); line-height: 1.55; margin-bottom: 10px; flex: 1; /* pushes price down */ }
.standalone-price { font-family: var(--serif); font-size: 1.3rem; color: var(--green); margin-top: auto; }

/* PHLEBOTOMY SECTION */
.phlebotomy-card { background: var(--black); border-radius: 20px; padding: 40px 44px; color: white; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.phlebotomy-card h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 10px; }
.phlebotomy-card p { font-size: 15px; color: rgba(255,255,255,0.55); line-height: 1.75; max-width: 520px; }
.phlebotomy-card ul { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.phlebotomy-card ul li { font-size: 14px; color: rgba(255,255,255,0.6); display: flex; gap: 8px; line-height: 1.5; }
.phlebotomy-card ul li::before { content: '✓'; color: var(--green-mid); font-weight: 700; flex-shrink: 0; }
.phlebotomy-right { text-align: center; flex-shrink: 0; }
.phlebotomy-price { font-family: var(--serif); font-size: 2.8rem; color: white; line-height: 1; }
.phlebotomy-price sup { font-size: 1.2rem; vertical-align: super; }
.phlebotomy-period { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 4px; margin-bottom: 16px; }
.phlebotomy-btn { display: inline-block; background: white; color: var(--black); padding: 12px 22px; border-radius: 10px; font-size: 13px; font-weight: 500; text-decoration: none; }
.phlebotomy-btn:hover { opacity: 0.9; }

/* COMPARISON TABLE */
.compare-table { width: 100%; border-collapse: collapse; background: white; border-radius: 16px; overflow: hidden; border: 1px solid var(--gray-2); font-size: 13px; }
.compare-table th { background: var(--green); color: white; padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.compare-table th:first-child { width: 220px; }
.compare-table td { padding: 11px 16px; border-bottom: 0.5px solid var(--gray-2); color: var(--gray-4); vertical-align: middle; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--gray-1); }
.compare-table td:first-child { font-weight: 500; color: var(--black); font-size: 13px; }
.tick { color: var(--green); font-weight: 700; font-size: 14px; }
.cross { color: var(--gray-2); font-size: 14px; }

/* CTA */
.page-cta { background: var(--gray-1); border-top: 0.5px solid var(--gray-2); padding: 64px 44px; text-align: center; }
.page-cta h3 { font-family: var(--serif); font-size: 2rem; margin-bottom: 12px; }
.page-cta h3 em { color: var(--green); font-style: italic; }
.page-cta p { font-size: 16px; color: var(--gray-4); max-width: 520px; margin: 0 auto 32px; line-height: 1.7; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-green { background: var(--green); color: white; padding: 14px 28px; border-radius: 50px; font-size: 15px; font-weight: 500; text-decoration: none; }
.btn-green:hover { background: var(--green-mid); }
.btn-outl { border: 1.5px solid var(--gray-2); color: var(--black); padding: 14px 28px; border-radius: 50px; font-size: 15px; font-weight: 400; text-decoration: none; }
.btn-outl:hover { border-color: var(--black); }

/* FOOTER */
footer { background: var(--black); color: white; padding: 48px 44px 28px; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand h4 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 8px; }
.footer-brand p { font-size: 12px; color: rgba(255,255,255,0.35); line-height: 1.8; }
.footer-col h5 { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: none; margin-bottom: 8px; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 0.5px solid rgba(255,255,255,0.08); padding-top: 20px; font-size: 12px; color: rgba(255,255,255,0.2); display: flex; justify-content: space-between; }
.footer-bottom a { color: rgba(255,255,255,0.25); text-decoration: none; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }

@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 60px 20px 48px; }
  .body-wrap { padding: 0 20px; }
  .recommended-card { grid-template-columns: 1fr; padding: 28px 24px; gap: 28px; }
  .packages-grid, .packages-grid.two { grid-template-columns: 1fr; }
  .specialist-grid { grid-template-columns: 1fr; }
  .standalone-grid { grid-template-columns: 1fr 1fr; }
  .phlebotomy-card { grid-template-columns: 1fr; padding: 28px 24px; gap: 20px; }
  .phlebotomy-right { text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .page-cta { padding: 48px 20px; }
  .phlebotomy-notice { grid-template-columns: 1fr; }
}
