/* =========================================================
   Block: FOOTER (v0.4)
   Two versions:
   .footer--full     main website: contact, links, social, legal
   .footer--minimal  landing pages: no menu, contact + legal +
                     one link back to the main site
   Real business details only (no placeholders).
   ========================================================= */

.footer { font-size: var(--text-small); }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- Full footer: dark band ---------- */
.footer--full {
  background: rgb(var(--colour-image-shade));
  color: var(--colour-on-image);
  padding: var(--space-8) 0 var(--space-6);
}
.footer--full a { color: var(--colour-on-image); }
.footer--full :focus-visible { outline-color: var(--colour-on-image); }

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;        /* phones: Explore and Follow side by side */
  gap: var(--space-6) var(--space-4);
}
.footer__grid > :nth-child(-n+2) { grid-column: 1 / -1; }   /* brand and contact full width */
@media (min-width: 40rem) {
  .footer__grid > :nth-child(-n+2) { grid-column: auto; }
}
@media (min-width: 64rem) {
  .footer__grid { grid-template-columns: 2fr 1.3fr 1fr 1fr; gap: var(--space-7); }
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  line-height: 1.1;
}
.footer__tagline { margin-top: var(--space-3); opacity: 0.8; max-width: 30ch; }

.footer__heading {
  font-size: var(--text-small);
  font-weight: var(--weight-strong);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 var(--space-3);
}
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.footer__list a,
.footer__list span { display: inline-block; padding: var(--space-3) 0; }  /* 44px tap targets */

.footer__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.footer__badge {
  padding: var(--space-1) var(--space-3);
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: var(--radius-pill);
  font-weight: var(--weight-strong);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgb(255 255 255 / 0.15);
}
.footer__legal > :not(.footer__accred) { opacity: 0.8; }   /* soften the text, never the logo */

.footer__soon {
  margin-left: var(--space-1);
  padding: 0 var(--space-2);
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.15);
  font-size: 0.75rem;
}

/* ---------- Minimal footer (landing pages) ---------- */
.footer--minimal {
  border-top: 1px solid var(--colour-border);
  padding: var(--space-6) 0;
  color: var(--colour-text-muted);
}
.footer--minimal a { color: var(--colour-link); }
.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  align-items: center;
}
.footer__row + .footer__row { margin-top: var(--space-3); }
.footer__row a, .footer__legal a { display: inline-block; padding: var(--space-3) 0; }   /* 44px tap targets */
.footer__home { font-weight: var(--weight-strong); }
.footer--minimal .footer__soon { background: var(--colour-tag); color: var(--colour-on-tag); }

/* ---------- Logos (v0.2) ---------- */
.footer__logo { display: block; width: 84px; height: auto; }
.footer__asata {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  background: var(--colour-surface);     /* white tile: ASATA's black lettering needs a light background */
  border-radius: var(--radius-small);
}
.footer__asata img { display: block; width: 112px; height: auto; }
.footer--minimal .footer__logo { width: 60px; }
.footer--minimal .footer__asata { padding: 0; background: none; }
.footer--minimal .footer__asata img { width: 76px; }   /* A2B logo always leads */

/* ---------- Accreditation group (v0.4): ASATA + eTravel, always on the right ----------
   (No IATA: A2B doesn't hold an IATA licence - eTravel, our network, does.) */
.footer__accred {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;                     /* pushes the group to the right */
}
.footer__etravel {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  background: var(--colour-surface);     /* white tile: the logo's black lettering needs a light background */
  border-radius: var(--radius-small);
}
.footer__etravel img { display: block; width: 56px; height: auto; }
.footer--minimal .footer__etravel { padding: 0; background: none; }
.footer--minimal .footer__etravel img { width: 44px; }

/* Full footer: legal line left, accreditation right */
.footer--full .footer__legal { align-items: center; }

/* Minimal footer: logo left, accreditation right, then contact, then legal */
.footer__top {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.footer--minimal .footer__legalrow {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--colour-border);
}

/* v0.4: phones - stack contact lines neatly, one per line */
@media (max-width: 47.99rem) {
  .footer--minimal .footer__row:not(.footer__legalrow) {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}
@media (min-width: 48rem) {
  .footer--minimal .footer__logo { width: 68px; }
  .footer--minimal .footer__asata img { width: 88px; }
}
