/* ==========================================================================
   Site footer — Figma 73:1393
   Neutral/1 ground, 80px of top padding over a five-track row: logo and
   social cards, three link columns, then contacts with the Google rating
   pinned to the foot. A hairline separates the bottom bar.
   ========================================================================== */

.trustav-footer {
  background-color: var(--c-footer-bg);
  color: var(--c-text-invert);
  font-size: var(--fs-body-sm);
}

.trustav-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 80px; /* Figma 73:1391 */
  padding-block: 80px 10px; /* Figma 73:1393 */
}

/* --- Top row ------------------------------------------------------------- */
.trustav-footer__top {
  display: grid;
  grid-template-columns: 354px repeat(3, auto) 189px; /* Figma 73:1383 */
  gap: 81px;
  align-items: start;
  justify-content: space-between;
}

.trustav-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
  align-items: flex-start;
  justify-content: space-between;
  height: 100%;
}

.trustav-footer__logo {
  display: inline-flex;
  align-items: center;
  color: var(--c-white);
}

.trustav-footer__logo svg {
  width: 141px; /* Figma 72:1286 */
  height: 24px;
}

.trustav-footer__logo img {
  width: auto;
  max-height: 24px;
}

/* --- Link columns -------------------------------------------------------- */
.trustav-footer__column {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Figma 73:1338 */
}

.trustav-footer__column-title {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  line-height: var(--lh-body);
  text-transform: uppercase;
  color: var(--c-white);
}

.trustav-footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Figma 73:1340 */
  margin: 0;
  padding: 0;
  list-style: none;
}

.trustav-footer__links li,
.trustav-footer__links address {
  margin: 0;
  font-style: normal;
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--c-neutral-3);
}

.trustav-footer a {
  color: var(--c-neutral-3);
  transition: color var(--dur) var(--ease);
}

.trustav-footer a:hover,
.trustav-footer a:focus-visible {
  color: var(--c-white);
}

/* --- Contacts and rating ------------------------------------------------- */
.trustav-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  justify-content: space-between;
  height: 100%;
}

.trustav-footer__rating {
  display: flex;
  align-items: center;
  gap: 9px; /* Figma 73:1371 */
}

.trustav-footer__rating-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.trustav-footer__rating-value {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-tight);
  color: var(--c-white);
}

.trustav-footer__rating-value strong {
  font-weight: var(--fw-semibold);
}

.trustav-footer__rating-value span {
  color: var(--c-neutral-2);
}

.trustav-footer__rating-stars svg {
  display: block;
  width: 79px;
  height: 13px;
}

/* --- Social cards — Figma 72:1274 / 68:127 ------------------------------- */
.trustav-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px; /* Figma 72:1274 */
  margin: 0;
  padding: 0;
  list-style: none;
}

.trustav-social {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 110px; /* Figma 68:127 */
  height: 125px;
  padding: 15px 29px 13px 15px;
  border: var(--border-width) solid var(--c-footer-border);
  transition: border-color var(--dur) var(--ease);
}

.trustav-social:hover,
.trustav-social:focus-visible {
  border-color: var(--c-neutral-3);
}

.trustav-social__tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Figma 68:118 */
  height: 32px;
  overflow: hidden;
  color: var(--c-white);
}

.trustav-social__tile svg {
  display: block;
  width: auto;
  height: 16px;
}

.trustav-social--instagram .trustav-social__tile {
  background-image: var(--g-social-instagram);
}

.trustav-social--facebook .trustav-social__tile {
  background-color: var(--c-social-facebook);
}

.trustav-social--youtube .trustav-social__tile {
  background-color: var(--c-social-youtube);
}

.trustav-social__label {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--c-footer-label);
}

.trustav-social:hover .trustav-social__label,
.trustav-social:focus-visible .trustav-social__label {
  color: var(--c-white);
}

/* --- Bottom bar ---------------------------------------------------------- */
.trustav-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-block-start: 9px; /* Figma 73:1390 */
  border-top: var(--border-width) solid var(--c-footer-rule);
  font-size: var(--fs-small);
  color: var(--c-footer-meta);
}

.trustav-footer__bottom p {
  margin: 0;
}

.trustav-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3xl);
  margin: 0;
  padding: 0;
  list-style: none;
}

.trustav-footer__bottom a,
.trustav-footer__legal a {
  color: var(--c-footer-meta);
}

.trustav-footer__bottom a:hover,
.trustav-footer__legal a:hover {
  color: var(--c-neutral-3);
}

.trustav-footer__company {
  text-align: right;
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1280px) {
  .trustav-footer__top {
    grid-template-columns: 300px repeat(3, 1fr) 189px;
    gap: var(--space-2xl);
  }
}

@media (max-width: 1024px) {
  .trustav-footer__top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2xl) var(--space-xl);
  }

  .trustav-footer__brand,
  .trustav-footer__contact {
    grid-column: 1 / -1;
    height: auto;
  }

  .trustav-footer__contact {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: var(--space-2xl);
  }
}

@media (max-width: 640px) {
  .trustav-footer__inner {
    gap: var(--space-3xl);
    padding-block: var(--space-3xl) var(--space-lg);
  }

  .trustav-footer__top {
    grid-template-columns: minmax(0, 1fr);
  }

  .trustav-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .trustav-footer__legal {
    gap: var(--space-lg);
  }

  .trustav-footer__company {
    text-align: left;
  }
}

/* Three 110px cards + gaps need 354px; at 390 the content box is 350, so
   the third card dropped to its own row. */
@media (max-width: 480px) {
  .trustav-socials {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trustav-social {
    width: auto;
  }
}
