/* Optima Vida Healthcare — lab-ordering site
   Brand colors taken from the current ovhmed.com site.
   #42a4a4 is used only as decoration; text and buttons use darker teals for WCAG AA contrast. */

:root {
  --ink: #0d141a;
  --ink-2: #1c3e45;
  --muted: #3d5559;
  --teal: #42a4a4;
  --teal-deep: #165c5c;
  --teal-btn: #164e4e;
  --teal-btn-hover: #113c3c;
  --teal-wash: #eaf7f7;
  --cream: #f4faf9;
  --white: #ffffff;
  --border: #c5d6d6;
  --draft-bg: #fff4d6;
  --draft-ink: #5c4a16;
  --focus: #165c5c;
  --shadow: 0 8px 24px rgba(13, 20, 26, 0.08);
  --radius: 16px;
  --header-h: 4.5rem;
  --font: "IBM Plex Sans", "Source Sans 3", "Segoe UI", sans-serif;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --max: 70rem;
  --prose: 42rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal-deep);
  text-underline-offset: 0.15em;
}

a:hover { color: var(--teal-btn-hover); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1000;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }


/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo-link {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.logo-link img {
  height: 3.15rem;
  width: auto;
}
.logo-link:hover { opacity: 0.9; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 1.4rem; height: 1.4rem; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle .icon-close { display: none; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.site-nav a {
  display: block;
  padding: 0.7rem 0.85rem;
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 600;
  border-radius: 8px;
}
.site-nav a:hover,
.site-nav a:focus-visible { background: var(--teal-wash); color: var(--teal-deep); }

.nav-panel {
  display: none;
  border-top: 1px solid var(--border);
  padding: 0.5rem 1.25rem 1rem;
  background: var(--white);
}
.nav-panel.is-open { display: block; }

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .nav-panel {
    display: block;
    border: 0;
    padding: 0;
    background: transparent;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }
  .site-nav a { padding: 0.45rem 0.7rem; }
}

/* Layout helpers */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}
.section-tint { background: var(--cream); }
.section-wash { background: var(--teal-wash); }

.section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 0.5rem;
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink-2);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.15rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
.lede, .section-intro {
  font-size: 1.125rem;
  color: var(--ink-2);
  max-width: var(--prose);
}
.section-intro { margin: 0 0 1.75rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  font-family: inherit;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
}
.btn-primary {
  background: var(--teal-btn);
  color: var(--white);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--teal-btn-hover);
  color: var(--white);
}
.btn-secondary {
  background: var(--white);
  color: var(--teal-btn);
  border-color: var(--teal-btn);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--teal-wash);
  color: var(--teal-btn-hover);
}
.btn-light {
  background: var(--white);
  color: var(--teal-btn);
}
.btn-light:hover { background: var(--cream); color: var(--teal-btn-hover); }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}
.ext-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 100% 0%, rgba(66,164,164,0.18), transparent 42%),
    linear-gradient(180deg, var(--teal-wash) 0%, var(--white) 100%);
  padding: 3rem 0 3.5rem;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero p.lede { margin: 0.85rem 0 0; }
.hero-meta {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  color: var(--ink-2);
  font-size: 0.98rem;
}
.hero-meta li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}
.hero-meta li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--teal);
  flex: 0 0 auto;
}
.hero-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.4rem 1.5rem;
}
.hero-panel h2 {
  font-size: 1.15rem;
  font-family: var(--font);
  margin-bottom: 1rem;
}
.flow-mini {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.flow-mini li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: start;
}
.step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ink-2);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex: 0 0 auto;
}
.flow-mini strong { display: block; color: var(--ink-2); }
.flow-mini span { color: var(--muted); font-size: 0.92rem; }

@media (min-width: 880px) {
  .hero { padding: 4.25rem 0 4.75rem; }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 3rem; }
}

/* How it works */
.step-card, .path-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
}
.step-card {
  border-top: 5px solid var(--teal);
  margin-bottom: 1.5rem;
}
.step-head {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.path-grid {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 800px) {
  .path-grid { grid-template-columns: 1fr 1fr; }
}
.path-card h3 { margin-top: 0.35rem; }
.path-card.self-pay { border-top: 5px solid var(--teal-deep); }
.path-card.insurance { border-top: 5px solid var(--ink-2); }
.path-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0;
}
.path-card ul { margin: 0.6rem 0 1rem; padding-left: 1.15rem; }
.path-card li { margin: 0.3rem 0; }
.placeholder {
  background: var(--draft-bg);
  color: var(--draft-ink);
  border-left: 4px solid #c4a54a;
  padding: 0.65rem 0.8rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  margin: 0.75rem 0 1rem;
}
.placeholder code, .placeholder strong { font-weight: 700; }

.fork-note {
  text-align: center;
  font-weight: 650;
  color: var(--ink-2);
  margin: 0 0 1.15rem;
}

/* Lab cards */
.lab-reminder {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin: 0 0 1.5rem;
  color: var(--ink-2);
}
.lab-grid {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 640px) {
  .lab-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .lab-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.lab-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 rgba(13,20,26,0.03);
}
.lab-card:hover { border-color: var(--teal-deep); }
.lab-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--teal-wash);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.55rem;
}
.lab-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.lab-card .desc {
  color: var(--ink-2);
  font-size: 0.98rem;
  margin: 0 0 0.8rem;
  flex: 1 1 auto;
}
.lab-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
}
.lab-meta li {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink-2);
  margin: 0 0 0.35rem;
  font-variant-numeric: tabular-nums;
}
.price-note { font-size: 0.8rem; color: var(--muted); margin: 0 0 0.85rem; }
.lab-card details {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
}
.lab-card summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--teal-deep);
}
.lab-card details ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.lab-card .btn { width: 100%; }
.catalog-link { margin-top: 1.5rem; text-align: center; }

/* About */
.about-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .about-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.about-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.cred-list, .about-card ul { margin: 0.4rem 0 0; padding-left: 1.15rem; }
.fine-print { font-size: 0.9rem; color: var(--muted); margin-top: 0.9rem; }

/* FAQ */
.faq-list { max-width: 48rem; }
.faq-list details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0 0 0.65rem;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--ink-2);
  padding: 0.2rem 0;
}
.faq-list details p,
.faq-list details ul { margin: 0.6rem 0 0.2rem; }
.faq-list details[open] summary { color: var(--teal-deep); }

/* Contact */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  max-width: 40rem;
}
.contact-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.contact-list dt, .contact-list .label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.contact-list a { font-weight: 650; }

/* Footer */
.site-footer {
  background: var(--ink-2);
  color: #e8f2f2;
  padding: 2.5rem 0 2rem;
  font-size: 0.95rem;
}
.site-footer a { color: #d7ecec; }
.site-footer a:hover { color: #ffffff; }
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
}
.disclaimer {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #d5e4e4;
  max-width: 48rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1rem 0 0;
}
.copyright { margin-top: 1.5rem; font-size: 0.85rem; color: #c5d6d6; }

/* Inner pages */
.page-main { padding: 3rem 0 4rem; }
.prose { max-width: var(--prose); }
.prose h1 { margin-bottom: 1rem; }

/* Utilities */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}


/* Insurance-path provider review fees */
.review-fees {
  margin-top: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 5px solid var(--ink-2);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
}
.review-fees h3 { margin-top: 0; }
.review-fees > p { max-width: var(--prose); margin: 0 0 1.1rem; }
.fee-table-wrap { overflow-x: auto; }
.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.fee-table th,
.fee-table td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.fee-table thead th {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--cream);
}
.fee-table tbody th {
  font-weight: 650;
  color: var(--ink-2);
}
.fee-table tbody tr:last-child th,
.fee-table tbody tr:last-child td { border-bottom: 0; }
.fee-table .placeholder {
  display: inline-block;
  margin: 0;
  font-weight: 700;
  font-size: 0.85rem;
}
@media (min-width: 700px) {
  .fee-table { max-width: 40rem; }
}

.fee-table .fee-amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

/* Legal document pages (Terms of Use, Privacy Policy) */
.prose h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 2.15rem 0 0.7rem;
}
.prose h3 {
  font-size: 1.08rem;
  margin: 1.5rem 0 0.55rem;
}
.prose .effective-date {
  margin: -0.15rem 0 1.5rem;
  font-weight: 600;
  color: var(--ink-2);
}
.prose p { margin: 0 0 0.95rem; }
.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}
.prose li { margin: 0 0 0.3rem; }
.prose .legal-contact {
  font-style: normal;
  margin: 0 0 1rem;
  line-height: 1.7;
}
.prose .legal-back { margin-top: 2.5rem; }
