/* ===================================
   APEX SECURITY GUARDS - SHARED STYLES
   Powered by Owl Web Works
   =================================== */

:root {
  --navy: #0A0E27;
  --navy-soft: #151A3D;
  --cobalt: #2563EB;
  --cobalt-bright: #3B82F6;
  --amber: #F59E0B;
  --amber-soft: #FCD34D;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-600: #475569;
  --gray-800: #1E293B;
  --emerald: #10B981;
  --red: #EF4444;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--navy);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: var(--white);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s;
}
.nav-logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-mark {
  width: 32px; height: 32px;
  background: var(--cobalt);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}
.nav-links {
  display: flex; gap: 36px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-cta-secondary {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-cta-secondary:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}
.nav-cta-primary {
  background: var(--white);
  color: var(--navy);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.nav-cta-primary:hover {
  background: var(--amber);
  transform: translateY(-1px);
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--white);
  color: var(--navy);
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.3);
}
.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
}
.btn-dark {
  background: var(--navy);
  color: var(--white);
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-dark:hover {
  background: var(--cobalt);
  transform: translateY(-2px);
}

/* ===== SECTIONS GENERIC ===== */
section { padding: 100px 48px; position: relative; }
.container { max-width: 1280px; margin: 0 auto; }
.container-narrow { max-width: 800px; margin: 0 auto; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cobalt);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--cobalt);
}
.eyebrow.center {
  justify-content: center;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 720px;
}
.section-title em { font-style: italic; color: var(--cobalt); }
.section-title.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-lede {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 640px;
  line-height: 1.6;
}
.section-lede.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ===== PAGE HEADER (smaller hero for inner pages) ===== */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 160px 48px 80px;
  position: relative;
  overflow: hidden;
}
.page-header-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.2), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.1), transparent 50%);
  pointer-events: none;
}
.page-header-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.page-header-inner {
  max-width: 1280px; margin: 0 auto; position: relative;
}
.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
  display: flex; gap: 8px; align-items: center;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb-sep { color: rgba(255,255,255,0.3); }
.page-header h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  max-width: 900px;
}
.page-header h1 em {
  font-style: italic;
  color: var(--amber-soft);
}
.page-header p.lede {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  max-width: 640px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 80px 48px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 56px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 320px;
}
.footer h5 {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; font-size: 14px; }
.footer ul li a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.footer-bottom .credit { color: rgba(255,255,255,0.4); }
.footer-bottom .credit strong { color: var(--amber); font-weight: 500; }
.footer-bottom .credit a:hover { color: var(--amber-soft); }

/* ===== ANIMATIONS ===== */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { padding: 14px 20px; }
  section, .page-header { padding-left: 20px; padding-right: 20px; }
  .page-header { padding-top: 120px; padding-bottom: 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}
/* ===================================
   MOBILE NAVIGATION HAMBURGER
   Append to apex.css
   =================================== */

/* Hamburger button - hidden on desktop */
.nav-hamburger {
  display: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  width: 40px; height: 40px;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  padding: 0;
  transition: all 0.2s;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.14); }
.nav-hamburger-bar {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  transform: translateX(-50%);
  transition: all 0.3s;
}
.nav-hamburger-bar:nth-child(1) { top: 14px; }
.nav-hamburger-bar:nth-child(2) { top: 19.25px; }
.nav-hamburger-bar:nth-child(3) { top: 24.5px; }
.nav-hamburger.active .nav-hamburger-bar:nth-child(1) {
  top: 19.25px; transform: translateX(-50%) rotate(45deg);
}
.nav-hamburger.active .nav-hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active .nav-hamburger-bar:nth-child(3) {
  top: 19.25px; transform: translateX(-50%) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 99;
  padding: 100px 32px 40px;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-menu.active { transform: translateY(0); }
.mobile-menu a {
  display: block;
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--white);
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--amber); }
.mobile-menu-cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-menu-cta .btn-primary,
.mobile-menu-cta .btn-secondary {
  justify-content: center;
  width: 100%;
}
.mobile-menu-contact {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.mobile-menu-contact a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--amber);
  display: inline;
  padding: 0;
  border: none;
}

@media (max-width: 1024px) {
  .nav-hamburger { display: block; }
  .nav-cta .nav-cta-secondary { display: none; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 640px) {
  .nav-cta .nav-cta-primary {
    padding: 8px 14px;
    font-size: 13px;
  }
}
