/* LegSmart prototype styles. Loaded after Bootstrap, so these override its defaults. */

/* Self-hosted font: Atkinson Hyperlegible Next, designed by the Braille Institute for readers with low vision. One variable file covers weights 200 to 800. */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* Palette from spec section 4, plus two brand accents sampled from the logo. */
:root {
  --ls-bg: #fafafa;
  --ls-bg-alt: #f1f0f7;
  --ls-ink: #111;
  --ls-purple: #30194f;
  --ls-teal: #006688;
  --ls-teal-dark: #004d66;
  --ls-navy: #001a44;
  --ls-orange: #e98a15;
  --ls-cyan: #0099cc; /* header focus color: same hue as the brand teal, lighter */
  --ls-border: #dcd9e6;

  --bs-body-font-family: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-font-size: 1.125rem; /* 18px base for older readers */
  --bs-body-line-height: 1.6;
  --bs-body-color: var(--ls-ink);
  --bs-body-bg: var(--ls-bg);
  --bs-link-color: var(--ls-teal);
  --bs-link-color-rgb: 0, 102, 136;
  --bs-link-hover-color: var(--ls-teal-dark);
  --bs-link-hover-color-rgb: 0, 77, 102;
  --bs-heading-color: var(--ls-ink);
}

@media (min-width: 1200px) {
  .container { max-width: 1080px; }
}

/* Sticky footer: the page is always at least as tall as the screen. On short pages the spare space goes below the main content, above the footer, so the footer sits at the bottom of the screen. Long pages are unaffected. dvh follows the phone browser's address bar as it shows and hides; vh is the fallback for older browsers. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 { font-weight: 700; }
.eyebrow { font-weight: 400; }

a { text-underline-offset: 0.15em; }

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

/* Anchor jumps leave a little room above the heading */
section[id] { scroll-margin-top: 1rem; }

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--ls-navy);
  color: #fff;
  border-radius: 0.375rem;
}

.icon { width: 1.1em; height: 1.1em; vertical-align: -0.15em; }
.icon-lg { width: 2rem; height: 2rem; color: var(--ls-teal); margin-bottom: 0.5rem; }

/* Buttons */
.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--ls-teal);
  --bs-btn-border-color: var(--ls-teal);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--ls-teal-dark);
  --bs-btn-hover-border-color: var(--ls-teal-dark);
  --bs-btn-active-bg: var(--ls-teal-dark);
  --bs-btn-active-border-color: var(--ls-teal-dark);
  --bs-btn-font-weight: 700;
}

/* 1. Header */
.site-header { background: var(--ls-bg); border-bottom: 1px solid var(--ls-border); }
.site-header .navbar { padding-block: 1rem; }
.site-header .nav-link {
  color: var(--ls-ink);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding-inline: 0.75rem !important;
}
.site-header .nav-link:hover { color: var(--ls-teal); text-decoration: underline; }
.navbar-toggler {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 2px solid var(--ls-ink);
  font-weight: 700;
  padding: 0.45rem 0.8rem;
}

/* Menu icon: two lines when closed, crossing into an X when open */
.menu-icon { position: relative; display: block; width: 22px; height: 14px; }
.menu-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: top 0.25s ease, transform 0.25s ease;
}
.menu-icon span:first-child { top: 2px; }
.menu-icon span:last-child { top: 9.5px; }
.navbar-toggler[aria-expanded="true"] .menu-icon span { top: 5.75px; }
.navbar-toggler[aria-expanded="true"] .menu-icon span:first-child { transform: rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .menu-icon span:last-child { transform: rotate(-45deg); }

/* Header focus color. Replaces Bootstrap's gray ring on the menu button and its light blue ring on the links. */
.site-header .navbar-toggler:focus { outline: 0; box-shadow: 0 0 0 3px var(--ls-cyan); }
.site-header .nav-link:focus-visible,
.site-header .btn:focus-visible,
.site-header .navbar-brand:focus-visible {
  outline: 3px solid var(--ls-cyan);
  outline-offset: 2px;
  box-shadow: none;
  border-radius: 0.25rem;
}
.header-phone { font-size: 1.05rem; white-space: nowrap; }

@media (max-width: 991.98px) {
  .site-header .navbar-nav { padding-top: 0.75rem; }
  /* Full-width links: draw the focus outline inside the edge so it is not cut off */
  .site-header .nav-link:focus-visible { outline-offset: -3px; }
  .site-header .nav-link { font-size: 1.15rem; padding-block: 0.6rem; border-bottom: 1px solid var(--ls-border); }
  .header-phone { display: block; text-align: center; padding-block: 0.75rem; }
}

/* 2. Hero. The original background was a gradient photo; recreated here in CSS. Swap in the image if preferred. */
.hero {
  background:
    radial-gradient(ellipse at 0% 0%, #f7d8e2 0%, transparent 45%),
    linear-gradient(110deg, #e4cde4 0%, #b9b3ea 30%, #9fbdef 55%, #7fdcf2 80%, #3fe2f2 100%);
  color: var(--ls-purple);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero-text { max-width: 44rem; }
.hero h1 {
  color: var(--ls-purple);
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-light { font-weight: 300; }
.hero-sub { font-size: clamp(1.2rem, 2vw, 1.375rem); line-height: 1.45; max-width: 40rem; }
.hero-status {
  display: inline-block;
  margin: 0.5rem 0 0;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
}

/* 3. Notice */
.notice-band { padding-block: 2.5rem 0.5rem; }
.notice-card {
  background: #fff;
  border: 1px solid var(--ls-border);
  border-left: 6px solid var(--ls-teal);
  border-radius: 0.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  max-width: 52rem;
  margin-inline: auto;
}
.notice-faq { margin-top: 1.25rem; border-top: 1px solid var(--ls-border); }
.notice-faq details { border-bottom: 1px solid var(--ls-border); }
.notice-faq summary {
  cursor: pointer;
  font-weight: 700;
  padding-block: 0.75rem;
  color: var(--ls-teal);
}
.notice-faq details p { margin-bottom: 0.9rem; }

/* Smooth open and close for the FAQ answers. Browsers that do not support this yet simply open instantly, as before. */
.notice-faq details { interpolate-size: allow-keywords; }
.notice-faq details::details-content {
  block-size: 0;
  opacity: 0;
  overflow-y: clip;
  transition: block-size 0.25s ease, opacity 0.25s ease, content-visibility 0.25s allow-discrete;
}
.notice-faq details[open]::details-content { block-size: auto; opacity: 1; }

/* Shared section rhythm */
.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section-alt { background: var(--ls-bg-alt); }
.section-title { font-size: clamp(1.5rem, 3vw, 1.75rem); margin-bottom: 1rem; }
.section-intro { max-width: 36rem; margin-bottom: 2.5rem; }
.eyebrow { font-size: 1rem; font-weight: 400; letter-spacing: 0.05em; margin-bottom: 0.25rem; }

/* 4. Checklist */
.checklist { max-width: 52rem; margin-top: 1.5rem; }
.checklist li { display: flex; gap: 1rem; align-items: flex-start; font-size: 1.15rem; }
/* Checkmark PNG is 144 x 144, shown at 36 x 36 (4x, sharp on any screen). The old site showed it at 35 x 35. */
.checklist .check { flex: 0 0 36px; width: 36px; height: 36px; }

/* 5. Get in touch */
.badge-appt {
  display: inline-block;
  background: var(--ls-navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.include-list li { margin-bottom: 0.5rem; }

.contact-panel {
  background: #fff;
  border-top: 6px solid var(--ls-teal);
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1.25rem rgba(0, 26, 68, 0.08);
  padding: clamp(1.5rem, 3vw, 2rem);
}
@media (min-width: 992px) {
  .contact-panel { position: sticky; top: 1.5rem; }
}
.contact-item + .contact-item { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--ls-border); }
.contact-label { font-weight: 700; margin-bottom: 0.25rem; }
.contact-label .icon { color: var(--ls-teal); margin-right: 0.25rem; }
.contact-big {
  display: block;
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.35rem;
  overflow-wrap: anywhere;
}
.contact-note { font-size: 1rem; margin-bottom: 0; }

.pdf-icon { flex: 0 0 auto; width: 2.25rem; height: 3rem; color: #c8102e; }
.pdf-icon-sm { width: 1.25rem; height: 1.65rem; vertical-align: -0.4em; margin-right: 0.35rem; }

/* 6. Doctors: an open band with no outlined box, so it can hold more content */
.doctors-band {
  background: linear-gradient(180deg, #e3f0f4 0%, #eef6f8 100%);
  border-top: 1px solid #cfe3ea;
  border-bottom: 1px solid #cfe3ea;
}
.lead-text { font-size: 1.25rem; }

.steps { list-style: none; counter-reset: step; padding-left: 0; margin: 1rem 0 0; }
.steps li { counter-increment: step; position: relative; padding-left: 3.5rem; padding-bottom: 1.25rem; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.15rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ls-teal);
  color: #fff;
  font-weight: 700;
}
/* A thin line connecting the numbered steps */
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 2.5rem;
  bottom: 0.25rem;
  width: 2px;
  background: #b7d6e0;
}
.steps h4 { font-size: 1.125rem; margin-bottom: 0.25rem; }
.steps p { margin-bottom: 0; }

.rx-card {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1.25rem rgba(0, 26, 68, 0.1);
  padding: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
}
@media (min-width: 992px) {
  .rx-card { position: sticky; top: 1.5rem; }
}
.rx-thumb { display: inline-block; max-width: 255px; }
.rx-thumb img { border: 1px solid var(--ls-border); box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.12); transition: transform 0.15s; }
.rx-thumb:hover img { transform: translateY(-3px); }

/* 7. Why LegSmart: each feature is a horizontal row, stacked vertically */
.feature-rows { max-width: 46rem; }
.feature-row { display: flex; gap: 1.75rem; align-items: flex-start; padding-block: 1.75rem; }
.feature-row + .feature-row { border-top: 1px solid var(--ls-border); }
.feature-row img { flex: 0 0 auto; width: 82px; height: 82px; }
.feature-row h3 { margin-bottom: 0.4rem; }
@media (max-width: 575.98px) {
  .feature-row { gap: 1.1rem; }
  .feature-row img { width: 60px; height: 60px; }
}

/* 8. Products */
.product-lists { max-width: 40rem; margin: 3.5rem auto 0; }
.product-block + .product-block { margin-top: 2.75rem; }
.two-col { margin: 1rem 0 0; padding-left: 1.5rem; }
.two-col li { margin-bottom: 0.6rem; break-inside: avoid; }
@media (min-width: 576px) {
  .two-col { columns: 2; column-gap: 3rem; padding-left: 3rem; }

  /* Variant that puts the first 2 items on the left and the rest on the right. CSS columns always fill the left column first (3 of 5), so this uses a grid with the same column widths and gap to match the other lists. "dense" lets the right column start at the top row. */
  .two-col-split-2 {
    columns: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
    grid-auto-flow: row dense;
    align-content: start;
  }
  .two-col-split-2 li:nth-child(-n+2) { grid-column: 1; }
  .two-col-split-2 li:nth-child(n+3) { grid-column: 2; }
}

/* 9. Resources */
.resource-card {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid var(--ls-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  color: var(--ls-ink);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.resource-card:hover { border-color: var(--ls-teal); box-shadow: 0 0.25rem 1rem rgba(0, 26, 68, 0.08); }
.resource-card h3 { color: var(--ls-teal); }
.resource-more { font-weight: 700; color: var(--ls-teal); text-decoration: underline; }

/* 10. Footer */
.site-footer { background: var(--ls-navy); color: #fff; padding-block: 3rem 2.5rem; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #cfe9f2; }
.footer-contact { margin: 1.75rem 0 1rem; }
.footer-contact .sep { margin-inline: 0.5rem; opacity: 0.5; }
@media (max-width: 767.98px) {
  .footer-contact span { display: block; margin-bottom: 0.35rem; }
  .footer-contact .sep { display: none; }
}
.footer-links { margin-bottom: 0.75rem; }
.footer-links .list-inline-item:not(:last-child) { margin-right: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  .resource-card, .rx-thumb img, .menu-icon span, .notice-faq details::details-content { transition: none; }
}

/* Privacy Policy and Terms of Service */
.legal-body { max-width: 44rem; margin-inline: auto; }
.legal-body h1 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
.legal-updated { color: #555; font-size: 1rem; margin-bottom: 2rem; }
.legal-body h2 { font-size: 1.375rem; margin-top: 2.25rem; margin-bottom: 0.75rem; }
.legal-body li { margin-bottom: 0.4rem; }
.legal-contact { margin-top: 1rem; margin-bottom: 0.25rem; }
.legal-contact + p { margin-bottom: 0; }

/* "The short version" summary at the top of the Privacy Policy, styled like the notice card on the home page */
.legal-summary {
  background: #fff;
  border: 1px solid var(--ls-border);
  border-left: 6px solid var(--ls-teal);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.legal-summary h2 { margin-top: 0; }
.legal-summary ul { margin-bottom: 0; }

/* 404 page */
.notfound { padding-block: clamp(3.5rem, 8vw, 6rem); }
.notfound-body { max-width: 40rem; margin-inline: auto; text-align: center; }
.notfound-body h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); margin-bottom: 1rem; }
.notfound-body .btn { margin-top: 0.5rem; }
/* Store note and contact links form one narrow, stacked column under the button */
.notfound-store, .notfound-contact { max-width: 26rem; margin-inline: auto; }
.notfound-store { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--ls-border); }
.notfound-contact { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.notfound-contact .contact-big { margin-bottom: 0; }
.notfound-contact .icon { color: var(--ls-teal); width: 0.85em; height: 0.85em; vertical-align: -0.05em; margin-right: 0.4rem; }
