/*!
 * ais-footer.css — AIS Technolabs iGaming footer (page-scoped)
 *
 * Styles are taken verbatim from the client's preview.html. Every selector is
 * namespaced under .ais-igaming-* / .ais-footer-* so nothing bleeds into page
 * content, and the shared site-layout.js footer used by 17 other pages is
 * untouched.
 *
 * The only addition to the supplied CSS is the mobile accordion at the end,
 * which the brief asks for ("On mobile, use an expandable/collapsible menu")
 * and the supplied file does not implement.
 */

#ais-footer-root,
#ais-footer-root * { box-sizing: border-box; }

.ais-igaming-footer {
  background: #f5f5f5;
  padding: 65px 40px 45px;
  font-family: "Inter", system-ui, sans-serif;
  color: #111827;
}

.ais-igaming-footer-container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 1.15fr 1.15fr 1fr;
  gap: 45px;
  align-items: start;
}

/* ── Brand ── */
.ais-igaming-brand { min-width: 0; }
.ais-igaming-logo { display: inline-block; margin-bottom: 40px; }
.ais-igaming-logo img { display: block; width: 155px; height: auto; }
.ais-igaming-brand h3 {
  margin: 0 0 23px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: #111827;
}

/* ── Contact ── */
.ais-igaming-contact { display: flex; flex-direction: column; gap: 14px; }
.ais-igaming-contact a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #222;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.5;
  transition: color .2s ease;
}
.ais-igaming-contact a:hover { color: #4028a9; }
.ais-igaming-icon {
  width: 20px;
  min-width: 20px;
  color: #4028a9;
  font-size: 16px;   /* was 17px — match the 16px text it sits beside */
  font-weight: 600;
}

/* The icon slot now holds three kinds of mark — a text glyph (mail), an inline
   SVG (Telegram) and a raster-free flag <img> (phone numbers). Give all three
   the same fixed 20px box and centre them on the first text line, so the rows
   stay aligned and the column never reflows between breakpoints. */
.ais-igaming-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;          /* == 16px * 1.5 line-height of the adjacent text */
  line-height: 1;
}
.ais-igaming-icon img {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
}
.ais-igaming-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* ── Columns ── */
.ais-igaming-column { min-width: 0; }
.ais-igaming-column h3 {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: #111827;
}
.ais-igaming-links { list-style: none; margin: 0; padding: 0; }
.ais-igaming-links li { margin: 0 0 14px; padding: 0; }
.ais-igaming-links a {
  display: inline-block;
  color: #222;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  transition: color .2s ease, transform .2s ease;
}
.ais-igaming-links a:hover { color: #4028a9; }

/* ── Sub heading ── */
/* Sub-headings stay at 16px on DESKTOP, where they sit inside a column under
   an 18px column heading and the smaller size is what marks them as a second
   level. In the mobile accordion the headings flatten into one vertical list
   where that distinction has nothing to anchor it and just reads as a ragged
   row, so the accordion block below overrides them to 18px to match their
   siblings. Two sizes, each correct for its context. */
.ais-sub-heading {
  margin-top: 32px !important;
  margin-bottom: 18px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

/* ── CTA ── */
.ais-footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 12px 20px;
  background: #4028a9;
  color: #fff !important;
  border-radius: 6px;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.ais-footer-cta:hover { background: #2f1d83; transform: translateY(-1px); }

/* ── Copyright bar ─────────────────────────────────────────────────────────
   Values transcribed from the live site's .copyright-sec, not approximated:
     background #3b259c          (the reference screenshot samples #3b259c)
     text/links clamp(11px,1.5vw,18px), white
     pills      clamp(32px,3vw,45px) white circles
     glyphs     clamp(21px,2vw,24px) in #3b259c
   Production's own box classes are py-3 pb-sm-5 pb-3 — 16px top, and 48px
   bottom from 576px up. The reference screenshot shows that deeper bottom
   band (content stops ~50px above the lower edge), so it is reproduced. */
.ais-copyright-bar {
  background: #3b259c;
  padding: 16px 0;
  color: #fff;
}
@media (min-width: 576px) { .ais-copyright-bar { padding-bottom: 48px; } }

.ais-copyright-inner {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.ais-copyright-text {
  font-size: clamp(11px, 1.5vw, 18px);
  line-height: 1.5;
  color: #fff;
}
.ais-copyright-brand { font-weight: 600; color: #fff; text-decoration: none; }

/* inline-flex keeps the link list on the same line as the sentence, the way
   production runs it straight on after "All Rights Reserved." */
.ais-copyright-nav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ais-copyright-nav a {
  font-size: clamp(11px, 1.5vw, 18px);
  color: #fff;
  text-decoration: none;
}
.ais-copyright-nav a:hover,
.ais-copyright-brand:hover { text-decoration: underline; }
/* hairline divider between the links, drawn on the link itself like production */
.ais-copyright-nav li:not(:last-child) a::after {
  content: "";
  display: inline-block;
  position: relative;
  top: 2px;
  width: 1px;
  height: 12px;
  margin: auto 5px;
  background: #fff;
}

.ais-copyright-social {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 24px);
  flex: 0 0 auto;
}
.ais-copyright-social a {
  width: clamp(32px, 3vw, 45px);
  aspect-ratio: 1 / 1;
  border-radius: 100px;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #3b259c;
  transition: transform .2s ease, background .2s ease;
}
.ais-copyright-social a:hover { background: #ede9fb; transform: translateY(-1px); }
.ais-copyright-social svg {
  width: clamp(21px, 2vw, 24px);
  height: clamp(21px, 2vw, 24px);
  display: block;
}

/* Stack below the md breakpoint production uses for this row (col-md-7 /
   col-md-5), centring both halves exactly as text-center does there. */
@media (max-width: 767px) {
  .ais-copyright-inner {
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 0 25px;
  }
  .ais-copyright-text { text-align: center; }
  .ais-copyright-social { justify-content: center; }
}

/* ── Focus visibility (accessibility; the supplied file has none) ── */
.ais-igaming-footer a:focus-visible,
.ais-igaming-footer button:focus-visible {
  outline: 3px solid #4028a9;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Tablet ── */
@media (max-width: 1200px) {
  .ais-igaming-footer-container { grid-template-columns: 1fr 1fr 1fr; gap: 45px 35px; }
  .ais-igaming-brand { grid-column: 1 / -1; }
}

/* ── Mobile ── */
@media (max-width: 750px) {
  .ais-igaming-footer { padding: 50px 25px 35px; }
  .ais-igaming-footer-container { grid-template-columns: 1fr 1fr; gap: 40px 30px; }
  .ais-igaming-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .ais-igaming-footer { padding: 45px 20px 30px; }
  .ais-igaming-footer-container { grid-template-columns: 1fr; gap: 35px; }
  .ais-igaming-brand { grid-column: auto; }
}

/* ─────────────────────────────────────────────────────────────────────────
   MOBILE ACCORDION — brief item 7, "On mobile, use an expandable/collapsible
   menu". Not in the supplied CSS; added here and confined to <=750px so the
   desktop layout supplied by the client is untouched. Headings become real
   <button>s only in this range (the JS swaps the tag role), so nothing about
   the desktop markup or styling changes.
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 750px) {
  .ais-igaming-column h3.ais-acc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 0;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid #e2e2e2;
    background: none;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
    text-align: start;
    cursor: pointer;
  }
  .ais-igaming-column h3.ais-acc.ais-sub-heading { font-size: 18px !important; margin-top: 18px !important; }
  .ais-igaming-column h3.ais-acc::after {
    content: "";
    width: 9px; height: 9px;
    flex: 0 0 9px;
    border-right: 2px solid #4028a9;
    border-bottom: 2px solid #4028a9;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .18s ease;
  }
  .ais-igaming-column h3.ais-acc[aria-expanded="true"]::after {
    transform: rotate(225deg) translate(-2px, -2px);
  }
  .ais-igaming-column h3.ais-acc + .ais-igaming-links { padding-top: 14px; padding-bottom: 6px; }
  .ais-igaming-column h3.ais-acc + .ais-igaming-links[hidden] { display: none; }
  .ais-igaming-links a { padding: 3px 0; }

  /* Collapsed, the accordion should read as one continuous list of rows. Three
     things were pushing them apart, giving gaps of 35/35/18/53/18px:
       - the grid's 35px row-gap between the column blocks,
       - .ais-sub-heading's 32px top / 18px bottom margins on the second block
         inside a column (Gaming Licenses, Technology Services),
       - and both of those stacking before "Company".
     Zero all three in accordion mode; each heading already carries its own
     1px bottom border, which is what separates the rows. */
  .ais-igaming-footer-container { row-gap: 0; }
  .ais-igaming-column h3.ais-acc.ais-sub-heading {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  /* the brand block still needs air before the first accordion row */
  .ais-igaming-brand { margin-bottom: 30px; }

  /* The old grey bottom bar used to sit here and drew a second rule 40px below
     the last accordion row, leaving an empty banded strip. That bar is gone —
     the purple .ais-copyright-bar replaced it and carries its own background,
     so the last accordion row's rule now closes the list directly. */
  .ais-igaming-footer { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ais-igaming-footer *,
  .ais-igaming-footer *::before,
  .ais-igaming-footer *::after { transition-duration: .01ms !important; }
}
