/* Moorish Lands — Premium footer (architecture from Snowevo v201, ML brand tokens) */
/* ecosystem brands: single-row layout */

.site-footer-premium {
  --ml-footer-bg: #081221;
  --ml-footer-navy: #0a1228;
  --ml-footer-teal: #1f5f6b;
  --ml-footer-gold: #c8a96a;
  --ml-footer-ivory: #f8f5ef;
  --ml-footer-muted: rgba(248, 245, 239, 0.68);
  position: relative;
  background: linear-gradient(180deg, var(--ml-footer-navy) 0%, var(--ml-footer-bg) 38%, var(--ml-footer-bg) 100%) !important;
  color: var(--ml-footer-ivory);
  padding: clamp(4.5rem, 8vw, 5.625rem) 0 2.375rem !important;
  border-top: none;
  overflow: hidden;
}

.site-footer-premium img { width: auto; }

.site-footer-premium .footer-premium-logo img {
  width: 4.5rem;
  height: 4.5rem;
  display: block;
  object-fit: contain;
}

.site-footer-premium .footer-observer-badge { display: flex; }

.site-footer-premium .footer-nav-col ul a,
.site-footer-premium .footer-contact-list a,
.site-footer-premium .footer-legal-links a { display: inline-flex; }

.footer-premium-topline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 169, 106, 0.45), transparent);
}

.footer-premium-inner {
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-ecosystem-brands {
  --ml-footer-bg: #081221;
  --ml-footer-navy: #0a1228;
  --ml-footer-ivory: #f8f5ef;
  background: linear-gradient(180deg, var(--ml-footer-navy) 0%, var(--ml-footer-bg) 100%);
  color: var(--ml-footer-ivory);
  padding: clamp(2.75rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid rgba(31, 95, 107, 0.28);
}

.site-ecosystem-brands__inner {
  --eco-card-width: 8.25rem;
  --eco-gap: 0.75rem;
  --eco-peek: 0.3;
  --eco-full-visible: 7;
  --eco-viewport-width: calc(
    (var(--eco-full-visible) + var(--eco-peek)) * (var(--eco-card-width) + var(--eco-gap)) - var(--eco-gap)
  );
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.footer-ecosystem-logos-viewport {
  position: relative;
  width: min(100%, var(--eco-viewport-width));
  margin-inline: auto;
}

.footer-ecosystem-logos-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 3.5rem;
  height: calc(4.125rem + 1.75rem);
  background: linear-gradient(to right, transparent, var(--ml-footer-bg));
  pointer-events: none;
  z-index: 1;
}

.site-ecosystem-brands img {
  width: auto;
}

.footer-premium-main {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) 1.35fr;
  grid-template-rows: auto auto;
  gap: 1rem 3.5rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(31, 95, 107, 0.28);
}

.footer-premium-intro {
  grid-column: 1;
  grid-row: 1;
}

.footer-trust-pills {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 430px;
}

.footer-premium-logo {
  display: inline-block;
  margin-bottom: 1.125rem;
}

.footer-premium-about {
  max-width: 430px;
  margin: 0 0 0.85rem;
  color: var(--ml-footer-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.footer-premium-about-link {
  display: inline-block;
  margin: 0;
  color: var(--ml-footer-gold);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-premium-about-link:hover {
  color: var(--ml-footer-ivory);
  transform: translateX(2px);
}

.footer-trust-pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.44rem 0.75rem;
  border: 1px solid rgba(248, 245, 239, 0.14);
  border-radius: 999px;
  background: rgba(248, 245, 239, 0.04);
  color: rgba(248, 245, 239, 0.82);
  font-size: 0.72rem;
  line-height: 1.2;
}

.footer-trust-icon {
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  color: var(--ml-footer-gold);
  flex-shrink: 0;
}

.footer-trust-icon svg {
  width: 0.85rem;
  height: 0.85rem;
  display: block;
}

.footer-premium-columns {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
}

.footer-nav-col h4,
.footer-ecosystem-strip h4 {
  margin: 0 0 0.875rem;
  color: var(--ml-footer-ivory);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-nav-col ul,
.footer-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav-col li { margin: 0 0 0.625rem; }

.footer-nav-col a,
.footer-contact-list a,
.footer-contact-list li {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.44rem;
  color: var(--ml-footer-muted);
  font-size: 0.875rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-nav-col a:hover,
.footer-contact-list a:hover {
  color: var(--ml-footer-gold);
  transform: translateX(2px);
}

.footer-contact-icon {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  color: var(--ml-footer-gold);
}

.footer-contact-icon svg {
  width: 0.9rem;
  height: 0.9rem;
  display: block;
}

.site-footer-premium .footer-observer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 2.125rem auto 0;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-footer-premium .footer-observer-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.footer-observer-badge-logo {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  display: block;
}

.footer-ecosystem-strip {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  text-align: center;
}

.footer-ecosystem-strip h4 {
  margin-bottom: 1.125rem;
  color: rgba(248, 245, 239, 0.82);
}

.footer-ecosystem-logos {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: var(--eco-gap, 0.75rem);
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.125rem;
  padding: 0 0 0.4rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(248, 245, 239, 0.16) transparent;
}

.footer-ecosystem-logos::-webkit-scrollbar {
  height: 3px;
}

.footer-ecosystem-logos::-webkit-scrollbar-thumb {
  background: rgba(248, 245, 239, 0.16);
  border-radius: 999px;
}

.footer-eco-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4375rem;
  flex: 0 0 var(--eco-card-width, 8.25rem);
  width: var(--eco-card-width, 8.25rem);
  min-width: var(--eco-card-width, 8.25rem);
  scroll-snap-align: start;
}

.footer-eco-brand--active .footer-eco-brand-name {
  color: rgba(200, 169, 106, 0.95);
}

.footer-eco-brand-fact {
  width: 100%;
  text-align: center;
}

.footer-eco-brand-fact summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.footer-eco-brand-fact summary::-webkit-details-marker {
  display: none;
}

.footer-eco-brand-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(248, 245, 239, 0.76);
  transition: color 0.2s ease;
}

.footer-eco-brand-name::after {
  content: "";
  width: 0.3125rem;
  height: 0.3125rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.55;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-eco-brand-fact[open] .footer-eco-brand-name {
  color: rgba(200, 169, 106, 0.92);
}

.footer-eco-brand-fact[open] .footer-eco-brand-name::after {
  transform: rotate(-135deg) translateY(1px);
  opacity: 0.85;
}

.footer-eco-brand-fact summary:hover .footer-eco-brand-name,
.footer-eco-brand-fact summary:focus-visible .footer-eco-brand-name {
  color: rgba(248, 245, 239, 0.94);
}

.footer-eco-brand-fact p {
  margin: 0.3125rem 0 0;
  padding: 0 0.125rem;
  font-size: 0.625rem;
  line-height: 1.4;
  color: rgba(248, 245, 239, 0.58);
}

.footer-eco-logo {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: 4.125rem;
  aspect-ratio: 2 / 1;
  padding: 0.1875rem;
  border-radius: var(--ml-card-radius);
  overflow: hidden;
  background: #06080c;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-eco-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.94;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.footer-eco-logo:hover {
  border-color: rgba(200, 169, 106, 0.34);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.footer-eco-logo:hover img {
  opacity: 1;
  transform: scale(1.03);
}

.footer-eco-logo--active {
  border-color: rgba(200, 169, 106, 0.5);
  box-shadow: 0 0 0 1px rgba(200, 169, 106, 0.18);
}

.footer-eco-logo--active img {
  opacity: 1;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.footer-social-link {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 245, 239, 0.14);
  background: rgba(248, 245, 239, 0.04);
  color: rgba(248, 245, 239, 0.78);
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.footer-social-link svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: currentColor;
  display: block;
}

.footer-social-link:hover {
  color: var(--ml-footer-ivory);
  border-color: rgba(200, 169, 106, 0.42);
  background: rgba(31, 95, 107, 0.22);
  transform: translateY(-3px);
}

.footer-payment-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.625rem 0.875rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(248, 245, 239, 0.08);
}

.footer-pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 245, 239, 0.12);
  background: rgba(248, 245, 239, 0.03);
  color: rgba(248, 245, 239, 0.62);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.footer-pay-badge svg {
  display: block;
  height: 0.875rem;
  width: auto;
}

.footer-pay-badge--mastercard svg {
  color: rgba(248, 245, 239, 0.72);
}

.footer-pay-text { font-size: 0.68rem; }

.footer-pay-secure svg {
  width: 0.8125rem;
  height: 0.8125rem;
  fill: currentColor;
}

.footer-premium-bottom {
  margin-top: 1.625rem;
  padding-top: 1.375rem;
  border-top: 1px solid rgba(248, 245, 239, 0.08);
  text-align: center;
}

.footer-copyright {
  margin: 0 0 0.75rem;
  color: rgba(248, 245, 239, 0.52);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.625rem;
}

.footer-legal-links a {
  color: rgba(248, 245, 239, 0.58);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-legal-links a:hover { color: var(--ml-footer-gold); }

.footer-legal-links span {
  color: rgba(248, 245, 239, 0.28);
  font-size: 0.75rem;
}

.site-footer-premium p { display: block; }

@media (max-width: 1100px) {
  .footer-premium-main {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 2rem;
  }

  .footer-premium-intro,
  .footer-trust-pills,
  .footer-premium-columns {
    grid-column: 1;
    grid-row: auto;
  }

  .footer-premium-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-footer-premium {
    padding: 4.5rem 0 2rem !important;
  }

  .footer-premium-inner {
    width: min(1280px, calc(100% - 1.75rem));
  }

  .footer-premium-main { text-align: center; }

  .footer-premium-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-premium-about,
  .footer-trust-pills {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-trust-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 430px;
  }

  .footer-trust-pills li {
    justify-content: center;
    text-align: center;
  }

  .footer-premium-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1rem;
    text-align: center;
  }

  .footer-nav-col a,
  .footer-contact-list a,
  .footer-contact-list li {
    justify-content: center;
  }

  .site-footer-premium .footer-observer-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .site-ecosystem-brands__inner {
    --eco-full-visible: 2;
    --eco-card-width: 7.5rem;
    width: min(1280px, calc(100% - 1.75rem));
  }

  .footer-ecosystem-logos-viewport::after {
    width: 2.75rem;
  }

  .footer-ecosystem-logos {
    gap: 0.75rem;
    padding-bottom: 0.5rem;
  }

  .footer-eco-brand {
    flex: 0 0 var(--eco-card-width);
    width: var(--eco-card-width);
    min-width: var(--eco-card-width);
  }
}

@media (max-width: 480px) {
  .footer-premium-columns,
  .footer-trust-pills {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer-premium a,
  .footer-eco-logo,
  .footer-social-link {
    transition: none;
  }
}
