/* ============================================================
   ZETRA TRAINING — GLOBAL DESIGN SYSTEM
   Fortune 500 Grade | Public Safety & Compliance Training
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Barlow:wght@300;400;500;600;700;800;900&family=Barlow+Condensed:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #0D1B3E;
  --navy-dark: #07112A;
  --navy-mid: #112248;
  --gold: #B8962E;
  --gold-light: #D4AF50;
  --gold-pale: #F0DFA0;
  --gold-dim: rgba(184,150,46,0.15);
  --white: #FFFFFF;
  --off-white: #F4F2EE;
  --grey-light: #E8E5DF;
  --grey-mid: #9A9590;
  --grey-dark: #3A3835;
  --text-primary: #0D1B3E;
  --text-body: #2C2A27;
  --text-muted: #6E6B65;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Barlow', sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 12px rgba(13,27,62,0.08);
  --shadow-md: 0 8px 40px rgba(13,27,62,0.14);
  --shadow-lg: 0 20px 80px rgba(13,27,62,0.2);
  --shadow-gold: 0 8px 40px rgba(184,150,46,0.25);
  --max-width: 1320px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.overline {
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── LAYOUT ─── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

section { position: relative; }

/* ─── NAVIGATION ─── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 0;
}

#nav.scrolled {
  background: rgba(7,17,42,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(184,150,46,0.2);
  box-shadow: var(--shadow-lg);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo-text .wordmark {
  font-family: var(--font-condensed);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--white);
}

.nav-logo-text .tagline {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: block;
  padding: 28px 18px;
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
  position: relative;
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--white);
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
  width: calc(100% - 36px);
}

/* Dropdown */
.nav-links li.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--navy-dark);
  border: 1px solid rgba(184,150,46,0.25);
  border-top: 2px solid var(--gold);
  min-width: 240px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.dropdown a {
  display: block;
  padding: 12px 24px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
  transition: var(--transition);
  border-left: 2px solid transparent;
}

.dropdown a:hover {
  color: var(--gold-light);
  background: rgba(184,150,46,0.08);
  border-left-color: var(--gold);
  padding-left: 28px;
}

.nav-cta {
  margin-left: 20px;
  padding: 12px 24px !important;
  background: var(--gold) !important;
  color: var(--navy-dark) !important;
  font-weight: 700 !important;
  border: none;
  letter-spacing: 0.1em !important;
}

.nav-cta:hover { background: var(--gold-light) !important; }
.nav-cta::after { display: none !important; }

/* Mobile nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy-dark);
    padding: 40px 20px;
    overflow-y: auto;
    gap: 0;
  }
  
  .nav-links.open > li > a {
    padding: 16px 20px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--gold);
    margin-left: 20px;
    background: rgba(184,150,46,0.05);
  }
  
  .nav-cta { margin: 20px 0 0; text-align: center; }
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-condensed);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.btn:hover::before { transform: translateX(0); }

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--navy-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-arrow::after {
  content: '→';
  font-size: 1rem;
  font-weight: 400;
  transition: transform 0.3s ease;
}

.btn-arrow:hover::after { transform: translateX(4px); }

/* ─── SECTION HEADERS ─── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 { color: var(--text-primary); }
.section-header p {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── GOLD DIVIDER ─── */
.gold-line {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 20px auto 24px;
}

.gold-line-left {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 16px 0 20px;
}

/* ─── STAT NUMBERS ─── */
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  padding: 40px;
  transition: var(--transition);
  position: relative;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--gold);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--navy-dark);
  border-top: 1px solid rgba(184,150,46,0.2);
  border-bottom: 1px solid rgba(184,150,46,0.2);
  padding: 20px 40px;
  overflow: hidden;
}

.trust-track {
  display: flex;
  gap: 60px;
  animation: scrollTrack 30s linear infinite;
  width: max-content;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}

.trust-item span.dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  flex-shrink: 0;
  border-radius: 50%;
}

@keyframes scrollTrack {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── PAGE HERO ─── */
.page-hero {
  background: var(--navy-dark);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(184,150,46,0.12) 0%, transparent 70%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero h1 { color: var(--white); }
.page-hero .overline { color: var(--gold-light); }

/* ─── FOOTER ─── */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
}

.footer-main {
  padding: 80px 0 60px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}

.footer-brand .wordmark {
  font-family: var(--font-condensed);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-brand .sub {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 300px;
}

.footer-col h5 {
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.footer-badges {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.badge {
  padding: 5px 12px;
  border: 1px solid rgba(184,150,46,0.3);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .nav-inner { padding: 0 20px; }
}

/* ─── ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }

/* ─── UTILITIES ─── */
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.text-muted { color: var(--text-muted); }
.bg-navy { background: var(--navy); }
.bg-navy-dark { background: var(--navy-dark); }
.bg-off-white { background: var(--off-white); }
.bg-white { background: var(--white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}

/* ─── VIDEO BACKGROUND ─── */
.video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7,17,42,0.92) 0%, rgba(13,27,62,0.85) 50%, rgba(7,17,42,0.92) 100%);
  z-index: 1;
}

/* ─── MODULE TABLE ─── */
.module-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.module-table th {
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 16px 20px;
  border-bottom: 2px solid var(--gold);
  text-align: left;
  background: rgba(184,150,46,0.05);
}

.module-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--grey-light);
  color: var(--text-body);
  vertical-align: middle;
}

.module-table tr:hover td { background: rgba(184,150,46,0.03); }

.module-number {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
}

.module-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid;
  margin: 2px;
}

.tag-cops { border-color: #2E6BA8; color: #2E6BA8; }
.tag-bja { border-color: #4A8E3F; color: #4A8E3F; }
.tag-jag { border-color: #8B4513; color: #8B4513; }
.tag-t6 { border-color: var(--gold); color: var(--gold); }

/* ─── ACCORDION ─── */
.accordion-item {
  border-bottom: 1px solid var(--grey-light);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  gap: 20px;
}

.accordion-trigger .icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--gold);
  transition: var(--transition);
}

.accordion-trigger.open .icon { transform: rotate(45deg); }
.accordion-content { display: none; padding: 0 0 28px; }
.accordion-content.open { display: block; }
.accordion-content p { color: var(--text-muted); line-height: 1.8; }

/* ─── CONTACT FORM ─── */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--off-white);
  border: 1px solid var(--grey-light);
  border-radius: 0;
  color: var(--text-primary);
  transition: var(--transition);
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(184,150,46,0.1);
}

.form-group textarea { min-height: 140px; resize: vertical; }

/* ─── SCROLL REVEAL ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.7s ease forwards;
}

/* ─── LOGO IMAGE FALLBACK ─── */
.nav-logo img {
  background: rgba(184,150,46,0.1);
  border-radius: 2px;
}

/* If logo image fails to load, show a Z placeholder */
.nav-logo img:not([src]), .nav-logo img[src=""] {
  visibility: hidden;
  width: 0;
}
