/* PAVE — Empowering Lives
   Modern CSS3 design system */

:root {
  --brand-900: #002b3a;
  --brand-700: #0055a2;
  --brand-500: #0a6fc7;
  --brand-300: #44fbfe;
  --brand-050: #eaf3fb;

  --accent-600: #c62828;
  --accent-500: #e53935;
  --accent-100: #fdeaea;

  --ink-900: #14202b;
  --ink-700: #3a4652;
  --ink-500: #5f6d7a;
  --line: #dde5ed;
  --surface: #ffffff;
  --surface-alt: #f5f8fc;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(0, 43, 58, .06), 0 2px 8px rgba(0, 43, 58, .05);
  --shadow: 0 12px 32px rgba(0, 43, 58, .12);

  --step-0: clamp(1rem, .96rem + .2vw, 1.075rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(1.95rem, 1.6rem + 1.8vw, 3rem);
  --step-4: clamp(2.4rem, 1.8rem + 3vw, 4.1rem);

  --wrap: 1160px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 82px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink-700);
  background: var(--surface);
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--ink-900);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--brand-700);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

a:hover { color: var(--accent-600); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  translate: -50% 0;
  z-index: 200;
  padding: .7rem 1.2rem;
  background: var(--brand-900);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: top .2s ease;
}

.skip-link:focus { top: 0; color: #fff; }

.wrap {
  width: min(100% - (2 * var(--gutter)), var(--wrap));
  margin-inline: auto;
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--surface-alt); }
.section--brand { background: var(--brand-900); color: #cfe1ea; }
.section--brand h2,
.section--brand h3 { color: #fff; }

.section__head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: .9rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-500);
}

.section--brand .eyebrow { color: var(--brand-300); }

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-500);
}

.section--brand .lead { color: #b6d2e0; }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--brand-700);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--accent { --btn-bg: var(--accent-600); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .55);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--brand-700);
  border-color: var(--brand-700);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 1.8rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-700);
  border-bottom: 3px solid var(--brand-900);
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: .35rem 0;
}

.brand img {
  width: auto;
  height: 54px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: relative;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 4px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-4px) rotate(-45deg); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: .55rem .85rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: .88rem;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

.site-nav a:hover { background: rgba(255, 255, 255, .12); color: var(--brand-300); }

.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.site-nav .nav-cta a {
  margin-left: .5rem;
  background: var(--accent-600);
  color: #fff;
  padding-inline: 1.2rem;
}

.site-nav .nav-cta a:hover { background: var(--accent-500); color: #fff; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: var(--brand-900);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 120% at 15% 15%, rgba(0, 43, 58, .72), rgba(0, 43, 58, .92)),
    linear-gradient(120deg, rgba(0, 85, 162, .5), transparent 62%);
}

.hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3.5rem, 9vw, 7rem) 0;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

.hero h1 { color: #fff; }

.hero p { color: #d2e6f2; }

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.hero__pills li {
  padding: .4rem 1rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-size: .88rem;
  font-weight: 600;
  color: #eaf4fb;
}

.hero__card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  backdrop-filter: blur(6px);
}

.hero__card h2 {
  font-size: var(--step-1);
  color: #fff;
}

.stat-list {
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat-list__value {
  display: block;
  font-size: var(--step-2);
  font-weight: 800;
  color: var(--brand-300);
  line-height: 1.1;
}

.stat-list__label {
  font-size: .92rem;
  color: #c2dbe8;
}

/* ---------- Page header (inner pages) ---------- */

.page-header {
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
  color: #d5e8f3;
  padding: clamp(2.6rem, 6vw, 4.5rem) 0;
}

.page-header h1 { color: #fff; margin-bottom: .35rem; }
.page-header p { max-width: 60ch; color: #bcd8e8; }

.breadcrumb {
  display: flex;
  gap: .5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: .85rem;
  color: #a9c8d9;
}

.breadcrumb a { color: #d8ecf7; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }

/* ---------- Cards & grids ---------- */

.grid {
  display: grid;
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--brand-050);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale .4s ease;
}

.card:hover .card__media img { scale: 1.05; }

.card__body {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.4rem 1.5rem 1.6rem;
  flex: 1;
}

.card__body h3 { margin-bottom: .2rem; }

.card__link {
  margin-top: auto;
  padding-top: .8rem;
  font-weight: 700;
  text-decoration: none;
}

.card__link::after { content: " →"; }

.pillar {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.pillar__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--brand-050);
  color: var(--brand-700);
  font-size: 1.3rem;
}

.acronym-band {
  position: relative;
  overflow: hidden;
  color: #cfe1ea;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(10, 111, 199, .55), transparent 60%),
    var(--brand-900);
}

.acronym-band h2,
.acronym-band h3 { color: #fff; }
.acronym-band .eyebrow { color: var(--brand-300); }
.acronym-band .lead { color: rgba(255, 255, 255, .78); }

.acronym {
  display: grid;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.acronym li {
  position: relative;
  padding: 2.4rem 1.5rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.acronym li:hover {
  transform: translateY(-4px);
  border-color: var(--brand-300);
  background: rgba(255, 255, 255, .09);
}

.acronym__letter {
  display: block;
  font-size: clamp(3.2rem, 7vw, 4.6rem);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 2px var(--brand-300);
}

.acronym li:nth-child(even) .acronym__letter { -webkit-text-stroke-color: var(--accent-500); }

.acronym h3 {
  margin: 1.1rem 0 .4rem;
  font-size: var(--step-1);
}

.acronym p {
  margin: 0;
  font-size: .95rem;
  color: rgba(255, 255, 255, .72);
}

.acronym-band__note {
  max-width: 60ch;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  text-align: center;
  font-size: var(--step-1);
  color: rgba(255, 255, 255, .82);
}

.btn-row--center { justify-content: center; }

.btn--light {
  background: #fff;
  color: var(--brand-900);
  border: 1px solid #fff;
}

.btn--light:hover { background: var(--brand-050); }

.split {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.news {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.news time {
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: var(--radius-sm);
  background: var(--brand-050);
  color: var(--brand-700);
  font-weight: 800;
  line-height: 1.1;
  padding: .5rem;
}

.news time span {
  display: block;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
}

.quote {
  margin: 0;
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-500);
  border-radius: var(--radius);
  background: var(--surface);
}

.quote blockquote { margin: 0 0 1rem; font-size: 1.03rem; }

.quote figcaption {
  font-size: .9rem;
  color: var(--ink-500);
}

.quote figcaption b { color: var(--ink-900); display: block; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: .8rem; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq details[open] { box-shadow: var(--shadow-sm); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink-900);
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--brand-500);
  transition: rotate .2s ease;
}

.faq details[open] summary::after { content: "−"; }

.faq details > div { padding: 0 1.4rem 1.3rem; }

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: none;
  box-shadow: var(--shadow-sm);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: scale .35s ease, filter .35s ease;
}

.gallery button:hover img { scale: 1.06; filter: brightness(1.05); }

.lightbox {
  width: min(94vw, 1000px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #04222e;
  color: #fff;
  overflow: hidden;
}

.lightbox::backdrop { background: rgba(0, 20, 28, .84); }

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #04222e;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1rem;
  font-size: .9rem;
}

.lightbox__close {
  border: 1px solid rgba(255, 255, 255, .35);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: .35rem 1rem;
  cursor: pointer;
}

/* ---------- Forms ---------- */

.form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.field { display: grid; gap: .4rem; }

.field label {
  font-weight: 600;
  color: var(--ink-900);
  font-size: .95rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: .8rem 1rem;
  font: inherit;
  color: var(--ink-900);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(10, 111, 199, .18);
}

.field textarea { min-height: 150px; resize: vertical; }

.field small { color: var(--ink-500); }

.field .error {
  color: #b3261e;
  font-size: .85rem;
  min-height: 1.2em;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #b3261e; }

.form__status {
  margin: 0;
  font-weight: 600;
  color: var(--brand-700);
}

.form__status--ok,
.form__status--error {
  padding: .75rem 1rem;
  border-radius: 10px;
}

.form__status--ok {
  background: var(--brand-050);
  color: var(--brand-700);
}

.form__status--error {
  background: var(--accent-100);
  color: var(--accent-600);
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  gap: .15rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-list span {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-500);
}

/* ---------- CTA band ---------- */

.cta-band {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.4rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--brand-900), var(--brand-700));
  color: #fff;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { color: #dfeefa; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--brand-900);
  color: #a9c4d3;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.footer-logo {
  width: auto;
  height: 56px;
  margin-bottom: 1rem;
}

.site-footer h2,
.site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }

.site-footer a { color: #d3e8f4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }

.social {
  display: flex;
  gap: .6rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .2);
}

.social svg { width: 18px; height: 18px; fill: currentColor; }

.colophon {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .88rem;
}

/* ---------- Motion & responsive ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    inset: var(--header-h) 0 auto;
    display: none;
    background: var(--brand-700);
    border-bottom: 3px solid var(--brand-900);
    box-shadow: var(--shadow);
    padding: 1rem var(--gutter) 1.4rem;
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
  }

  .site-nav a { padding: .8rem 1rem; }
  .site-nav .nav-cta a { margin: .5rem 0 0; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}
