/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: all 0.35s ease;
}

.header--transparent {
  background: transparent;
}

.header--solid {
  background: rgba(15, 42, 110, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.logo img {
  height: 58px;
  width: auto;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.logo-text {
  line-height: 1.1;
}

.logo-sub {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 1px;
}

/* Desktop Nav */
.nav {
  display: none;
  align-items: center;
  gap: 2px;
}

@media (min-width: 1024px) {
  .nav { display: flex; }
}

.nav a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.25s;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* Mega Menu */
.nav-services {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 780px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 32px;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  z-index: 100;
  border: 1px solid var(--gray-100);
}

.mega-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--white);
  border-left: 1px solid var(--gray-100);
  border-top: 1px solid var(--gray-100);
  transform: translateX(-50%) rotate(45deg);
}

.nav-services:hover .mega-menu {
  display: grid;
}

.mega-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  margin-bottom: 14px;
  font-family: var(--font-display);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-100);
}

.mega-col a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-600);
  font-size: 13.5px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  margin: 0 -10px;
}

.mega-col a:hover {
  color: var(--navy);
  background: var(--gray-50);
}

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-right .nav-cta {
  display: none;
}

@media (min-width: 1024px) {
  .nav-right .nav-cta { display: inline-flex; }
}

@media (max-width: 480px) {
  .logo img { height: 56px; }
}

/* Mobile Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 1024px) {
  .mobile-toggle { display: none; }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 42, 110, 0.98);
  backdrop-filter: blur(16px);
  display: none;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
  z-index: 999;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: #fff;
  font-size: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 500;
}

.mobile-menu .btn {
  margin-top: 16px;
  width: 100%;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.3s;
  color: #fff;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
}

/* Mobile floating CTA */
.floating-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: none;
  gap: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
}

.floating-mobile-cta a {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}

.floating-mobile-cta a:first-child {
  background: var(--blue);
}

.floating-mobile-cta a:last-child {
  background: #25D366;
}

@media (max-width: 767px) {
  .floating-mobile-cta { display: flex; }
  .floating-whatsapp { display: none; }
  body { padding-bottom: 50px; }
}
