/* =========================================================================
   The HealthBridge Program — landing page
   Design: "HBF Landing Page_3" (1440pt artboard)
   Colors/type: "HealthBridge Brand Elements at a glance" (8-22-2025)

   Note on colour: the InDesign/PDF comp is a CMYK document, so its rendered
   blues sample as #2e79b1. The brand sheet publishes the *digital* RGB values,
   which is what a web page should use — hence HBF Royal Blue #2484c6 below.
   ========================================================================= */

:root {
  /* Primary */
  --hbf-navy:        #356181;
  --hbf-green:       #4fb861;

  /* Backgrounds */
  --hbf-white:       #ffffff;
  --hbf-light-blue:  #c8e2ea;
  --hbf-light-gray:  #d7dcdf;

  /* Text */
  --hbf-pencil:      #454f53;
  --hbf-dark-gray:   #646d70;

  /* Headings & design elements */
  --hbf-royal:       #2484c6;

  /* Accents */
  --hbf-cornflower:  #a3c9e1;

  --device-shell:    #14181b;

  /* Avenir is the brand face. It is NOT self-hosted here — the .ttc in the
     print package is an Adobe Fonts desktop licence and does not cover web
     embedding. Open Sans / Arial are the brand-sanctioned substitutes. */
  --font-sans: "Avenir Next", "Avenir", "Nunito Sans", "Open Sans",
               "Segoe UI", Arial, sans-serif;

  --shell-max: 1280px;
  --shell-pad: clamp(1.25rem, 4.5vw, 4rem);
}

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

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

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

body {
  margin: 0;
  background: var(--hbf-white);
  color: var(--hbf-dark-gray);
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 0.86rem + 0.34vw, 1.0625rem);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}

.t-navy  { color: var(--hbf-navy); }
.t-green { color: var(--hbf-green); }

/* Decoration layer: tracks the content column, not the viewport, so the ring
   graphics hold their position relative to the copy at every width. */
.deco {
  position: absolute;
  inset-block: 0;
  inset-inline: 0;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  pointer-events: none;
}


/* ============================ HEADER ============================ */

.masthead {
  background: var(--hbf-white);
  padding-block: clamp(1.5rem, 3.4vw, 2.75rem);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3.5rem);
  flex-wrap: wrap;
}

.masthead__logo { flex: 0 0 auto; display: block; line-height: 0; }

.masthead__logo img { width: clamp(170px, 22vw, 250px); height: auto; }

.masthead__headline {
  flex: 1 1 18rem;
  margin: 0;
  font-size: clamp(1.75rem, 1.05rem + 3.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.masthead__headline span { display: block; }


/* ============================= HERO ============================= */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--hbf-royal);
  padding-block: clamp(1.5rem, 3.5vw, 2.75rem);
}

.hero__rings {
  position: absolute;
  top: 50%;
  right: clamp(-5rem, -3%, -1rem);
  width: clamp(230px, 30%, 400px);
  height: auto;
  transform: translateY(-50%);
  opacity: 0.85;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

/* --- tablet device frame --- */

.tablet {
  position: relative;
  width: 100%;
  max-width: 660px;
  margin-top: 0.5rem; /* room for the top-edge buttons */
}

.tablet__buttons {
  --btn-w: clamp(1.1rem, 2.6vw, 1.75rem);
  --btn-gap: clamp(0.28rem, 0.7vw, 0.45rem);
  --btn-h: clamp(0.3rem, 0.75vw, 0.5rem);

  position: absolute;
  top: calc(var(--btn-h) * -1 + 1px);
  left: 13%;
  display: block;
  width: calc(var(--btn-w) * 2 + var(--btn-gap));
  height: var(--btn-h);
  background:
    linear-gradient(var(--device-shell), var(--device-shell))
      0 0 / var(--btn-w) 100% no-repeat,
    linear-gradient(var(--device-shell), var(--device-shell))
      calc(var(--btn-w) + var(--btn-gap)) 0 / var(--btn-w) 100% no-repeat;
  border-radius: 0.2rem 0.2rem 0 0;
}

.tablet__bezel {
  position: relative;
  background: var(--device-shell);
  border-radius: clamp(0.9rem, 2vw, 1.4rem);
  padding: clamp(0.85rem, 2.2vw, 1.35rem) clamp(0.5rem, 1.3vw, 0.8rem)
           clamp(0.6rem, 1.6vw, 1rem);
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.18);
}

.tablet__camera {
  position: absolute;
  top: clamp(0.36rem, 0.9vw, 0.55rem);
  left: 50%;
  transform: translateX(-50%);
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: #4a5257;
}

.tablet__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.2rem;
  background: var(--hbf-light-gray);
}

.tablet__screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
  background: #000;
}

@supports not (aspect-ratio: 16 / 9) {
  .tablet__screen { height: 0; padding-bottom: 56.25%; }
}


/* ================= SPLIT SECTIONS (copy + circle) ================ */

.split { background: var(--hbf-white); }

.benefits   { padding-block: clamp(2.25rem, 5vw, 3.75rem); }
.difference { padding-block: clamp(2.25rem, 5vw, 3.75rem); }

.split__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: center;
}

.difference .split__inner { align-items: start; }

.circle-media { margin: 0; }

.circle-media img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  margin-inline: auto;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: 50%;
  border: clamp(6px, 0.75vw, 10px) solid var(--hbf-green);
}

/* The family shot reads better pulled slightly left of centre. */
.circle-media--program img { object-position: 42% 50%; }

.difference .circle-media { position: sticky; top: 2rem; }

.section-title {
  margin: 0 0 0.9rem;
  color: var(--hbf-green);
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.3125rem);
  font-weight: 700;
  line-height: 1.25;
}

.section-title--lg {
  margin-bottom: 1.1rem;
  font-size: clamp(1.375rem, 1.05rem + 1.4vw, 2rem);
}

/* --- key benefits list --- */

.benefit-list { margin: 0; }

.benefit + .benefit { margin-top: clamp(1rem, 2.2vw, 1.4rem); }

.benefit dt {
  color: var(--hbf-royal);
  font-size: clamp(0.9375rem, 0.88rem + 0.28vw, 1.0625rem);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.benefit dd { margin: 0; color: var(--hbf-dark-gray); max-width: 36em; }


/* ===================== Q + A ACCORDION ===================== */

.faq { border-top: 1px solid #e3e8ea; }

.faq__item { border-bottom: 1px solid #e3e8ea; }

.faq__item summary {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  padding: 0.85rem 0;
  color: var(--hbf-royal);
  font-size: clamp(0.9375rem, 0.88rem + 0.36vw, 1.125rem);
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

/* hide the native disclosure triangle */
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::marker { content: ""; }

.faq__item summary::before {
  content: "+";
  flex: 0 0 auto;
  width: 1em;
  color: var(--hbf-green);
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.faq__item[open] > summary::before { content: "\2013"; } /* en dash */

.faq__item summary:hover,
.faq__item summary:focus-visible { color: var(--hbf-navy); }

.faq__answer {
  padding: 0 0 1.1rem 1.65rem;
  color: var(--hbf-dark-gray);
}

.faq__answer > :first-child { margin-top: 0; }
.faq__answer > :last-child  { margin-bottom: 0; }

.faq__answer p { margin: 0 0 0.75rem; }

.faq__answer ul {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  list-style: disc;
}

.faq__answer li { margin-bottom: 0.55rem; }
.faq__answer li:last-child { margin-bottom: 0; }

.faq__answer strong { color: var(--hbf-pencil); }

.faq__quote {
  margin: 0.9rem 0 0;
  padding-left: 0.9rem;
  border-left: 3px solid var(--hbf-light-blue);
  color: var(--hbf-navy);
  font-style: italic;
}

.faq__quote p { margin: 0; }
.faq__quote cite { font-style: normal; font-weight: 700; }


/* ============================= QUOTE ============================= */

.quote {
  background: var(--hbf-royal);
  color: var(--hbf-white);
  padding-block: clamp(2rem, 4.5vw, 3.25rem);
}

.quote__body { margin: 0 auto; max-width: 58ch; text-align: center; }

.quote__body p {
  margin: 0;
  font-size: clamp(1.125rem, 0.8rem + 1.5vw, 1.875rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.32;
}

.quote__body cite { font-style: normal; font-weight: 700; font-size: 0.86em; }


/* ============================ CONTACT ============================ */

.contact {
  position: relative;
  overflow: hidden;
  background: var(--hbf-white);
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
}

.contact__arcs {
  position: absolute;
  top: 50%;
  left: clamp(-9rem, -7%, -2.5rem);
  width: clamp(300px, 40%, 500px);
  height: auto;
  transform: translateY(-45%);
}

.contact__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.contact__copy { grid-column: 2; }

.contact__title {
  margin: 0 0 1.1rem;
  color: var(--hbf-green);
  font-size: clamp(1.0625rem, 0.9rem + 0.75vw, 1.5rem);
  font-weight: 700;
  line-height: 1.28;
  max-width: 24ch;
}

.contact__lead {
  margin: 0 0 1.1rem;
  color: var(--hbf-royal);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.35;
}

.contact__lead a { text-decoration: underline; }

.contact__site { margin: 0; font-size: 0.875rem; color: var(--hbf-dark-gray); }
.contact__site a { text-decoration: none; }

.contact__lead a:hover,
.contact__lead a:focus-visible,
.contact__site a:hover,
.contact__site a:focus-visible { color: var(--hbf-navy); }


/* =========================== FOOTER BAR =========================== */

.footer-bar {
  background: var(--hbf-royal);
  height: clamp(48px, 5.8vw, 84px);
}


/* =========================== RESPONSIVE =========================== */

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

  /* keep the comp's reading order on small screens: heading, copy, then image */
  .split--media-first .circle-media { order: 2; }

  .difference .circle-media { position: static; }

  .contact__inner { grid-template-columns: 1fr; }
  .contact__copy  { grid-column: 1; }
  .contact__title { max-width: none; }

  .contact__arcs {
    left: 50%;
    width: min(340px, 78%);
    transform: translate(-50%, -50%);
    opacity: 0.55;
  }
}

@media (max-width: 640px) {
  .masthead__inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .masthead__headline { flex-basis: auto; }

  .hero__rings { right: -6rem; width: 230px; opacity: 0.6; }

  .quote__body { max-width: none; }
  .quote__body cite { display: block; margin-top: 0.4rem; }

  .tablet__buttons { left: 15%; }

  .faq__answer { padding-left: 0; }
}


/* ====================== FOCUS / PRINT ====================== */

:where(a, summary):focus-visible {
  outline: 3px solid var(--hbf-navy);
  outline-offset: 2px;
  border-radius: 2px;
}

@media print {
  .hero { background: var(--hbf-white); }
  .hero__rings, .contact__arcs, .footer-bar { display: none; }
  .quote { background: var(--hbf-white); color: var(--hbf-royal); }
  .faq__item[open] .faq__answer,
  .faq__answer { display: block; } /* expand all answers when printed */
}
