/*--------------------------------------------------------------------------
  Sarrao Immigration — site footer
  --------------------------------------------------------------------------
  Everything here is scoped to .site-footer, and this file is loaded AFTER
  treck.css and treck-responsive.css. That means it wins the cascade without
  a single !important, and nothing outside the footer is affected.

  The footer runs its own local palette (--sf-*). The global --treck-base is
  red (#e20935); the footer is gold, so it deliberately does not inherit it.

  Type comes from the site's existing family (Plus Jakarta Sans). No new
  webfont is loaded — hierarchy is built from the weight range already
  downloaded (300 / 400 / 500 / 700 / 800).
--------------------------------------------------------------------------*/

.site-footer {
  /* Palette */
  --sf-bg: #1E1E1E;
  --sf-bg-alt: #2B2B2B;
  --sf-bottom-bg: #171717;
  --sf-gold: #C89B3C;
  --sf-gold-hover: #D7AE54;
  --sf-white: #FFFFFF;
  --sf-gray: #CFCFCF;
  /* Gold darkened for text on the white certification card. Palette gold on
     white is only ~2.3:1 and fails WCAG AA; this holds ~5:1. */
  --sf-gold-ink: #8C6D22;
  --sf-rule: rgba(255, 255, 255, .08);
  --sf-ease: 300ms cubic-bezier(.4, 0, .2, 1);

  position: relative;
  display: block;
  background: var(--sf-bg);
  border-top: 4px solid var(--sf-gold);
  z-index: 1;
}

/* Keyboard focus stays visible everywhere in the footer. */
.site-footer a:focus-visible {
  outline: 2px solid var(--sf-gold-hover);
  outline-offset: 3px;
  border-radius: 2px;
}

/*  Layout ----------------------------------------------------------------- */

.site-footer .site-footer__middle {
  padding-top: 90px;
  padding-bottom: 70px;
}

/* The legacy theme pushed the columns around with hand-tuned margins at each
   breakpoint. The Bootstrap grid and its gutters handle that now, so these are
   zeroed out to stop the two systems fighting each other. */
.site-footer .footer-widget__about,
.site-footer .footer-widget__link,
.site-footer .footer-widget__visa,
.site-footer .footer-widget__Contact {
  margin: 0;
}

/*  Column headings -------------------------------------------------------- */

/* A hairline under every heading gives columns 2–4 a shared datum line — the
   quiet structural cue that reads as considered rather than decorated. */
.site-footer .footer-widget__title-box {
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--sf-rule);
}

.site-footer .footer-widget__title {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sf-gold);
}

/*  Column 1 — brand ------------------------------------------------------- */

.site-footer .footer-widget__logo {
  margin-bottom: 22px;
}

.site-footer .footer-widget__logo img {
  display: block;
  width: 118px;
  height: auto;
}

.site-footer .footer-widget__about-text {
  margin: 0;
  max-width: 32ch;
  font-size: 15px;
  line-height: 28px;
  font-weight: 300;
  color: var(--sf-gray);
}

/*  Social icons ----------------------------------------------------------- */

.site-footer .site-footer__social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.site-footer .site-footer__social a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: 0; /* gap owns the spacing now */
  border: 1px solid var(--sf-gold);
  border-radius: 50%;
  background-color: var(--sf-gold);
  color: var(--sf-white);
  font-size: 16px;
  line-height: 1;
  text-align: center;
  transition: background-color var(--sf-ease), color var(--sf-ease),
    border-color var(--sf-ease), transform var(--sf-ease);
}

/* The old theme animated a scaleY panel behind each icon. Retired — the
   colour swap below is the whole effect. */
.site-footer .site-footer__social a::after {
  display: none;
}

.site-footer .site-footer__social a:hover,
.site-footer .site-footer__social a:focus-visible {
  background-color: var(--sf-white);
  border-color: var(--sf-white);
  color: var(--sf-gold);
  transform: translateY(-2px);
}

/*  Certification card ----------------------------------------------------- */
/*  The one place this footer raises its voice. It is the trust artifact of an
    immigration practice, so it gets to be the thing you remember: a white
    credential plate lifted off the dark ground on a gold edge.

    The mark itself is used as-is — width only, height auto, never recoloured,
    cropped, stretched or filtered. */

.site-footer .footer-widget__rcic {
  margin-top: 30px;
}

.site-footer .footer-widget__rcic-card {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 18px 18px 16px;
  border-radius: 12px;
  background-color: var(--sf-white);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55);
  transition: transform var(--sf-ease), box-shadow var(--sf-ease);
}

.site-footer .footer-widget__rcic-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--sf-gold);
}

.site-footer .footer-widget__rcic-card:hover,
.site-footer .footer-widget__rcic-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -14px rgba(0, 0, 0, .65);
}

.site-footer .footer-widget__rcic-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer .footer-widget__rcic-badge {
  flex: 0 0 112px;
  display: block;
  width: 112px;
  height: auto;
}

.site-footer .footer-widget__rcic-copy {
  min-width: 0;
}

.site-footer .footer-widget__rcic-label {
  display: block;
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--sf-bg);
}

.site-footer .footer-widget__rcic-desc {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 15px;
  font-weight: 500;
  color: #6A6A6A;
}

.site-footer .footer-widget__rcic-verify {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #ECECEC;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--sf-gold-ink);
}

.site-footer .footer-widget__rcic-arrow {
  transition: transform var(--sf-ease);
}

.site-footer .footer-widget__rcic-card:hover .footer-widget__rcic-arrow,
.site-footer .footer-widget__rcic-card:focus-visible .footer-widget__rcic-arrow {
  transform: translateX(4px);
}

/*  Link columns ----------------------------------------------------------- */

.site-footer .footer-widget__visa-list,
.site-footer .footer-widget__link-list {
  margin: 0;
}

.site-footer .footer-widget__visa-list li,
.site-footer .footer-widget__link-list li {
  display: block;
}

.site-footer .footer-widget__visa-list li + li,
.site-footer .footer-widget__link-list li + li {
  margin-top: 0; /* padding on the anchor gives a bigger tap target instead */
}

.site-footer .footer-widget__visa-list li a,
.site-footer .footer-widget__link-list li a {
  display: inline-block;
  padding: 7px 0;
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
  color: var(--sf-white);
  transition: color var(--sf-ease), transform var(--sf-ease);
}

.site-footer .footer-widget__visa-list li a:hover,
.site-footer .footer-widget__visa-list li a:focus-visible,
.site-footer .footer-widget__link-list li a:hover,
.site-footer .footer-widget__link-list li a:focus-visible {
  color: var(--sf-gold-hover);
  transform: translateX(4px);
}

/*  Contact ---------------------------------------------------------------- */

.site-footer .footer-widget__Contact-list {
  margin: 0;
}

.site-footer .footer-widget__Contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

/* Replaces the old per-child 20/22/22px margins with one even rhythm. */
.site-footer .footer-widget__Contact-list li:nth-child(1),
.site-footer .footer-widget__Contact-list li:nth-child(2),
.site-footer .footer-widget__Contact-list li:nth-child(3) {
  margin-bottom: 0;
}

.site-footer .footer-widget__Contact-list li + li {
  margin-top: 20px;
}

.site-footer .footer-widget__Contact-list li .icon {
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 0;
  border-radius: 50%;
  background-color: var(--sf-gold);
  font-size: 14px;
  transition: background-color var(--sf-ease);
}

/* Dark glyph on gold, not white: it holds ~5.4:1 instead of ~2.8:1, and it
   keeps these 36px discs subordinate to the 44px social buttons. */
.site-footer .footer-widget__Contact-list li .icon span {
  color: var(--sf-bg);
  font-size: 14px;
  line-height: 1;
}

.site-footer .footer-widget__Contact-list li:hover .icon {
  background-color: var(--sf-gold-hover);
}

.site-footer .footer-widget__Contact-list li .text {
  min-width: 0;
  padding-top: 4px;
}

.site-footer .footer-widget__Contact-list li .text p {
  margin: 0;
  font-size: 15px;
  line-height: 26px;
  font-weight: 400;
  color: var(--sf-gray);
  overflow-wrap: break-word;
}

.site-footer .footer-widget__Contact-list li .text p a {
  color: var(--sf-white);
  font-weight: 500;
  transition: color var(--sf-ease);
}

.site-footer .footer-widget__Contact-list li .text p a:hover,
.site-footer .footer-widget__Contact-list li .text p a:focus-visible {
  color: var(--sf-gold-hover);
}

/*  Copyright bar ---------------------------------------------------------- */

.site-footer .site-footer__bottom {
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, .07);
  background-color: var(--sf-bottom-bg);
}

.site-footer .site-footer__bottom-inner {
  text-align: center;
}

.site-footer .site-footer__bottom-text {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: .2px;
  color: var(--sf-gray);
}

.site-footer .site-footer__bottom-text a {
  color: var(--sf-white);
  font-weight: 600;
  transition: color var(--sf-ease);
}

.site-footer .site-footer__bottom-text a:hover,
.site-footer .site-footer__bottom-text a:focus-visible {
  color: var(--sf-gold-hover);
}

/*  Responsive ------------------------------------------------------------- */

/* 992–1199px: still four columns, but in a 960px container each one is only
   ~216px wide — too narrow for the badge and its copy side by side, so the
   card stacks. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-footer .footer-widget__rcic-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-footer .footer-widget__rcic-badge {
    flex-basis: auto;
    width: 120px;
  }
}

@media (max-width: 991.98px) {
  .site-footer .site-footer__middle {
    padding-top: 70px;
    padding-bottom: 56px;
  }
}

/* Below 768px every column is full width, so the certification card is too. */
@media (max-width: 767.98px) {
  .site-footer .footer-widget__rcic-card {
    max-width: none;
  }

  .site-footer .footer-widget__about-text {
    max-width: none;
  }

  /* Column 3's heading is a non-breaking space that exists only to keep its
     list level with columns 2 and 4. Once the columns stack it has no
     alignment job left, so it stops taking up space. */
  .site-footer .footer-widget__title-box--spacer {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .site-footer .site-footer__middle {
    padding-top: 56px;
    padding-bottom: 44px;
  }

  .site-footer .site-footer__social a {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }

  .site-footer .site-footer__bottom {
    padding: 22px 0;
  }
}

/*  Motion preferences ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .site-footer *,
  .site-footer *::before,
  .site-footer *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .site-footer .footer-widget__rcic-card:hover,
  .site-footer .footer-widget__visa-list li a:hover,
  .site-footer .footer-widget__link-list li a:hover,
  .site-footer .site-footer__social a:hover {
    transform: none;
  }
}
