/* Landing Header styles */
.landing-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  backdrop-filter: blur(0px);
  box-shadow: none;
  transition: all 0.4s ease;
  z-index: 1000;
}

.landing-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.landing-header-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  width: 100%;
  background: transparent !important;
}

.landing-header-brand-logo {
  flex-shrink: 0;
  order: 1;
}

.landing-header-brand-logo img {
  height: clamp(60px, 8vw, 65px);
  width: auto;
}

.landing-header-brand-logo .logo-transparent {
  display: none;
}

.landing-header-brand-logo .logo-scrolled {
  display: block;
}

.landing-header.scrolled .landing-header-brand-logo .logo-transparent {
  display: none;
}

.landing-header.scrolled .landing-header-brand-logo .logo-scrolled {
  display: block;
}

.landing-header-nav-menu {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex: 1;
  justify-content: flex-end;
  order: 2;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: #1a1a2e;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

.landing-header.scrolled .nav-link {
  color: var(--text-color);
}

.nav-links .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width 0.3s ease;
}

.landing-header.scrolled .nav-links .nav-link::after {
  background: var(--primary-blue);
}

.nav-link:hover {
  color: var(--primary-blue);
}

.landing-header.scrolled .nav-link:hover {
  color: var(--primary-blue);
}

.nav-links .nav-link:hover::after {
  width: 100%;
}

.landing-header-nav-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.landing-btn-contact,
.landing-btn-login {
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  white-space: nowrap;
}

.landing-btn-contact {
  background: var(--primary-red);
  color: white;
}

.landing-btn-contact:hover {
  background: var(--dark-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(238, 28, 37, 0.4);
  color: white;
}

.landing-btn-login {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.landing-btn-login:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
}

.landing-header.scrolled .landing-btn-login {
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.landing-header.scrolled .landing-btn-login:hover {
  background: var(--primary-blue);
  color: white;
}

/* ========== MOBILE TOGGLE ========== */
.landing-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  order: 3;
  z-index: 1002;
  position: relative;
}

.landing-mobile-toggle span {
  width: 24px;
  height: 2.5px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.landing-header.scrolled .landing-mobile-toggle span {
  background: var(--primary-blue);
}

/* When overlay is open, hamburger stays white (on dark overlay) */
.landing-mobile-toggle.active span {
  background: white !important;
}

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

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

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

/* ========== FULL-SCREEN OVERLAY ========== */
.landing-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 0.25s;
}

.landing-overlay.active {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s linear 0s;
}

.landing-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1a2a4a 0%, #0d1b33 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.landing-overlay.active .landing-overlay__backdrop {
  opacity: 1;
}

.landing-overlay__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 3rem;
  padding: 6rem 2rem 4rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0s, transform 0s;
}

.landing-overlay.active .landing-overlay__content {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0.1s, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

/* ========== OVERLAY NAV LINKS ========== */
.landing-overlay__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.landing-overlay__link {
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
}

.landing-overlay__link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

/* ========== OVERLAY CTA BUTTONS ========== */
.landing-overlay__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  width: 100%;
  max-width: 260px;
}

.landing-overlay__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.landing-overlay__btn--primary {
  background: var(--primary-red);
  color: white;
}

.landing-overlay__btn--primary:hover {
  background: var(--dark-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(238, 28, 37, 0.3);
  color: white;
}

.landing-overlay__btn--outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.landing-overlay__btn--outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

/* When overlay is open, keep header transparent and above overlay */
.landing-header.overlay-open {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  z-index: 1002;
}

.landing-header.overlay-open .landing-header-brand-logo .logo-transparent {
  display: block !important;
}

.landing-header.overlay-open .landing-header-brand-logo .logo-scrolled {
  display: none !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .landing-header-nav-menu {
    display: none;
  }

  .landing-mobile-toggle {
    display: flex;
  }
}