@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;600&display=swap");

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

main {
  flex: 1;
}

/* ===== Header ===== */

.site-header {
  position: fixed;
  top: 0;
  left:0; 
  width: 100%;
  z-index: 1000;

  background: #ffffff;
  border-bottom: none;              /* remove the line */
  box-shadow: 0 2px 0 rgba(0,0,0,0.06);
}

.header-inner {
  max-width: 95%;
  margin: 0 auto;
  padding: 0.6rem clamp(1.25rem, 4vw, 3rem);

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-inner {
  position: relative; /* anchor for absolute centering */
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Left side */
.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo {
  height: 36px;
  width: auto;
}

.site-title {
  font-size: 1.15rem;
  color: #002d62;
}

.title-accent {
  color: #7fa6d9; 
}

/* Right side */
.header-right a {
  min-height: 50px;
  font-size: 1.05rem;
  padding: 0.35rem 0.9rem;
  background: #eef2f7;
  border: 2px solid #d1d5db;

  color: #002d62;
  text-decoration: none;
  border-radius: 6px;
}

.header-right a:focus,
.header-right a:active,
.hero-btn:focus,
.hero-btn:active {
  outline: 2px solid #fbbf24;
  outline-offset: 3px;
}

/* Focus states (keyboard / eye gaze) */
.header-right a:focus,
.header-right a:hover {
  border-color: #002d62;
}

.access-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.access-icon {
  height: 34px;
  width: auto;
  display: block;
}

.hero {
  max-width: 90%;
  margin: 0 auto;

  padding-top: 2rem;    
  padding-bottom: 0rem; 
  padding-left: 3.5rem;
  padding-right: 3.5rem;

  display: grid;
  grid-template-columns: minmax(720px, 2.2fr) 0.8fr;
  align-items: center;
  gap: 2.5rem;
}

/* Outlined hero headline */
.hero-title-outline {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2.8rem, 4.8vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 95%;

  color: #ffffff;
  -webkit-text-stroke: 2px #0a2a5e;

  text-shadow:
    0.5px 0.5px 0 #0a2a5e,
    -4px 4px 0 #9fc1eb,
    1px 1px 0 rgba(0,0,0,0.15);

  margin: 0;
  margin-bottom: 1rem;
}

/* Supporting text */
.hero p {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.3rem, 1.6vw, 1.6rem);
  max-width: 90%;
  line-height: 1.6;

  color: #1f2937;
  
  hyphens: none;
  margin-bottom: 2rem;
}

.hero p .emphasis {
  font-weight: 600;
  color: #1b78ea;
}

/* CTA button */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;

  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.5rem, 1.4vw, 2.00rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;

  padding: clamp(1.2rem, 1.6vw, 1.6rem)
           clamp(2.4rem, 3vw, 3.2rem);

  border-radius: 0.3rem;
  border: 3px solid #0a2a5e;
  background: transparent;
  color: #0a2a5e;

  cursor: pointer;
  text-decoration: none;
}

.hero-btn:hover {
  background: #0a2a5e;
  color: #ffffff;
}

.hero-btn:focus {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  max-width: 100%;
  max-height: clamp(480px, 35vw, 650px);
  height: auto;
  opacity: 0.95;
}

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

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    max-height: 200px;
  }
}

/* ===== Footer ===== */
.site-footer {
  margin-top: auto;
  background-color: #0a2a5e;
  padding: 0.75rem 1rem;
}

.site-footer p {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  color: #ffffff;
  font-family: "Inter", system-ui, sans-serif;
}

/* ===== Scroll Buttons ===== */
.scroll-btn {
  display: block;
  margin: 0.2rem auto;

  width: 170px;
  height: 60px;

  font-family: "Archivo Black", sans-serif;
  font-size: 1.4rem;

  border-radius: 8px;
  border: 3px solid #0a2a5e;
  background: #0a2a5e;
  color: #ffffff;

  cursor: pointer;
}

/* Hover */
.scroll-btn:hover {
  background: #759fe7;
}

/* Focus / active (same yellow effect you like) */
.scroll-btn:focus,
.scroll-btn:active {
  outline: 2px solid #fbbf24;
  outline-offset: 3px;
}

/* Fixed scroll-down button */
.scroll-btn.fixed {
  position: fixed;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);

  z-index: 900;
}

/* ===== Resource Section ===== */
.resources {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

.resource-section-title {
  font-family: "Archivo Black", sans-serif;
  font-size: 2rem;
  color: #0a2a5e;
  margin-bottom: 1.5rem;
}

/* ===== Resource Cards ===== */

.resources {
  max-width: 55%;
  margin: 1.5rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

#resources-list {
  display: flex;
  flex-direction: column;
  gap: 24px; 
}

/* Whole card is clickable */
.resource-card {
  display: block;
  padding: 0.6rem 1rem;
  position: relative; /* REQUIRED for dashed line */
  background: #ffffff;
  border: 2px solid #0a2a5e;

  text-decoration: none;
  color: #0a2a5e;

  transition: background-color 0.15s ease, transform 0.05s ease;
}

/* Hover = light blue */
.resource-card:hover {
  background: #eef4ff;
}

/* Focus (keyboard / eye-gaze) = yellow ring */
.resource-card:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

.resource-card:active {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
  transform: translateY(-3px);
}

/* Card typography */
.resource-card h2 {
  font-family: "Archivo Black", sans-serif;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.resource-card p {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  color: #1f2937;
}

/* Responsive: widen cards on smaller screens */
@media (max-width: 900px) {
  .resources {
    max-width: 85%;
  }
}

/* Meta row */
.resource-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.resource-source {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0a2a5e;
}

.resource-type {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;

  padding: 0.15rem 0.45rem;
  border-radius: 3px;

  background: #eef4ff;
  color: #0a2a5e;
  border: none;
}

.resource-topics-inline {
  position: relative;
  padding-bottom: 0.6rem;
  margin-bottom: 0.6rem;
}

.resource-topics-inline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  border-top: 1.5px dashed rgba(10, 42, 94, 0.35);
}

/* Category prefix (e.g. "Palliative Care:") */
.resource-category-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0a2a5e;
  margin-right: 0.25rem;
  white-space: nowrap;
}

.resource-topic {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;

  padding: 0.15rem 0.45rem;
  border-radius: 3px;

  background: #e7eaef;   /* neutral cool gray */
  color: #000000;        /* your site’s dark blue */
}

.resource-topics-inline {
  display: flex;
  flex-wrap: wrap;            /* wrap only when needed */
  align-items: center;
  gap: 0.35rem;               /* tight spacing */
  margin-bottom: 0.5rem;
}

.resource-category-label {
  font-weight: 600;
  margin-right: 0.15rem;
  white-space: nowrap;        /* keep label intact */
}

.resource-topic {
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  white-space: nowrap;
}

.resource-topics {
  position: relative;
  padding-bottom: 0.6rem;
  margin-bottom: 0.6rem;
}

/* ===== Resources Header ===== */

.resources-header {
  margin-bottom: 0.1rem;
  padding-bottom: 0.1rem;
  border-bottom: 2.5px solid rgba(10, 42, 94, 0.12);
}

.resources-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.8rem);
  font-weight: 700;
  color: #0a2a5e;
  margin: 0;
}

.resources-subtitle {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  color: #4b5563;
  margin: 0.1rem 0 0;
}

/* ===== Category Filters (Fixed Left Rail – NO SQUISHING) ===== */

.filters {
  position: fixed;
  top: 6rem;     /* aligns visually with first card */
  right: 2rem;      /* sits in unused page margin */
  width: clamp(180px, 16vw, 240px);
  z-index: 1000;
}

.filters-title {
  font-size: 1.4rem;
  font-weight: 400;
  color: #0a2a5e;
  margin-bottom: 0.5rem;
  text-align: center;
}

.filter-options.vertical {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-btn {
  width: 100%;
  text-align: left;

  padding: 0.9rem 1rem;   /* ⬆ increases button height */
  min-height: 65px;       /* ⬆ guarantees large target */

  background: #ffffff;
  border: 2px solid #0a2a5e;
  border-radius: 6px;
  color: #0a2a5e;

  font-size: 0.9rem;        /* optional: improves legibility */
}

.filter-btn:hover {
  background: #eef4ff;
}

.filter-btn.active {
  background: #eef4ff;                 /* soft highlight */
  color: #0a2a5e;

  border-left: 10px solid #0a2a5e;       /* selection indicator */
  padding-left: calc(1rem - 4px);      /* keeps text aligned */
}

.filter-btn {
  transition: background-color 0.15s ease, border-left 0.15s ease;
}

.filter-btn:focus {
  outline: 2px solid #fbbf24;
  outline-offset: 3px;
}

/* ===== Mobile / Tablet Safety ===== */
@media (max-width: 1100px) {
  .filters {
    position: static;
    width: auto;
    margin: 1.5rem auto;
  }
}

/* ===== Back Button ===== */
.back-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100px;
  height: 80px;

  font-family: "Archivo Black", sans-serif;
  font-size: 2rem;

  border-radius: 8px;
  border: 3px solid #0a2a5e;
  background: #0a2a5e;
  color: #ffffff;

  cursor: pointer;
}

/* Text + arrow sizing */
.back-text {
  font-family: "Inter", system-ui, sans-serif; /* NOT Archivo Black */
  font-size: 1.2rem;
  font-weight: 400;           /* normal */
  letter-spacing: 0.05em;
}

.back-arrow {
  font-size: 1.4rem;
  line-height: 1;
  margin-top: 0.1rem;
}

/* Hover (same as scroll buttons) */
.back-btn:hover {
  background: #759fe7;
}

/* Focus / active ring (same yellow) */
.back-btn:focus,
.back-btn:active {
  outline: 2px solid #fbbf24;
  outline-offset: 3px;
}

/* Fixed position */
.fixed-back {
  position: fixed;
  bottom: 3.3rem;
  left: 1rem;
  z-index: 900;
}

/* ===== Get Started Flow ===== */

.start-flow {
  display: flex;
  justify-content: center;
  align-items: flex-start;

  /* MASTER SCALE KNOB */
  font-size: 0.92rem;

  padding-top: clamp(0.25rem, 2.5vh, 1.6rem);
  padding-bottom: 0.75rem;
}

/* Card container */
.question-card {
  width: min(760px, 85%);
  text-align: center;
}

/* Header */
.question-header {
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid rgba(10, 42, 94, 0.12);
}

.question-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 2.0rem);
  font-weight: 650;
  color: #0a2a5e;
  margin: 0;
  margin-top: 0.5rem;
}

/* Button stack */
.question-options {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}

/* ===== Choice Buttons (Icon-Free) ===== */

.choice-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(20px, 1.8vw, 40px);
  min-height: clamp(50px, 8vh, 100px);

  background: #ffffff;
  border: 2px solid #002d62;
  border-radius: 9px;

  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  font-weight: 500;
  color: #0a2a5e;
  text-align: left;

  box-shadow:
    0 3px 0 rgba(10, 42, 94, 0.18);

  cursor: pointer;

  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.05s ease;
}

/* Hover */
.choice-btn:hover {
  background: #eef2f7;
  box-shadow:
    0 5px 0 rgba(10, 42, 94, 0.25);
}

/* Keyboard / eye-gaze focus */
.choice-btn:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

.choice-btn:focus,
.choice-btn:active {
  outline: 2px solid #fbbf24;
  outline-offset: 3px;
}

/* Active / click */
.choice-btn:active {
  transform: translateY(-2px);
  box-shadow:
    0 5px 0 rgba(10, 42, 94, 0.28);
}

/* Mobile safety */
@media (max-width: 600px) {
  .choice-btn {
    justify-content: center;
    text-align: center;
  }
}

/* ===== Progress Bar ===== */

.progress-container {
  width: 100%;
  height: 5px;
  margin-top: 1rem;

  background: #e5ecf6;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%; /* controlled by JS */
  background: #4f8aea;
  border-radius: 999px;
}

.header-spacer {
  height: 80px;   /* match header height */
  flex-shrink: 0;
}


.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #0a2a5e;
}

.no-results h2 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.no-results p {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.05rem;
  color: #374151;
}

.no-results .hero-btn {
  margin-top: 1.5rem;
}

.no-results-btn {
  font-family: "Inter", system-ui, sans-serif; /* lighter, readable */
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;

  padding: 0.8rem 1.2rem;
  min-height: 65px;

  border-width: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Soft dwell halo (visual feedback only, no activation) */
.resource-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 3px solid rgba(79, 138, 234, 0);
  transition: border-color 0.1s ease;
  pointer-events: none;
}

.resource-card:hover::after,
.resource-card:focus-visible::after{
  border-color: rgba(79, 138, 234, 0.55);
}

/* ===== Accessibility Page Layout Override ===== */

.accessibility-page .resources {
  max-width: 1200px;   /* wider than resource lists */
  width: 70%;          /* responsive on large screens */
  margin-left: auto;
  margin-right: auto;
  gap: 1rem; 
}

/* Reduce vertical spacing inside sections */
.accessibility-page section {
  gap: 0.4rem; /* was 0.8rem */
}

.accessibility-page h2 {
  color: #0a2a5e;              /* match site dark blue */
  font-family: "Inter", system-ui, sans-serif;

  font-size: 1.55rem;
  font-weight: 700;            /* thickness control */
  letter-spacing: 0.01em;      /* subtle clarity boost */
  line-height: 1.3;

  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

/* Paragraph text: slightly larger & clearer */
.accessibility-page p {
  font-size: 20px; 
  line-height: 1.6;
}

/* Lists: match paragraph size */
.accessibility-page li {
  font-size: 20px; 
}

/* Nested bullets: tighter */
.accessibility-page li ul {
  margin-top: 0.25rem;
}

/* Reduce padding so content feels less airy */
.accessibility-page .resources {
  padding: 1.2rem 1.6rem; /* was 1.5rem 2rem */
}

/* Mobile: keep readable but compact */
@media (max-width: 800px) {
  .accessibility-page p,
  .accessibility-page li {
    font-size: 1.05rem;
  }
}

.accessibility-page .access-link,
.accessibility-page .large-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #eef4ff;        /* light, calm */
  color: #0a2a5e;

  border: 2px solid #0a2a5e;
  border-radius: 4px;

  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;

  padding: 1.5rem 1.4rem;
  min-height: 50px;

  cursor: pointer;
}

/* Hover: subtle, not CTA-like */
.accessibility-page .access-link:hover,
.accessibility-page .large-contact-btn:hover {
  background: #dbe7ff;
}

/* Focus / active: SAME yellow language as rest of site */
.accessibility-page .access-link:focus,
.accessibility-page .access-link:active,
.accessibility-page .large-contact-btn:focus,
.accessibility-page .large-contact-btn:active {
  outline: 2px solid #fbbf24;
  outline-offset: 3px;
}

/* Mobile safety */
@media (max-width: 800px) {
  .accessibility-page .access-link,
  .accessibility-page .large-contact-btn {
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
  }
}

.accessibility-page strong {
  font-weight: 500;
  color: #1b78ea; /* same dark blue */
}

.accessibility-page em {
  font-style: normal;
  font-weight: 600;
  color: #374151; /* slightly softer */
}

/* Primary bullets */
.accessibility-page ul > li {
  margin-bottom: 0.6rem;
}

/* Nested explanatory bullets */
.accessibility-page ul ul {
  margin-top: 0.4rem;
  padding-left: 1.4rem;
}

.accessibility-page ul ul li {
  font-size: 0.95em;
}

/* Visual example: focus highlight / outline */
.focus-indicator {
  display: inline-block;
  padding: 0.1rem 0.35rem;

  border: 2px solid rgba(10, 42, 94, 0.7);
  border-radius: 4px;

  font-weight: 600;
  color: #0a2a5e;
  background: rgba(10, 42, 94, 0.05);
}

/* Visual example: activation yellow ring */
.activation-indicator {
  display: inline-block;
  padding: 0.1rem 0.45rem;

  border-radius: 4px; /* ring-like */
  font-weight: 600;
  color: #813506; /* warm but readable */

  box-shadow:
    0 0 0 2px #fbbf24; /* yellow ring */
}

.scroll-indicator {
  display: inline-block;

  font-size: 0.95em;
  font-weight: 700;
  letter-spacing: 0.15em;

  color: #0a2a5e; /* same dark blue as headings */
}

/* Keyboard key styling (neutral, familiar) */
kbd {
  display: inline-block;
  padding: 0.25em 0.5em;
  margin: 0 0.1em;

  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.95em;
  font-weight: 600;

  color: #000000;
  background: #ffffff;

  border: 2px solid #000000;
  border-radius: 4px;

  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

/* Accessibility action buttons layout */ 

/* Accessibility action buttons layout */
.access-actions {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 1rem;
  margin-bottom: 3rem;
}

/* Left button: smaller but intentional */
.access-actions .large-contact-btn {
  flex: 0 0 35%;
  font-size: 1.3rem;
}

/* Right button: primary emphasis */
.access-actions .developer-btn {
  flex: 0 0 50%;
  text-align: center;
  font-size: 1.1rem;
}

/* Developer button: allow normal text wrapping */ 
.accessibility-page .developer-btn { display: block; /* NOT flex */ line-height: 1.5; }

.tech-highlight {
  color: #1b78ea;        /* same blue you use elsewhere */
  font-weight: 700;
  white-space: nowrap;  /* prevents awkward line breaks */
}
