:root {
  --blue: #1756c4;
  --blue-dark: #0c2f6e;
  --blue-light: #e9f0fc;
  --red: #c8102e;
  --ink: #16213a;
  --muted: #5a6478;
  --bg: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(12, 47, 110, .12);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--font-body); color: var(--ink); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; color: var(--blue-dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: inherit; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--tint { background: var(--blue-light); }
.section__head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section__head p:last-child { color: var(--muted); }
.center { text-align: center; margin-top: 40px; }

.eyebrow { font: 700 .8rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.eyebrow--light { color: #ffd2d9; }

/* Buttons */
.btn { display: inline-block; padding: 14px 28px; border-radius: 999px; border: 2px solid var(--blue); background: var(--blue); color: #fff; font: 700 .95rem/1 var(--font-head); text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { color: #fff; }
.btn--small { padding: 10px 20px; }
.btn--light { background: #fff; color: var(--blue-dark); border-color: #fff; }
.btn--light:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 2px 16px rgba(12, 47, 110, .1); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); color: var(--blue-dark); font-size: 1rem; }
.brand strong { color: var(--blue); }
.brand--light, .brand--light strong { color: #fff; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font: 600 .95rem var(--font-head); color: var(--ink); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--red); transition: width .25s; }
.nav a:not(.btn):hover::after, .nav a.is-active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--blue-dark); margin: 5px 0; transition: transform .3s, opacity .3s; }

/* Hero */
.hero { padding: 40px 0 70px; background: linear-gradient(180deg, #fff 0%, var(--blue-light) 100%); }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--blue); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__media img { border-radius: 24px; box-shadow: var(--shadow); width: 100%; height: auto; }

/* Stats */
.stats { background: var(--blue-dark); color: #fff; padding: 40px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font: 800 1.9rem/1.2 var(--font-head); }
.stat span { opacity: .75; font-size: .95rem; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { padding-left: 30px; margin-bottom: 10px; position: relative; }
.checks li::before { content: "♥"; position: absolute; left: 0; color: var(--red); }

/* Timeline */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--blue-light); }
.timeline li { position: relative; padding: 0 0 28px 40px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); }
.timeline li:last-child::before { border-color: var(--red); }
.timeline time { font: 700 .95rem var(--font-head); color: var(--red); }
.timeline p { margin: 4px 0 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); transition: transform .25s; }
.card:hover { transform: translateY(-6px); }
.card p { color: var(--muted); margin: 0; }
.card__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.card__icon svg { width: 26px; height: 26px; fill: #fff; }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; background: var(--blue-light); }
.member figcaption { padding: 16px 18px 20px; border-top: 4px solid var(--blue); }
.member strong { display: block; font: 700 1rem/1.3 var(--font-head); color: var(--blue-dark); }
.member span { font-size: .92rem; color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery__item { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--blue-dark); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.gallery__item:hover img { transform: scale(1.06); opacity: .85; }
.gallery__item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; text-align: left; color: #fff; font: 600 .95rem var(--font-head); background: linear-gradient(transparent, rgba(12, 47, 110, .85)); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 20, 48, .92); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; border-radius: 10px; }
.lightbox__close { position: absolute; top: 14px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; }

/* Join */
.join { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: #fff; }
.join h2 { color: #fff; }
.join__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.join p { opacity: .9; }
.form { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: 20px; padding: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font: 600 .9rem var(--font-head); margin-bottom: 16px; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-family: var(--font-body); font-weight: 400; color: var(--ink); background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid #ffd2d9; }
.form .is-invalid { border-color: var(--red); outline: 2px solid var(--red); }
.form__status { margin: 14px 0 0; font-weight: 600; min-height: 1.5em; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }
.social { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); transition: background .2s, transform .2s; }
.social:hover { background: var(--blue-dark); transform: translateY(-2px); }
.social svg { width: 24px; height: 24px; fill: #fff; }
.map iframe { width: 100%; height: 340px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Footer */
.footer { background: var(--ink); color: #c9d1e3; padding: 40px 0; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.footer p { margin: 0; }
.footer__copy { font-size: .85rem; opacity: .6; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .cards, .team, .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; box-shadow: 0 12px 20px rgba(12, 47, 110, .12); max-height: 0; overflow: hidden; transition: max-height .35s; }
  .nav.is-open { max-height: 420px; }
  .nav a { padding: 14px 16px; width: 100%; text-align: center; }
  .nav .btn { width: auto; margin: 8px 0 18px; }
  .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__inner, .split, .join__inner, .contact { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 24px; }
}
@media (max-width: 560px) {
  .cards, .team, .stats__grid, .form__row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery__item--wide { grid-column: auto; }
  .brand span { font-size: .9rem; }
}
