/* IAESP main site
   Palette taken from the logo; one signature element: the ambulance chevron band under the hero. */
:root {
  --navy: #13285a;
  --navy-deep: #0d1d42;
  --steel: #5d7699;
  --signal: #f7c21b;
  --mist: #eef2f7;
  --ink: #18223a;
  --muted: #4d5a73;
  --line: #d3dae5;
  --white: #ffffff;
  --display: "Bahnschrift", "DIN Alternate", "DIN Next", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 17px/1.6 var(--body); color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--steel); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-stretch: 87.5%; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); font-stretch: 87.5%; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 65ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--signal); color: var(--navy-deep); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-head { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand img { width: 68px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-short { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: .04em; }
.brand-long { font-size: .8rem; color: var(--muted); max-width: 30ch; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--navy); text-decoration: underline; }
.site-nav .nav-verify { background: var(--navy); color: var(--white); padding: 9px 14px; border-radius: 6px; }
.site-nav .nav-verify:hover { background: var(--navy-deep); color: var(--white); text-decoration: none; }
.menu-toggle { display: none; font: inherit; font-weight: 600; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; color: var(--navy); cursor: pointer; }

/* ---------- hero ---------- */
.hero { background: var(--navy-deep); color: #dfe6f1; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 84px; }
.hero h1 { color: var(--white); }
.lead { font-size: 1.15rem; color: #c9d3e3; }
.hero-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.text-link-light { color: var(--white); font-weight: 500; }
.text-link-light:hover { color: var(--signal); }

.verify-box { background: var(--white); color: var(--ink); border-radius: 10px; padding: 28px; border-top: 6px solid var(--signal); }
.verify-box h2 { font-size: 1.6rem; margin-bottom: .3em; }
.verify-box p { color: var(--muted); font-size: .95rem; }
.verify-box label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 6px; color: var(--ink); }
.verify-box input { width: 100%; font: 600 1.15rem var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 13px 14px; border: 2px solid var(--line); border-radius: 8px; color: var(--navy); background: var(--white); }
.verify-box input::placeholder { color: #9aa6ba; letter-spacing: .06em; }
.verify-box input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(247, 194, 27, .55); }
.verify-box .btn { width: 100%; margin-top: 14px; }
.verify-box .fine { font-size: .83rem; margin: 12px 0 0; }

/* signature: ambulance rear chevrons */
.chevrons { height: 22px; background: repeating-linear-gradient(135deg, var(--signal) 0 18px, var(--navy) 18px 36px); }

/* "Why we exist": the organization's founding statement, set as the page's largest words after the hero */
.why { padding: 88px 0 72px; }
.why-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: end; }
.why-statement { font-size: clamp(2rem, 4.2vw, 3.3rem); font-stretch: 87.5%; line-height: 1.08; margin: 0; max-width: 18ch; border-left: 8px solid var(--signal); padding-left: 28px; }
.why-body p { font-size: 1.1rem; color: var(--muted); }
.why-body p:last-child { color: var(--ink); font-weight: 600; margin-bottom: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-block; font: 600 1rem var(--body); padding: 13px 22px; border-radius: 8px; border: 0; cursor: pointer; text-decoration: none; text-align: center; }
.btn-signal { background: var(--signal); color: var(--navy-deep); }
.btn-signal:hover { background: #ffd24a; color: var(--navy-deep); }
.btn-light { background: var(--white); color: var(--navy-deep); }
.btn-light:hover { background: var(--signal); color: var(--navy-deep); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }

/* ---------- sections ---------- */
.band { padding: 80px 0; }
.band-mist { background: var(--mist); }
.band-navy { background: var(--navy); color: #dfe6f1; }
.band-navy h2 { color: var(--white); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.serve-list { list-style: none; padding: 0; margin: 0 0 1em; }
.serve-list li { padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); position: relative; }
.serve-list li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 10px; height: 10px; background: var(--signal); transform: rotate(45deg); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin-top: 12px; }
.work-item { border-top: 2px solid var(--navy); padding: 22px 0 18px; }
.work-item p { color: var(--muted); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 12px 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--white); font: 600 1.25rem/42px var(--display); text-align: center; }
.steps p { color: var(--muted); }
.note { font-size: .92rem; color: var(--muted); border-left: 4px solid var(--signal); padding-left: 14px; }

.join-steps { padding-left: 1.3em; margin: 0 0 1.4em; }
.join-steps li { margin-bottom: 8px; }

.contact-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; padding: 24px 28px; }
.contact-card p { margin: 0 0 4px; }
.contact-card .contact-label { font-size: .85rem; color: #aebbd0; margin-top: 12px; }
.contact-card .contact-label:first-child { margin-top: 0; }
.contact-card a { color: var(--white); font-weight: 600; font-size: 1.1rem; }
.contact-card a:hover { color: var(--signal); }

.site-foot { background: var(--navy-deep); color: #aebbd0; font-size: .9rem; padding: 28px 0; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-row p { margin: 0; }
.site-foot a { color: #dfe6f1; margin-left: 18px; }
.site-foot a:first-child { margin-left: 0; }

/* simple content pages (privacy, 404) */
.page { padding: 64px 0 80px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .two-col, .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-verify { margin-top: 12px; text-align: center; border-bottom: 0; }
  .head-row { position: relative; }
  .brand-long { display: none; }
  .work-grid, .steps { grid-template-columns: 1fr; }
  .why-statement { padding-left: 18px; border-left-width: 6px; }
  .band { padding: 56px 0; }
  .hero-grid { padding-top: 48px; padding-bottom: 56px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
}
