/* ============================================================
   AGADIR NOMAD TRIPS — new footer 2026 (nx-footer)
   Fresh footer UX. Mounted by footer-2026.js into #siteFooter(.ae-footer).
   Hooks that must stay: [data-brand-*] [data-footer-year]
   ============================================================ */
.ae-footer {
  --nx-blue: #0B4BAF;
  --nx-blue-deep: #073B8C;
  --nx-blue-ink: #062F70;
  --nx-orange: #F79426;
  --nx-orange-dark: #E97818;
  --nx-orange-soft: #FFAE45;
  --nx-ink: #172333;
  --nx-line: rgba(255, 255, 255, .14);
  --nx-text: #FFFFFF;
  --nx-muted: #C3D2E8;
  --nx-link: #9CC6FF;
  --nx-link-hover: #FFFFFF;
  position: relative;
  margin-top: 0;
  color: var(--nx-text);
  background: linear-gradient(180deg, #0B4BAF 0%, #073B8C 34%, #062F70 100%);
  font-family: var(--font-ui, "Poppins", system-ui, sans-serif);
  overflow: hidden;
}
.ae-footer,
.ae-footer * { box-sizing: border-box; }
.ae-footer a { color: inherit; text-decoration: none; }
.ae-footer a:focus-visible,
.ae-footer button:focus-visible {
  outline: 3px solid var(--nx-orange-soft);
  outline-offset: 3px;
}

/* decorative glow */
.nx-footer__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 260px at 12% -40px, rgba(23, 103, 201, .55), transparent 70%),
    radial-gradient(480px 240px at 88% 8%, rgba(247, 148, 38, .16), transparent 70%);
}
.nx-footer__container {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

/* ---------- main grid ---------- */
.nx-footer__main {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr 1.25fr;
  gap: clamp(26px, 3vw, 48px);
  padding: 84px 0 40px;
}
.nx-footer__brand-logo {
  display: inline-block;
  background: none;
  border-radius: 18px;
  margin-bottom: 14px;
}
.nx-footer__brand-logo img {
  display: block;
  height: auto;
  width: 148px;
  max-width: 100%;
  object-fit: contain;
}
.nx-footer__brand-copy {
  margin: 0 0 18px;
  max-width: 34ch;
  color: var(--nx-muted);
  font-size: .88rem;
  line-height: 1.7;
}
.nx-footer__rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: .78rem;
  font-weight: 700;
}
.nx-footer__rating i { color: var(--nx-orange-soft); }
a.nx-footer__rating { color: inherit; text-decoration: none; transition: background-color 180ms ease, border-color 180ms ease; }
a.nx-footer__rating:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .32); }
.nx-footer__socials { display: flex; gap: 10px; }
.nx-footer__socials a {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 1rem;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.nx-footer__socials a:hover {
  background: linear-gradient(135deg, var(--nx-orange), var(--nx-orange-dark));
  border-color: transparent;
  transform: translateY(-3px);
}

.nx-footer__heading {
  margin: 0 0 18px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--nx-orange-soft);
}
.nx-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nx-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 7px 0;
  color: var(--nx-link);
  font-size: .9rem;
  transition: color 150ms ease, gap 180ms ease;
}
.nx-footer__links a:visited { color: var(--nx-link); }
.nx-footer__links a::before {
  content: "";
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--nx-orange);
  transition: width 180ms ease;
}
.nx-footer__links a:hover { color: var(--nx-link-hover); gap: 8px; }
.nx-footer__links a:hover::before { width: 14px; }

/* contact card */
.nx-footer__contact-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  padding: 22px;
  backdrop-filter: blur(6px);
}
.nx-footer__contact-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 14px; }
.nx-footer__contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.nx-footer__contact-list i {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(247, 148, 38, .18);
  color: var(--nx-orange-soft);
  font-size: .85rem;
}
.nx-footer__contact-list span, .nx-footer__contact-list a { font-size: .86rem; line-height: 1.55; color: #EDF3FC; }
.nx-footer__contact-list a:hover { color: var(--nx-orange-soft); }
.nx-footer__contact-list small { display: block; color: var(--nx-muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.nx-footer__whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--nx-orange), var(--nx-orange-dark));
  color: #fff !important;
  font-weight: 800;
  font-size: .9rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .3);
  transition: transform 160ms ease, filter 160ms ease;
}
.nx-footer__whatsapp:hover { filter: brightness(1.06); transform: translateY(-2px); }

/* ---------- partners marquee ---------- */
.nx-footer__partners { position: relative; border-top: 1px solid var(--nx-line); padding: 26px 0; overflow: hidden; }
.nx-footer__partners-kicker {
  margin: 0 0 30px;
  text-align: center;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--nx-muted);
}
.nx-footer__marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.nx-footer__track { display: flex; align-items: center; gap: 56px; width: max-content; animation: nx-marquee 30s linear infinite; }
.nx-footer__marquee:hover .nx-footer__track { animation-play-state: paused; }
@keyframes nx-marquee { to { transform: translateX(calc(-50% - 28px)); } }
.nx-footer__partner {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 6px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  font-weight: 800;
  font-size: .82rem;
  color: var(--nx-blue-deep);
  letter-spacing: .04em;
  white-space: nowrap;
}
.nx-footer__partner img { height: 26px; width: auto; object-fit: contain; }
.nx-footer__partner--text i { margin-right: 8px; color: var(--nx-orange-dark); }

/* ---------- bottom bar ---------- */
.nx-footer__bottom { position: relative; border-top: 1px solid var(--nx-line); background: rgba(0, 0, 0, .18); }
.nx-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  flex-wrap: wrap;
  padding: 20px 0;
  font-size: .8rem;
  color: var(--nx-muted);
}
.nx-footer__bottom-inner p { margin: 0; }
.nx-footer__bottom-inner p strong { color: #fff; }
.nx-footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.nx-footer__legal a:hover { color: var(--nx-orange-soft); }
.nx-footer__agency { display: inline-flex; align-items: center; gap: 9px; }
.nx-footer__agency img { height: 26px; width: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nx-footer__main { grid-template-columns: 1fr 1fr; padding: 46px 0 34px; }
  .nx-footer__brand-cell { grid-column: 1 / -1; }
  .nx-footer__contact-cell { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .nx-footer__main { grid-template-columns: 1fr; gap: 30px; }
  .nx-footer__bottom-inner { justify-content: center; text-align: center; }
  .nx-footer__track { animation-duration: 20s; gap: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-footer__track { animation: none; }
  .ae-footer *, .ae-footer *::before, .ae-footer *::after { transition: none !important; }
}

/* ---------- shield ----------
   Product/managed pages load page-level link rules after this file
   (e.g. managed-tour.css `.mt-page a { color: var(--mt-blue) }`), which
   at equal specificity recolors footer links to dark blue on the navy
   footer. These higher-specificity rules win regardless of load order. */
.ae-footer a.nx-footer__rating { color: inherit; }
.ae-footer .nx-footer__links a { color: var(--nx-link); }
.ae-footer .nx-footer__links a:visited { color: var(--nx-link); }
.ae-footer .nx-footer__links a:hover { color: var(--nx-link-hover); }
.ae-footer .nx-footer__contact-list span,
.ae-footer .nx-footer__contact-list a { color: #EDF3FC; }
.ae-footer .nx-footer__contact-list a:hover { color: var(--nx-orange-soft, #FFAE45); }
.ae-footer .nx-footer__socials a { color: #fff; }
.ae-footer .nx-footer__legal a { color: var(--nx-muted, #C3D2E8); }
.ae-footer .nx-footer__legal a:hover { color: var(--nx-orange-soft, #FFAE45); }
