/* Site footer (markup: includes/footer.html).
 *
 * Standalone: it does not rely on the purged Tailwind build, so any class can
 * be added here freely. Site colours only: navy #0f1f63, teal #00ccb3, and
 * the two lighter wave blues.
 *
 *   .tc-footer__wave    animated wave, the top edge of the footer
 *   .tc-footer__top     logo + tagline, then three link columns
 *   .tc-footer__panel   contact cards beside the map
 *   .tc-footer__bottom  language links, a thin copyright line and the
 *                       "Cookie settings" button
 */

.tc-footer {
  display: block;
  background: transparent;
  color: #fff;
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

.tc-footer a {
  color: inherit;
  text-decoration: none;
}

.tc-footer__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Wave: three layers drifting at different speeds. Its own keyframes, so it
   does not depend on the snapshot stylesheet's global `use` rule. */

.tc-footer__wave {
  display: block;
  width: 100%;
  height: 100px;
  margin-bottom: -1px;
}

.tc-footer__wave use {
  animation: tc-footer-wave 2s linear infinite;
}

.tc-footer__wave use:nth-child(1) {
  animation-duration: 5s;
}

.tc-footer__wave use:nth-child(2) {
  animation-duration: 2.5s;
  animation-delay: -1.5s;
}

@keyframes tc-footer-wave {
  from { transform: translateX(-2px); }
  to { transform: translateX(0); }
}

/* Main */

.tc-footer__main {
  background: #0f1f63;
}

.tc-footer__top,
.tc-footer__panel {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.tc-footer__top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.tc-footer__brand {
  grid-column: 1 / -1;
}

.tc-footer__logo {
  display: inline-block;
}

.tc-footer__logo img {
  display: block;
  width: auto;
  height: 4.5rem;
}

.tc-footer__tagline {
  max-width: 22rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.925rem;
  line-height: 1.6;
}

.tc-footer__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  margin-top: 0.75rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.85rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.tc-footer__rating:hover {
  border-color: #00ccb3;
  background: rgba(0, 204, 179, 0.08);
}

.tc-footer__stars {
  color: #fbbf24;
  letter-spacing: 0.1em;
}

.tc-footer__title {
  margin: 0 0 1rem;
  color: #00ccb3;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tc-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tc-footer__links a {
  display: inline-block;
  padding: 0.3rem 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.925rem;
  line-height: 1.45;
  transition: color 0.15s ease;
}

.tc-footer__links a:hover {
  color: #00ccb3;
}

.tc-footer__meta {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Contact + map panel */

.tc-footer__panel {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.tc-footer__contact,
.tc-footer__map {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.tc-footer__contact {
  padding: 1.5rem;
}

.tc-footer__cards {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tc-footer__card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.75rem;
  border-radius: 10px;
  transition: background-color 0.15s ease;
}

/* .tc-footer in front out-ranks the site-wide green .wa-cta background. */
.tc-footer .tc-footer__card.wa-cta,
.tc-footer .tc-footer__card.wa-cta:hover {
  background-color: transparent;
}

.tc-footer a.tc-footer__card:hover,
.tc-footer a.tc-footer__card.wa-cta:hover {
  background-color: rgba(255, 255, 255, 0.07);
}

.tc-footer__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(0, 204, 179, 0.15);
  color: #00ccb3;
}

.tc-footer__icon--wa {
  background: #25d366;
  color: #fff;
}

.tc-footer__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.tc-footer__cardtext {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tc-footer__label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.tc-footer__value {
  color: #fff;
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.tc-footer__card--static .tc-footer__value {
  font-size: 0.925rem;
  font-weight: 400;
}

.tc-footer__map {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
}

.tc-footer__map iframe {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 16rem;
  border: 0;
  background: #1c2b72;
}

/* Phones: the map waits behind this button until it is tapped (the script
   next to it in includes/footer.html). */
.tc-footer__map iframe[hidden],
.tc-footer__mapshow[hidden] {
  display: none;
}
.tc-footer__mapshow {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 5.5rem;
  border: 0;
  background: #1c2b72;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.tc-footer__mapshow:hover {
  background: #22337f;
}
.tc-footer__mapshow svg {
  width: 1.2rem;
  height: 1.2rem;
  color: #00ccb3;
}
.tc-footer__mapbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.6rem 1rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}

.tc-footer__maplink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tc-footer__maplink:hover {
  color: #00ccb3;
}

.tc-footer__maplink svg {
  width: 1rem;
  height: 1rem;
}

/* Copyright: one thin line */

.tc-footer__bottom {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b1749;
  text-align: center;
}

.tc-footer__langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

.tc-footer__langs a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.tc-footer__langs a:hover {
  color: #fff;
  text-decoration: underline;
}

.tc-footer__langs a[aria-current="true"] {
  color: #fff;
  font-weight: 600;
}

.tc-footer__bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Reopens the cookie banner (includes/consent.html). */
.tc-footer__cookies {
  margin: 0.3rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.6);
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.4;
  text-decoration: underline;
  cursor: pointer;
}

.tc-footer__cookies:hover {
  color: #fff;
}

/* Keyboard focus */

.tc-footer a:focus-visible,
.tc-footer button:focus-visible,
.tc-footer iframe:focus-visible {
  outline: 2px solid #00ccb3;
  outline-offset: 2px;
  border-radius: 4px;
}

@media (min-width: 640px) {
  .tc-footer__top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .tc-footer__top,
  .tc-footer__panel {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .tc-footer__top {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    padding-top: 3rem;
  }

  .tc-footer__brand {
    grid-column: auto;
  }

  .tc-footer__panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-footer__wave use {
    animation: none;
  }

  .tc-footer__links a,
  .tc-footer__card,
  .tc-footer__rating {
    transition: none;
  }
}
