/* ===== Theme Variables ===== */
:root {
  --red: #b22234;
  --blue: #3c3b6e;
  --light: #ffffff;
  --dark: #1c1c1c;

  --bg: var(--light);
  --text: var(--dark);
}

body.dark {
  --bg: #121212;
  --text: #eaeaea;
}

/* ===== Base ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-top: 64px; /* keeps content from hiding under header */
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 1.5rem;
}

/* ===== Header / Nav ===== */

.site-header {
  background: var(--blue);
  color: white;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  /* KEY: flexible height */
  min-height: 64px;
}

.menu-toggle {
  display: none; /* CRITICAL: HAMBURGER on PC unless active for DropDown Menu */
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap; /* CRITICAL: prevents wrapping */
}

.logo {
  font-weight: 800;
  font-size: 1.3rem;
  white-space: nowrap;
}

/* ===== Desktop Nav ===== */
.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap; /* PREVENT word wrapping */
}

/* ===== Nav Controls (Dark + Hamburger) ===== */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;        /* PREVENT stacking */
}

.nav-controls button {
  align-items: center;
  justify-content: center;
  height: 40px;             /* visual consistency */
  width: 40px;
  line-height: 1;
}

/* ===== Controls ===== */
/* Dark mode toggle */
.dark-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: white;
  cursor: pointer;
}

/* Hamburger button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}



/* ===== Hero ===== */
.hero {
  background: linear-gradient(to right, var(--blue), var(--red));
  color: white;
  text-align: center;
  padding: 4rem 1.5rem;
}

/* ===== Buttons ===== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  margin-top: 1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
}

.btn-primary {
  background: white;
  color: var(--blue);
}

.btn-secondary {
  background: var(--red);
  color: white;
}

/* ===== Content ===== */
blockquote {
  border-left: 4px solid var(--red);
  padding-left: 1rem;
  margin: 2rem 0;
  font-style: italic;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li::before {
  content: "★ ";
  color: var(--red);
}

/* =========================
   Linked Feature Images
   ========================= */

.doc-link {
  display: block;
  max-width: 800px;
  width: 100%;
  margin: 1.5rem auto;
}

.feature-image {
  width: 100%;
  height: 450px;
  border-radius: 0; /* was "6px" for rounded corners which complicated associating captions with highlights */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-image.cover {
  object-fit: cover;
}

.feature-image.contain {
  object-fit: contain;
  background: #f5f5f5;
}

.doc-link:hover .feature-image {
  transform: scale(1.01);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15); /* this "6px" is the vertical shadow offset and is unrelated to rounding */
}

/* =========================
   Responsive Media (SEO-safe)
   ========================= */

.media-figure {
  max-width: 1100px;
  margin: 3rem auto;
}

.media-fit {
  display: block;
  width: 100%;
  max-height: 90vh;
  border-radius: 0; /* was "6px" for rounded corners which complicated associating captions with highlights */
  background: #f2f2f2; /* nuetral gray - matches PDF image wings color (#000000 was black) */
}

/* Images */
img.media-fit {
  height: auto;
  object-fit: contain;
}

/* Videos */
video.media-fit {
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: contain;
}

/* ===== Responsive Navigation ===== */

@media (max-width: 768px) {

  .menu-toggle {
    display: inline-flex;
  }

  /* Hide horizontal menu */
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    right: 1rem;

    /* KEY: content-driven width */
    width: auto;
    min-width: max-content;

    flex-direction: column;
    background: var(--blue);
    padding: 0.75rem 1rem;
    border-radius: 0; /* was "4px" for rounded corners which complicated associating captions with highlights */

    text-align: left; /* FORCE left-aligned text */
  }

  .nav.active {
    display: flex;
  }
}

/* ===== Footer ===== */
.site-footer {
  background: #f2f2f2;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
  color: #000;
}

.footer-nav a {
  color: #03befc;
  text-decoration: underline;
}

.footer-nav a:visited {
  color: #c86b78;
}
