/* Zero Harm Institute — site styles
   Brand colors come from the logo: navy, safety yellow, silver. */
:root {
  --navy: #0B1E3F;
  --navy-2: #13305E;
  --yellow: #F5C400;
  --yellow-dark: #D9AD00;
  --silver: #B9C0CB;
  --ink: #1B2533;
  --muted: #5B6676;
  --line: #E3E7ED;
  --bg: #FFFFFF;
  --bg-soft: #F4F6F9;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(11, 30, 63, .06), 0 8px 24px rgba(11, 30, 63, .08);
  --max: 1140px;
  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #DCE3EE; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy-2);
  margin-bottom: .8em;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px; height: 3px;
  background: var(--yellow);
  vertical-align: middle;
  margin-right: 10px;
}
.section--navy .eyebrow, .hero .eyebrow { color: var(--yellow); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.section--navy .lead { color: #C3CDDB; }
.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--yellow); color: var(--navy); }
.btn--primary:hover { background: var(--yellow-dark); color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: auto; }
.brand-text { font-family: var(--font-head); line-height: 1; }
.brand-text strong { display: block; font-size: 1.05rem; font-weight: 800; color: var(--navy); letter-spacing: .02em; }
.brand-text span { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .32em; color: var(--muted); margin-top: 4px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block;
  padding: 8px 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
}
.nav a:hover { background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
.nav .btn { padding: 10px 18px; margin-left: 8px; color: var(--navy); }
.nav .btn:hover { background: var(--yellow-dark); }
.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 20px; gap: 0; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--yellow); padding-left: 14px; }
  .nav .btn { margin: 14px 0 0; text-align: center; border-bottom: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 500px at 85% 10%, var(--navy-2), transparent 60%), var(--navy);
  color: #DCE3EE;
  padding: 96px 0 104px;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--navy) 18px 36px);
}
.hero .container { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { color: #C3CDDB; margin-bottom: 32px; }
.hero-mark { justify-self: center; width: min(320px, 80%); filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.page-hero { padding: 72px 0 76px; }
.page-hero .container { grid-template-columns: 1fr; }
.page-hero .lead { margin-bottom: 0; }
@media (max-width: 860px) {
  .hero { padding: 64px 0 72px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
}

/* Cards and grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card p { color: var(--muted); }
.card-link { font-family: var(--font-head); font-weight: 700; font-size: .92rem; text-decoration: none; }
.card .card-link { margin-top: auto; }
.card-link::after { content: " \2192"; }
.muted { color: var(--muted); }
.icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--navy);
  color: var(--yellow);
  margin-bottom: 18px;
}
.icon svg { width: 26px; height: 26px; }
.card ul, .checklist { padding-left: 0; list-style: none; margin: 0 0 1em; }
.card li, .checklist li { position: relative; padding-left: 26px; margin-bottom: 8px; color: var(--ink); }
.card li::before, .checklist li::before {
  content: "";
  position: absolute; left: 0; top: .5em;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 3px solid var(--yellow);
}

.card--feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12px 48px;
  align-items: center;
  border-top: 4px solid var(--yellow);
}
.card--feature ul { margin: 0; }
@media (max-width: 760px) { .card--feature { grid-template-columns: 1fr; } }

/* Principles */
.principle { border-top: 3px solid var(--yellow); padding-top: 20px; }
.principle .num { font-family: var(--font-head); font-weight: 800; font-size: .85rem; color: var(--yellow); letter-spacing: .1em; }
.principle p { color: #C3CDDB; }

/* Books */
.book { display: grid; grid-template-columns: 180px 1fr; gap: 36px; align-items: start; }
.book + .book { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .book { grid-template-columns: 1fr; } .book .cover { max-width: 200px; } }
.cover {
  aspect-ratio: 2 / 3;
  border-radius: 4px 8px 8px 4px;
  background: linear-gradient(160deg, var(--navy-2), var(--navy) 70%);
  color: #fff;
  padding: 22px 18px;
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: 0 2px 4px rgba(0,0,0,.15), 0 16px 32px rgba(11,30,63,.28), inset 6px 0 0 rgba(255,255,255,.08);
  overflow: hidden;
}
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover::before { content: ""; width: 36px; height: 4px; background: var(--yellow); margin-bottom: 14px; }
.cover .cover-title { font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; line-height: 1.2; }
.cover .cover-author { margin-top: auto; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--silver); }
.cover--alt { background: linear-gradient(160deg, #24364F, #101A2B 70%); }
.cover--yellow { background: linear-gradient(160deg, #FFD43A, var(--yellow) 70%); color: var(--navy); }
.cover--yellow::before { background: var(--navy); }
.cover--yellow .cover-author { color: var(--navy-2); }
.book .audience { font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.book h2, .book h3 { margin-bottom: .2em; }
.book .subtitle { font-size: 1.05rem; color: var(--navy-2); font-weight: 600; margin-bottom: 1em; }
.book-card { text-align: left; }
.book-card .cover { margin-bottom: 20px; max-width: 170px; }
.book-card h3 { margin-bottom: .3em; }

/* Videos */
.video { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  display: grid; place-items: center;
  color: var(--silver);
}
.video-frame iframe, .video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-frame button {
  position: absolute; inset: 0;
  border: 0; padding: 0; background: transparent; cursor: pointer;
}
.video-frame .play {
  position: absolute; left: 50%; top: 50%;
  width: 68px; height: 68px; margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: var(--yellow);
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  transition: transform .15s;
}
.video-frame button:hover .play { transform: scale(1.08); }
.video-frame .play svg { width: 26px; height: 26px; margin-left: 4px; fill: var(--navy); }
.video-frame .soon { font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.video-body { padding: 20px 22px 24px; }
.video-body h3 { font-size: 1.05rem; margin-bottom: .3em; }
.video-body p { color: var(--muted); font-size: .95rem; margin: 0; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-2); background: #FFF6CC; padding: 3px 9px; border-radius: 999px; margin-bottom: 10px; }

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.quote {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
  border-left: 5px solid var(--yellow);
  padding-left: 24px;
  margin: 0;
}
.quote cite { display: block; margin-top: 14px; font-size: .9rem; font-weight: 600; font-style: normal; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--yellow); padding: 56px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .2em; }
.cta-band p { margin: 0; color: var(--navy-2); font-weight: 500; }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid #C9D0DA;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(245,196,0,.45); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form-status { padding: 14px 16px; border-radius: 6px; font-weight: 600; display: none; }
.form-status.ok { display: block; background: #E7F6EC; color: #17633A; }
.form-status.err { display: block; background: #FDECEC; color: #9B1C1C; }
.contact-info { list-style: none; padding: 0; margin: 0; }
.contact-info li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info .icon { width: 44px; height: 44px; margin: 0; flex: none; }
.contact-info .icon svg { width: 22px; height: 22px; }
.contact-info strong { display: block; font-family: var(--font-head); color: var(--navy); }

/* Footer */
.site-footer { background: #071530; color: #9FACBF; padding: 56px 0 28px; font-size: .94rem; }
.site-footer a { color: #DCE3EE; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text span { color: #9FACBF; }
.site-footer .tagline { margin-top: 16px; font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

.mt-0 { margin-top: 0; }
.center { text-align: center; }
.mt-lg { margin-top: 40px; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
