/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  background: #f3efe7;
  color: #101a17;
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: #16453a;
  text-decoration: none;
}
a:hover {
  color: #c79a4e;
}
img {
  display: block;
  max-width: 100%;
}

/* ===== Footer ===== */
.footer {
  padding: clamp(56px, 6vw, 88px) clamp(20px, 4vw, 56px) 32px;
  background-color: #16453a;
  color: #f3efe7;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 64px);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 4vw, 64px);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer__logo {
  display: block;
  width: auto;
  height: clamp(30px, 3vw, 38px);
}

.footer__tagline {
  font:
    400 13px/1 Inter,
    sans-serif;
  color: rgba(243, 239, 231, 0.78);
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  font:
    400 14px/1.55 Inter,
    sans-serif;
  color: rgba(243, 239, 231, 0.78);
  text-wrap: pretty;
}

.footer__company {
  font:
    600 16px/1.4 "Plus Jakarta Sans",
    sans-serif;
  color: #f3efe7;
}

.footer__contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px 32px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__contact-label {
  font:
    600 12px/1 "Plus Jakarta Sans",
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c79a4e;
}

.footer__contact-value {
  font:
    500 16px/1.4 Inter,
    sans-serif;
  color: #f3efe7;
}

.footer__contact-value--link:hover {
  color: #c79a4e;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(243, 239, 231, 0.16);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.footer__link {
  font:
    500 14px/1 Inter,
    sans-serif;
  color: #f3efe7;
}

.footer__link:hover {
  color: #c79a4e;
}

.footer__disclaimer {
  font:
    400 13px/1.4 Inter,
    sans-serif;
  color: rgba(243, 239, 231, 0.78);
}

/* ===== Responsive ===== */

/* Mobile: extra bottom space so the page's sticky buy bar doesn't cover the footer */
@media (max-width: 559px) {
  .footer {
    padding-bottom: 140px;
  }
}

@media (min-width: 560px) {
  .footer__contacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet: legal block moves to the bottom and spans full width */
@media (min-width: 560px) and (max-width: 1099px) {
  .footer__legal {
    order: 3;
    grid-column: 1 / -1;
    max-width: none;
  }
}

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

@media (min-width: 1100px) {
  .footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr);
  }
}
