/* ================================================================
   site.css — Shared styles for PayerBenchmark
   Included by: payerbenchmark.html, privacy-policy.html,
                terms-of-service.html
   ================================================================ */

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

/* ── DESIGN TOKENS ──────────────────────────────────────────────── */
:root {
  /* Primary blues */
  --primary:           #005eb6;
  --primary-dim:       #0052a1;
  --primary-fixed-dim: #4d8fd4;
  --primary-soft:      rgba(0,94,182,0.08);
  --primary-soft-mid:  rgba(0,94,182,0.14);

  /* Surfaces */
  --surface:           #f7f9fb;
  --surface-low:       #f0f4f7;
  --surface-container: #e8edf2;
  --surface-high:      #dde4ea;
  --surface-highest:   #d0d9e2;
  --surface-lowest:    #ffffff;

  /* Text */
  --on-surface:        #2c3437;
  --on-surface-var:    #5a6870;
  --on-surface-muted:  #8a979e;

  /* Semantic */
  --secondary-container:    #dce8f8;
  --on-secondary-container: #00448a;
  --tertiary:               #00897b;
  --error:                  #a83836;
  --outline-variant:        rgba(172,179,183,0.18);

  /* Hero (deep blue) */
  --hero-bg:     #001f4d;
  --hero-mid:    #00265f;
  --hero-text:   #e8f0fb;
  --hero-muted:  rgba(232,240,251,0.65);
  --hero-border: rgba(232,240,251,0.12);

  /* Shadows */
  --shadow-card:  0 8px 32px rgba(44,52,55,0.06);
  --shadow-float: 0 12px 40px rgba(44,52,55,0.06);

  /* Radii */
  --radius-sm:   0.5rem;
  --radius-md:   0.75rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-full: 9999px;
}

/* ── BASE ────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--on-surface);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

section { scroll-margin-top: 64px; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ── NAVIGATION ──────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(0,31,77,0.96);
  backdrop-filter: blur(16px);
  padding: 0 2.5rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
  text-shadow: 0 0 1px #fff;
}

.nav-logo span {
  background: linear-gradient(45deg, #60a5fa, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgb(255 255 255 / 75%);
  text-decoration: none;
  font-size: 0.975rem;
  font-weight: 600;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }

.nav-cta {
  background: linear-gradient(45deg, var(--primary-dim), var(--primary));
  color: #fff;
  padding: .5rem 1.35rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
}

.nav-cta:hover { opacity: .9; transform: translateY(-1px); }

/* ── NAV RIGHT (CTA + hamburger wrapper) ─────────────────────────── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ── DROPDOWN ────────────────────────────────────────────────────── */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
}

.dropdown-arrow {
  width: 10px; height: 6px;
  transition: transform .2s;
  flex-shrink: 0;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #001433;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  /* padding-top bridges the visual gap without breaking hover */
  padding: 10px 0 6px;
  list-style: none;
  min-width: 200px;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  z-index: 200;
}

/* invisible hover bridge — extends hitbox upward over the gap */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px; left: 0; right: 0;
  height: 10px;
}

.nav-dropdown-menu li a {
  display: block;
  padding: .55rem 1.25rem;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s, background .15s;
}

.nav-dropdown-menu li a:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }

/* ── HAMBURGER BUTTON ────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ─────────────────────────────────────────────────── */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: #001433;
  border-top: 1px solid rgba(255,255,255,.08);
  z-index: 99;
  padding: 1rem 1.5rem 1.5rem;
  flex-direction: column;
  gap: .25rem;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.nav-mobile-menu.open { display: flex; }

.nav-mobile-menu a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-weight: 600;
  font-size: .975rem;
  padding: .65rem .25rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color .15s;
}

.nav-mobile-menu a:hover { color: #fff; }

.mobile-section-label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  padding: 1rem .25rem .35rem;
}

.nav-mobile-menu .mobile-sub {
  font-size: .9rem;
  padding-left: 1rem;
  color: rgba(255,255,255,.6);
  border-bottom-color: transparent;
}

.nav-mobile-menu .mobile-sub:hover { color: rgba(255,255,255,.9); }

.nav-mobile-menu .mobile-cta {
  margin-top: .75rem;
  background: linear-gradient(45deg, var(--primary-dim), var(--primary));
  color: #fff;
  text-align: center;
  border-radius: var(--radius-full);
  padding: .7rem 1rem;
  border-bottom: none;
  font-size: .95rem;
}

/* ── SHARED SECTION STYLES ───────────────────────────────────────── */
.section-tag {
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

h2 {
  font-family: 'Inter', sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--on-surface);
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--on-surface-var);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 3.5rem;
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
footer {
  background: var(--hero-bg);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .75rem;
}

.footer-brand-name span {
  background: linear-gradient(45deg, #60a5fa, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-desc {
  font-size: .85rem;
  color: var(--hero-muted);
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  font-size: .72rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul li a {
  font-size: .85rem;
  color: var(--hero-muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--hero-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: .75rem;
  color: rgba(232,240,251,0.35);
}

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: .8rem;
  color: var(--hero-muted);
  text-decoration: none;
}
.footer-links a:hover { color: #fff; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  h2 { font-size: 2rem; }
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .container { padding: 0 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .nav-logo { font-size: 1.6rem; letter-spacing: -0.7px; }
  .nav-cta  { font-size: 0.75rem; padding: .45rem .9rem; }
}
