/* ============================================================
   Health Careers Map — Shared Design System
   healthcareersmap.com  |  Locked standards
   Navy #0D2137 · Teal #0E9F8E · Gold #C8933A
   Playfair Display (headings) · DM Sans (body)
   ============================================================ */

:root {
  --navy:       #0D2137;
  --navy-700:   #142D49;
  --navy-600:   #1B3A5C;
  --navy-500:   #244A70;
  --teal:       #0E9F8E;
  --teal-600:   #0B8275;
  --teal-700:   #096b61;
  --teal-tint:  #E6F4F2;
  --gold:       #C8933A;
  --gold-600:   #B07F2C;
  --gold-tint:  #F6ECD9;
  --cream:      #FBF7EF;
  --paper:      #FFFFFF;
  --ink:        #0D2137;
  --slate:      #4A5A6A;
  --slate-400:  #6E7E8C;
  --line:       #E7E2D6;
  --line-soft:  #F0ECE2;
  --shadow-sm:  0 1px 2px rgba(13,33,55,.06), 0 2px 8px rgba(13,33,55,.05);
  --shadow-md:  0 4px 14px rgba(13,33,55,.08), 0 12px 32px rgba(13,33,55,.07);
  --shadow-lg:  0 10px 30px rgba(13,33,55,.12), 0 30px 60px rgba(13,33,55,.10);
  --radius:     14px;
  --radius-lg:  22px;
  --maxw:       1180px;
  --ease:       cubic-bezier(.2,.7,.2,1);
}

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

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

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -.01em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-600);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow.gold { color: var(--gold-600); }
.eyebrow::before {
  content: "";
  width: 26px; height: 2px; background: currentColor; border-radius: 2px;
  opacity: .8;
}
.eyebrow.center::before { display: none; }

/* ============================================================
   LOGO
   ============================================================ */
.hcm-logo { display: inline-flex; align-items: center; gap: 12px; }
.hcm-logo-mark { width: 46px; height: 46px; flex: none; display: block; }
.hcm-logo-text { display: flex; flex-direction: column; line-height: 1; }
.hcm-logo-name {
  font-family: "Playfair Display", serif;
  font-weight: 700; font-size: 21px; color: #fff; letter-spacing: -.01em;
}
.hcm-logo-sub {
  font-family: "DM Sans", sans-serif;
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.6); margin-top: 5px; font-weight: 500;
}

/* ============================================================
   NAVIGATION  (two-row navy bar)
   ============================================================ */
.hcm-nav { background: var(--navy); position: sticky; top: 0; z-index: 60; box-shadow: 0 1px 0 rgba(255,255,255,.04); }
.hcm-nav__main {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.07);
}
.hcm-nav__links { display: flex; align-items: center; gap: 30px; }
.hcm-nav__links a {
  color: rgba(255,255,255,.82); font-size: 15px; font-weight: 500; letter-spacing: .005em;
  transition: color .18s var(--ease); position: relative; padding: 4px 0;
}
.hcm-nav__links a:hover { color: #fff; }
.hcm-nav__links a.active { color: #fff; }
.hcm-nav__links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.hcm-nav__right { display: flex; align-items: center; gap: 18px; }

.hcm-subnav { background: var(--navy-700); }
.hcm-subnav__row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 26px;
  padding: 11px 0;
}
.hcm-subnav a {
  color: rgba(255,255,255,.62); font-size: 12.5px; font-weight: 500;
  letter-spacing: .03em; transition: color .18s var(--ease);
}
.hcm-subnav a:hover { color: rgba(255,255,255,.95); }
.hcm-subnav a.active { color: var(--teal); }
.hcm-subnav__sep { width: 1px; height: 13px; background: rgba(255,255,255,.16); }

/* mobile nav toggle */
.hcm-nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.hcm-nav__burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; border-radius: 2px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: "DM Sans", sans-serif; font-weight: 700; font-size: 15.5px;
  padding: 13px 26px; border-radius: 11px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .16s var(--ease), box-shadow .2s var(--ease), background .2s; 
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: #fff; box-shadow: 0 6px 16px rgba(200,147,58,.32); }
.btn--gold:hover { background: var(--gold-600); box-shadow: 0 10px 24px rgba(200,147,58,.4); transform: translateY(-1px); }
.btn--teal { background: var(--teal); color: #fff; box-shadow: 0 6px 16px rgba(14,159,142,.28); }
.btn--teal:hover { background: var(--teal-600); box-shadow: 0 10px 24px rgba(14,159,142,.36); transform: translateY(-1px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-600); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy); }
.btn--ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.btn--ghost-light:hover { background: rgba(255,255,255,.16); }
.btn--lg { padding: 16px 32px; font-size: 16.5px; border-radius: 12px; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--nav-gold {
  background: var(--gold); color: #fff; padding: 11px 22px; border-radius: 9px;
  font-size: 14.5px; box-shadow: 0 4px 12px rgba(200,147,58,.3);
}
.btn--nav-gold:hover { background: var(--gold-600); transform: translateY(-1px); }

/* ============================================================
   SECTION HELPERS
   ============================================================ */
.section { padding: 84px 0; }
.section--tight { padding: 60px 0; }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.lead { font-size: 19px; color: var(--slate); line-height: 1.6; }
.section--navy .lead { color: rgba(255,255,255,.78); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ============================================================
   CARDS / BADGES (generic)
   ============================================================ */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.badge {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 700;
  font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.badge--teal { background: var(--teal-tint); color: var(--teal-700); }
.badge--gold { background: var(--gold-tint); color: var(--gold-600); }
.badge--free { background: var(--teal); color: #fff; }

/* check / x rows */
.li-check, .li-x { display: flex; align-items: flex-start; gap: 11px; }
.ic { flex: none; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px; }
.ic--check { background: var(--teal-tint); color: var(--teal-700); }
.ic--x { background: #F3EDED; color: #B0827E; }
.ic--gold { background: var(--gold-tint); color: var(--gold-600); }
.ic svg { width: 12px; height: 12px; }

/* ============================================================
   FOOTER
   ============================================================ */
.hcm-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 64px 0 30px; }
.hcm-footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1.6fr; gap: 48px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.hcm-footer h4 {
  font-family: "DM Sans", sans-serif; color: #fff; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-bottom: 18px;
}
.hcm-footer p { font-size: 14.5px; line-height: 1.7; color: rgba(255,255,255,.62); }
.hcm-footer__links { display: flex; flex-direction: column; gap: 11px; }
.hcm-footer__links a { color: var(--teal); font-size: 14.5px; transition: color .18s; }
.hcm-footer__links a:hover { color: #fff; }
.hcm-footer__bottom {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding-top: 26px; text-align: center;
}
.hcm-footer__bottom .meta { font-size: 13px; color: rgba(255,255,255,.5); }
.hcm-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; font-size: 13px; }
.hcm-footer__legal a { color: rgba(255,255,255,.72); }
.hcm-footer__legal a:hover { color: var(--teal); }
.hcm-footer__legal .dot { color: rgba(255,255,255,.3); }

/* ============================================================
   ACCORDION (FAQ)
   ============================================================ */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; text-align: left;
  font-family: "DM Sans", sans-serif; font-weight: 600; font-size: 18px; color: var(--navy);
}
.acc__q:hover { color: var(--teal-700); }
.acc__icon { flex: none; width: 26px; height: 26px; position: relative; transition: transform .25s var(--ease); }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; background: var(--teal); border-radius: 2px;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.acc__icon::before { width: 14px; height: 2px; }
.acc__icon::after { width: 2px; height: 14px; transition: opacity .25s, transform .25s; }
.acc__item.open .acc__icon::after { opacity: 0; transform: translate(-50%,-50%) rotate(90deg); }
.acc__a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.acc__a-inner { padding: 0 4px 24px; color: var(--slate); font-size: 16px; line-height: 1.65; max-width: 760px; }

/* ============================================================
   TABLES (comparison)
   ============================================================ */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 760px; background: var(--paper); }
.cmp th, .cmp td { padding: 17px 18px; text-align: center; font-size: 15px; border-bottom: 1px solid var(--line-soft); }
.cmp thead th { position: sticky; top: 0; }
.cmp th.feat, .cmp td.feat { text-align: left; font-weight: 600; color: var(--navy); width: 34%; }
.cmp thead th { font-family: "DM Sans", sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .02em; background: var(--navy); color: #fff; padding-top: 20px; padding-bottom: 20px; }
.cmp thead th:first-child { border-top-left-radius: var(--radius); }
.cmp thead th:last-child { border-top-right-radius: var(--radius); }
.cmp thead th.hl { background: var(--teal); }
.cmp td.hl { background: var(--teal-tint); font-weight: 600; }
.cmp tbody tr:hover td { background: rgba(14,159,142,.035); }
.cmp tbody tr:hover td.hl { background: rgba(14,159,142,.13); }
.cmp .muted { color: var(--slate-400); font-size: 14px; }

/* ============================================================
   FORMS
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: 14px; color: var(--navy); }
.field input[type=text], .field input[type=email] {
  font-family: "DM Sans", sans-serif; font-size: 16px; color: var(--ink);
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14,159,142,.14); }
.field input::placeholder { color: #A9B3BC; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--cream); padding: 5px; border-radius: 12px; border: 1.5px solid var(--line); }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--slate);
  transition: all .18s var(--ease);
}
.seg input:checked + .seg__btn { background: #fff; color: var(--teal-700); box-shadow: var(--shadow-sm); }

/* ============================================================
   UTIL
   ============================================================ */
.hide { display: none !important; }
.copy-toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 12px;
  font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-lg); opacity: 0;
  transition: opacity .25s, transform .25s; z-index: 200; pointer-events: none;
}
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .7s var(--ease) both; }
.rise-2 { animation-delay: .08s; }
.rise-3 { animation-delay: .16s; }
.rise-4 { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hcm-nav__links, .hcm-subnav { display: none; }
  .hcm-nav__links.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--navy-700); padding: 14px 28px 20px; box-shadow: var(--shadow-lg);
  }
  .hcm-nav__links.open a { padding: 10px 0; width: 100%; font-size: 16px; }
  .hcm-nav__burger { display: block; }
  .hcm-nav__main { position: relative; }
  .hcm-footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .section { padding: 60px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .hcm-logo-sub { display: none; }
  .lead { font-size: 17px; }
}

/* ============================================================
   REAL LOGO IMAGE
   ============================================================ */
.hcm-logo-img { width: 46px; height: 46px; flex: none; display: block; object-fit: contain; }

/* ============================================================
   EN / ES LANGUAGE TOGGLE
   ============================================================ */
.lang-toggle { display: inline-flex; align-items: center; background: rgba(255,255,255,.10); border-radius: 999px; padding: 3px; gap: 2px; }
.lang-toggle__btn {
  font-family: "DM Sans", sans-serif;
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  padding: 5px 13px; border-radius: 999px; border: none; cursor: pointer;
  background: transparent; color: rgba(255,255,255,.65);
  transition: background .18s, color .18s;
}
.lang-toggle__btn.active {
  background: var(--gold); color: #fff;
  box-shadow: 0 2px 8px rgba(200,147,58,.4);
}
.lang-toggle__btn:hover:not(.active) { color: #fff; background: rgba(255,255,255,.12); }

/* hide/show language sections */
[data-lang="es"] { display: none; }
body.lang-es [data-lang="es"] { display: block; }
body.lang-es [data-lang="en"] { display: none; }
