/* =========================================================
   UNITAS FLYING ACADEMY — HOMEPAGE STYLES
   Design system: Master AI Design & Development System v2.0
   ========================================================= */

:root{
  --primary: #0057B8;
  --secondary: #1E88E5;
  --navy: #0B1F3A;
  --sky: #EAF5FF;
  --white: #FFFFFF;
  --surface: #F8FAFC;
  --border: #DCE7F5;
  --ink: #111827;
  --muted: #6B7280;

  --radius-btn: 14px;
  --radius-card: 20px;

  --content-w: 1200px;
  --page-w: 1440px;

  --space-section: 120px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:'Manrope','Inter',sans-serif;
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}
img,video{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

.wrap{
  max-width:var(--page-w);
  margin:0 auto;
  padding:0 24px;
}

/* Skip link */
.skip-link{
  position:absolute; left:-9999px; top:0;
  background:var(--primary); color:#fff;
  padding:12px 20px; z-index:200;
  border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; }

a:focus-visible, button:focus-visible{
  outline:2px solid var(--primary);
  outline-offset:3px;
  border-radius:4px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:16px 32px;
  border-radius:var(--radius-btn);
  font-size:16px;
  font-weight:600;
  min-height:44px;
  transition: transform 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
  cursor:pointer;
  border:none;
}
.btn-primary{
  background:var(--primary);
  color:#fff;
  box-shadow:0 8px 24px -8px rgba(0,87,184,0.45);
}
.btn-primary:hover{ background:#00499c; transform:translateY(-2px); }

.btn-secondary{
  background:#fff;
  color:var(--primary);
  border:1.5px solid var(--primary);
}
.btn-secondary:hover{ background:var(--sky); transform:translateY(-2px); }

/* =========================================================
   EYEBROW (spaced label with thin rule) — reusable
   ========================================================= */
.eyebrow-line{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 18px;
}
.eyebrow-line .rule{
  display:inline-block;
  width:32px;
  height:2px;
  background:var(--primary);
  flex-shrink:0;
}
.eyebrow{
  font-size:12px;
  font-weight:700;
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:var(--primary);
  margin:0;
}

/* Header/nav styling now lives in assets/css/header.css (shared across all pages) */

/* =========================================================
   HERO — VIDEO ONLY
   ========================================================= */
.hero{
  position:relative;
  width:100%;
  height:56.25vw;      /* maintain 16:9 based on viewport width */
  max-height:92vh;
  min-height:320px;
  background:var(--navy);
  overflow:hidden;
}
.hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* =========================================================
   ABOUT / WELCOME SECTION — centered, full-width text
   ========================================================= */
.about{
  padding:64px 0;
  background:var(--white);
  text-align:center;
}
.about .wrap{
  max-width:100%;
  padding:0 24px;
}
.about-inner{
  max-width:100%;
  margin:0 auto;
}
.about .eyebrow-line{
  justify-content:center;
}
.about-heading{
  font-size:32px;
  font-weight:800;
  line-height:1.2;
  letter-spacing:-0.01em;
  color:var(--navy);
  margin:0 auto 24px;
  max-width:100%;
}
.about-body{
  font-size:18px;
  line-height:1.75;
  color:var(--muted);
  max-width:100%;
  margin:0 auto 20px;
}

@media (min-width:640px){
  .about .wrap{ padding:0 48px; }
}

@media (min-width:768px){
  .about{ padding:96px 0; }
  .about-heading{ font-size:40px; }
}

/* =========================================================
   TEASER CARD — reusable image + overlapping card pattern
   Used by: Training Facilities, Campus, Programs, Courses,
   for one consistent visual language.
   ========================================================= */
.teaser{
  padding:64px 0;
  background:var(--white);
}
.teaser-block{
  position:relative;
}
.teaser-media{
  border-radius:var(--radius-card);
  overflow:hidden;
  box-shadow:0 20px 45px -20px rgba(11,31,58,0.22);
}
.teaser-media img,
.teaser-media video{
  width:100%;
  display:block;
  object-fit:cover;
  aspect-ratio:4/3;
}
.teaser-media.video-container {
  position: relative;
  cursor: pointer;
}
.video-center-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(11, 31, 58, 0.85);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.95;
}
.video-center-play-btn:hover {
  background: #0057B8;
  border-color: #ffffff;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 32px rgba(0, 87, 184, 0.5);
  opacity: 1;
}
.video-center-play-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}
.video-center-play-btn.playing {
  opacity: 0;
  pointer-events: none;
}
.teaser-media.video-container:hover .video-center-play-btn.playing {
  opacity: 0.85;
  pointer-events: auto;
}
.video-sound-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #0057B8;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 250ms ease;
  pointer-events: auto;
}
.video-sound-btn:hover {
  background: #004596;
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(0, 87, 184, 0.6);
}
.video-sound-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.teaser-card{
  position:relative;
  z-index:2;
  margin:-40px 20px 0;
  background:var(--surface);
  border-radius:var(--radius-card);
  padding:36px 28px;
  box-shadow:0 24px 50px -24px rgba(11,31,58,0.28);
}
.teaser-card .eyebrow-line{ justify-content:flex-start; }
.teaser-heading{
  font-size:24px;
  font-weight:800;
  line-height:1.2;
  letter-spacing:-0.01em;
  color:var(--navy);
  margin:0 0 16px;
}
.teaser-body{
  font-size:17px;
  line-height:1.7;
  color:var(--muted);
  margin:0 0 22px;
}
.teaser-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:16px;
  font-weight:700;
  color:var(--primary);
  transition:gap 250ms ease;
}
.teaser-link svg{ transition:transform 250ms ease; }
.teaser-link:hover{ gap:14px; }
.teaser-link:hover svg{ transform:translateX(2px); }

@media (min-width:768px){
  .teaser{ padding:96px 0; }
  .teaser-heading{ font-size:28px; }
}

@media (min-width:1024px){
  .teaser{ padding:var(--space-section) 0; }
  .teaser-block{
    display:flex;
    align-items:flex-end;
  }
  .teaser-media{
    width:62%;
    flex-shrink:0;
  }
  .teaser-card{
    width:46%;
    margin:0 0 -56px -8%;
    padding:48px 44px;
  }
  .teaser-heading{ font-size:32px; }
  .teaser-body{ font-size:18px; }

  /* Reversed variant: media on the right, card overlaps to the left */
  .teaser-reverse .teaser-block{
    flex-direction:row-reverse;
  }
  .teaser-reverse .teaser-card{
    margin:0 -8% -56px 0;
  }
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery{
  padding:64px 0;
  background:var(--surface);
}
.gallery-intro{
  text-align:center;
  margin-bottom:36px;
}
.gallery-intro .eyebrow-line{ margin-bottom:14px; }
.gallery-heading{
  font-size:30px;
  font-weight:800;
  letter-spacing:-0.01em;
  color:var(--navy);
  margin:0;
}
.gallery-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}
.gallery-item{
  border-radius:var(--radius-card);
  overflow:hidden;
  box-shadow:0 14px 32px -18px rgba(11,31,58,0.28);
  cursor:pointer;
  position:relative;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 87, 184, 0.35) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/><line x1="11" y1="8" x2="11" y2="14"/><line x1="8" y1="11" x2="14" y2="11"/></svg>') center no-repeat;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.gallery-item:hover::after {
  opacity: 1;
}
.gallery-item img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  aspect-ratio:4/3;
  transition:transform 400ms ease;
}
.gallery-item:hover img{ transform:scale(1.06); }

@media (min-width:640px){
  .gallery-grid{ grid-template-columns:1fr 1fr; }
}

@media (min-width:768px){
  .gallery{ padding:96px 0; }
  .gallery-heading{ font-size:36px; }
}

@media (min-width:1024px){
  .gallery-grid{ grid-template-columns:1fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce){
  .gallery-item:hover img{ transform:none; }
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 31, 58, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
  padding: 24px;
}
.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-container {
  position: relative;
  max-width: 1100px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  transform: scale(0.94);
  transition: transform 300ms ease;
}
.lightbox-modal.active .lightbox-img {
  transform: scale(1);
}
.lightbox-meta {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  color: #ffffff;
}
.lightbox-counter {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: #0057b8;
  padding: 4px 14px;
  border-radius: 20px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 200ms ease;
  z-index: 100000;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: #0057b8;
  border-color: #0057b8;
  transform: scale(1.1);
}
.lightbox-close {
  top: 24px;
  right: 24px;
}
.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.1);
}
.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}
@media (max-width: 640px) {
  .lightbox-prev { left: 12px; width: 40px; height: 40px; font-size: 18px; }
  .lightbox-next { right: 12px; width: 40px; height: 40px; font-size: 18px; }
  .lightbox-close { top: 16px; right: 16px; width: 40px; height: 40px; font-size: 20px; }
}

/* =========================================================
   FINAL CTA BAND
   ========================================================= */
.cta-band{
  padding:72px 0;
  background:var(--navy);
  text-align:center;
}
.cta-heading{
  font-size:28px;
  font-weight:800;
  color:#fff;
  margin:0 0 14px;
  letter-spacing:-0.01em;
}
.cta-body{
  font-size:17px;
  color:rgba(255,255,255,0.75);
  max-width:520px;
  margin:0 auto 32px;
  line-height:1.6;
}
.btn-cta{
  background:var(--primary);
  color:#fff;
  box-shadow:0 10px 30px -10px rgba(0,87,184,0.6);
}
.btn-cta:hover{ background:#1E88E5; transform:translateY(-2px); }

@media (min-width:768px){
  .cta-band{ padding:96px 0; }
  .cta-heading{ font-size:36px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background:#fff;
  border-top:1px solid var(--border);
  padding:64px 0 32px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:40px;
  padding-bottom:40px;
}
.footer-brand .logo{ margin-bottom:14px; }
.footer-logo-text{
  font-weight:800;
  font-size:16px;
  color:var(--navy);
}
.footer-motto{
  font-size:14px;
  color:var(--muted);
  letter-spacing:0.06em;
  margin:0;
}
.footer-col-heading{
  font-size:13px;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--navy);
  margin:0 0 16px;
}
.footer-col{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.footer-col a{
  font-size:15px;
  color:var(--muted);
  transition:color 200ms ease;
}
.footer-col a:hover{ color:var(--primary); }
.footer-address{
  font-size:15px;
  line-height:1.7;
  color:var(--muted);
  margin:0;
}
.footer-bottom{
  border-top:1px solid var(--border);
  padding-top:24px;
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:13px;
  color:var(--muted);
}

@media (min-width:640px){
  .footer-grid{ grid-template-columns:1.2fr 1fr 1fr 1fr; }
  .footer-bottom{
    flex-direction:row;
    justify-content:space-between;
  }
}

/* =========================================================
   MOTION PREFERENCES
   ========================================================= */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .btn:hover{ transform:none; }
}