/*  CSS Custom Properties  */
:root {
  /* FSI Brand Colors*/
  --color-navigator-blue: #041C2C;
  --color-skyline-blue: #007398;
  --color-skyline-blue-hover: #3396B8;
  --color-midnight-blue: #101820;
  --color-runway-grey: #97999B;
  --color-runway-grey-light: #ececec;
  --color-white: #ffffff;
  --color-text-dark: #1a1a2e;
  --color-text-muted: #5a5a6e;
  --color-text-light: #f1f1f1;
  --color-border: #e8e6e3;
  
/* Typography */
/* Headings */
  --font-header: 'Navine Condensed', 'proxima-nova', sans-serif;
  
/* all other text */
   --font-body: 'proxima-nova', -apple-system, BlinkMacSystemFont, Arial, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 10rem;
  
  /* Layout */
  --navbar-height: 72px;
  --container-max: 1250px;
  --navbar-max: 1200px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(26, 26, 46, 0.05);
  --shadow-md: 0 4px 12px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 8px 24px rgba(26, 26, 46, 0.12);
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}


/* SAFE GLOBAL RESET */
*, *::before, *::after {
  box-sizing: border-box;
}

/* #flight, to avoid conflict with sky */
#flight {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-background);
  /* setup container layout */
  display: flex;
  flex-direction: column;
}

/* Ensure images and videos inside #flight don't overflow */
#flight img, #flight video {
  max-width: 100%;
  height: auto;
  display: block;
}


/* Typography */
#flight h1, #flight h2, #flight h3, #flight h4, #flight h5, #flight h6 {
  font-family: var(--font-header);

  line-height: 1.2;
  color: var(--color-navigator-blue);
}

#flight h1 { font-size: clamp(2.5rem, 4.5vw, 3.5rem); }
#flight h2 { font-size: clamp(2rem, 4vw, 3rem); }
#flight h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

#flight a {
  color: inherit;
  text-decoration: none;
}

/* flight theme id wrap, to avoid conflict with sky*/
#flight {

/* Layout */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: left;
  justify-content: left;
  text-align: left;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2; /* Sits above the fallback image */
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero__video--loaded {
  opacity: 1;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: #1a1a2e;
}

.hero__fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 46, 0.6);
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  padding-bottom: var(--space-3xl);
}

.hero-title {
    display: flex;
    flex-direction: column;
    color: var(--color-white);
    line-height: 1;
    margin-top: 14rem;
    margin-bottom: 0;
}

/* --- Line 1 (Smaller) --- */
.hero-title .line-1 {
    display: block;
    font-size: clamp(1.8rem, 3vw, 2.5rem); /* Smaller than main title */
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
}

/* --- Line 2 (The Big One) --- */
.hero-title .line-2 {
    display: block;
    font-size: clamp(3.2rem, 6vw, 5.5rem);
    text-transform: uppercase;
}

h2.hero-subtitle {
    font-family: var(--font-body); /* Switches from Navine to Proxima */
    font-size: clamp(1.4rem, 2vw, 1.5rem);
    color: var(--color-white);
    margin-top: var(--space-md);
    max-width: 600px; /* Keeps text from stretching too wide */
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: var(--space-3xl);
}


/*  ========================================
    About Section (Two Column) 
    ======================================== */

.about-defense-section {
  padding: var(--space-4xl) 0;
  background-color: var(--color-midnight-blue);
  background-image: url('assets/images/defense/topobg_defense.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: top;
}

.about-image img {
  width: 100%;
  height: auto;
  box-shadow: var(--shadow-lg);
  margin-top: var(--space-sm);
}

.about-content {
  color: #fff;
}

.about-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  }
  .about-image {
    order: -1;
  }


  .fsi-icon{
    fill:var(--color-navigator-blue);
  }


/* ========================================
   REUSABLE COMPONENTS
   ======================================== */

.notice-strip { /* for disclaimers */
  background: var(--color-runway-grey-light);
  padding: var(--space-md) 0;
  text-align: center;
}

.notice-strip__text {
  margin: 0;
  font-size: 0.875rem;
  font-style:italic;
} 

/* ========================================
   Section Component
   ======================================== */
.section {
  padding: var(--space-5xl) 0;
}

/* Section Background Modifiers */
.section--white {
  background: #ffffff;
}

.section--rg {
  background: var(--color-runway-grey);
}

.section--dark {
  background: var(--color-primary);
}

.section--mb {
  background: var(--color-midnight-blue);
}

.section--rg-light {
  background: var(--color-runway-grey-light);
}

.section--mb-topo { 
  background: var(--color-midnight-blue);
  background-image: url('assets/images/defense/topobg_defense.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dark section text colors */
.section--dark,
.section--blue {
  color: #fff;
}

.section--dark .section-header__title,
.section--blue .section-header__title {
  color: #fff;
}

.section--dark .section-header__intro,
.section--blue .section-header__intro {
  color: rgba(255, 255, 255, 0.85);
}

.section--dark .section-intro,
.section--blue .section-intro {
  color: rgba(255, 255, 255, 0.85);
}

/* ========================================
   Section Header Component
   (Title on left, intro text on right)
   ======================================== */
.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
  margin-bottom: var(--space-3xl);
}

/* Flush variant with no bottom margin for standalone section */
.section-header__flush-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

/* Single column variant (title only) */
.section-header__single {
  grid-template-columns: 1fr;
  margin-bottom: var(--space-3xl);
}

.section-header__title {
  margin: 0;
  text-transform:uppercase;
}

.section-header__title_light {
  margin: 0;
  text-transform:uppercase;
  color: var(--color-text-light);
}
.section-header__intro_light {
  color: var(--color-white);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0;
}
.section-header__intro_dark {
  color: var(--color-text-dark);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0;
}

/* Section intro for standalone use */
.section-intro {
  color: var(--color-text-dark);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.section-intro p {
  margin: 0 0 var(--space-lg) 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.section-intro p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Grid Component
   ======================================== */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4col {
  grid-template-columns: repeat(4, 1fr);
}

.grid--5col {
  grid-template-columns: repeat(5, 1fr);
}

.grid--6col {
  grid-template-columns: repeat(6, 1fr);
}

.grid--7col {
  grid-template-columns: repeat(7, 1fr);
}

/* Grid gap modifiers */
.grid--gap-sm {
  gap: var(--space-sm);
}

.grid--gap-lg {
  gap: var(--space-3xl);
}

/* Grid alignment */
.grid--align-center {
  align-items: center;
}

.grid--align-start {
  align-items: start;
}

/* ========================================
   Image Card Component
   (For team members, examples, portfolio)
   ======================================== */
.image-card {
  position: relative;
  
  overflow: hidden;
}

/* Auto aspect ratio for flexible height */
.image-card--auto {
  aspect-ratio: auto;
}

/* 16:9 aspect ratio */
.image-card--wide {
  aspect-ratio: 16 / 9;
}

.image-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-card--auto .image-card__img {
  height: auto;
}

.image-card__label {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ========================================
   Content Block Component
   (Image + text side by side)
   ======================================== */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.content-block__media {
  overflow: hidden;
}

.content-block__media img {
  display: block;
  width: 100%;
  height: auto;
}

.content-block__content {
  padding: var(--space-lg) 0;
}

.content-block__title {
  margin: 0 0 var(--space-md) 0;
}

.content-block__text {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0;
}

/* Stack for multiple content blocks */
.content-blocks {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

/* ========================================
   Logo Strip Component
   ======================================== */
.logo-strip {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  grid-template-columns: repeat(7, 1fr);
}

.logo-strip__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.logo-strip__item img {
  display: block;
  max-width: 100%;
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition-base);
}

.logo-strip__item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ========================================
   Stat Block Component
   (Icon + content for statistics)
   ======================================== */
.stat-blocks {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.stat-block {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.stat-block__icon {
  flex-shrink: 0;
  color: var(--color-navigator-blue);
  padding-top: 4px;
  width: 90px;
}

.stat-block__content {
  flex: 1;
}

.stat-block__heading {
  margin: 0 0 var(--space-xs) 0;
  font-size: 2.5rem;
  text-transform:uppercase;
  line-height: 1.2;
  color: var(--color-text-dark);
}

.stat-block__subtitle {
  margin: 0 0 var(--space-xs) 0;
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-skyline-blue);
}

.stat-block__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ========================================
   CTA Component
   (Call to action - centered text + button)
   ======================================== */
.cta {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta__title {
  margin: 0 0 var(--space-lg) 0;
  text-transform:uppercase;
}

.cta__text {
  font-size: 1.125rem;
  line-height: 1.7;
  margin: 0 0 var(--space-xl) 0;
}


/* ========================================
   Gallery Layout Component
   (Featured image + grid below)
   ======================================== */
.gallery-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.gallery-layout__featured {
  width: 100%;
}

.gallery-layout__featured img {
  width: 100%;
  height: auto;
}

.gallery-layout__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.gallery-layout__column {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.gallery-layout__column img {
  width: 100%;
  height: auto;
}


/* ========================================
   COMPONENT RESPONSIVE STYLES
   ======================================== */

@media (max-width: 1024px) {
  .grid--4col {
    grid-template-columns: repeat(2, 1fr);
  }
 
  .grid--5col {
    grid-template-columns: repeat(3, 1fr);
  }
 
  .grid--6col {
    grid-template-columns: repeat(3, 1fr);
  }
 
  .grid--7col {
    grid-template-columns: repeat(4, 1fr);
  }
 
  .grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-header {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .section-header__flush-2col {
 
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

 
  .grid--2col,
  .grid--3col,
  .grid--4col,
  .grid--5col,
  .grid--6col {
    grid-template-columns: 1fr;
  }
 
  .grid--7col {
    grid-template-columns: repeat(3, 1fr);
  }
 
  .content-block {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
 
  .image-card__label {
    bottom: var(--space-md);
    left: var(--space-md);
  }
 
  .gallery-layout__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .logo-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .logo-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .grid--7col,
  .logo-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: 1rem;
  border: 0px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-skyline-blue);
  color: white;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-skyline-blue-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-skyline-blue);
  border-color: var(--color-border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--color-skyline-blue-hover);
  background: rgba(26, 26, 46, 0.02);
}

/* ========================================
   Main Content Area
   ======================================== */
main {
  flex: 1;
}

} /* End of #flight (coming in for a landing)*/