/* ============================================================
   Intake Health — Support Center
   Shared theme + support-specific styles. Marketing-site look:
   dark header + dark hero, white content sections, dark LED band,
   white footer (matches the alternating dark/white sections used
   across the rest of the site).
   ============================================================ */

:root {
  --brand:        #1774D1;
  --brand-dark:   #1262B5;
  --brand-light:  #4A99E8;
  --brand-tint:   #E8F1FB;

  --ink:          #0A0E14;
  --ink-soft:     #131922;

  --white:        #FFFFFF;
  --cream:        #F8F7F4;
  --grey-50:      #F7F9FB;
  --grey-100:     #EEF1F5;
  --grey-200:     #DEE3EA;
  --grey-300:     #C5CCD6;
  --grey-500:     #7E8896;
  --grey-700:     #3F4854;
  --grey-900:     #1B2129;

  --line:         rgba(10, 14, 20, 0.08);
  --line-on-dark: rgba(255, 255, 255, 0.12);

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(56px, 7vw, 96px);
  --radius-pill: 999px;
  --radius: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Reusable dark band (hero + LED reference) */
  --dark-bg:
    radial-gradient(ellipse 75% 60% at 80% 12%, rgba(74, 153, 232, 0.20), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 40%, rgba(23, 116, 209, 0.16), transparent 65%),
    linear-gradient(180deg, #0A0E14 0%, #0E1722 60%, #0E1722 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4, h5, p { margin: 0; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

/* ============ HEADER (dark, always) ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  background: rgba(10,14,20,0.82);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.header.is-scrolled {
  background: rgba(10,14,20,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 30px -14px rgba(0,0,0,0.5);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  transition: height 0.3s var(--ease);
}
.header.is-scrolled .header__inner { height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; transition: opacity 0.2s ease; }
.brand:hover { opacity: 0.85; }
.brand__logo {
  height: 28px;
  width: auto;
  transition: filter 0.3s ease, height 0.3s var(--ease);
  filter: brightness(0) invert(1);
}
.nav { display: flex; align-items: center; gap: 8px; }
.nav__link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, color 0.2s ease;
  color: #fff;
}
.nav__link:hover { background: rgba(255, 255, 255, 0.1); }
.nav__link.is-current { color: var(--brand-light); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 8px 22px -8px rgba(23, 116, 209, 0.45);
}
.btn--primary:hover { background: var(--brand-dark); box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 12px 28px -8px rgba(23, 116, 209, 0.55); }
.btn--small { padding: 10px 18px; font-size: 13px; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.nav-toggle__bars { width: 22px; height: 1.6px; background: currentColor; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 1.6px; background: currentColor;
}
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }

@media (max-width: 940px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(10,14,20,0.97);
    color: #fff;
    padding: 24px var(--gutter) 32px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    gap: 6px;
    align-items: stretch;
  }
  .nav.open .nav__link { color: #fff; }
}

/* ============ HERO (dark band) ============ */
.hero {
  background: var(--dark-bg);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 104px 0 clamp(52px, 6vw, 76px);
  text-align: center;
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand-light);
}
.eyebrow::before { content: ""; width: 24px; height: 1.5px; background: var(--brand-light); }
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.034em;
  font-weight: 700;
  margin-top: 24px;
  color: var(--white);
}
.hero h1 .accent { color: var(--brand-light); }
.hero__sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--grey-300);
  margin-top: 24px;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* ============ SEARCH (sits in dark hero) ============ */
.search-wrapper { max-width: 560px; margin: 36px auto 0; position: relative; text-align: left; }
.search-wrapper > svg {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--grey-300);
  pointer-events: none;
  width: 20px; height: 20px;
}
.search-input {
  width: 100%;
  padding: 16px 18px 16px 50px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  color: var(--white);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.search-input::placeholder { color: var(--grey-300); }
.search-input:focus {
  border-color: var(--brand-light);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(74,153,232,0.22);
}
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden auto;
  display: none;
  z-index: 40;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.45);
  max-height: 380px;
}
.search-results.active { display: block; }
.search-result-item {
  display: block;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--grey-50); }
.search-result-item .result-title { font-weight: 600; font-size: 14.5px; color: var(--ink); margin-bottom: 3px; }
.search-result-item .result-snippet { font-size: 13px; color: var(--grey-700); line-height: 1.45; }
.search-no-results { padding: 20px; text-align: center; color: var(--grey-500); font-size: 14px; }

/* ============ BROWSE TOPICS (white) ============ */
.section { padding: var(--section-y) 0; }
.section__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 24px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.card:hover {
  border-color: var(--brand-tint);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px rgba(23, 116, 209, 0.25);
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.012em; color: var(--ink); }
.card p { font-size: 14.5px; color: var(--grey-700); line-height: 1.55; flex: 1; }
.card .card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ============ LED REFERENCE (white band) ============ */
.led-section {
  background: var(--white);
  color: var(--ink);
  padding: var(--section-y) 0;
}
.led-section .section__kicker { color: var(--grey-500); }
.led-group-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--grey-900);
  margin: 32px 0 14px;
}
.led-group-heading:first-of-type { margin-top: 0; }
.led-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.led-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.led-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  box-shadow: 0 0 10px currentColor;
}
.led-dot.green  { background: #22c55e; color: #22c55e; }
.led-dot.yellow { background: #eab308; color: #eab308; }
.led-dot.red    { background: #ef4444; color: #ef4444; }
.led-dot.blue   { background: #3b82f6; color: #3b82f6; animation: led-pulse 2s infinite; }
.led-dot.white  { background: #f0f0f0; color: #f0f0f0; animation: led-pulse 2s infinite; }
.led-dot.red-green { background: #ef4444; color: #ef4444; animation: led-red-green 1.5s infinite; }
@keyframes led-red-green { 0%,100% { background:#ef4444; color:#ef4444; } 50% { background:#22c55e; color:#22c55e; } }
@keyframes led-pulse { 0%,100% { opacity:1; } 50% { opacity:0.3; } }
@media (prefers-reduced-motion: reduce) { .led-dot { animation: none !important; } }
.led-info strong { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 3px; }
.led-info span { font-size: 13px; color: var(--grey-700); }
a.led-item { transition: border-color 0.2s ease; }
a.led-item:hover { border-color: var(--brand-tint); }
a.led-item:hover .led-info span { color: var(--brand-light); }

/* ============ ARTICLE PAGE (white) ============ */
.article-wrapper { max-width: 880px; margin: 0 auto; padding: 132px var(--gutter) clamp(64px, 8vw, 100px); }
.breadcrumb { font-size: 13px; color: var(--grey-500); margin-bottom: 32px; }
.breadcrumb a { color: var(--grey-700); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--brand); }

.article-content h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.026em;
  margin-bottom: 12px;
  color: var(--ink);
}
.article-meta {
  color: var(--grey-500);
  font-size: 14.5px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.article-content h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.018em;
  margin: 48px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.article-content h2:first-of-type { border-top: none; padding-top: 0; }
.article-content h3 { font-size: 19px; font-weight: 700; margin: 32px 0 12px; color: var(--ink); }
.article-content h4 { font-size: 16px; font-weight: 700; margin: 24px 0 8px; color: var(--brand); }
.article-content p { margin-bottom: 16px; color: var(--grey-700); line-height: 1.7; }
.article-content strong { color: var(--ink); }
.article-content a { color: var(--brand); border-bottom: 1px solid var(--brand-tint); transition: border-color 0.2s ease; }
.article-content a:hover { border-bottom-color: var(--brand); }
.article-content ul, .article-content ol { margin: 0 0 16px; padding-left: 24px; color: var(--grey-700); }
.article-content li { margin-bottom: 8px; line-height: 1.65; }
.article-content li::marker { color: var(--brand); }

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14.5px;
}
.article-content th {
  text-align: left;
  padding: 12px 16px;
  background: var(--grey-50);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.article-content td { padding: 12px 16px; border: 1px solid var(--line); color: var(--grey-700); }
.article-content tr:hover td { background: var(--grey-50); }

.article-content blockquote {
  border-left: 3px solid var(--brand);
  background: var(--brand-tint);
  padding: 16px 20px;
  margin: 0 0 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-content blockquote p { margin-bottom: 0; color: var(--ink); }
.article-content blockquote a { color: var(--brand); }

.article-content hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

.article-nav {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.article-nav a {
  flex: 1;
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.article-nav a:hover { border-color: var(--brand-tint); box-shadow: 0 12px 28px -16px rgba(23, 116, 209, 0.25); }
.article-nav .nav-label { font-size: 11px; color: var(--grey-500); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 5px; }
.article-nav .nav-title { font-weight: 600; font-size: 15px; color: var(--ink); }
.article-nav .next { text-align: right; }

/* ============ CONTACT CTA (light) ============ */
.support-cta {
  max-width: 880px;
  margin: 0 auto;
  background: var(--grey-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(32px, 4vw, 48px);
  text-align: center;
}
.support-cta h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 14px; }
.support-cta p { color: var(--grey-700); font-size: 16px; line-height: 1.6; max-width: 48ch; margin: 0 auto 28px; }

/* ============ FOOTER ============ */
.footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  color: var(--ink);
  padding: clamp(56px, 7vw, 88px) 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 60px);
  margin-bottom: 56px;
}
@media (max-width: 800px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer__top { grid-template-columns: 1fr; } }
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer__brand img { height: 32px; }
.footer__tag { color: var(--grey-700); font-size: 14px; line-height: 1.6; max-width: 30ch; }
.footer__col h5 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-size: 14px; color: var(--ink); transition: color 0.2s ease; }
.footer__col a:hover { color: var(--brand); }
.footer__address { font-size: 14px; color: var(--grey-700); line-height: 1.7; }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--grey-500);
}
.footer__social { display: flex; align-items: center; gap: 14px; }
.footer__social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--grey-100);
  color: var(--grey-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}
.footer__social a:hover { background: var(--brand); color: var(--white); transform: translateY(-1px); }
.footer__legal { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; }
.footer__legal a { color: var(--grey-500); transition: color 0.2s ease; }
.footer__legal a:hover { color: var(--brand); }
.footer__sep { color: var(--grey-300); }

/* ============ ANIMATIONS ============ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .reveal.is-visible { opacity: 1; transform: none; }
  .stagger > .reveal { transition-delay: var(--d, 0ms); }
}
