/* ═══════════════════════════════════════════════════════════════════════════
   AYATICKETS Footer V2 — layout
   Background stays the flat surface. Event pages (.event-page) must not
   pick up a photo background tested on other pages.
   ═══════════════════════════════════════════════════════════════════════════ */

.section-footer-v2 {
  background: var(--aya-surface) !important;
  color: var(--aya-ink);
  padding: 48px 0 28px;
  border-top: 1px solid var(--aya-border) !important;
  width: 100%;
}

.section-footer-v2 .footer-v2__container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3vw, 40px);
  padding-right: clamp(16px, 3vw, 40px);
}

.section-footer-v2.event-page {
  background-color: var(--aya-surface) !important;
  background-image: none !important;
}

.section-footer-v2 a {
  color: var(--aya-ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.section-footer-v2 a:hover {
  color: var(--aya-brand);
}

.footer-mast {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(220px, 0.85fr);
  gap: 36px 40px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--aya-border);
}

.footer-mast--no-apps {
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  justify-content: stretch;
}

.footer-mast--no-apps .footer-talk {
  justify-self: end;
  text-align: right;
  align-items: flex-end;
}

.footer-brand__name {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--aya-ink);
}

/* Public type scale sets footer paragraphs to inherit. These sizes have to win. */
body.aya-public-type .section-footer-v2 .footer-brand__name {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

body.aya-public-type .section-footer-v2 .footer-brand__lede,
body.aya-public-type .section-footer-v2 .footer-apps__note {
  font-size: 14px;
  line-height: 1.5;
}

body.aya-public-type .section-footer-v2 .footer-kicker,
body.aya-public-type .section-footer-v2 .footer-col__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

body.aya-public-type .section-footer-v2 .footer-ussd,
body.aya-public-type .section-footer-v2 .footer-copy,
body.aya-public-type .section-footer-v2 .footer-legal,
body.aya-public-type .section-footer-v2 .footer-store {
  font-size: 13px;
  line-height: 1.3;
}

.footer-brand__lede {
  margin: 0 0 14px;
  max-width: 34ch;
  color: var(--aya-muted);
  font-size: 14px;
  line-height: 1.5;
}

.footer-ussd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border: 1px solid var(--aya-border);
  border-radius: 999px;
  background: #fff;
  color: var(--aya-ink);
  font-size: 13px;
  line-height: 1.2;
}

.footer-ussd:hover {
  color: var(--aya-ink);
  border-color: #d1d5db;
}

.footer-ussd strong {
  font-weight: 700;
}

.footer-kicker {
  margin: 0 0 10px;
  color: var(--aya-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #111827;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.footer-store:hover {
  background: #1f2937;
  color: #fff !important;
}

.footer-store i {
  font-size: 16px;
  line-height: 1;
}

.footer-apps__note {
  margin: 10px 0 0;
  color: var(--aya-muted);
  font-size: 13px;
  line-height: 1.4;
}

.footer-talk {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.footer-talk__primary {
  font-weight: 700;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
  padding-top: 28px;
  width: 100%;
}

.footer-col__title {
  margin: 0 0 12px;
  color: var(--aya-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.footer-col__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-col__list a {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--aya-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.footer-col__list a:hover {
  color: var(--aya-brand);
}

.footer-col__list i {
  margin-top: 2px;
  color: var(--aya-brand);
  opacity: 0.75;
}

.footer-bottom-v2 {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--aya-border);
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.footer-copy {
  margin: 0;
  color: #9ca3af;
  font-size: 13px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  color: var(--aya-muted);
  font-size: 13px;
}

.footer-legal a {
  color: #374151;
  font-weight: 500;
}

.footer-legal a:hover {
  color: var(--aya-brand);
}

.social-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #111827;
  background: #f3f4f6;
  text-decoration: none;
}

.social-icons a i {
  font-size: 14px;
  line-height: 1;
}

.social-icons a:hover {
  background: #c3073f;
  color: #fff;
}

@media (min-width: 1200px) {
  .footer-cols {
    gap: 32px 48px;
  }
}

@media (max-width: 991px) {
  .footer-mast,
  .footer-mast--no-apps {
    grid-template-columns: 1fr;
  }

  .footer-mast--no-apps .footer-talk {
    justify-self: start;
    text-align: left;
    align-items: flex-start;
  }

  .footer-talk {
    grid-column: 1 / -1;
  }
}

.footer-ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  max-width: 100%;
}

.footer-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--aya-border, #e5e7eb);
  border-radius: 12px;
  background: var(--aya-surface-alt, #fafafa);
  min-width: 0;
}

.footer-rating__score {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--aya-ink, #111827);
}

.footer-rating__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  line-height: 1.2;
}

.footer-rating__platform {
  font-weight: 600;
  color: var(--aya-ink, #111827);
}

.footer-rating__count {
  color: var(--aya-muted, #6b7280);
}

.footer-lang {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

.footer-lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--aya-border, #e5e7eb);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  color: var(--aya-ink, #111827);
  text-decoration: none;
}

.footer-lang__toggle:hover {
  color: var(--aya-ink, #111827);
  border-color: #d1d5db;
}

.footer-lang__toggle .flag {
  width: 20px;
  height: 14px;
  flex-shrink: 0;
}

.footer-lang__label {
  white-space: nowrap;
}

.footer-lang__toggle .ph-caret-down {
  font-size: 12px;
  opacity: 0.65;
}

.footer-rating__stars {
  display: block;
  margin-bottom: 4px;
}

.footer-rating__stars .aya-rating-star {
  font-size: 11px;
}

.footer-rating__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Purchase flow (event / cart / checkout): minimal footer on mobile — copyright + language only */
@media (max-width: 767.98px) {
  body.aya-page-event footer.footer--purchase-flow .footer-top-v2,
  body.aya-page-cart footer.footer--purchase-flow .footer-top-v2,
  body.aya-page-checkout footer.footer--purchase-flow .footer-top-v2 {
    display: none !important;
  }

  body.aya-page-event footer.footer--purchase-flow,
  body.aya-page-cart footer.footer--purchase-flow,
  body.aya-page-checkout footer.footer--purchase-flow {
    background: var(--aya-surface, #fafafa) !important;
    padding: 16px 0 calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--aya-border, #e5e7eb) !important;
  }

  body.aya-page-event footer.footer--purchase-flow .footer-bottom-v2,
  body.aya-page-cart footer.footer--purchase-flow .footer-bottom-v2,
  body.aya-page-checkout footer.footer--purchase-flow .footer-bottom-v2 {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  body.aya-page-event footer.footer--purchase-flow .footer-legal,
  body.aya-page-cart footer.footer--purchase-flow .footer-legal,
  body.aya-page-checkout footer.footer--purchase-flow .footer-legal,
  body.aya-page-event footer.footer--purchase-flow .social-icons,
  body.aya-page-cart footer.footer--purchase-flow .social-icons,
  body.aya-page-checkout footer.footer--purchase-flow .social-icons {
    display: none !important;
  }

  body.aya-page-event footer.footer--purchase-flow .footer-bar,
  body.aya-page-cart footer.footer--purchase-flow .footer-bar,
  body.aya-page-checkout footer.footer--purchase-flow .footer-bar {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }

  body.aya-page-event footer.footer--purchase-flow .footer-lang,
  body.aya-page-cart footer.footer--purchase-flow .footer-lang,
  body.aya-page-checkout footer.footer--purchase-flow .footer-lang {
    margin-left: 0;
    justify-content: center;
    width: 100%;
  }

  body.aya-page-event footer.footer--purchase-flow .footer-lang__toggle,
  body.aya-page-cart footer.footer--purchase-flow .footer-lang__toggle,
  body.aya-page-checkout footer.footer--purchase-flow .footer-lang__toggle {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .section-footer-v2 {
    padding: 36px 0 24px;
  }

  .footer-mast {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 22px;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
    padding-top: 22px;
  }

  .footer-bar {
    align-items: flex-start;
  }

  .social-icons {
    margin-left: 0;
  }
}
