/* ==========================================================================
   V2X Solutions — Global styles (design tokens, layout, nav, footer, buttons)
   ========================================================================== */

:root {
  --navy-black: #05080f;
  --navy: #0a0f1a;
  --navy-panel: #0d1420;
  --navy-panel-light: #111a2b;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --blue: #2f6bff;
  --blue-light: #4d8fff;
  --blue-glow: #3b82f6;
  --cyan: #38bdf8;
  --white: #ffffff;
  --text: #e7ebf1;
  --muted: #9aa5b4;
  --muted-dim: #6b7688;
  --red: #c8383b;
  --green: #00b67a;

  --container: 1440px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-lg: 20px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--navy-black);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { position: relative; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 14px;
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }

h2 { font-size: clamp(2rem, 3.2vw, 2.75rem); }

.text-blue { color: var(--blue-light); }

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
}

/* ---- Hero checklist (reused across hero sections — index.html, why-v2x.html, ...) ---- */
.hero-checks {
  list-style: none;
  margin-bottom: 30px;
  display: grid;
  gap: 10px;
}

.hero-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--text);
}

.hero-checks svg { color: var(--blue-light); flex-shrink: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #1a4fe0);
  color: var(--white);
  box-shadow: 0 8px 24px -8px rgba(47, 107, 255, 0.6);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -6px rgba(47, 107, 255, 0.75);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-light);
}

.btn-ghost:hover {
  border-color: var(--blue-light);
  background: rgba(47, 107, 255, 0.08);
  transform: translateY(-2px);
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-play .play-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
  flex-shrink: 0;
}

.btn-play:hover .play-circle {
  background: var(--blue);
  border-color: var(--blue);
  transform: scale(1.08);
}

/* ---- Header / nav ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), padding 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
  padding: 12px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.brand img {
  height: 40px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 30px;
}

.main-nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-light), var(--cyan));
  transition: right 0.3s var(--ease);
}

.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after,
.main-nav a.active::after { right: 0; }
.main-nav a.active { color: var(--white); }

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-caret-btn {
  display: none;
  align-items: center;
  background: none;
  border: none;
  margin: 0;
  padding: 4px;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.nav-caret-btn:hover { color: var(--white); }
.nav-caret-btn svg { transition: transform 0.2s var(--ease); }
.nav-item.open .nav-caret-btn { color: var(--white); }
.nav-item.open .nav-caret-btn svg { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  min-width: 250px;
  background: var(--navy-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 60;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text);
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a:hover,
.nav-dropdown a.active { background: rgba(255, 255, 255, 0.06); color: var(--white); }

.header-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
}
.header-contact:hover { opacity: 0.75; }

.header-contact svg { color: var(--blue-light); flex-shrink: 0; }
.header-contact .phone-number { font-weight: 700; }
.header-contact .phone-sub { display: block; color: var(--muted-dim); font-size: 0.72rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  background: var(--navy);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.footer-brand img { height: 30px; width: auto; }
.footer-brand .footer-tagline { color: var(--muted); font-size: 0.85rem; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.footer-col h3 {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--blue-light);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.footer-col p, .footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover { color: var(--white); }

.footer-socials { display: flex; gap: 10px; margin-top: 4px; }

.footer-socials a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-socials a:hover { background: var(--blue); transform: translateY(-3px); }

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted-dim);
}

.footer-bottom a:hover { color: var(--white); }

.cookie-settings-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.cookie-settings-link:hover { color: var(--white); }

.credit-line {
  width: 100%;
  text-align: center;
  margin-top: 14px;
  font-size: 0.76rem;
  color: var(--muted-dim);
}
.credit-line a { color: var(--muted); transition: color 0.2s var(--ease); }
.credit-line a:hover { color: var(--blue-light); }

/* ---- Inline brand logo mark (partner/compatible-brand strips) ---- */
.brand-mark { display: inline-flex; align-items: center; height: 22px; width: 22px; }
.brand-mark svg { height: 100%; width: 100%; fill: var(--muted); }

/* ---- Cookie consent banner ---- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  padding: 20px;
  transform: translateY(120%);
  transition: transform 0.45s var(--ease);
}
.cookie-banner.open { transform: translateY(0); }

.cookie-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--navy-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 26px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
}

.cookie-banner-inner p {
  flex: 1;
  min-width: 240px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}
.cookie-banner-inner a { color: var(--blue-light); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-inner a:hover { color: var(--white); }

.cookie-banner-actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-banner-actions .btn { white-space: nowrap; }

@media (max-width: 560px) {
  .cookie-banner { padding: 12px; }
  .cookie-banner-inner { padding: 18px; flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner-actions { justify-content: center; }
}

/* ---- Animated "current" chevron divider ---- */
.current {
  position: relative;
  height: 22px;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.current svg {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 200%;
  animation: flow-chevrons 3.2s linear infinite reverse;
}
@keyframes flow-chevrons { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Lite YouTube embed ---- */
.yt-embed {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.yt-embed::after { content: ""; position: absolute; inset: 0; background: rgba(5,8,15,0.25); transition: background 0.25s var(--ease); pointer-events: none; }
.yt-embed:hover::after { background: rgba(5,8,15,0.05); }
.yt-embed .yt-play-btn {
  position: relative; z-index: 1;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px rgba(47,107,255,0.6);
  transition: transform 0.25s var(--ease);
}
.yt-embed:hover .yt-play-btn { transform: scale(1.1); }

/* ---- Reveal-on-scroll ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].in-view { opacity: 1; transform: translateY(0); }

[data-reveal="fade"] { transform: none; }

.stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---- Feature strip (shared across pages) ---- */
.feature-strip {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--navy-panel), rgba(13, 20, 32, 0.4));
  padding: 32px var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.feature-item { display: flex; align-items: flex-start; gap: 14px; }

.feature-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  color: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.feature-item:hover .feature-icon {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.08) rotate(-6deg);
}

.feature-item h2, .feature-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.feature-item p { color: var(--muted); font-size: 0.86rem; }

/* ---- Utility: dotted energy-flow divider ---- */
.flow-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 34px 0;
}

.flow-tag svg { color: var(--blue-light); }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .header-contact { display: none; }
  .site-header .container > a.btn-primary { display: none; }
  .nav-toggle { display: block; margin-left: auto; position: relative; z-index: 101; }

  .main-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--navy-black);
    border-left: 1px solid var(--border);
    padding: 90px 28px 28px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; transition: color 0.2s var(--ease); }
  .main-nav a::after { display: none; }
  .main-nav a:hover { color: var(--blue-light); }

  .nav-item { width: 100%; flex-wrap: wrap; justify-content: space-between; }
  .nav-item > a { flex: 1; }
  .nav-caret-btn { display: flex; padding: 14px 4px; }
  .nav-dropdown {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 6px 16px;
  }
  .nav-item.open .nav-dropdown { display: block; }
  .nav-dropdown a { padding: 10px 0; border-bottom: none; font-size: 0.95rem; color: var(--muted); }

  .feature-strip { grid-template-columns: repeat(2, 1fr) !important; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .feature-strip { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr; }
}
