/* ==========================================================================
   LabAppt.com — base stylesheet
   Identity: "Harbor Blue & Sky on Frost"
   Harbor #1B4F8A · Sky #7DD3FC · Frost #F5F8FC · Ink #0F1F33
   ========================================================================== */

:root {
  --pine: #1b4f8a;
  --pine-deep: #133a66;
  --ink: #0f1f33;
  --ink-soft: #36506b;
  --muted: #5a6b7e;
  --bone: #f5f8fc;
  --paper: #ffffff;
  --line: #d9e2ec;
  --lime: #7dd3fc;
  --lime-soft: #e0f2fe;
  --coral-ink: #8a3324;
  --amber-ink: #7a5a12;
  --serif: Charter, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 72rem;
  --radius: 0.65rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 1rem/1.65 var(--sans);
}

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

a {
  color: var(--pine);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--pine-deep);
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--pine);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  background: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  box-shadow: 0 8px 24px rgba(18, 58, 102, 0.25);
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--pine);
  color: var(--paper);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  display: block;
  height: 38px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--lime);
  text-decoration: underline;
}

.nav-cta {
  background: var(--lime);
  color: var(--ink) !important;
  padding: 0.5rem 0.9rem;
  border-radius: 0.45rem;
  font-weight: 700;
}

.nav-cta:hover {
  background: #38bdf8;
  color: var(--ink) !important;
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */

.breadcrumbs {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.8rem 1.25rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--line);
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--pine);
}

/* --------------------------------------------------------------------------
   Page shell
   -------------------------------------------------------------------------- */

.page-content {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
  margin: 0 0 0.6rem;
}

.section {
  margin: 2.75rem 0 0;
}

.section > h2 {
  position: relative;
  padding-bottom: 0.35rem;
}

.section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.6rem;
  height: 3px;
  background: var(--lime);
  border-radius: 2px;
}

.section-link {
  font-weight: 600;
  margin-top: 0.25rem;
}

.section-link a::after {
  content: " \2192";
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: 1.75rem 0 0.5rem;
}

.hero-main {
  max-width: 46rem;
}

.hero h1 {
  margin-bottom: 0.4em;
}

.hero .lead {
  margin-bottom: 1.4rem;
}

/* --------------------------------------------------------------------------
   Search
   -------------------------------------------------------------------------- */

.search-form {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
  flex-wrap: wrap;
  margin: 0 0 0.9rem;
}

.search-input {
  flex: 1 1 18rem;
  min-width: 0;
  font: 1rem/1.4 var(--sans);
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 0.45rem;
  padding: 0.7rem 0.9rem;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus {
  border-color: var(--pine);
}

.search-results {
  margin: 0 0 1rem;
}

.search-results h3 {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1rem 0 0.35rem;
}

.search-result {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.search-result a {
  font-weight: 600;
  text-decoration: none;
}

.search-result a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Availability messaging
   -------------------------------------------------------------------------- */

.availability-note {
  background: #fff8e6;
  border: 1px solid #ecd9a8;
  border-left: 4px solid #d9a441;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 0 0.4rem 0.4rem 0;
}

.availability-note p {
  margin: 0.4rem 0 0;
}

.availability-note--state {
  background: #fdede7;
  border-color: #ecc8bc;
  border-left-color: #b4543c;
}

.availability-scope {
  font-size: 0.9rem;
  color: var(--muted);
}

.availability-pill {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin: 0.2rem 0 0;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--pine);
  box-shadow: 0 10px 24px rgba(18, 58, 102, 0.1);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0.1rem 0 0.5rem;
}

.card p {
  margin: 0.25rem 0;
  color: var(--ink-soft);
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin: 1.25rem 0;
}

.meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Lists
   -------------------------------------------------------------------------- */

.az-list {
  columns: 2;
  column-gap: 2.5rem;
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  font-weight: 600;
}

.az-list li {
  break-inside: avoid;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--line);
}

.fact-list {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  max-width: 34rem;
}

.fact-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

.fact-list strong {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  flex: 0 0 10rem;
  padding-top: 0.15rem;
}

.link-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.link-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.link-list a {
  font-weight: 600;
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 1.5rem 0;
  padding: 0;
  max-width: 46rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.1rem 3.1rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--ink);
  border-radius: 50%;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9rem;
}

.steps li::after {
  content: "";
  position: absolute;
  left: 0.97rem;
  top: 2.3rem;
  bottom: 0.2rem;
  width: 2px;
  background: var(--line);
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li:last-child::after {
  display: none;
}

.steps strong {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Calls to action
   -------------------------------------------------------------------------- */

.cta-btn,
.cta-button {
  display: inline-block;
  background: var(--pine);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1.2rem;
  border-radius: 0.45rem;
}

.cta-btn:hover,
.cta-button:hover {
  background: var(--pine-deep);
  color: #fff;
}

.cta-bar {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--lime);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}

.cta-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.inline-cta {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--lime);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 1.25rem;
  margin: 1.75rem 0;
}

.inline-cta p:first-child {
  font-weight: 600;
}

.inline-cta p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Order card
   -------------------------------------------------------------------------- */

.order-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.9rem 1.25rem;
  align-items: center;
  background: var(--paper);
  border: 2px solid var(--pine);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin: 1.5rem 0;
}

.order-card-content h3 {
  margin: 0 0 0.35rem;
}

.order-card-content p {
  margin: 0 0 0.6rem;
  color: var(--ink-soft);
}

.order-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.order-card-meta .price {
  color: var(--pine);
  font-weight: 700;
}

.order-card-kicker {
  grid-column: 1 / -1;
  order: -1;
}

.order-card-kicker span {
  display: inline-block;
  background: var(--lime-soft);
  border: 1px solid var(--lime);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.order-card .cta-btn {
  white-space: nowrap;
}

.price {
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Variant sections
   -------------------------------------------------------------------------- */

.variant-section {
  margin: 2.5rem 0 0;
}

.variant-section ul {
  padding-left: 1.25rem;
}

.variant-section li {
  margin-bottom: 0.35rem;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list {
  margin: 1.25rem 0;
  max-width: 52rem;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  margin-bottom: 0.6rem;
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 0.9rem 3rem 0.9rem 1.1rem;
  font-weight: 600;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--pine);
}

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

.faq-item p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Static pages (about, methodology, legal, 404)
   -------------------------------------------------------------------------- */

.static-page {
  max-width: 46rem;
}

.static-page p {
  color: var(--ink-soft);
}

/* Legacy guide wrapper used by index.js fallback rendering */
.guide-content {
  max-width: 46rem;
}

.guide-content h2 {
  margin-top: 2rem;
}

.guide-content p,
.guide-content li {
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--pine-deep);
  color: #eaf2fa;
  margin-top: 3rem;
}

.footer-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 3rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand p {
  color: #c3d6e8;
  font-size: 0.9rem;
}

.footer-brand .logo-img {
  margin-bottom: 0.9rem;
}

.footer-availability {
  color: var(--lime) !important;
}

.site-footer h2 {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 0.75rem;
}

.site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer nav li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: #eaf2fa;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--lime);
  text-decoration: underline;
}

.footer-base {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.1rem 1.25rem 2rem;
  border-top: 1px solid rgba(226, 240, 250, 0.25);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.footer-base p {
  margin: 0;
}

.affiliate-disclosure {
  max-width: 40rem;
  color: #c3d6e8;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .order-card {
    grid-template-columns: 1fr;
  }

  .order-card .cta-btn {
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .logo-img {
    height: 32px;
  }

  .az-list {
    columns: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .fact-list li {
    flex-direction: column;
    gap: 0.15rem;
  }

  .fact-list strong {
    flex-basis: auto;
  }

  .cta-bar {
    align-items: flex-start;
    flex-direction: column;
  }
}
