/**
 * Footer Component Styles
 */

.footer {
  background: linear-gradient(160deg, #061f52 0%, #072f7a 40%, #0a2d6b 100%);
  color: white;
  padding: clamp(2.1rem, 4.25vw, 2.85rem) 0 1.35rem;
  margin-top: 0;
  border-top: 2px solid rgba(249, 87, 9, 0.5);
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  position: relative;
  left: 0;
  right: 0;
  clear: both;
}

/*
 * Must beat globals `.container` at max-width 768px (padding: 0 2px) —
 * use footer + two classes so horizontal padding wins on small screens.
 */
.footer .footer__container.container {
  max-width: 72rem;
  margin: 0 auto;
  padding-left: calc(env(safe-area-inset-left, 0px) + clamp(1rem, 5vw, 1.5rem));
  padding-right: calc(env(safe-area-inset-right, 0px) + clamp(1rem, 5vw, 1.5rem));
  width: 100%;
  box-sizing: border-box;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.65rem, 3vw, 2rem);
  margin-bottom: clamp(1.65rem, 3vw, 2rem);
}

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

@media (min-width: 1024px) {
  .footer__top {
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    align-items: start;
    gap: 1.75rem 1.5rem;
  }
}

/* Brand Section */
.footer__section--brand {
  max-width: 22rem;
  min-width: 0;
}

.footer__logo {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 0.65rem;
  transition: opacity 0.2s ease;
}

.footer__logo:hover {
  opacity: 0.88;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: white;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.footer__tagline {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  font-size: 0.9rem;
  margin: 0 0 0.75rem 0;
  letter-spacing: 0.02em;
}

.footer__description {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  max-width: 22rem;
}

/* Sections */
.footer__section {
  min-width: 0;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.96);
  margin: 0 0 0.8rem 0;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer__link {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.45;
  transition: color 0.2s ease;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.footer__link:hover {
  color: #f95709;
}

.footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__address {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Bottom Section */
.footer__bottom {
  margin-top: 0.35rem;
  padding-top: clamp(1.35rem, 2.5vw, 1.65rem);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    text-align: left;
    gap: 1rem;
  }
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.875rem;
  margin: 0;
  max-width: 100%;
}

.footer__social {
  max-width: 100%;
}

.footer__note {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.8125rem;
  margin: 0;
  font-style: italic;
  line-height: 1.45;
  max-width: 26rem;
}


