/* =====================================================================
   Emergency Medical Care Academy — static site styles
   Original CSS (not copied from the source site). Colors sampled from
   the source to match the brand.
   --------------------------------------------------------------------- */
:root {
  --brand:       #ffffff;             /* primary accent (white)         */
  --brand-dark:  #d4d4d8;             /* accent hover                   */
  --brand-tint:  rgba(255,255,255,.05);/* faint tinted background        */
  --bg:          #18181A;             /* page background (dark)         */
  --surface:     #1D1E20;             /* header / cards                 */
  --surface-2:   #1D2429;             /* alt section                    */
  --ink:         #ffffff;             /* primary text on dark           */
  --ink-soft:    #a6a9b6;             /* secondary text                 */
  --ink-dim:     #727586;            /* dim / meta text                */
  --line:        rgba(255,255,255,.09);
  --radius:      14px;
  --maxw:        1080px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; color: var(--ink-soft); }
a  { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { color: var(--ink-soft); }

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

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: .8rem 1.7rem; border-radius: var(--radius);
  font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: .18s;
}
.btn-primary { background: var(--brand); color: var(--bg); }
.btn-primary:hover { background: var(--brand-dark); color: var(--bg); text-decoration: none; }
.btn-outline { border-color: var(--brand); color: #fff; background: transparent; }
.btn-outline:hover { background: var(--brand); color: var(--bg); text-decoration: none; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(24,24,26,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; font-weight: 700; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand img { height: 48px; width: auto; }
.site-footer .brand img { height: 64px; }
.logo-autohide .brand-autohide { opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.logo-autohide.logo-out .brand-autohide { opacity: 1; visibility: visible; }
.nav-right { display: flex; align-items: center; gap: 1.4rem; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); font-weight: 500; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.lang-switch { display: flex; align-items: center; gap: .5rem; }
.lang-switch a { display: inline-flex; align-items: center; opacity: .5; transition: .15s; }
.lang-switch a:hover { opacity: 1; }
.lang-switch a.active { opacity: 1; }
.lang-switch img { height: 18px; width: 24px; border-radius: 3px; }

/* ---- Hero ---- */
.hero {
  padding: clamp(4rem, 12vw, 8rem) 0; text-align: center;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(255,255,255,.10), transparent 70%),
    var(--bg);
}
.hero-logo { height: clamp(96px, 22vw, 160px); width: auto; margin: 0 auto 2rem; }
.hero h1 { margin-bottom: .4em; }
.hero .lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 74ch; margin: 0 auto; }

/* ---- Sections ---- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--surface-2); }
.section-head { max-width: 62ch; margin: 0 auto 2.5rem; text-align: center; }
.lede { font-size: 1.1rem; }

.values { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.value {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
}
.value h3 { color: #fff; display: flex; align-items: center; gap: .6rem; }
.value h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: none; }
.value p { margin: 0; }

/* ---- Legal / prose pages ---- */
.prose { max-width: 780px; margin: 0 auto; padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.prose h1 { margin-bottom: .15em; }
.prose .updated { color: var(--ink-dim); font-size: .9rem; margin-bottom: 2.5rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.3rem; color: #fff; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--brand); }

/* ---- Footer ---- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 3rem 0 2rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.3rem;
  font-size: .85rem; color: var(--ink-dim);
  display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; justify-content: space-between;
}

/* ---- Mobile ---- */
@media (max-width: 720px) {
  .nav-links { gap: .9rem; font-size: .92rem; }
  .nav-links .hide-sm { display: none; }
  .brand span { display: none; }
}

/* ---- App announcement (hero) ---- */
.app-badge {
  display: inline-flex; align-items: center; gap: .5rem; margin: 1.6rem 0 1rem;
  padding: .3rem .9rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--brand-tint); font-size: .85rem; color: var(--ink-soft);
}
.app-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; flex: none; }
.app-badge code, .app-meta code { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.8rem; }

/* ---- Project page ---- */
.page-hero { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3rem); text-align: center;
  background: radial-gradient(60% 80% at 50% 0%, rgba(255,255,255,.08), transparent 70%), var(--bg); }
.page-hero .lead { font-size: 1.2rem; max-width: 60ch; margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--ink-dim); margin-bottom: .8rem; }
.app-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem; margin-top: 1.4rem; font-size: .92rem; color: var(--ink-dim); }
.shot { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.shot figcaption { padding: .7rem 1rem; font-size: .88rem; color: var(--ink-dim); }
.shot-main { max-width: 960px; margin: 0 auto; }
.shots { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 1.2rem; }
.values-wide, .shots-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.scenarios { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; list-style: none; padding: 0; margin: 0; }
.scenarios li { padding: .35rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .9rem; }
.notice { max-width: 780px; margin: 0 auto; padding: 1.4rem 1.6rem; border: 1px solid var(--line); border-left: 3px solid #f59e0b; border-radius: var(--radius); background: var(--surface); }
.notice p:last-child { margin-bottom: 0; }
.center { text-align: center; }

/* ---- Apps in the hero ---- */
.hero-apps { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 900px; margin: 1.8rem auto 0; }
.hero-app { display: flex; flex-direction: column; align-items: center; padding: 1.6rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--brand-tint); }
.hero-app h2 { font-size: 1.4rem; margin-bottom: .35em; }
.hero-app p { margin-bottom: 0; flex: 1; }
.hero-app .app-badge { margin: 1.1rem 0 0; }
.hero-app .hero-actions { margin-top: 1.2rem; }
