@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap');

/* =============================== */
/*          GLOBAL STYLES          */
/* =============================== */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f4f4f4;
  color: #222;
  display: flex;
  flex-direction: column;
}


/* =============================== */
/*      SITE HEADER + TOP LOGO     */
/* =============================== */


/* Base header for all pages */
header {
  background-color: #285582;
  color: white;
  padding: 25px 0 10px;
  text-align: center;
}

/* Static header layout (all NON-home pages) */
/* Works for:
   1) <header><div class="site-header">...</div></header>
   2) <header class="site-header">...</header>              */
header.site-header:not(.hero),
header:not(.hero) .site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


/* Static logo image */
header:not(.hero) .site-logo {
  max-width: 640px;   /* desktop size */
  width: 100%;
  height: auto;
  display: block;
}

/* =============================== */
/*   MAIN LOGO: ROUNDED + LIFTED   */
/* =============================== */
/* Add class="site-logo main-logo-lift" to the main logo <img> */

/* Non-hero header logo */
header:not(.hero) .site-logo.main-logo-lift{
  border-radius: 0px;
  overflow: visible; /* clips corners cleanly */
  background: rgba(255,255,255,0.98);

  /* stronger lift */
  box-shadow:
    0 18px 40px rgba(0,0,0,0.28),
    0 6px 14px rgba(0,0,0,0.18);

  /* subtle edge highlight */
  outline: 2px solid rgba(255,255,255,0.18);
  outline-offset: -2px;

  /* lift it upward a bit */
  transform: translateY(-10px);
}

/* Hero logo (home page) if you add main-logo-lift to that <img> too */
.hero-content img.main-logo-lift{
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.98);

  box-shadow:
    0 18px 40px rgba(0,0,0,0.28),
    0 6px 14px rgba(0,0,0,0.18);

  outline: 2px solid rgba(255,255,255,0.18);
  outline-offset: -2px;

  transform: translateY(-10px);
}

/* Static logo mobile tweak */
@media (max-width: 768px) {
  header:not(.hero) .site-logo {
    max-width: 320px;
  }

  /* Mobile: slightly less lift + smaller radius */
  header:not(.hero) .site-logo.main-logo-lift,
  .hero-content img.main-logo-lift{
    border-radius: 16px;
    transform: translateY(-6px);
    box-shadow:
      0 14px 30px rgba(0,0,0,0.26),
      0 5px 12px rgba(0,0,0,0.16);
  }
}

/* ========================================= */
/*        HOME PAGE HERO WITH VIDEO          */
/* ========================================= */

.hero {
  position: relative;
  background-color: #285582;   /* blue haze background */
  color: white;
  text-align: center;
  overflow: hidden;
  min-height: 430px;           /* shows more of the shot */
}

/* Background video - full width, pushed back */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.60;               /* haze strength */
  z-index: 0;
  pointer-events: none;
}

/* Logo container on top of video */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: -40px auto 0;        /* pulls logo up */
  padding: 0 0 90px;           /* bottom space under logo */
}

/* Logo image inside hero */
.hero-content img {
  width: auto;
  max-width: 780px;            /* how big the logo can get */
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Sound toggle button (shown only if autoplay blocked) */
.sound-toggle {
  position: absolute;
  right: 20px;
  bottom: 15px;
  padding: 8px 14px;
  font-size: 0.9rem;
  border: none;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  display: none;
}

.sound-toggle:hover {
  background-color: rgba(0, 0, 0, 0.8);
}


/* Hero-specific mobile tweaks */
@media (max-width: 768px) {

  /* Shorter hero on phones so it doesn't eat the whole screen */
  .hero {
    min-height: 240px;            /* tweak 220-260 to taste */
  }

  /* Keep the video visible on mobile */
  .hero-video {
    display: block;
    opacity: 0.5;                 /* haze strength over video */
  }

  /* Tighter layout around the logo */
  .hero-content {
    margin: 0 auto;               /* cancels the desktop -40px margin */
    padding: 20px 0 30px;
    max-width: 90%;
  }

  .hero-content img {
    max-width: 320px;             /* mobile logo size */
    height: auto;
  }

  /* Don't override .sound-toggle here - JS will show it when needed */
}







/* =============================== */
/*           NAVIGATION            */
/* =============================== */
/* Icon-based top nav */
nav.icon-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /* helps on smaller screens */
}

nav.icon-nav li {
  margin: 0;
  padding: 0;
}

nav.icon-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 6px;
}

nav.icon-nav a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

nav.icon-nav .nav-icon {
  height: 54px;
  width: auto;
  display: block;
}



nav {
  background-color: #1f3e63;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;        /* allow wrapping on small screens */
  gap: 20px;
  justify-content: center;
}

nav ul li {
  margin: 0;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  display: inline-block;
}

nav ul li a:hover {
  background-color: #16314c;
  border-radius: 5px;
}

/* Mobile adjustments for nav */
@media (max-width: 768px) {
  nav ul {
    padding: 8px 6px;
    gap: 10px;
  }

  nav ul li a {
    font-size: 0.9rem;
    padding: 6px 8px;
  }
}

/* =============================== */
/*        MAIN CONTENT AREA        */
/* =============================== */

main {
  max-width: 1000px;
  margin: 12px auto 4px;     /* tightened top & bottom */
  padding: 18px 26px;
  background-color: #ffffff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* =============================== */
/*       HOME WELCOME LAYOUT       */
/* =============================== */

.welcome-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

/* Image column */
.welcome-image img {
  max-width: 480px;    /* welcome image size */
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #d0d0d0;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

/* Text column */
.welcome-text {
  flex: 1;
  min-width: 260px;
}

/* Mobile: stack image over text */
@media (max-width: 768px) {
  .welcome-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .welcome-text {
    text-align: left;
    max-width: 100%;
  }
}

/* =============================== */
/*            FOOTER               */
/* =============================== */

footer {
  background-color: #285582;
  color: white;
  padding: 8px;          /* slightly tighter */
  text-align: center;
  margin-top: 6px;       /* small gap below main */
}

/* =============================== */
/*       ARTIFACT SPEC TABLE       */
/* =============================== */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background-color: #ffffff;
  border: 1px solid #d0d0d0;
}

.spec-table th {
  background-color: #285582;
  color: white;
  padding: 10px;
  text-align: left;
  font-size: 1.1em;
}

.spec-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #d0d0d0;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table td:first-child {
  font-weight: bold;
  width: 30%;
}

/* Typography spacing */
h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

h3 {
  margin-top: 25px;
  margin-bottom: 8px;
}

/* =============================== */
/*     ARTIFACT IMAGE GRID         */
/* =============================== */

/* Grid container */
.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 20px;
  justify-content: center;
}

/* Each figure behaves like a card */
.image-grid figure {
  margin: 0;
  flex: 1 1 320px;    /* minimum width per item */
  max-width: 48%;     /* about two per row on desktop */
  text-align: center;
}

/* Thumbnails */
.image-grid img {
  width: 100%;        /* fill the figure width */
  height: auto;       /* no fixed height = no cropping */
  border: 1px solid #d0d0d0;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
  display: block;
}

/* Figure captions */
.image-grid figcaption {
  font-size: 0.9em;
  margin-top: 4px;
  color: #555;
}

/* Mobile: one per row */
@media (max-width: 768px) {
  .image-grid figure {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* =============================== */
/*       IMAGE LIGHTBOX            */
/* =============================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;   /* full image visible */
  border-radius: 6px;
}

.lightbox:target {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}

/* =============================== */
/*       COUNTRY PAGE SECTIONS     */
/* =============================== */

.country-section {
  margin-top: 20px;
  margin-bottom: 20px;
}

.country-section ul {
  margin: 0;
  padding-left: 20px;
}

.country-section li {
  margin-bottom: 6px;
}

/* =============================== */
/*          GENERIC FIGURE         */
/* =============================== */

figure {
  margin: 0;
  padding: 0;
  text-align: center;
  max-width: 100%;
}

/* Article titles on the Articles & References page */
.article-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.35rem;
  color: #264a7e;          /* slightly darker blue to stand out */
  margin-top: 2em;
  margin-bottom: 0.3em;
  border-bottom: 2px solid #d0d0d0;
  padding-bottom: 0.2em;
}

/* Extra breathing room between articles */
.reference-article {
  margin-bottom: 2.5em;
}

.about-link-home{
  text-align: center;
  margin: 2.5rem 0 1.5rem;
  font-size: 1.05rem;
}

.about-link-home a{
  text-decoration: none;
  font-weight: 600;
  color: inherit; /* link color is controlled below */
}

.about-link-home a:hover{
  text-decoration: underline;
}

.section-title,
main > h2,
main > section > h2,
main > h3,
main .country-section > h3{
  font-family: "Trebuchet MS","Segoe UI",Arial,sans-serif;
  color: rgb(40,85,130);
  font-weight: 900;
  letter-spacing: 0.3px;
  margin-top: 18px;
  margin-bottom: 10px;
  font-size: 1.6rem;
  text-transform: none;
}

/* =============================== */
/*          LINK COLORS            */
/* =============================== */
/* Military OD links */
main a:link,
main a:visited,
.about-link-home a:link,
.about-link-home a:visited {
  color: #3E4F18; /* deep OD green */
}

main a:hover,
main a:focus,
.about-link-home a:hover,
.about-link-home a:focus {
  color: #6B8E23; /* slightly brighter OD for hover */
  text-decoration: underline;
}

/* =============================== */
/*      LINK FONT (Option B)       */
/* =============================== */
/* Field manual links: condensed + uppercase */
main a,
.about-link-home a {
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 1.05em;
}



