/* =====================================================
   GLOBAL VARIABLES (ENTERPRISE SAFE)
===================================================== */

:root {
  /* Brand */
  --primary-color: #0b5ed7;
  --primary-hover: #0a58ca;
  --accent-gold: #d4b060;

  /* Layout */
  --navbar-height: 80px;

  /* Neutrals */
  --dark-color: #1c1e21;
  --light-color: #ffffff;
  --background-color: #f5f6f8;
  --border-color: #e4e6eb;

  /* Shadows */
  --card-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  --card-hover-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* =====================================================
   BASE / BODY / FOOTER (NO OVERLAP EVER)
===================================================== */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  background-color: var(--background-color);
  font-family: -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--dark-color);

  /* Prevent content under navbar */
  padding-top: var(--navbar-height);
}

.container {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
  background: var(--light-color);
  padding: 2rem 0;
  box-shadow: 0 -1px 4px rgba(0,0,0,0.08);
  text-align: center;
}

/* =====================================================
   NAVBAR (FIXED, STABLE)
===================================================== */

nav.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
}

/* =====================================================
   BUTTONS
===================================================== */

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 500;
  border-radius: 8px;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 8px;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

/* =====================================================
   HERO (HOME ONLY)
===================================================== */

.global-hero {
  position: relative;
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  align-items: center;
  background: url('/assets/images/hero.jpg') center / cover no-repeat;
  color: #ffffff;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.global-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6,10,28,0.92) 0%,
    rgba(6,10,28,0.75) 55%,
    rgba(6,10,28,0.55) 100%
  );
}

.global-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-left: clamp(48px, 8vw, 120px);
  padding-right: 32px;
}

/* =====================================================
   HERO TEXT
===================================================== */

.global-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}

.global-title {
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 20px;
}

.global-title span {
  color: var(--accent-gold);
}

.global-subtitle {
  font-size: 1.15rem;
  max-width: 640px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
}

/* =====================================================
   CTA
===================================================== */

.global-cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.global-btn {
  padding: 16px 38px;
  border-radius: 6px;
  background: var(--accent-gold);
  color: #0b1220;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 40px rgba(212,176,96,0.35);
  transition: all 0.3s ease;
}

.global-btn:hover {
  background: #c29b4a;
  transform: translateY(-2px);
}

/* =====================================================
   METRICS
===================================================== */

.global-metrics {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.global-metrics strong {
  font-size: 1.6rem;
  color: var(--accent-gold);
}

.global-metrics span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* =====================================================
   ANIMATIONS
===================================================== */

.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s ease forwards;
}

.animate-fade-up.delay-1 { animation-delay: 0.15s; }
.animate-fade-up.delay-2 { animation-delay: 0.3s; }
.animate-fade-up.delay-3 { animation-delay: 0.45s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   MOBILE OFFCANVAS MENU (PROFESSIONAL)
===================================================== */

.offcanvas-body {
  padding-top: 1rem;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark-color);
  text-decoration: none;
  border-radius: 10px;

  opacity: 0;
  transform: translateX(-20px);
  animation: slideIn 0.45s ease forwards;
}

/* Stagger animation */
.menu-item:nth-child(1) { animation-delay: 0.05s; }
.menu-item:nth-child(2) { animation-delay: 0.1s; }
.menu-item:nth-child(3) { animation-delay: 0.15s; }
.menu-item:nth-child(4) { animation-delay: 0.2s; }
.menu-item:nth-child(5) { animation-delay: 0.25s; }
.menu-item:nth-child(6) { animation-delay: 0.3s; }

.menu-item:hover {
  background: rgba(11,94,215,0.08);
}

/* Active page */
.menu-item.active {
  background: rgba(11,94,215,0.12);
  font-weight: 600;
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
}

/* CTA / Danger */
.menu-item.danger {
  color: #dc3545;
  font-weight: 600;
}

.menu-item.danger:hover {
  background: rgba(220,53,69,0.1);
}

/* Icons */
.menu-item i {
  font-size: 1.2rem;
  width: 22px;
  text-align: center;
  color: var(--primary-color);
}

.menu-item.active i {
  color: var(--accent-gold);
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {
  :root {
    --navbar-height: 64px;
  }

  body {
    padding-top: var(--navbar-height);
  }

  .global-hero-content {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 100%;
  }

  .global-title {
    font-size: 2.2rem;
  }

  .global-btn {
    width: 100%;
    text-align: center;
  }

  .global-metrics {
    flex-direction: column;
    gap: 20px;
  }

  .global-metrics div {
    border-left: 3px solid var(--accent-gold);
    padding-left: 14px;
  }
}
