/* ============================================================
   Elite Digital Solutions — Brand Design System
   Colors drawn from the American-flag Spartan helmet logo:
   Navy #0d1b3e  |  Red #b22234  |  White #ffffff
   ============================================================ */

/* ── 1. Custom Properties ──────────────────────────────────── */
:root {
  --navy:        #0d1b3e;
  --navy-mid:    #162447;
  --navy-light:  #1e3460;
  --red:         #b22234;
  --red-dark:    #8a1a28;
  --red-light:   #cc2a3e;
  --white:       #ffffff;
  --off-white:   #f2f4f8;
  --gray-light:  #e2e6ed;
  --gray-mid:    #8a9bb0;
  --text-dark:   #1a2340;
  --text-body:   #3d4f6b;
  --overlay:     rgba(8, 15, 40, 0.74);
  --overlay-red: rgba(100, 10, 20, 0.55);
  --font:        'Montserrat', sans-serif;
  --radius:      8px;
  --radius-lg:   14px;
  --shadow:      0 6px 28px rgba(0, 0, 0, 0.16);
  --shadow-sm:   0 2px 12px rgba(0, 0, 0, 0.10);
  --transition:  0.28s ease;
  --header-h:    80px;
}

/* ── 2. Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  padding-top: var(--header-h);
}
a { text-decoration: none; color: inherit; }
img, video { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── 3. Header / Nav ───────────────────────────────────────── */
header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--navy);
  display: flex; align-items: center;
  padding: 0 5%;
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.nav-logo a { display: flex; align-items: center; }
.nav-logo img {
  height: 52px;
  mix-blend-mode: screen;
  filter: brightness(1.05);
}
nav {
  margin-left: auto;
  display: flex; align-items: center; gap: 1.8rem;
}
nav > a, .dropdown > a {
  color: rgba(255,255,255,0.88);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
}
nav > a::after, .dropdown > a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width var(--transition);
}
nav > a:hover, .dropdown > a:hover { color: var(--white); }
nav > a:hover::after, .dropdown > a:hover::after { width: 100%; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%);
  background: var(--navy-mid);
  min-width: 210px;
  border-radius: var(--radius);
  border-top: 3px solid var(--red);
  box-shadow: var(--shadow);
  padding: 0.4rem 0;
}
.dropdown-menu::before {
  content: '';
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: var(--red);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 0.62rem 1.2rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.78);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition);
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover {
  background: rgba(178,34,52,0.25);
  color: var(--white);
  padding-left: 1.5rem;
}
.dropdown-menu a::after { display: none !important; }

/* Dropdown hover grace (desktop): invisible bridge over the gap between the
   Applications link and the menu, plus a short delay before the menu hides. */
@media (min-width: 769px) {
  .dropdown-menu {
    display: block;
    visibility: hidden; opacity: 0;
    transition: opacity 0.25s ease 0.5s, visibility 0s linear 0.75s;
  }
  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
    visibility: visible; opacity: 1;
    transition-delay: 0s;
  }
  .dropdown-menu::after {
    content: ''; position: absolute;
    top: -22px; left: 0; right: 0; height: 22px;
  }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ── 4. Hero (Full-screen — Home) ──────────────────────────── */
.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 580px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: var(--overlay);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 920px;
  padding: 0 2rem;
  color: var(--white);
  animation: fadeInUp 0.9s ease 0.2s both;
}
.hero-content h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}
.hero-content h1 span { color: var(--red); }
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero-badge {
  display: inline-block;
  background: rgba(178,34,52,0.25);
  border: 1px solid rgba(178,34,52,0.5);
  color: rgba(255,255,255,0.85);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.38rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}
.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  animation: pulse 2.5s ease infinite;
}
.scroll-hint::after {
  content: '';
  display: block; width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

/* ── 5. Page Hero (shorter — inner pages) ──────────────────── */
.page-hero {
  position: relative;
  height: 52vh; min-height: 380px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  padding: 0 5% 3.5rem;
}
.page-hero video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.page-hero .hero-overlay {
  position: absolute; inset: 0;
  background: rgba(8,15,40,0.76);
  z-index: 1;
}
.page-hero-content {
  position: relative; z-index: 2;
  color: var(--white);
  animation: fadeInUp 0.7s ease 0.1s both;
}
.breadcrumb {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}
.breadcrumb a { color: rgba(255,255,255,0.45); transition: color var(--transition); }
.breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.breadcrumb .sep { margin: 0 0.4rem; }
.breadcrumb .cur { color: var(--red); }
.page-hero-content .tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 0.6rem;
}
.page-hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800; line-height: 1.12;
  margin-bottom: 0.8rem;
}
.page-hero-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  max-width: 580px; line-height: 1.7;
}

/* ── 6. Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.88rem 2.1rem;
  border-radius: 4px;
  font-family: var(--font);
  font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer; border: 2px solid transparent;
}
.btn-red {
  background: var(--red); color: var(--white);
  border-color: var(--red);
}
.btn-red:hover {
  background: var(--red-dark); border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(178,34,52,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white); border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy); border-color: var(--white);
}
.btn-navy {
  background: var(--navy); color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-2px); box-shadow: var(--shadow-sm);
}
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-group.center { justify-content: center; }

/* ── 7. Sections ───────────────────────────────────────────── */
section { padding: 5.5rem 5%; }
.section-eyebrow {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red); margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; line-height: 1.18;
  color: var(--text-dark); margin-bottom: 1rem;
}
.section-title span { color: var(--red); }
.section-sub {
  font-size: 1rem; color: var(--text-body);
  max-width: 640px; line-height: 1.75;
}
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 3.5rem; }

/* ── 8. Cards / Grid ───────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.8rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  border: 1px solid var(--gray-light);
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.card-accent-top::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(178,34,52,0.2); }
.card:hover.card-accent-top::before { transform: scaleX(1); }
.card-icon {
  width: 52px; height: 52px;
  background: rgba(178,34,52,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  transition: background var(--transition);
}
.card:hover .card-icon { background: rgba(178,34,52,0.18); }
.card h3 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 0.6rem;
}
.card p { font-size: 0.9rem; color: var(--text-body); line-height: 1.7; }
.card-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 1.2rem;
  font-size: 0.8rem; font-weight: 700;
  color: var(--red); text-transform: uppercase; letter-spacing: 0.06em;
  transition: gap var(--transition);
}
.card-link:hover { gap: 0.6rem; }
.card-link::after { content: '→'; }

/* ── 9. Stats Bar ──────────────────────────────────────────── */
.stats-bar {
  background: var(--navy);
  padding: 3.5rem 5%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem; text-align: center;
}
.stat { padding: 1rem; }
.stat-num {
  font-size: 2.8rem; font-weight: 800;
  color: var(--red); line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ── 10. Split (image + text) ──────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
  padding: 5.5rem 5%;
}
.split.flip { direction: rtl; }
.split.flip > * { direction: ltr; }
.split-text .section-sub { margin-top: 1rem; }
.split-text ul {
  margin: 1.2rem 0 1.8rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.split-text ul li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.9rem; color: var(--text-body);
}
.split-text ul li::before {
  content: '▸';
  color: var(--red); font-size: 0.75rem;
  margin-top: 0.2rem; flex-shrink: 0;
}
.split-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split-visual video,
.split-visual img {
  width: 100%; height: 340px; object-fit: cover;
}

/* ── 11. CTA Band ──────────────────────────────────────────── */
.cta-band {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 5rem 5%;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800; margin-bottom: 1rem;
}
.cta-band p {
  font-size: 1rem; opacity: 0.88;
  max-width: 580px; margin: 0 auto 2rem;
  line-height: 1.7;
}
.btn-white { background: var(--white); color: var(--red); border-color: var(--white); }
.btn-white:hover {
  background: var(--off-white); border-color: var(--off-white);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.btn-outline-white {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }

/* ── 12. Dark Section ──────────────────────────────────────── */
.dark-section {
  background: var(--navy);
  color: var(--white);
}
.dark-section .section-title { color: var(--white); }
.dark-section .section-sub { color: rgba(255,255,255,0.65); }
.dark-section .card {
  background: var(--navy-mid);
  border-color: rgba(255,255,255,0.08);
}
.dark-section .card h3 { color: var(--white); }
.dark-section .card p { color: rgba(255,255,255,0.58); }
.dark-section .card-icon { background: rgba(178,34,52,0.18); }

/* ── 13. Light-bg Section ──────────────────────────────────── */
.light-section { background: var(--off-white); }

/* ── 14. Applications / Logo Strip ────────────────────────── */
.app-logos {
  display: flex; flex-wrap: wrap;
  gap: 1rem; justify-content: center; align-items: center;
  margin-top: 2.5rem;
}
.app-badge {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 0.75rem 1.6rem;
  font-size: 0.82rem; font-weight: 700;
  color: var(--text-dark); letter-spacing: 0.02em;
  transition: all var(--transition); cursor: default;
}
.app-badge:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 4px 14px rgba(178,34,52,0.15);
  transform: translateY(-2px);
}

/* ── 15. Testimonial / Quote Card ──────────────────────────── */
.testimonial-card {
  background: var(--navy-mid);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border-left: 4px solid var(--red);
  color: var(--white);
}
.testimonial-card blockquote {
  font-size: 1.05rem; line-height: 1.75;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
}
.testimonial-card blockquote::before { content: '\201C'; color: var(--red); font-size: 2rem; line-height: 0; vertical-align: -0.4em; margin-right: 0.2rem; }
.testimonial-author { font-size: 0.82rem; font-weight: 700; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; text-transform: uppercase; }

/* ── 16. Feature List ──────────────────────────────────────── */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.feature-item {
  display: flex; gap: 1rem; align-items: flex-start;
}
.feature-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(178,34,52,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.feature-text h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.25rem; }
.feature-text p { font-size: 0.85rem; color: var(--text-body); line-height: 1.6; }

/* ── 17. Compliance Badges ─────────────────────────────────── */
.compliance-grid {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 2rem;
}
.compliance-badge {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 0.6rem 1.2rem;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.12);
}

/* ── 18. Footer ────────────────────────────────────────────── */
.footer-bar {
  height: 4px;
  background: linear-gradient(to right, var(--red), var(--navy-light), var(--red));
}
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 4.5rem 5% 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img {
  height: 44px;
  mix-blend-mode: screen;
  filter: brightness(1.05);
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 0.85rem; line-height: 1.7;
  max-width: 270px;
  color: rgba(255,255,255,0.5);
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.55rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: rgba(255,255,255,0.35);
  flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom a { color: rgba(255,255,255,0.35); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--white); }

/* ── 19. Animations ────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; } 50% { opacity: 1; }
}

/* ── 20. Utilities ─────────────────────────────────────────── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.red  { color: var(--red); }
.divider { height: 1px; background: var(--gray-light); margin: 0 5%; }

/* ── 21. Responsive ────────────────────────────────────────── */
@media (max-width: 1100px) {
  nav { gap: 1.2rem; }
  nav > a, .dropdown > a { font-size: 0.74rem; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split.flip { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  nav { display: none; flex-direction: column; width: 100%; }
  nav.open {
    display: flex; position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: var(--navy);
    padding: 1rem 5% 1.5rem;
    border-top: 2px solid var(--red);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    gap: 0;
  }
  nav.open > a, nav.open .dropdown > a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: block; width: 100%;
  }
  nav.open > a::after, nav.open .dropdown > a::after { display: none; }
  nav.open .dropdown-menu {
    position: static; transform: none;
    display: none; box-shadow: none;
    padding: 0 0 0 1rem;
    background: transparent; border: none;
    border-top: none;
  }
  nav.open .dropdown-menu::before { display: none; }
  nav.open .dropdown.open .dropdown-menu { display: block; }
  nav.open .dropdown-menu a { padding: 0.5rem 0; border-bottom: none; }
  .hamburger { display: flex; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .page-hero { height: 45vh; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
}

/* ── WordPress additions ───────────────────────────────────── */
nav > a.is-active, nav > .dropdown > a.is-active { color: var(--white); border-bottom: 2px solid var(--red); }
body.admin-bar header { top: 32px; }
@media (max-width: 782px) { body.admin-bar header { top: 46px; } }
body.admin-bar nav.open { top: calc(var(--header-h) + 32px); }
.screen-reader-text { position:absolute; left:-9999px; }
.entry-content { max-width: 900px; margin: 0 auto; }
.entry-content > * + * { margin-top: 1.1rem; }

/* Forms (WordPress) */
.eds-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eds-notice { padding: 0.9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.2rem; font-size: 0.9rem; line-height: 1.5; }
.eds-notice-ok { background: #e8f5ec; color: #1e5b32; border: 1px solid #b7dfc3; }
.eds-notice-error { background: #fdecee; color: var(--red-dark); border: 1px solid #f1b9c0; }
