/* ==========================================================================
   AMMA — American Medical Manufacturers Association
   Design system v3 — clean, institutional, whitespace-first
   ========================================================================== */

:root {
  --navy: #14365c;
  --navy-deep: #0d2440;
  --red: #b3282d;
  --red-dark: #93201f;
  --ink: #1c2733;
  --muted: #56677a;
  --line: #e2e8f0;
  --soft: #f5f8fb;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(13, 36, 64, .06), 0 8px 24px rgba(13, 36, 64, .07);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-weight: 700; color: var(--navy-deep); line-height: 1.18; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.18rem; }
p { color: var(--ink); }
.lead { font-size: 1.13rem; color: var(--muted); line-height: 1.7; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red); margin-bottom: 14px;
}
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.site-header__logo { flex: 0 0 auto; display: block; }
.site-header__logo img { height: 52px; width: auto; max-width: none; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 500;
  padding: 8px 11px; border-radius: 6px; white-space: nowrap;
}
.site-nav a:hover { background: var(--soft); color: var(--navy); }
.site-nav a.active { color: var(--red); font-weight: 600; }
.site-nav a.btn { color: #fff; margin-left: 8px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--navy); }

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 10px; font-size: 1rem; }
  .site-nav a.btn { margin: 10px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 13px 26px; border-radius: 8px; border: 1.5px solid transparent;
  cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--outline-light { border-color: rgba(255,255,255,.65); color: #fff; background: transparent; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--soft { background: var(--soft); }
.section--navy { background: var(--navy-deep); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #c7d4e4; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { margin-top: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-deep); color: #fff; overflow: hidden; }
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .26; }
/* scrim: subtle darkening behind the text so it reads clearly over the photo */
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13, 36, 64, .45) 0%, rgba(13, 36, 64, .25) 55%, rgba(13, 36, 64, 0) 100%);
}
.hero__inner { position: relative; padding: 110px 0 120px; max-width: 760px; }
.hero h1 { color: #fff; margin: 14px 0 18px; text-shadow: 0 1px 12px rgba(7, 19, 35, .45); }
.hero .lead { color: #e3ecf6; max-width: 620px; text-shadow: 0 1px 10px rgba(7, 19, 35, .45); }
.hero__tagline { text-shadow: 0 1px 10px rgba(7, 19, 35, .45); }
.hero .btn-row { margin-top: 34px; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: #ffd5d6;
}
.hero__kicker::before { content: ""; width: 26px; height: 2px; background: var(--red); }
.hero__tagline {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 600; color: #ffd5d6;
  margin: 4px 0 16px; line-height: 1.4;
}

/* Page hero (interior pages) */
.page-hero { background: var(--navy-deep); color: #fff; padding: 64px 0; }
.page-hero h1 { color: #fff; margin-bottom: 12px; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.page-hero p { color: #c7d4e4; max-width: 680px; font-size: 1.08rem; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 28px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Logo wall ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.logo-wall a {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; padding: 22px 18px; height: 110px;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.logo-wall a:hover { box-shadow: var(--shadow); border-color: #c9d6e4; }
.logo-wall img { max-height: 60px; max-width: 130px; object-fit: contain; }

/* ---------- Member rows ---------- */
.member-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 880px) { .member-grid { grid-template-columns: 1fr; } }
.member-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; gap: 22px; align-items: flex-start;
}
.member-card__logo {
  flex: 0 0 120px; height: 84px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px;
}
.member-card__logo img { max-height: 62px; max-width: 100px; object-fit: contain; }
.member-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.member-card p { font-size: .92rem; color: var(--muted); margin-bottom: 10px; }
.member-card a.more { font-size: .9rem; font-weight: 600; color: var(--red); text-decoration: none; }
.member-card a.more:hover { text-decoration: underline; }
@media (max-width: 480px) { .member-card { flex-direction: column; } }

/* ---------- People ---------- */
.person { text-align: center; }
.person img {
  width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 16px; border: 3px solid #fff; box-shadow: var(--shadow);
}
.person h3 { font-size: 1.02rem; }
.person p { font-size: .88rem; color: var(--muted); }

/* ---------- Checklist / feature rows ---------- */
.check-list { list-style: none; display: grid; gap: 14px; }
.check-list li { padding-left: 32px; position: relative; color: var(--ink); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--red);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3"><path d="M4 12l5 5L20 6" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3"><path d="M4 12l5 5L20 6" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat;
}

/* ---------- News ---------- */
.news-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .news-item { grid-template-columns: 1fr; gap: 6px; } }
.news-item__meta { font-size: .85rem; color: var(--muted); }
.news-item__meta .chip { display: block; margin-bottom: 6px; }
.news-item h3 { font-size: 1.08rem; line-height: 1.4; }
.news-item h3 a { text-decoration: none; color: var(--navy-deep); }
.news-item h3 a:hover { color: var(--red); }
.news-item p { font-size: .94rem; color: var(--muted); margin-top: 6px; }
.chip {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 99px; width: fit-content;
}
.chip--release { background: #fdecec; color: var(--red); }
.chip--media { background: #e8eef6; color: var(--navy); }
.chip--linkedin { background: #e3f0fa; color: #0a66c2; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-row button {
  font-family: var(--font); font-size: .88rem; font-weight: 600; cursor: pointer;
  padding: 8px 18px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--muted);
}
.filter-row button.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Doc list (Policy & Research) ---------- */
.doc-list { display: grid; gap: 14px; }
.doc-list a {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.doc-list a:hover { border-color: #c9d6e4; box-shadow: var(--shadow); }
.doc-list .doc-icon {
  flex: 0 0 40px; height: 40px; border-radius: 8px; background: var(--soft);
  display: flex; align-items: center; justify-content: center; color: var(--red);
}
.doc-list .doc-icon svg { width: 20px; height: 20px; }
.doc-list .doc-title { font-weight: 600; color: var(--navy-deep); font-size: .97rem; line-height: 1.4; }
.doc-list .doc-sub { font-size: .82rem; color: var(--muted); margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-deep); border-radius: 14px; padding: 60px 48px; text-align: center; color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #c7d4e4; max-width: 560px; margin: 0 auto 28px; }
.cta-band .btn-row { justify-content: center; }
@media (max-width: 640px) { .cta-band { padding: 44px 24px; } }

/* ---------- Quote ---------- */
.quote {
  border-left: 4px solid var(--red); background: var(--soft); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 30px 34px; font-size: 1.08rem; line-height: 1.7; color: var(--navy-deep);
}
.quote footer { margin-top: 14px; font-size: .9rem; font-weight: 600; color: var(--muted); }

/* ---------- Info / detail blocks ---------- */
.info-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.info-block h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.info-block p, .info-block li { font-size: .94rem; color: var(--ink); }
.info-block .fineprint { font-size: .85rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
.form-grid label { font-size: .88rem; font-weight: 600; color: var(--navy-deep); display: block; margin-bottom: 6px; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%; font-family: var(--font); font-size: .95rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus {
  outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy);
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } }
.form-note { font-size: .85rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9c7d9; padding: 64px 0 36px; margin-top: 0; }
.site-footer a { color: #dce6f1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
@media (max-width: 880px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; font-size: .92rem; }
.site-footer p { font-size: .92rem; color: #b9c7d9; }
.site-footer__brand img { height: 54px; width: auto; max-width: none; background: #fff; border-radius: 8px; padding: 6px; margin-bottom: 16px; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: #8fa2b8;
}
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: rgba(255,255,255,.22); text-decoration: none; }
.social-row svg { width: 17px; height: 17px; fill: #dce6f1; }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; } .mt-4 { margin-top: 48px; }
.mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 32px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 56px 0; }
/* Reveal is opt-in: content is fully visible unless JS enables the animation */
body.reveal-init .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
body.reveal-init .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { body.reveal-init .reveal { opacity: 1; transform: none; } }
