/* ==========================================================================
   Aviation Connection — Design System
   Colors and fonts per official brand doc (Fonts - Colours.docx)
   ========================================================================== */

:root {
  --cyan: #20bfdb;
  --navy: #252d3f;
  --white: #ffffff;
  --blue-canada: #2a8dea;
  --blue-usa: #263264;
  --red-usa: #bc2024;

  --cyan-light: #eaf9fb;
  --gray-bg: #f5f7fa;
  --text-dark: #1b2130;
  --text-muted: #5a6272;

  --font-head: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Roboto', 'Helvetica Neue', Arial, sans-serif;

  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.15;
}
p { margin: 0 0 16px; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.btn {
  display: inline-block;
  background: var(--cyan);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: #1aa8c2; transform: translateY(-1px); }
.btn--white {
  background: var(--white);
  color: var(--navy);
}
.btn--white:hover { background: var(--cyan-light); }

.eyebrow-cyan {
  color: var(--cyan);
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy);
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}
.topbar a {
  color: var(--white);
  font-size: 13px;
  font-family: var(--font-head);
  font-weight: 600;
}
.topbar .btn {
  padding: 6px 18px;
  font-size: 12px;
}
.topbar .socials { display: flex; gap: 10px; }
.topbar .socials a {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
}
.topbar .socials svg { width: 13px; height: 13px; fill: var(--white); }

/* ---------- Main nav ---------- */
.nav {
  background: var(--white);
  padding: 18px 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 500;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand img { height: 84px; width: auto; }
.nav__links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.nav__links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  text-transform: none;
}
.nav__links a:hover { color: var(--cyan); }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--navy);
}

/* ---------- Diagonal divider ---------- */
.diagonal {
  position: relative;
  height: 70px;
  margin-top: -1px;
  background: var(--cyan);
  clip-path: polygon(0 30%, 100% 0%, 100% 100%, 0% 100%);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(37,45,63,0.15) 0%, rgba(37,45,63,0.65) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 90px;
  width: 100%;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  margin-bottom: 8px;
}
.hero .subhead {
  font-family: var(--font-body);
  font-size: clamp(18px, 2.4vw, 24px);
  text-transform: none;
  font-weight: 400;
  max-width: 560px;
}

/* ---------- Intro (photo + text) ---------- */
.intro {
  padding: 70px 0;
  background: var(--white);
}
.intro .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.intro__img img {
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center top;
}
.intro__text p { color: var(--text-muted); font-size: 17px; line-height: 1.75; }

/* Reusable: big centered heading intro used mid-page */
.section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-title h2 {
  color: var(--cyan);
  font-size: clamp(24px, 3.5vw, 34px);
}
.section-title--dark h2 { color: var(--white); }
.section-title p {
  font-family: var(--font-body);
  text-transform: none;
  color: var(--text-muted);
  font-size: 16px;
  margin-top: 14px;
}

/* ---------- Volets / feature rows ---------- */
.volets { padding: 70px 0 90px; }
.volet-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.volet-row:last-child { margin-bottom: 0; }
.volet-row__img img {
  border-radius: 16px;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.volet-row__card {
  background: var(--cyan);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--white);
}
.volet-row__card .icon { width: 56px; flex-shrink: 0; }
.volet-row__card .icon svg { width: 100%; height: auto; stroke: var(--white); fill: none; }
.volet-row__card h3 {
  font-size: 19px;
  line-height: 1.3;
}
.volet-row__card .arrow {
  margin-left: auto;
  font-size: 22px;
  flex-shrink: 0;
}

/* ---------- Dark STIM band ---------- */
.stim-band {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0;
  overflow: hidden;
}
.stim-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.stim-band__media { position: relative; }
.stim-band__media img { border-radius: 16px; width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.stim-band__media .stack-text {
  position: absolute;
  top: 0; right: -18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.18);
  writing-mode: vertical-rl;
  line-height: 1.6;
}
.stim-band h2 { font-size: clamp(26px, 3.5vw, 38px); margin-bottom: 20px; }
.stim-band p { color: rgba(255,255,255,0.75); font-size: 15px; }
.stim-band__box {
  background: var(--cyan);
  border-radius: 16px;
  padding: 26px 30px;
  margin: 28px 0;
}
.stim-band__box strong { display: block; font-family: var(--font-head); margin-bottom: 8px; font-size: 15px; }
.stim-band__box ul { font-size: 14px; }
.stim-band__box li { margin-top: 4px; }
.stim-band__cta { text-align: center; margin-top: 10px; }
.stim-band__cta p { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 18px; margin-bottom: 18px; }
.stim-band__photo { grid-column: 1 / -1; margin-top: 40px; }
.stim-band__photo img { border-radius: 16px; width: 100%; max-height: 420px; object-fit: cover; }

/* ---------- Dark volets band (Le Programme page) ---------- */
.volets-dark {
  background: var(--navy);
  padding: 70px 0 90px;
}
.volets-dark .section-title { margin-bottom: 44px; }

/* ---------- Detail intro (centered heading + 3 paragraphs) ---------- */
.detail-intro { padding: 70px 0 20px; }
.detail-intro .section-title { margin-bottom: 32px; }
.detail-intro__body {
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Info card + media (side by side) ---------- */
.info-media {
  padding: 30px 0 70px;
}
.info-media .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}
.info-media__box {
  background: var(--cyan);
  color: var(--white);
  border-radius: 16px;
  padding: 32px 36px;
}
.info-media__box p:first-child {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 17px;
  margin-bottom: 20px;
}
.info-media__box ul { font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.info-media__box .sub { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 13px; margin-top: 18px; margin-bottom: 4px; }
.info-media__img img { border-radius: 16px; width: 100%; height: 100%; object-fit: cover; min-height: 260px; }

/* ---------- Detail dark band (photo + heading + text) ---------- */
.detail-dark {
  background: var(--navy);
  color: var(--white);
  padding: 70px 0;
}
.detail-dark .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.detail-dark__img img { border-radius: 16px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.detail-dark h2 { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 20px; }
.detail-dark p { color: rgba(255,255,255,0.75); font-size: 15px; }

@media (max-width: 900px) {
  .info-media .container,
  .detail-dark .container { grid-template-columns: 1fr; }
}

/* ---------- Bio cards (board / ambassadors) ---------- */
.bios { padding: 20px 0 80px; }
.bio-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  margin-bottom: 56px;
  align-items: start;
}
.bio-card__photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 16px;
}
.bio-card__photo--placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 16px;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 32px;
}
.bio-card__name { font-size: 20px; margin-bottom: 4px; }
.bio-card__title {
  font-family: var(--font-body);
  text-transform: none;
  font-weight: 600;
  color: var(--cyan);
  font-size: 14px;
  margin-bottom: 14px;
}
.bio-card__body p { color: var(--text-muted); font-size: 14.5px; }
@media (max-width: 700px) {
  .bio-card { grid-template-columns: 1fr; }
  .bio-card__photo, .bio-card__photo--placeholder { max-width: 220px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- School logos grid ---------- */
.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  align-items: center;
  margin: 40px 0;
}
.schools-grid img { max-height: 70px; width: auto; margin: 0 auto; }

/* ---------- Events ---------- */
.events-list { display: flex; flex-direction: column; gap: 28px; margin: 40px 0; }
.event-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  border: 1px solid #e6e9ee;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
}
.event-card__img { position: relative; }
.event-card__img img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.event-card__date {
  position: absolute; top: 16px; left: 16px;
  background: var(--cyan);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  border-radius: 10px;
  padding: 8px 14px;
  text-align: center;
  line-height: 1.1;
}
.event-card__date .day { display: block; font-size: 22px; }
.event-card__date .month { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.event-card__body { padding: 28px 32px; display: flex; flex-direction: column; gap: 10px; }
.event-card__name { font-size: 22px; margin: 0; }
.event-card__meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-muted); font-size: 14px; }
.event-card__meta span { display: flex; align-items: center; gap: 6px; }
.event-card__desc { color: var(--text-muted); font-size: 14.5px; margin: 0; }
.event-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; flex-wrap: wrap; gap: 12px; }
.event-card__price { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 15px; }
.event-card__price--free { color: var(--cyan); }

.events-empty {
  text-align: center;
  padding: 60px 32px;
  border: 1px dashed #d7dce3;
  border-radius: 16px;
  background: var(--gray-bg);
  color: var(--text-muted);
  margin: 40px 0;
}
.events-empty h3 { color: var(--text-dark); margin-bottom: 8px; }

@media (max-width: 700px) {
  .event-card { grid-template-columns: 1fr; }
  .event-card__img img { min-height: 180px; }
}

/* ---------- Partners ---------- */
.partners { padding: 70px 0; text-align: center; }
.partners h2 { color: var(--cyan); font-size: 24px; margin-bottom: 40px; }
.partners__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
  margin-bottom: 40px;
}
.partners__logos img { max-height: 46px; width: auto; filter: grayscale(0); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--cyan);
  color: var(--white);
  padding: 32px 0;
}
.cta-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.cta-banner p {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(16px, 2vw, 20px);
  margin: 0;
  max-width: 640px;
}

/* ---------- Footer ---------- */
.footer { background: var(--cyan-light); padding-top: 60px; }
.footer__top .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__brand img { height: 40px; margin-bottom: 16px; }
.footer h4 {
  font-size: 13px;
  margin-bottom: 16px;
  color: var(--navy);
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 14px; color: var(--text-muted); }
.footer__col a:hover { color: var(--cyan); }
.footer__contact {
  border-top: 1px solid rgba(37,45,63,0.12);
  padding: 20px 0;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}
.footer__bottom {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  padding: 16px 0;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__bottom .socials { display: flex; gap: 10px; }
.footer__bottom .socials a {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
}
.footer__bottom .socials svg { width: 13px; height: 13px; fill: var(--white); }

/* ---------- Generic form ---------- */
.form-section { padding: 20px 0 90px; }
.form-wrap { max-width: 760px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-family: var(--font-body); font-weight: 600; font-size: 13.5px; color: var(--text-dark); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid #d7dce3;
  border-radius: 8px;
  background: var(--white);
  color: var(--text-dark);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.form-radio-group { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.form-radio-group label { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 14.5px; color: var(--text-dark); font-weight: 400; }
.form-wrap .btn { border: none; cursor: pointer; margin-top: 8px; }
.form-note { font-size: 13.5px; color: var(--text-muted); margin-top: -8px; margin-bottom: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .intro .container,
  .stim-band .container { grid-template-columns: 1fr; }
  .volet-row { grid-template-columns: 1fr; }
  .footer__top .container { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 32px 24px;
    gap: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  }
  .nav__links--open { display: flex; }
  .nav { position: relative; }
  .nav__toggle { display: block; }
}
@media (max-width: 560px) {
  .footer__top .container { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; }
}
