/* ============================================================
   REFLEKT HEALTH — DESIGN SYSTEM v3
   Shared across all pages. Do not modify without design review.
   ============================================================ */

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

:root {
  /* ── Color Tokens ── */
  --cloud:        #F2F5F5;
  --mist:         #E6EDED;
  --night:        #141E1E;
  --slate:        #5A7070;
  --slate-light:  #8AA0A0;
  --teal:         #3D9A94;
  --teal-dark:    #2E7D78;
  --teal-light:   #E8F5F4;
  --teal-xlight:  #F0FAF9;
  --amber:        #E5A93D;
  --warm-sand:    #F5F0E8;
  --warm-linen:   #F8F4EE;
  --white:        #FFFFFF;
  --divider:      rgba(20,30,30,0.06);
  --divider-md:   rgba(20,30,30,0.10);
  --divider-dark: rgba(255,255,255,0.08);

  /* ── Typography Scale ── */
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 15px;
  --text-md:   17px;
  --text-lg:   20px;
  --text-xl:   28px;
  --text-2xl:  36px;
  --text-3xl:  44px;
  --text-4xl:  56px;

  /* ── Spacing ── */
  --page-max:   1320px;
  --page-pad:   72px;
  --section-y:  96px;
  --section-y-lg: 112px;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  background: var(--white);
  color: var(--night);
  -webkit-font-smoothing: antialiased;
  font-size: var(--text-base);
  line-height: 1.6;
}

/* ── SHARED NAV ── */
.nav {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--divider);
  position: sticky; top: 0; z-index: 100;
  padding: 0 var(--page-pad); height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 600; color: var(--night);
  letter-spacing: -0.4px; text-decoration: none;
}
.nav-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-mark svg { width: 15px; height: 15px; }
/* Real brand logo image — nav: show icon only (top portion) */
.nav-logo-img {
  height: 44px;
  width: 44px;
  object-fit: cover;
  object-position: top center;
  display: block;
  flex-shrink: 0;
}
/* Footer logo — full vertical logo, inverted to white */
.footer-logo-img {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--slate);
  text-decoration: none; transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--night); }
.nav-links a.active { font-weight: 600; }
.btn-nav {
  background: var(--teal); color: #fff;
  border: none; border-radius: 100px;
  padding: 9px 22px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: var(--font-base);
  transition: background 0.15s; text-decoration: none;
  display: inline-flex; align-items: center;
}
.btn-nav:hover { background: var(--teal-dark); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--night); margin: 4px 0; border-radius: 2px; transition: all 0.2s; }

/* ── SHARED FOOTER ── */
.footer {
  background: var(--night);
  padding: 48px var(--page-pad) 32px;
}
.footer-top {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 40px;
  border-bottom: 1px solid var(--divider-dark);
  margin-bottom: 28px;
}
.footer-brand-col {}
.footer-logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 700; color: #fff;
  letter-spacing: -0.4px; margin-bottom: 12px;
  text-decoration: none;
}
.footer-logo .nav-mark { width: 26px; height: 26px; border-radius: 7px; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.6; max-width: 200px; }
.footer-col-title { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { font-size: 13px; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.15s; }
.footer-col ul a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.18); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.22); text-decoration: none; }
.footer-legal a:hover { color: rgba(255,255,255,0.5); }

/* ── SHARED BUTTONS ── */
.btn-primary {
  background: var(--teal); color: #fff;
  border: none; border-radius: var(--radius-sm);
  padding: 14px 26px; font-size: var(--text-base); font-weight: 600;
  cursor: pointer; font-family: var(--font-base);
  transition: background 0.15s; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(61,154,148,0.35);
  color: var(--teal); border-radius: var(--radius-sm);
  padding: 13px 22px; font-size: var(--text-base); font-weight: 500;
  cursor: pointer; font-family: var(--font-base);
  transition: all 0.15s; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-outline:hover { border-color: var(--teal); background: var(--teal-xlight); }
.btn-white {
  background: #fff; color: var(--night);
  border: none; border-radius: var(--radius-sm);
  padding: 14px 28px; font-size: var(--text-base); font-weight: 600;
  cursor: pointer; font-family: var(--font-base);
  transition: opacity 0.15s; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-white:hover { opacity: 0.9; }
.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.65); border-radius: var(--radius-sm);
  padding: 13px 24px; font-size: var(--text-base); font-weight: 500;
  cursor: pointer; font-family: var(--font-base);
  transition: border-color 0.15s; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.45); color: #fff; }

/* ── SHARED SECTION UTILITIES ── */
.section-label {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--teal);
  display: block; margin-bottom: 12px;
}
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 {
  font-size: 40px; font-weight: 700; letter-spacing: -1.2px;
  color: var(--night); margin-bottom: 12px;
}
.section-header p { font-size: var(--text-md); color: var(--slate); max-width: 520px; margin: 0 auto; line-height: 1.65; }
.page-inner { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--page-pad); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--cloud);
  padding: 72px var(--page-pad) 64px;
  text-align: center;
}
.page-hero-inner { max-width: 680px; margin: 0 auto; }
.page-hero h1 {
  font-size: 48px; font-weight: 700; letter-spacing: -1.8px;
  color: var(--night); line-height: 1.1; margin-bottom: 16px;
}
.page-hero p { font-size: var(--text-md); color: var(--slate); line-height: 1.68; }

/* ── AMBER TAG ── */
.amber-tag {
  display: inline-block;
  background: var(--amber); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 13px; border-radius: 100px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  :root { --page-pad: 40px; }
}
@media (max-width: 768px) {
  :root { --page-pad: 20px; --section-y: 56px; --section-y-lg: 64px; }
  .nav-links, .btn-nav { display: none; }
  .nav-toggle { display: block; }
  .nav-logo-img { height: 44px; width: 44px; }
  .nav-brand { font-size: 18px; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; padding: 20px;
    border-bottom: 1px solid var(--divider);
    gap: 16px; z-index: 99;
  }
  .nav-links.open + .btn-nav { display: flex; margin: 0 20px 16px; }
  /* Footer: single column on mobile */
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-legal { justify-content: center; }
  .footer { padding: 40px var(--page-pad) 28px; }
  /* Section headers */
  .section-header h2 { font-size: 28px; letter-spacing: -0.8px; }
  .section-header p { font-size: 15px; }
  .section-header { margin-bottom: 36px; }
  /* Page hero */
  .page-hero { padding: 48px var(--page-pad) 40px; }
  .page-hero h1 { font-size: 32px; letter-spacing: -1px; }
  .page-hero p { font-size: 15px; }
  /* Buttons */
  .btn-primary, .btn-outline, .btn-white, .btn-ghost { padding: 12px 20px; font-size: 14px; }
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal); color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(61,154,148,0.35);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  font-family: var(--font-base);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--teal-dark); transform: translateY(-2px); }
.back-to-top svg { width: 18px; height: 18px; }
