/* SkyOps — CAE.com homepage clone */
:root {
  --cae-blue: #2969F2;
  --cae-blue-hover: #1d5ad9;
  --cae-navy: #0B1628;
  --cae-navy-bar: #101C2E;
  --cae-white: #FFFFFF;
  --cae-text: #1A1A1A;
  --cae-muted: #6B7280;
  --cae-border: #E5E7EB;
  --cae-bg: #F9FAFB;
  --cae-font: 'Montserrat', 'Inter', system-ui, sans-serif;
  --topbar-h: 44px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.landing-body {
  margin: 0;
  font-family: var(--cae-font);
  font-size: 16px;
  color: var(--cae-text);
  background: var(--cae-white);
  -webkit-font-smoothing: antialiased;
}

/* ═══ TOP UTILITY BAR (dark — like CAE) ═══ */
.cae-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  background: var(--cae-navy-bar);
  z-index: 300;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cae-topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cae-topbar-left,
.cae-topbar-right {
  display: flex;
  align-items: center;
  gap: 0;
}
.cae-topbar a,
.cae-topbar button {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  padding: 0 16px;
  height: var(--topbar-h);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .2s;
  white-space: nowrap;
}
.cae-topbar a:hover,
.cae-topbar button:hover { color: var(--cae-white); }
.cae-topbar-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,.15);
  margin: 0 4px;
}
.cae-topbar-right a svg,
.cae-topbar-right button svg { width: 14px; height: 14px; opacity: .85; }

@media (max-width: 900px) {
  .cae-topbar-left a:not(:first-child) { display: none; }
}

/* Mobile menu drawer */
.cae-drawer {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  visibility: hidden;
}
.cae-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}
.cae-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity .3s;
}
.cae-drawer.is-open .cae-drawer-backdrop { opacity: 1; }
.cae-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 90vw);
  height: 100%;
  background: var(--cae-navy);
  padding: 24px;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  overflow-y: auto;
}
.cae-drawer.is-open .cae-drawer-panel { transform: translateX(0); }
.cae-drawer-panel a {
  display: block;
  color: var(--cae-white);
  text-decoration: none;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* ═══ HERO (full viewport — CAE exact layout) ═══ */
.cae-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin-top: var(--topbar-h);
  overflow: hidden;
}
.cae-hero-bg {
  position: absolute;
  inset: 0;
  background-color: #1a2838;
  background-size: cover;
  background-position: center 40%;
  will-change: transform;
}
.cae-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(11,22,40,.88) 0%, rgba(11,22,40,.55) 45%, rgba(11,22,40,.25) 100%),
    linear-gradient(to top, rgba(11,22,40,.6) 0%, transparent 50%);
}
.cae-hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}

/* Logo + search row ON the hero image */
.cae-hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 0;
}
.cae-wordmark {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--cae-white);
  text-decoration: none;
  line-height: 1;
}
.cae-hero-utils {
  display: flex;
  align-items: center;
  gap: 28px;
}
.cae-hero-utils a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--cae-white);
  text-decoration: none;
  transition: opacity .2s;
}
.cae-hero-utils a:hover { opacity: .8; }
.cae-hero-utils svg { width: 18px; height: 18px; }

@media (max-width: 640px) {
  .cae-hero-utils a span { display: none; }
  .cae-hero-utils { gap: 16px; }
}

/* Hero headline — "One CAE." blue + "Infinite Possibilities." white */
.cae-hero-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 80px;
  max-width: 720px;
}
.cae-hero-line-blue {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--cae-blue);
  letter-spacing: -.02em;
  margin-bottom: 4px;
  line-height: 1.2;
}
.cae-hero-line-white {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--cae-white);
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.cae-hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 400;
  color: rgba(255,255,255,.88);
  line-height: 1.6;
  margin: 0 0 36px;
  max-width: 520px;
}
.cae-btn-video {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cae-blue);
  color: var(--cae-white);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
  width: fit-content;
}
.cae-btn-video:hover {
  background: var(--cae-blue-hover);
  transform: translateY(-1px);
}
.cae-btn-video svg { width: 14px; height: 14px; fill: currentColor; }

/* ═══ DUO TILES (Civil Aviation / Defense) ═══ */
.cae-duo {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .cae-duo { grid-template-columns: 1fr 1fr; }
}
.cae-duo-tile {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  overflow: hidden;
}
@media (min-width: 768px) { .cae-duo-tile { min-height: 360px; } }
.cae-duo-tile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .7s var(--ease);
}
.cae-duo-tile:hover .cae-duo-tile-bg { transform: scale(1.06); }
.cae-duo-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
  transition: background .4s;
}
.cae-duo-tile:hover::after {
  background: linear-gradient(to top, rgba(41,105,242,.75) 0%, rgba(0,0,0,.35) 100%);
}
.cae-duo-tile-body {
  position: relative;
  z-index: 2;
  padding: 36px 40px;
  width: 100%;
}
.cae-duo-tile-body h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--cae-white);
  margin: 0 0 16px;
  letter-spacing: -.02em;
}
.cae-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--cae-white);
  text-decoration: none;
}
.cae-link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.cae-duo-tile:hover .cae-link-arrow svg { transform: translateX(4px); }

/* ═══ SECTION: Press releases style ═══ */
.cae-section {
  padding: 64px 32px;
  max-width: 1440px;
  margin: 0 auto;
}
.cae-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}
.cae-section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--cae-text);
  margin: 0;
  letter-spacing: -.025em;
}
.cae-see-all {
  font-size: 15px;
  font-weight: 600;
  color: var(--cae-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cae-see-all:hover { text-decoration: underline; }

.cae-press-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .cae-press-grid { grid-template-columns: repeat(3, 1fr); }
}
.cae-press-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .25s;
}
.cae-press-card:hover { transform: translateY(-4px); }
.cae-press-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--cae-text);
  line-height: 1.45;
  margin: 0 0 12px;
  transition: color .2s;
}
.cae-press-card:hover h3 { color: var(--cae-blue); }
.cae-press-meta {
  font-size: 13px;
  color: var(--cae-muted);
  line-height: 1.4;
}
.cae-press-meta strong {
  display: block;
  font-weight: 600;
  color: var(--cae-blue);
  margin-bottom: 2px;
}

/* ═══ PROMO BANNERS (Investors / Careers) ═══ */
.cae-promos {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .cae-promos { grid-template-columns: 1fr 1fr; }
}
.cae-promo {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  padding: 48px 40px;
  text-decoration: none;
  overflow: hidden;
}
.cae-promo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.cae-promo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11,22,40,.72);
}
.cae-promo-body {
  position: relative;
  z-index: 2;
}
.cae-promo-body h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--cae-white);
  margin: 0 0 20px;
  letter-spacing: -.02em;
}

/* ═══ Modules grid (clean white section) ═══ */
.cae-section.gray { background: var(--cae-bg); max-width: none; }
.cae-section.gray .cae-section-inner { max-width: 1440px; margin: 0 auto; }
.cae-module-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cae-module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cae-module-grid { grid-template-columns: repeat(4, 1fr); } }
.cae-module-card {
  background: var(--cae-white);
  border: 1px solid var(--cae-border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .3s, border-color .3s;
}
.cae-module-card:hover {
  box-shadow: 0 12px 40px rgba(41,105,242,.12);
  border-color: var(--cae-blue);
}
.cae-module-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.cae-module-card-body { padding: 20px; }
.cae-module-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--cae-text);
}
.cae-module-card-body p {
  font-size: 13px;
  color: var(--cae-muted);
  margin: 0;
  line-height: 1.5;
}

/* Desks horizontal */
.cae-desks-wrap {
  overflow-x: auto;
  margin: 0 -32px;
  padding: 0 32px 8px;
  scrollbar-width: none;
  display: flex;
  gap: 20px;
  scroll-snap-type: x mandatory;
}
.cae-desks-wrap::-webkit-scrollbar { display: none; }
.cae-desk-card {
  flex: 0 0 min(300px, 85vw);
  scroll-snap-align: start;
  background: var(--cae-white);
  border: 1px solid var(--cae-border);
  overflow: hidden;
}
.cae-desk-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.cae-desk-card-body { padding: 20px; }
.cae-desk-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cae-blue);
  margin-bottom: 8px;
}
.cae-desk-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.cae-desk-card p { font-size: 14px; color: var(--cae-muted); margin: 0 0 12px; line-height: 1.5; }

/* Stats row */
.cae-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--cae-border);
  border-bottom: 1px solid var(--cae-border);
  background: var(--cae-white);
}
@media (min-width: 768px) { .cae-stats { grid-template-columns: repeat(4, 1fr); } }
.cae-stat {
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid var(--cae-border);
  border-bottom: 1px solid var(--cae-border);
}
@media (min-width: 768px) { .cae-stat { border-bottom: none; } }
.cae-stat:last-child { border-right: none; }
.cae-stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cae-blue);
  letter-spacing: -.03em;
}
.cae-stat-label { font-size: 14px; color: var(--cae-muted); margin-top: 6px; }

/* FAQ */
.cae-faq { max-width: 800px; margin: 0 auto; }
.cae-faq-item { border-bottom: 1px solid var(--cae-border); }
.cae-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--cae-text);
  text-align: left;
}
.cae-faq-q svg { color: var(--cae-blue); transition: transform .3s; flex-shrink: 0; }
.cae-faq-item.is-open .cae-faq-q svg { transform: rotate(45deg); }
.cae-faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.cae-faq-a p { padding: 0 0 20px; margin: 0; font-size: 15px; color: var(--cae-muted); line-height: 1.65; }

/* CTA blue band */
.cae-cta {
  background: var(--cae-blue);
  padding: 72px 32px;
  text-align: center;
}
.cae-cta h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--cae-white);
  margin: 0 0 16px;
  letter-spacing: -.025em;
}
.cae-cta p {
  font-size: 17px;
  color: rgba(255,255,255,.9);
  margin: 0 0 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cae-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cae-btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cae-white);
  color: var(--cae-blue);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 50px;
  transition: transform .2s, box-shadow .2s;
}
.cae-btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.cae-btn-ghost-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--cae-white);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,.6);
  transition: background .2s, border-color .2s;
}
.cae-btn-ghost-white:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--cae-white);
}

/* Footer — CAE dark */
.cae-footer {
  background: var(--cae-navy);
  color: rgba(255,255,255,.55);
  padding: 56px 32px 32px;
}
.cae-footer-inner { max-width: 1440px; margin: 0 auto; }
.cae-footer-grid {
  display: grid;
  gap: 40px;
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  .cae-footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); }
}
.cae-footer-logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--cae-white);
  margin-bottom: 12px;
}
.cae-footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--cae-white);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cae-footer-col a,
.cae-footer-col span {
  display: block;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: 14px;
  padding: 5px 0;
  transition: color .2s;
}
.cae-footer-col a:hover { color: var(--cae-white); }
.cae-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .cae-hero-bg { transform: none !important; }
}
