
:root {
  --navy: #0a1628;
  --deep-blue: #0d2240;
  --patriot-red: #bf0a30;
  --bright-red: #e4002b;
  --usa-blue: #002868;
  --white: #ffffff;
  --off-white: #f1f5f9;
  --text: #eef2f7;
  --muted: #94a3b8;
  --card: rgba(0,40,104,0.25);
  --border: rgba(255,255,255,0.1);
}
* { box-sizing: border-box; }
body {
  margin:0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--navy);
  color: var(--text);
}
a { color: inherit; }

/* === HEADER with CSS stars pattern (crisp at any resolution) === */
header {
  position: fixed;
  top:0; left:0; right:0;
  z-index:50;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ctext x='30' y='38' text-anchor='middle' font-size='24' fill='rgba(255,255,255,0.15)'%3E★%3C/text%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ctext x='30' y='38' text-anchor='middle' font-size='24' fill='rgba(255,255,255,0.10)'%3E★%3C/text%3E%3C/svg%3E"),
    linear-gradient(to right, var(--usa-blue), #0a1e4a);
  background-size: 60px 60px, 60px 60px, 100% 100%;
  background-position: 0 0, 30px 30px, 0 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 6vw;
  border-bottom: 3px solid var(--patriot-red);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
header img.logo {
  height:80px;
  max-height:80px;
}
nav a {
  margin-left:24px;
  text-decoration:none;
  color: rgba(255,255,255,0.9);
  font-weight:500;
  position:relative;
  font-size:14px;
  transition: color 0.2s;
}
nav a::after {
  content:"";
  position:absolute;
  left:0; bottom:-4px;
  width:0; height:2px;
  background: linear-gradient(to right, var(--patriot-red), var(--bright-red));
  transition:width .2s;
}
nav a:hover { color: #fca5a5; }
nav a:hover::after { width:100%; }

main { margin-top:96px; }

/* Hero (kept for other pages that use static hero) */
.hero {
  position:relative;
  min-height:72vh;
  overflow:hidden;
}
.hero-bg {
  position:absolute;
  inset:0;
  background:url('images/hero.jpg') center/cover fixed no-repeat;
}
.hero-overlay {
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top left, rgba(196,30,58,.1), transparent 50%),
    linear-gradient(to bottom, rgba(11,26,59,.9), rgba(11,26,59,.98));
}
.hero-inner {
  position:relative;
  padding:10vh 8vw 14vh;
  max-width:1120px;
  display:grid;
  grid-template-columns:minmax(0,3fr) minmax(0,2.4fr);
  gap:40px;
  align-items:center;
}
.hero-copy { max-width:640px; }
.hero-art { justify-self:end; }
.hero-art img {
  max-width:420px;
  width:100%;
  height:auto;
  border-radius:24px;
  box-shadow:0 30px 80px rgba(0,0,0,0.6);
}

.hero-kicker {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(196,30,58,.4);
  background:rgba(196,30,58,.1);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#fca5a5;
}
.hero-kicker span.dot {
  width:8px;height:8px;border-radius:999px;
  background:radial-gradient(circle,var(--bright-red),transparent);
}
.hero h1 {
  margin-top:18px;
  font-size:44px;
  line-height:1.08;
}
.hero h1 span.accent {
  background: linear-gradient(to right, var(--bright-red), #fca5a5, #93c5fd);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero p.lead {
  margin-top:14px;
  max-width:640px;
  color:var(--muted);
}
.hero-cta {
  margin-top:26px;
  display:flex;
  flex-wrap:wrap;
  gap:16px;
}
.hero-cta a.primary {
  padding:11px 22px;
  border-radius:999px;
  border:none;
  background:linear-gradient(to right, var(--patriot-red), var(--bright-red));
  color:#ffffff;
  font-weight:600;
  text-decoration:none;
  box-shadow: 0 6px 20px rgba(196,30,58,0.3);
}
.hero-cta a.outline {
  padding:10px 20px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.4);
  color:var(--text);
  text-decoration:none;
}
.hero-metrics {
  margin-top:34px;
  display:flex;
  gap:24px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:13px;
}
.hero-metrics div strong {
  font-size:24px;
  color:#fca5a5;
  display:block;
}

/* === Red stripe divider === */
.stripe-divider {
  height:4px;
  background: linear-gradient(to right, transparent, var(--patriot-red), var(--bright-red), var(--patriot-red), transparent);
}

/* === Sections === */
.section {
  padding:70px 8vw;
  background: linear-gradient(180deg, var(--navy) 0%, var(--deep-blue) 50%, var(--navy) 100%);
}
.section.alt {
  background: radial-gradient(ellipse at bottom, rgba(196,30,58,.06), transparent 60%), var(--navy);
}
.section-header {
  max-width:900px;
  margin:0 auto 34px;
  text-align:center;
}
.section-header h2 {
  font-size:28px;
  margin-bottom:8px;
  font-weight:800;
}
.section-header h2 span.red { color: var(--bright-red); }
.section-header p {
  color:var(--muted);
  margin:0;
}

/* === Cards / grids === */
.grid-3 {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}
.card {
  background: var(--card);
  border-radius:16px;
  padding:24px 22px 26px;
  border:1px solid var(--border);
  box-shadow:0 18px 45px rgba(0,0,0,.4);
  backdrop-filter: blur(8px);
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--patriot-red), var(--bright-red));
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(196,30,58,.3); }
.card:hover::before { opacity: 1; }
.card h3 { margin-top:4px; margin-bottom:6px; font-size:18px; font-weight:700; }
.card p { margin:0; color:var(--muted); font-size:14px; line-height:1.5; }
.card span.tag {
  display:inline-block;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color: var(--bright-red);
  margin-bottom:6px;
  font-weight:700;
}

/* === Social strip === */
.social-strip {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.social-tile {
  border-radius:16px;
  overflow:hidden;
  position:relative;
  background: var(--card);
  border:1px solid var(--border);
  box-shadow:0 18px 40px rgba(0,0,0,.4);
}
.social-tile iframe {
  width:100%; height:210px; border:0;
}
.social-label {
  padding: 10px 14px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:var(--muted);
}

/* === Page hero === */
.page-hero {
  padding:70px 8vw 40px;
  background:
    radial-gradient(circle at top left, rgba(196,30,58,.15), transparent 55%),
    linear-gradient(to bottom, var(--navy), var(--navy));
  border-bottom:3px solid var(--patriot-red);
}
.page-hero h1 {
  font-size:32px;
  margin:0 0 10px;
  font-weight:800;
}
.page-hero p {
  margin:0;
  color:var(--muted);
  max-width:640px;
}

/* === Layouts === */
.two-col {
  display:grid;
  grid-template-columns: minmax(0,3fr) minmax(0,2.2fr);
  gap:32px;
  align-items:flex-start;
}
.panel {
  background: var(--card);
  border-radius:16px;
  padding:20px 22px;
  border:1px solid var(--border);
  box-shadow:0 16px 36px rgba(0,0,0,.4);
}
.panel h2 { margin-top:0; }
.badge-row {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}
.badge {
  padding:4px 9px;
  border-radius:999px;
  border:1px solid rgba(196,30,58,.3);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:#fca5a5;
}
.list {
  margin:0;
  padding-left:18px;
  color:var(--muted);
  font-size:14px;
}
.list li { margin-bottom:5px; }

/* === Contact form === */
.contact-wrap {
  max-width:760px;
  margin:26px auto 0;
}
.contact-form {
  display:grid;
  gap:14px;
}
.contact-form label {
  font-size:13px;
  color:var(--muted);
}
.contact-form input,
.contact-form textarea {
  width:100%;
  padding:10px 11px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(11,26,59,.8);
  color:var(--text);
  font-size:14px;
}
.contact-form textarea { resize:vertical; min-height:120px; }
.contact-form button {
  padding:11px 20px;
  border-radius:999px;
  border:none;
  background:linear-gradient(to right, var(--patriot-red), var(--bright-red));
  color:#ffffff;
  font-weight:600;
  cursor:pointer;
  box-shadow: 0 4px 12px rgba(196,30,58,0.3);
}

/* === Footer === */
footer {
  padding:28px 8vw 32px;
  border-top:3px solid var(--patriot-red);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ctext x='30' y='38' text-anchor='middle' font-size='24' fill='rgba(255,255,255,0.10)'%3E★%3C/text%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ctext x='30' y='38' text-anchor='middle' font-size='24' fill='rgba(255,255,255,0.06)'%3E★%3C/text%3E%3C/svg%3E"),
    linear-gradient(to right, var(--usa-blue), #0a1628);
  background-size: 60px 60px, 60px 60px, 100% 100%;
  background-position: 0 0, 30px 30px, 0 0;
  color:var(--muted);
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  font-size:13px;
}

/* === Responsive === */
@media (max-width:960px) {
  .hero-inner {
    grid-template-columns:1fr;
    gap:28px;
  }
  .hero h1 { font-size:32px; }
  .grid-3 { grid-template-columns:1fr; }
  .social-strip { grid-template-columns:1fr 1fr; }
  .two-col { grid-template-columns:1fr; }
}
@media (max-width:640px) {
  header { padding:10px 16px; }
  nav a { margin-left:12px; font-size:13px; }
  .hero-inner { padding:9vh 5vw 11vh; }
  .social-strip { grid-template-columns:1fr; }
  .section { padding:54px 6vw; }
}

/* --- Nav dropdown --- */
header nav{
  position: relative;
}
header nav .nav-dropdown{
  position: relative;
  display: inline-flex;
  align-items: center;
}
header nav .nav-dropdown > .nav-link{
  display: inline-block;
}

header nav .nav-dropdown > .dropdown-menu{
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  padding: 10px 8px;
  border-radius: 14px;
  border: 1px solid rgba(196,30,58,.2);
  background: rgba(11,26,59,.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
  z-index: 9999;
}

header nav .nav-dropdown:hover > .dropdown-menu,
header nav .nav-dropdown:focus-within > .dropdown-menu{
  display: block !important;
}

header nav .nav-dropdown > .dropdown-menu a{
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  letter-spacing: .02em;
  color: rgba(226,232,240,.92);
  text-decoration: none;
  white-space: nowrap;
}

header nav .nav-dropdown > .dropdown-menu a:hover{
  background: rgba(196,30,58,.15);
  color: #fca5a5;
}

header nav .nav-dropdown > .dropdown-menu::before{
  content:"";
  position:absolute;
  left:0;
  top:-10px;
  width:100%;
  height:10px;
}

/* === Mobile Hamburger Menu === */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 9999;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 860px) {
  .hamburger {
    display: flex;
    position: relative;
  }

  header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  header nav {
    display: none;
    position: absolute !important;
    top: 100% !important;
    right: 12px !important;
    left: 12px !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    max-height: 80vh;
    overflow-y: auto;
    margin: 8px 0 0 0 !important;
    background: rgba(11,26,59,.97) !important;
    border: 1px solid rgba(196,30,58,.25) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,.6) !important;
    padding: 16px 20px !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 9990 !important;
  }

  header nav.open {
    display: flex !important;
  }

  header nav > a {
    margin-left: 0 !important;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 14px;
    color: #e5e7eb !important;
    text-decoration: none;
    border-radius: 10px;
    display: block;
    text-align: left;
    transition: background 0.15s;
  }
  header nav > a:hover {
    background: rgba(196,30,58,.1);
  }
  header nav > a::after {
    display: none !important;
  }

  header nav .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: auto;
  }
  header nav .nav-dropdown > .nav-link {
    margin-left: 0 !important;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 14px;
    color: #e5e7eb !important;
    text-decoration: none;
    border-radius: 10px;
    display: block;
    text-align: left;
    transition: background 0.15s;
  }
  header nav .nav-dropdown > .nav-link:hover {
    background: rgba(196,30,58,.1);
  }
  header nav .nav-dropdown > .nav-link::after {
    display: none !important;
  }

  header nav .nav-dropdown > .dropdown-menu {
    position: static !important;
    display: none !important;
    background: rgba(15,30,60,.5) !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 10px !important;
    backdrop-filter: none !important;
    padding: 6px 8px !important;
    min-width: auto !important;
    margin: 0 8px 6px 8px;
  }
  header nav .nav-dropdown.open > .dropdown-menu {
    display: flex !important;
    flex-direction: column;
  }
  header nav .nav-dropdown:hover > .dropdown-menu {
    display: none !important;
  }
  header nav .nav-dropdown.open:hover > .dropdown-menu {
    display: flex !important;
  }
  header nav .nav-dropdown > .dropdown-menu a {
    font-size: 13px;
    color: #94a3b8 !important;
    padding: 8px 12px;
    border-radius: 8px;
    margin-left: 0 !important;
    display: block;
    text-align: left;
    transition: background 0.15s;
  }
  header nav .nav-dropdown > .dropdown-menu a:hover {
    color: #fca5a5 !important;
    background: rgba(196,30,58,.1) !important;
  }
  header nav .nav-dropdown > .dropdown-menu::before {
    display: none !important;
  }

  /* Dividers between all nav items */
  header nav > a + a,
  header nav > a + .nav-dropdown,
  header nav > .nav-dropdown + a,
  header nav > .nav-dropdown + .nav-dropdown {
    border-top: 1px solid rgba(196,30,58,.12);
  }
}
