/* ===========================================================
   JUNIOR TENNIS ADVISOR
   GLOBAL FOOTER
=========================================================== */

.jta-global-footer {
  --jta-footer-background: #061a44;
  --jta-footer-background-dark: #041434;
  --jta-footer-white: #ffffff;
  --jta-footer-text: #b8c9db;
  --jta-footer-muted: #8ea8c7;
  --jta-footer-blue: #2f8cff;
  --jta-footer-light-blue: #8ac8ff;
  --jta-footer-border: rgba(255, 255, 255, 0.09);

  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 90px;
  color: var(--jta-footer-text);
  background: var(--jta-footer-background);
}

.jta-global-footer,
.jta-global-footer *,
.jta-global-footer *::before,
.jta-global-footer *::after {
  box-sizing: border-box;
}

.jta-global-footer p,
.jta-global-footer h2 {
  margin-top: 0;
}

.jta-global-footer a,
.jta-global-footer a:visited {
  text-decoration: none;
}

/* Decorative circles */

.jta-global-footer::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -230px;
  right: -180px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
  box-shadow:
    0 0 0 95px rgba(255, 255, 255, 0.014),
    0 0 0 190px rgba(255, 255, 255, 0.009);
  pointer-events: none;
}

/* ===========================================================
   MAIN CONTAINER
=========================================================== */

.jta-footer__container {
  position: relative;
  z-index: 1;
  width: min(1380px, calc(100% - 64px));
  margin-inline: auto;
  padding: 76px 0 66px;

  display: grid;
  grid-template-columns:
    minmax(330px, 1.55fr)
    minmax(150px, 0.72fr)
    minmax(150px, 0.72fr)
    minmax(170px, 0.78fr)
    minmax(250px, 1fr);

  align-items: start;
  gap: clamp(35px, 4vw, 70px);
}

/* ===========================================================
   BRAND
=========================================================== */

.jta-footer__brand {
  min-width: 0;
  max-width: 390px;
}

.jta-footer__logo,
.jta-footer__logo:visited {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 30px;
  color: var(--jta-footer-white) !important;
}

.jta-footer__logo:hover {
  color: var(--jta-footer-white) !important;
}

/* Real logo */

.jta-footer__logo-image {
  width: 74px;
  height: 74px;
  display: flex;
  flex: 0 0 74px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
}

.jta-footer__logo-image img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

/* Logo text */

.jta-footer__logo-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.jta-footer__logo-copy strong {
  color: var(--jta-footer-white);
  font-size: clamp(1.08rem, 1.4vw, 1.28rem);
  font-weight: 800;
  line-height: 1.2;
}

.jta-footer__logo-copy > span {
  margin-top: 5px;
  color: #9bb8da;
  font-size: 0.84rem;
  line-height: 1.45;
}

.jta-footer__description {
  max-width: 380px;
  margin-bottom: 30px;
  color: var(--jta-footer-text);
  font-size: 0.94rem;
  line-height: 1.82;
}

.jta-footer__mission {
  max-width: 360px;
  margin-bottom: 0;
  color: var(--jta-footer-white);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.55;
}

/* ===========================================================
   NAVIGATION COLUMNS
=========================================================== */

.jta-footer__column {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.jta-footer__column h2 {
  margin-bottom: 26px;
  color: var(--jta-footer-white);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jta-footer__column ul {
  display: grid;
  gap: 17px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jta-footer__column li {
  margin: 0;
  padding: 0;
}

.jta-footer__column li a,
.jta-footer__column li a:visited {
  position: relative;
  display: inline;
  color: #b4c6dc !important;
  font-size: 0.94rem;
  line-height: 1.55;
  transition: color 180ms ease;
}

.jta-footer__column li a:hover {
  color: var(--jta-footer-white) !important;
}

.jta-footer__column li a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: var(--jta-footer-light-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.jta-footer__column li a:hover::after {
  transform: scaleX(1);
}

/* ===========================================================
   CONTACT
=========================================================== */

.jta-footer__contact {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.jta-footer__contact-link,
.jta-footer__contact-link:visited {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
  color: #b4c6dc !important;
  font-size: 0.9rem;
  line-height: 1.4;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.jta-footer__contact-link:hover {
  color: var(--jta-footer-white) !important;
  transform: translateX(3px);
}

.jta-footer__contact-link > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.jta-footer__contact-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  color: var(--jta-footer-light-blue);
  background: rgba(255, 255, 255, 0.055);
}

.jta-footer__contact-icon svg {
  width: 17px;
  height: 17px;
}

/* Review button */

.jta-global-footer .jta-footer__review-button,
.jta-global-footer .jta-footer__review-button:visited {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--jta-footer-white) !important;
  background: var(--jta-footer-blue);
  box-shadow: 0 14px 34px rgba(47, 140, 255, 0.22);
  font-size: 0.87rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  transition:
    background-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.jta-global-footer .jta-footer__review-button:hover {
  color: var(--jta-footer-white) !important;
  background: #176fd3;
  box-shadow: 0 17px 40px rgba(47, 140, 255, 0.3);
  transform: translateY(-2px);
}

/* Remove underline animation from contact links and button */

.jta-footer__contact-link::after,
.jta-footer__review-button::after {
  display: none !important;
}

/* ===========================================================
   FOOTER BOTTOM
=========================================================== */

.jta-footer__bottom {
  position: relative;
  z-index: 1;
  margin: 0;
  border-top: 1px solid var(--jta-footer-border);
  background: rgba(0, 0, 0, 0.12);
}

.jta-footer__bottom-inner {
  width: min(1380px, calc(100% - 64px));
  min-height: 90px;
  margin-inline: auto;
  padding: 22px 0;

  display: grid;
  grid-template-columns:
    minmax(280px, auto)
    minmax(220px, auto)
    minmax(340px, 1fr);

  align-items: center;
  gap: 32px;
}

.jta-footer__copyright,
.jta-footer__closing-message {
  margin: 0;
  color: var(--jta-footer-muted);
  font-size: 0.79rem;
  line-height: 1.55;
}

.jta-footer__copyright {
  white-space: nowrap;
}

.jta-footer__copyright strong {
  color: var(--jta-footer-white);
}

.jta-footer__legal {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  white-space: nowrap;
}

.jta-footer__legal a,
.jta-footer__legal a:visited {
  color: var(--jta-footer-muted) !important;
  font-size: 0.79rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 180ms ease;
}

.jta-footer__legal a:hover {
  color: var(--jta-footer-white) !important;
}

.jta-footer__closing-message {
  justify-self: end;
  max-width: 470px;
  text-align: right;
}

/* ===========================================================
   TABLET
=========================================================== */

@media (max-width: 1180px) {
  .jta-footer__container {
    grid-template-columns:
      minmax(300px, 1.35fr)
      repeat(3, minmax(145px, 0.8fr));
  }

  .jta-footer__contact {
    grid-column: 1 / -1;
    width: min(100%, 600px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    column-gap: 24px;
    margin-top: 10px;
  }

  .jta-footer__contact h2 {
    grid-column: 1 / -1;
  }

  .jta-footer__review-button {
    grid-column: 1 / -1;
    max-width: 310px;
  }

  .jta-footer__bottom-inner {
    grid-template-columns: 1fr auto;
  }

  .jta-footer__closing-message {
    grid-column: 1 / -1;
    justify-self: start;
    max-width: none;
    text-align: left;
  }
}

/* ===========================================================
   SMALL TABLET
=========================================================== */

@media (max-width: 900px) {
  .jta-footer__container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jta-footer__brand {
    grid-column: 1 / -1;
    max-width: 580px;
  }

  .jta-footer__contact {
    grid-column: 1 / -1;
  }

  .jta-footer__bottom-inner {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 25px 0;
  }

  .jta-footer__copyright {
    white-space: normal;
  }

  .jta-footer__closing-message {
    grid-column: auto;
  }
}

/* ===========================================================
   MOBILE
=========================================================== */

@media (max-width: 680px) {
  .jta-global-footer {
    margin-top: 65px;
  }

  .jta-footer__container,
  .jta-footer__bottom-inner {
    width: min(100% - 40px, 1380px);
  }

  .jta-footer__container {
    grid-template-columns: 1fr;
    padding-top: 58px;
    padding-bottom: 48px;
    gap: 39px;
  }

  .jta-footer__brand,
  .jta-footer__contact {
    grid-column: auto;
  }

  .jta-footer__contact {
    width: 100%;
    display: flex;
  }

  .jta-footer__logo-image {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
  }

  .jta-footer__column h2 {
    margin-bottom: 19px;
  }

  .jta-footer__column ul {
    gap: 13px;
  }

  .jta-footer__review-button {
    max-width: none;
  }

  .jta-footer__bottom-inner {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .jta-footer__legal {
    flex-wrap: wrap;
    gap: 11px 20px;
    white-space: normal;
  }

  .jta-footer__closing-message {
    max-width: 420px;
    text-align: left;
  }
}

/* ===========================================================
   SMALL MOBILE
=========================================================== */

@media (max-width: 430px) {
  .jta-footer__logo {
    align-items: flex-start;
  }

  .jta-footer__logo-image {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 14px;
  }

  .jta-footer__logo-copy strong {
    font-size: 1rem;
  }

  .jta-footer__logo-copy > span {
    font-size: 0.79rem;
  }

  .jta-footer__description {
    font-size: 0.89rem;
  }
}

/* ===========================================================
   ACCESSIBILITY
=========================================================== */

.jta-global-footer a:focus-visible {
  border-radius: 5px;
  outline: 3px solid rgba(111, 181, 255, 0.65);
  outline-offset: 4px;
}

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