/* ═══════════════════════════════════════════════════
   ATLAS PRO ONTV — Layout (Header, Footer, Nav)
   ═══════════════════════════════════════════════════ */

/* ── Header ──────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(6, 11, 24, 0.92);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding: 0.8rem var(--container-padding);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 4.2rem;
  width: auto;
  display: block;
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: var(--fw-extrabold);
  color: var(--color-text-white);
  letter-spacing: -0.02em;
}

.nav__logo-text span {
  color: var(--color-accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  color: var(--color-text-white-muted);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-text-white);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Mobile Toggle */
.nav__mobile-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-md);
  color: var(--color-text-white);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.nav__mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav__hamburger {
  width: 1.2rem;
  height: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: var(--radius-full);
  transition: transform var(--duration-normal) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out);
}

.nav__mobile-toggle.is-active .nav__hamburger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav__mobile-toggle.is-active .nav__hamburger span:nth-child(2) {
  opacity: 0;
}

.nav__mobile-toggle.is-active .nav__hamburger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Menu */
.nav__mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: calc(var(--z-header) - 1);
  background: rgba(11, 7, 30, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-slow) var(--ease-out),
              visibility var(--duration-slow);
}

.nav__mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.nav__mobile-link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  color: var(--color-text-white-muted);
  transition: color var(--duration-fast) var(--ease-out);
  padding: var(--space-sm);
}

.nav__mobile-link:hover,
.nav__mobile-link--active {
  color: var(--color-text-white);
}

.nav__mobile-cta {
  margin-top: var(--space-xl);
}


/* ── Footer ──────────────────────────────────────── */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-white-muted);
  padding-top: var(--space-4xl);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-3xl);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
  padding-bottom: var(--space-3xl);
}

.footer__brand-description {
  font-size: var(--fs-small);
  line-height: 1.7;
  margin-top: var(--space-md);
  color: var(--color-text-white-muted);
  max-width: 320px;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: var(--color-text-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: var(--fs-small);
  color: var(--color-text-white-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__link:hover {
  color: var(--color-text-white);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  margin-bottom: var(--space-sm);
}

.footer__contact-item svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--color-primary-light);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-lg) var(--container-padding);
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copyright {
  font-size: var(--fs-xs);
  color: var(--color-text-white-muted);
}

.footer__payment {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer__payment-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.2rem;
  width: auto;
  opacity: 0.9;
  transition: opacity var(--duration-fast) var(--ease-out), transform 0.2s ease;
  border-radius: 6px;
  overflow: hidden;
}

.footer__payment-item:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer__payment-item svg,
.footer__payment-item img {
  height: 100%;
  width: auto;
  max-width: 4rem;
  border-radius: 6px;
}

.footer__legal {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer__legal-link {
  font-size: var(--fs-xs);
  color: var(--color-text-white-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__legal-link:hover {
  color: var(--color-text-white);
}


/* ── WhatsApp Float ──────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: var(--z-whatsapp);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #1ebe5d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-whatsapp);
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
  border: none;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.55);
}

.whatsapp-float__icon {
  width: 1.8rem;
  height: 1.8rem;
  fill: #ffffff;
}

/* WhatsApp Chat Popup */
.whatsapp-popup {
  position: fixed;
  right: 1.5rem;
  bottom: 5.8rem;
  z-index: calc(var(--z-whatsapp) + 1);
  width: min(22rem, calc(100vw - 2rem));
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: #ece5dd;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(18, 140, 126, 0.18);
  transform-origin: bottom right;
  animation: whatsappPopIn 0.25s var(--ease-out) both;
}

.whatsapp-popup[hidden] {
  display: none;
}

@keyframes whatsappPopIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.whatsapp-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, #128c7e 0%, #1fae62 100%);
  color: #ffffff;
}

.whatsapp-popup__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.whatsapp-popup__avatar {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.whatsapp-popup__avatar svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.whatsapp-popup__name {
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
}

.whatsapp-popup__status {
  font-size: var(--fs-xs);
  opacity: 0.85;
}

.whatsapp-popup__close {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  transition: background var(--duration-fast) var(--ease-out);
}

.whatsapp-popup__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.whatsapp-popup__body {
  padding: 1rem;
  background: linear-gradient(180deg, #efe7dd 0%, #e7dfd4 100%);
}

.whatsapp-popup__bubble {
  background: #ffffff;
  border-radius: 1rem 1rem 1rem 0.3rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  font-size: var(--fs-small);
  color: #1f2630;
  line-height: 1.55;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.whatsapp-popup__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.8rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #25d366 0%, #1ebe5d 100%);
  color: #ffffff;
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.whatsapp-popup__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.35);
}


/* ── Page Hero (inner pages) ─────────────────────── */
.page-hero {
  background: var(--gradient-hero);
  padding: clamp(6rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 50%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  color: var(--color-text-white);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.page-hero p {
  color: var(--color-text-white-muted);
  font-size: var(--fs-body-lg);
  max-width: 600px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.page-hero .breadcrumb {
  position: relative;
  z-index: 1;
}

/* ── Breadcrumb ──────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-size: var(--fs-xs);
  color: var(--color-text-white-muted);
  margin-bottom: var(--space-xl);
}

.breadcrumb a {
  color: var(--color-text-white-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.breadcrumb a:hover {
  color: var(--color-text-white);
}

.breadcrumb__separator {
  color: rgba(255, 255, 255, 0.3);
}


/* ═══════════════════════════════════════════════════
   RESPONSIVE — Mobile First Overrides
   ═══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .nav__links {
    display: none;
  }

  .nav__right .btn {
    display: none;
  }

  .nav__mobile-toggle {
    display: flex;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .nav__mobile-menu {
    z-index: 999;
  }
  
  .nav__mobile-toggle {
    z-index: 1000;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
  }

  .whatsapp-float__icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .whatsapp-popup {
    right: 0.75rem;
    bottom: 4.8rem;
    left: 0.75rem;
    width: auto;
  }
}
