:root {
  --bluebonnet: #4a4e9c;
  --old-glory-blue: #00205b;   /* Pantone 281 C */
  --old-glory-red: #bf0a30;    /* flag red, used as accent only */
  --ink: #1c1c28;
  --paper: #f7f7fb;
  --card: #ffffff;
  --muted: #5a5a6e;
  --tint: #e6ebf4;             /* light wash of old glory blue */
  --line: #e0e2ec;
  --sidebar-width: 118px;
  --bottombar-height: 68px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--card);
  line-height: 1.6;
}

a {
  color: var(--bluebonnet);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--old-glory-blue);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--old-glory-blue);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem 0;
  z-index: 50;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  margin-bottom: 2.5rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.brand-word-top {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.brand-word-bottom {
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  opacity: 0.85;
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  align-items: center;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 68px;
  padding: 0.7rem 0;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.nav-link svg {
  width: 26px;
  height: 26px;
}

.nav-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-link.is-active {
  background: #fff;
  color: var(--old-glory-blue);
}

.nav-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Main layout */
main {
  margin-left: var(--sidebar-width);
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--old-glory-blue);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: #001640 center/cover no-repeat;
}

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

.hero-overlay {
  background: linear-gradient(180deg, rgba(0, 18, 51, 0.35), rgba(0, 18, 51, 0.6));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 4rem 2rem;
  text-align: center;
}

.hero-content h1 {
  color: #fff;
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

/* Content bands */
.band {
  padding: 3.5rem 2rem 3.5rem 4rem;
}

.band-tint {
  background: var(--tint);
}

.band-inner {
  max-width: 900px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bluebonnet);
  margin: 0 0 0.75rem;
}

.band h2 {
  color: var(--old-glory-blue);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 1.25rem;
  max-width: 68ch;
}

.lede:last-child {
  margin-bottom: 0;
}

/* Feature grid */
.feature-grid {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature h3 {
  color: var(--old-glory-blue);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  padding-top: 0.85rem;
  border-top: 3px solid var(--old-glory-red);   /* small flag-red accent */
  display: inline-block;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

/* Closing call to action */
.band-cta {
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.band-cta .band-inner {
  max-width: 720px;
  margin: 0 auto;
}

.band-cta .lede {
  margin-left: auto;
  margin-right: auto;
}

.cta {
  display: inline-block;
  margin-top: 1.75rem;
  background: var(--bluebonnet);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.cta:hover {
  background: var(--old-glory-blue);
}

.cta:focus-visible {
  outline: 3px solid var(--old-glory-blue);
  outline-offset: 2px;
}

/* Footer */
.site-footer {
  margin-left: var(--sidebar-width);
  padding: 1.75rem 2rem 1.75rem 4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}

/* Small screens: sidebar becomes a bottom bar */
@media (max-width: 768px) {
  main,
  .site-footer {
    margin-left: 0;
  }

  .site-footer {
    padding: 1.5rem 1.5rem calc(1.5rem + var(--bottombar-height));
    justify-content: center;
    text-align: center;
  }

  .band {
    padding: 2.5rem 1.25rem;
  }

  .band-inner {
    max-width: none;
  }

  body {
    padding-bottom: var(--bottombar-height);
  }

  .sidebar {
    top: auto;
    right: 0;
    bottom: 0;
    width: auto;
    height: var(--bottombar-height);
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .sidebar-brand {
    display: none;
  }

  .sidebar-nav {
    flex-direction: row;
    justify-content: space-around;
    gap: 0;
    height: 100%;
  }

  .sidebar-nav li {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .nav-link {
    width: 100%;
    height: 100%;
    border-radius: 0;
    justify-content: center;
    gap: 0.15rem;
  }

  .nav-link svg {
    width: 22px;
    height: 22px;
  }

  .nav-link.is-active {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 3px 0 var(--old-glory-red);  /* flag-red active accent */
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-top: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}
