/* ============================================================
   FLOW — Global Styles
   Phase 1 HTML build. Variables here map directly to
   Elementor Global Colors / Global Fonts in Phase 2.
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS  (→ Elementor Globals)
   ------------------------------------------------------------ */
:root {
  /* Brand colors (from texts document) */
  --color-navy:        #3C4A64;   /* primary brand / headings / dark sections */
  --color-navy-deep:   #2C3447;   /* darker navy for high-contrast surfaces */
  --color-peach:       #F8E5D6;   /* warm accent surface (banner, highlight) */
  --color-cream:       #FBF8F3;   /* page background / soft surface */
  --color-coral:       #E89A71;   /* primary accent (italic display, buttons, stats) */
  --color-grey:        #838383;   /* muted body / labels */

  --color-white:       #FFFFFF;
  --color-border:      #EFE8DD;   /* hairline borders on cream */
  --color-border-dark: #4A5972;   /* hairline on navy */

  /* Typography */
  --font-display: 'Fraunces', 'Fraunces 72pt Soft', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Type scale (desktop base) */
  --fs-h1:        4.25rem;   /* 68px — hero display */
  --fs-h2:        2.75rem;   /* 44px — section heading */
  --fs-h3:        1.5rem;    /* 24px — card heading */
  --fs-h4:        1.125rem;  /* 18px — small heading */
  --fs-stat:      4rem;      /* 64px — large data figure */
  --fs-body:      1rem;      /* 16px */
  --fs-body-sm:   0.9375rem; /* 15px */
  --fs-small:     0.8125rem; /* 13px */
  --fs-label:     0.75rem;   /* 12px — eyebrows / labels */

  /* Line heights */
  --lh-tight:  1.1;
  --lh-snug:   1.25;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  /* Spacing scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4rem;
  --space-9:  5rem;
  --space-10: 6rem;
  --space-11: 8rem;

  /* Layout */
  --content-max:   1420px;   /* Figma active content width */
  --content-pad:   2rem;
  --content-pad-mobile: 1.25rem;

  /* Radii */
  --radius-pill:   999px;
  --radius-sm:     6px;
  --radius-md:     12px;

  /* Transitions */
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
}

/* ------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--color-navy);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast), opacity var(--t-fast);
}

button { font: inherit; cursor: pointer; border: 0; background: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* ------------------------------------------------------------
   3. TYPOGRAPHY  (→ Elementor type kit)
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;          /* Fraunces reads beautifully at regular weight */
  margin: 0;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}

h1.display, .h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
}

h2, .h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
}

h3, .h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
}

h4, .h4 {
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
}

/* Italic display variant — used in hero subhead */
.display-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: var(--color-coral);
}

/* Eyebrow / label */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-grey);
}

.eyebrow--coral { color: var(--color-coral); }

/* Body */
.body-text {
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--color-navy);
}

.body-sm   { font-size: var(--fs-body-sm); line-height: var(--lh-relaxed); }
.text-grey { color: var(--color-grey); }

/* Stat figure — large data point */
.stat-figure {
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-figure .unit {
  font-size: 0.45em;
  color: var(--color-coral);
  vertical-align: top;
  margin-left: 0.05em;
}

/* ------------------------------------------------------------
   4. LAYOUT PRIMITIVES  (→ Elementor containers)
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
}

.section {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
}

.section--lg { padding-top: var(--space-11); padding-bottom: var(--space-11); }
.section--sm { padding-top: var(--space-7); padding-bottom: var(--space-7); }
.section--flush-top    { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

/* Surface backgrounds */
.surface-cream { background: var(--color-cream); }
.surface-white { background: var(--color-white); }
.surface-peach { background: var(--color-peach); }
.surface-navy  { background: var(--color-navy); color: var(--color-white); }
.surface-navy h1, .surface-navy h2, .surface-navy h3, .surface-navy h4 { color: var(--color-white); }

/* Grid helpers */
.grid          { display: grid; gap: var(--space-6); }
.grid-2col     { grid-template-columns: repeat(2, 1fr); }
.grid-3col     { grid-template-columns: repeat(3, 1fr); }
.grid-4col     { grid-template-columns: repeat(4, 1fr); }

/* Flex helpers */
.flex            { display: flex; }
.flex-center     { display: flex; align-items: center; justify-content: center; }
.flex-between    { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }

/* ------------------------------------------------------------
   5. BUTTONS  (→ Elementor button widget global styles)
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--t-base), color var(--t-base), transform var(--t-fast);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-navy-deep); }

.btn-coral {
  background: var(--color-coral);
  color: var(--color-white);
}
.btn-coral:hover { background: #d8895f; }

.btn-light {
  background: var(--color-cream);
  color: var(--color-navy);
}
.btn-light:hover { background: var(--color-white); }

.btn-text {
  padding: 0.5rem 0;
  background: transparent;
  color: var(--color-navy);
  border-radius: 0;
}
.btn-text:hover { color: var(--color-coral); transform: none; }

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-arrow .arrow { transition: transform var(--t-base); }
.btn:hover .arrow { transform: translateX(3px); }

/* ------------------------------------------------------------
   6. NAVIGATION
   ------------------------------------------------------------ */
.site-header {
  background: var(--color-cream);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(232, 154, 113, 0.35);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.site-logo {
  display: inline-block;
  line-height: 0;
}

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

.nav-primary {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}

.nav-primary a {
  font-size: var(--fs-body-sm);
  color: var(--color-navy);
  position: relative;
}
.nav-primary a:hover { color: var(--color-coral); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle__icon {
  display: block;
  width: 22px;
  height: 22px;
  /* Tint the SVG to navy using a CSS filter */
  filter: invert(15%) sepia(40%) saturate(800%) hue-rotate(190deg) brightness(60%);
  transition: opacity var(--t-base);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { opacity: 0.7; }

/* ------------------------------------------------------------
   7. FOOTER
   ------------------------------------------------------------ */
.site-footer {
  background: var(--color-cream);
  padding: var(--space-9) 0 var(--space-7);
  border-top: 1px solid var(--color-border);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.site-footer__brand .footer-logo img { height: 36px; margin-bottom: var(--space-4); }
.site-footer__brand p { color: var(--color-grey); font-size: var(--fs-body-sm); max-width: 28ch; margin: 0 0 var(--space-2); }
.site-footer__brand .footer-copyright { color: var(--color-grey); font-size: var(--fs-small); margin: 0; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}

.footer-col ul li { margin-bottom: var(--space-3); }
.footer-col ul a {
  font-size: var(--fs-body-sm);
  color: var(--color-navy);
}
.footer-col ul a:hover { color: var(--color-coral); }

/* ============================================================
   8. HOMEPAGE COMPONENTS  (→ Elementor widgets)
   ============================================================ */

/* ---- 8.1 HERO ---- */
.hero {
  background: var(--color-white);
  padding: var(--space-7) 0 var(--space-8);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-8);
}

.hero__copy { max-width: 560px; }

.hero__title {
  font-size: var(--fs-h1);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 2.75rem;
  line-height: 1.15;
  color: var(--color-coral);
  margin-bottom: var(--space-5);
}

.hero__text {
  font-size: 1.125rem;
  line-height: var(--lh-relaxed);
  color: var(--color-navy);
  margin-bottom: var(--space-6);
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 400px;
}

/* Placeholder block where the product hero image will be inserted. */
.hero__product-placeholder {
  width: 100%;
  max-width: 459px;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(ellipse at 60% 55%, rgba(60, 74, 100, 0.05), transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero__product-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ---- 8.2 VIDEO BLOCK ---- */
.video-section { background: var(--color-cream); padding: var(--space-7) 0; }

.video-block {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 640px;
  overflow: hidden;
  background: var(--color-navy);
}

.video-block__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-block__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
  transition: background var(--t-base);
}
.video-block__play:hover { background: rgba(60, 74, 100, 0.1); }

.video-block__play-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  transition: transform var(--t-base), background var(--t-base);
}
.video-block__play:hover .video-block__play-icon {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.45);
}

.video-block__play-icon svg { width: 22px; height: 22px; margin-left: 3px; }

/* ---- YouTube autoplay player ---- */
#yt-player-hp,
#yt-player-hp iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none; /* keeps the overlay button clickable */
}

.video-mute-btn {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-4);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  cursor: pointer;
  color: white;
  font-size: 0.8125rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background var(--t-base), transform var(--t-base);
  z-index: 10;
}
.video-mute-btn:hover { background: rgba(0, 0, 0, 0.65); transform: scale(1.03); }
.video-mute-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.video-mute-btn__label { line-height: 1; }
.banner-event {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-5) 0;
}

.banner-event__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.banner-event__text {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.3;
}

.banner-event__text .accent { color: var(--color-coral); }
.banner-event__text sup { font-size: 0.6em; vertical-align: super; }

/* ---- 8.4 RESULTS HIGHLIGHT ---- */
.results-highlight {
  background: var(--color-peach);
  padding: 0;
  overflow: hidden;
}

.results-highlight__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  height: 470px;
  max-width: 100%;
}

.results-highlight__data {
  /* Align left edge with global container content */
  padding: var(--space-8) var(--space-8) var(--space-8) calc((100vw - var(--content-max)) / 2 + var(--content-pad));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.results-highlight__data .eyebrow { margin-bottom: var(--space-4); display: block; }

.results-highlight__data .stat-figure {
  margin: 0 0 var(--space-4);
  line-height: 1;
}

/* % sits at baseline — not superscript */
.results-highlight__data .stat-figure .unit {
  vertical-align: baseline;
  font-size: 0.55em;
  color: var(--color-coral);
  margin-left: 0.05em;
}

.results-highlight__data .results-highlight__caption {
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-snug);
  color: var(--color-navy);
}

.results-highlight__award {
  background: var(--color-white);
  overflow: hidden;
  padding: 0;
  position: relative;
}

.results-highlight__award img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}

/* ---- 8.5 BENEFITS MODULE (What Flow Does) ---- */
.benefits-section { background: var(--color-cream); padding: var(--space-9) 0; }

.benefits-section__title { margin-bottom: var(--space-8); }

.benefit-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.benefit-card {
  background: var(--color-white);
  padding: var(--space-6);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(60, 74, 100, 0.06);
}

.benefit-card__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 0.875rem;
  color: var(--color-coral);
  margin-bottom: var(--space-5);
}

.benefit-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}

.benefit-card__text {
  font-size: 0.875rem;
  line-height: var(--lh-relaxed);
  color: var(--color-grey);
  margin: 0;
}

/* ---- 8.6 RESEARCH MODULE ---- */
.research-section { background: var(--color-cream); padding: var(--space-7) 0 var(--space-9); }

.research-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}

.research-section__head .eyebrow { color: var(--color-coral); margin-bottom: var(--space-3); display: block; }
.research-section__head h2 { max-width: 520px; }

.research-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-navy);
  border-bottom: 1px solid var(--color-border);
}

.research-card {
  padding: var(--space-5) var(--space-5);
  border-right: 1px solid var(--color-border);
}
.research-card:last-child { border-right: 0; }

.research-card__label {
  font-size: var(--fs-small);
  color: var(--color-grey);
  margin-bottom: var(--space-3);
}

.research-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-navy);
  line-height: 1.3;
  margin-bottom: var(--space-3);
  min-height: 3em;
}

.research-card__sub {
  font-size: var(--fs-small);
  color: var(--color-grey);
  margin-bottom: var(--space-3);
}

.research-card__stat-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.research-card__stat {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-coral);
  line-height: 1;
  flex-shrink: 0;
}

.research-card__stat .unit { font-size: 0.6em; }

.research-card__desc {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-navy);
  margin: 0;
  width: 100%;
}

/* ---- 8.7 WEBINAR CTA ---- */
.webinar-cta {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-9) 0;
}

.webinar-cta__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.webinar-cta__copy .eyebrow { color: var(--color-coral); margin-bottom: var(--space-4); display: block; }

.webinar-cta__copy h2 {
  font-size: 2rem;
  line-height: 1.25;
  color: var(--color-white);
  max-width: 540px;
  font-weight: 400;
}

.webinar-cta__card {
  background: var(--color-navy-deep);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  padding: var(--space-5);
  max-width: 380px;
  width: 100%;
  justify-self: end;
}

.webinar-cta__card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-dark);
}

.webinar-cta__card-head .label { font-size: var(--fs-small); }
.webinar-cta__card-head .meta { font-size: var(--fs-small); color: rgba(255,255,255,0.7); }

.webinar-cta__date {
  font-family: var(--font-display);
  font-size: 1.875rem;
  color: var(--color-coral);
  line-height: 1;
}

.webinar-cta__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-4);
  font-size: var(--fs-small);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-dark);
}

.webinar-cta__details dt { color: rgba(255,255,255,0.6); margin-bottom: 2px; }
.webinar-cta__details dd { margin: 0; color: var(--color-white); }

.webinar-cta__card .btn { width: 100%; justify-content: center; }

/* ---- 8.8 MISSION STATEMENT ---- */
.mission-section { background: var(--color-cream); padding: var(--space-9) 0; }

.mission-section__inner {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: var(--space-7);
  align-items: start;
}

.mission-section__inner .eyebrow {
  font-size: var(--fs-label);
}

.mission-section__inner p {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--color-navy);
  font-weight: 400;
  max-width: 60ch;
  margin: 0;
}

/* ---- 8.9 IMAGE GRID + QUOTE ---- */
.grid-quote {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  background: var(--color-cream);
}

.grid-quote__cell { position: relative; overflow: hidden; }
.grid-quote__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Layout: large image left spanning two rows, quote top-middle, three smaller right and bottom-middle/right */
.grid-quote__cell--main { grid-column: 1; grid-row: 1 / span 2; }
.grid-quote__cell--quote { grid-column: 2; grid-row: 1; }
.grid-quote__cell--two   { grid-column: 3; grid-row: 1; }
.grid-quote__cell--three { grid-column: 2; grid-row: 2; }
.grid-quote__cell--four  { grid-column: 3; grid-row: 2; }

.grid-quote__quote-inner {
  background: var(--color-peach);
  width: 100%;
  height: 100%;
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.grid-quote__quote-inner .eyebrow { margin-bottom: var(--space-3); display: block; color: var(--color-coral); }

.grid-quote__quote-inner blockquote {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.2;
  color: var(--color-navy);
  margin: 0 0 var(--space-4);
  font-weight: 400;
}

.grid-quote__quote-inner cite {
  font-style: normal;
  font-size: var(--fs-small);
  color: var(--color-grey);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   9. UTILITY HELPERS
   ============================================================ */
.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;
}

.text-center { text-align: center; }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-7 { margin-bottom: var(--space-7); }

/* ============================================================
   10. SCIENCE & RESEARCH PAGE COMPONENTS
   ============================================================ */

/* active nav state — underline for current page */
.nav-primary a[aria-current="page"] {
  color: var(--color-coral);
  text-decoration: underline;
  text-decoration-color: var(--color-coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* ---- 10.1 SCI HERO ---- */
.sci-hero {
  position: relative;
  background-image: url('../images/photos/header_science.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-color: var(--color-white);
  padding: var(--space-10) 0;
  overflow: hidden;
}

/* Subtle left-side gradient so text stays legible over the image */
.sci-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(251, 248, 243, 0.96) 0%,
    rgba(251, 248, 243, 0.82) 38%,
    rgba(251, 248, 243, 0.15) 65%,
    rgba(251, 248, 243, 0) 100%
  );
  pointer-events: none;
}

.sci-hero__copy {
  position: relative; /* sit above the ::before overlay */
  max-width: 560px;
}

.sci-hero__title {
  font-size: var(--fs-h2);
  line-height: 1.18;
  font-weight: 400;
  color: var(--color-navy);
  margin-bottom: var(--space-6);
  max-width: 26ch;
}

.sci-hero__title .display-italic {
  font-size: inherit;
  line-height: inherit;
}

.sci-hero__cta {
  margin-top: var(--space-2);
}

/* The image div is no longer needed but kept in HTML — hide it */
.sci-hero__image { display: none; }

/* ---- 10.2 CLINICAL OUTCOMES STRIP ---- */
.sci-outcomes {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.sci-outcomes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.sci-outcomes__stat {
  padding: 0 var(--space-7) 0 0;
}

.sci-outcomes__stat--mid {
  padding: 0 var(--space-7);
  border-left: 1px solid var(--color-border-dark);
  border-right: 1px solid var(--color-border-dark);
}

/* Third stat: mirror the first — padding right=0, left=space-7 */
.sci-outcomes__stat:last-child {
  padding: 0 0 0 var(--space-7);
}

.sci-outcomes__fig {
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin: 0 0 var(--space-3);
  display: flex;
  align-items: flex-end;
}

.sci-outcomes__pct {
  font-size: 0.45em;
  color: var(--color-coral);
  /* align to baseline/bottom of the number */
  line-height: 1.6;
  margin-left: 0.05em;
}

.sci-outcomes__desc {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-relaxed);
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  max-width: 28ch;
}

/* ---- 10.3 STUDY DATA (Background / Aim / Methods + graphs) ---- */
.sci-data__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-8);
}

.sci-data__block-label {
  display: block;
  margin-bottom: var(--space-4);
}

.sci-data__body {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-navy);
  margin: 0;
}

/* Kaplan-Meier graphs side by side */
.sci-graphs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
}

.sci-graph {
  margin: 0;
}

.sci-graph__caption {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.4;
  margin-bottom: var(--space-3);
  display: block;
  text-align: center;
}

.sci-graph__subcaption {
  font-weight: 400;
  color: var(--color-grey);
  font-size: var(--fs-small);
}

.sci-graph img {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
}

/* ---- 10.4 RESULTS MODULE ---- */
.sci-results__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}

.sci-results__title {
  font-size: var(--fs-h2);
  color: var(--color-navy);
}

.sci-result-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.sci-result-card {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  padding: var(--space-6);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.sci-result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(60, 74, 100, 0.06);
}

.sci-result-card__num {
  font-size: 0.9375rem;
  margin: 0 0 var(--space-4);
}

.sci-result-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-navy);
  line-height: 1.3;
  margin: 0 0 var(--space-3);
}

.sci-result-card__text {
  font-size: var(--fs-small);
  line-height: var(--lh-relaxed);
  color: var(--color-grey);
  margin: 0;
}

.sci-result-card__text strong {
  color: var(--color-navy);
  font-weight: 600;
}

/* ---- 10.5 CONCLUSION BAND ---- */
.sci-conclusion__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-7);
  align-items: start;
}

.sci-conclusion__label {
  color: var(--color-coral);
  display: block;
  padding-top: 0.25em;
}

.sci-conclusion__text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-white);
  margin: 0 0 var(--space-4);
  font-weight: 400;
  max-width: 72ch;
}

.sci-conclusion__attribution {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  font-style: italic;
}

/* ---- 10.6 CASE STUDY ---- */
.sci-case__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-8);
  align-items: start;
}

.sci-case__meta {
  padding-top: 0.25em;
  position: sticky;
  top: var(--space-6);
}

.sci-case__title {
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  color: var(--color-navy);
  margin-bottom: var(--space-6);
}

.sci-case__detail-row {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.sci-case__detail-label {
  margin-bottom: var(--space-2);
  display: block;
}

.sci-case__detail-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-coral);
  margin: 0;
  font-weight: 400;
}

.sci-case__section {
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--color-border);
}

.sci-case__section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sci-case__section-head {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-grey);
  margin-bottom: var(--space-4);
}

.sci-case__section p {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-navy);
  margin: 0 0 var(--space-4);
}

.sci-case__section p:last-child { margin-bottom: 0; }

.sci-case__profile {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.sci-case__profile-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--space-4);
}

.sci-case__profile-row dt {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 2px;
}

.sci-case__profile-row dd {
  margin: 0;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-navy);
}

.sci-case__trial {
  background: var(--color-cream);
  border-left: 3px solid var(--color-coral);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.sci-case__trial:last-of-type { margin-bottom: 0; }

.sci-case__trial-label {
  font-weight: 600;
  color: var(--color-navy) !important;
  font-size: var(--fs-body-sm) !important;
  margin-bottom: var(--space-3) !important;
}

.sci-case__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.sci-case__list li {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-navy);
  padding-left: var(--space-5);
  position: relative;
}

.sci-case__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-coral);
}

.sci-case__followup {
  margin-bottom: var(--space-5);
}

.sci-case__followup:last-child { margin-bottom: 0; }

.sci-case__followup-date {
  font-weight: 600;
  color: var(--color-navy) !important;
  font-size: var(--fs-body-sm) !important;
  margin-bottom: var(--space-2) !important;
}

.sci-case__quote-inline {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--color-navy);
  margin: var(--space-4) 0 0;
  padding: var(--space-4) var(--space-5);
  background: var(--color-peach);
  border-radius: var(--radius-sm);
  border-left: none;
}

/* ---- 10.7 PATIENT QUOTE BAND ---- */
.sci-patient-quote__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-7);
  align-items: center;
}

.sci-patient-quote__label {
  color: var(--color-coral);
  display: block;
}

.sci-patient-quote__text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-white);
  margin: 0;
}

.sci-patient-quote__text em {
  font-style: italic;
  color: var(--color-coral);
  font-weight: 300;
}

/* ============================================================
   11. RESEARCH CARD LINK STYLES
   ============================================================ */
.research-card__label a,
.research-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}
.research-card__label a:hover,
.research-card__title a:hover {
  color: var(--color-coral);
}
