/* ============================================
   HEADER & NAVIGATION CSS
============================================ */

/* ===== ROOT VARIABLES (assumed globally) ===== */
/*
:root {
  --primary-dark: #0a1931;
  --accent-cyan: #00d4ff;
  --neutral-light: #ffffff;
  --gradient-accent: linear-gradient(90deg, #00d4ff, #4facfe);
  --shadow-medium: 0 10px 30px rgba(0,0,0,0.25);
}
*/

/* ================= HEADER ================= */

.corporate-header {
  background: var(--primary-dark);
  padding: 18px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow-medium);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ================= LOGO ================= */

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.corporate-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 28px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.logo-link {
  text-decoration: none;
}

.logo-tagline {
  font-size: 12px;
  color: var(--accent-cyan);
  font-weight: 500;
  letter-spacing: 1px;
  padding-left: 15px;
  border-left: 1px solid rgba(0, 212, 255, 0.3);
}

/* ================= DESKTOP NAV ================= */

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  color: var(--neutral-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 8px 0;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ================= CTA ICONS ================= */

.header-whatsapp,
.header-email {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.header-whatsapp:hover {
  background: #1ebe5d;
}

.header-email:hover {
  background: #13388e;
}

/* ================= MOBILE MENU BUTTON ================= */

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1201;
}

.mobile-menu-btn span {
  width: 26px;
  height: 2px;
  background: #ffffff;
  transition: all 0.35s ease;
}

/* Hamburger → Cross */
.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ================= MOBILE NAV DRAWER ================= */

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  background: linear-gradient(180deg, #0A1931, #1A3A6C);
  padding: 100px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;

  overflow-y: auto;                  /* ✅ FIX: allows Email to appear */
  -webkit-overflow-scrolling: touch;

  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1200;
}

.mobile-nav.active {
  transform: translateX(0);
}

/* ================= MOBILE NAV LINKS ================= */

.mobile-nav a {
  position: relative;
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    background 0.3s ease,
    color 0.3s ease;
  border-radius: 8px;
}

.mobile-nav.active a {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav a:hover {
  background: rgba(0, 212, 255, 0.08);
  color: var(--accent-cyan);
}

/* ================= ACTIVE MOBILE LINK ================= */

.mobile-nav a.active {
  background: linear-gradient(
    90deg,
    rgba(0, 212, 255, 0.18),
    rgba(0, 212, 255, 0.05)
  );
  color: var(--accent-cyan);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.35);
}

/* Left accent bar */
.mobile-nav a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 60%;
  background: var(--accent-cyan);
  border-radius: 4px;
  transform: translateY(-50%);
}

/* Soft glow */
.mobile-nav a.active::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.35);
  opacity: 0.4;
  pointer-events: none;
}

/* ================= MOBILE CLOSE (X) ================= */

.mobile-nav-close {
  position: absolute;
  top: 22px;
  right: 40px;
  font-size: 28px;
  color: #ffffff;
  cursor: pointer;
  z-index: 1300;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
}

/* ================= FIX: SHOW EMAIL IN MOBILE NAV ================= */

@media (max-width: 576px) {
  .mobile-nav .header-email {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 18px;
    padding: 12px 20px;
  }
}

/* === Logo image before text (no style change) === */

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo {
  height: 36px;
  width: auto;
  display: block;
}
