/**
 * Footer Styles
 * Following BEM methodology and using design tokens
 */

/* Footer Container */
.footer {
  width: 100%;
  background: linear-gradient(90deg, #064242 0.2%, #006767 101.1%);
  color: var(--color-white);
  font-family: var(--font-family-sans);
}

.footer__container {
  margin: 0 auto;
  padding: var(--spacing-12) var(--spacing-4);
}

/* Logo Section */
.footer__logo-section {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-3);
}

.footer__logo-image,
.footer__logo-img {
  flex-shrink: 0;
}

/* Footer logo: smaller at 1280px, 1024px, 767px */
@media (max-width: 1439px) {
  .footer__logo-section .footer__logo-img,
  .footer__logo-section img {
    max-width: 300px;
    height: auto;
  }
}

@media (max-width: 1279px) {
  .footer__logo-section .footer__logo-img,
  .footer__logo-section img {
    max-width: 250px;
    height: auto;
  }
}

@media (max-width: 1023px) {
  .footer__logo-section .footer__logo-img,
  .footer__logo-section img {
    max-width: 200px;
  }
}

@media (max-width: 767px) {
  .footer__logo-section .footer__logo-img,
  .footer__logo-section img {
    max-width: 150px;
  }
}

.footer__logo-content {
  display: flex;
  flex-direction: column;
}

.footer__brand-name {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-1);
  margin-bottom: var(--spacing-2);
}

.footer__brand-text {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  color: var(--color-white);
  line-height: var(--line-height-tight);
}

.footer__brand-number {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  color: var(--color-white);
  line-height: var(--line-height-tight);
}

.footer__tagline {
  font-size: var(--font-size-base);
  color: var(--color-white);
  opacity: 0.9;
  max-width: 28rem;
  line-height: var(--line-height-normal);
}

/* Social Media Icons */
.footer__social {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer__social-link:hover {
  transform: scale(1.15) translateY(-3px);
}

.footer__social-link:active {
  transform: scale(1.05);
}

.footer__social-link:focus {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

/* Social icon size: slightly smaller on tablets and below */
@media (max-width: 1023px) {
  .footer__social svg {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 767px) {
  .footer__social svg {
    width: 28px;
    height: 28px;
  }
}

/* Copyright Section */
.footer__copyright p {
  text-align: center;
  color: #FFF;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  font-family: var(--font-family-heebo, 'Heebo', system-ui, sans-serif);
}


/* Footer Top Section */
.footer__top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: var(--spacing-6);
  padding-bottom: 43px;
  margin-bottom: 24px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.20);
}

/* ============================================
   RESPONSIVE REDUCTION FOR MAX-WIDTH 1439px
   Reduce all font sizes, margins, padding, widths, heights by 10%
   ============================================ */
@media (max-width: 1439px) {

  /* Footer Container - reduce padding by 10% */
  .footer__container {
    padding: calc(var(--spacing-12) * 0.9) calc(var(--spacing-4) * 0.9);
  }

  /* Footer Top Section - reduce gap, padding, margin by 10% */
  .footer__top {
    gap: calc(var(--spacing-6) * 0.9);
    padding-bottom: calc(43px * 0.9);
    /* 38.7px */
    margin-bottom: calc(24px * 0.9);
    /* 21.6px */
  }

  /* Logo Section - reduce gap by 10% */
  .footer__logo-section {
    gap: calc(var(--spacing-3) * 0.9);
  }

  /* Brand Name - reduce gap and margin by 10% */
  .footer__brand-name {
    gap: calc(var(--spacing-1) * 0.9);
    margin-bottom: calc(var(--spacing-2) * 0.9);
  }

  /* Brand Text - reduce font size by 10% */
  .footer__brand-text {
    font-size: calc(var(--font-size-3xl) * 0.9);
  }

  /* Brand Number - reduce font size by 10% */
  .footer__brand-number {
    font-size: calc(var(--font-size-2xl) * 0.9);
  }

  /* Tagline - reduce font size and max-width by 10% */
  .footer__tagline {
    font-size: calc(var(--font-size-base) * 0.9);
    max-width: calc(28rem * 0.9);
    /* 25.2rem */
  }

  /* Social Media - reduce gap by 10% */
  .footer__social {
    gap: calc(var(--spacing-4) * 0.9);
  }

  /* Social Icon - reduce width and height by 10% */
  .footer__social-icon {
    width: calc(1.25rem * 0.9);
    /* 1.125rem */
    height: calc(1.25rem * 0.9);
    /* 1.125rem */
  }

  /* Copyright - reduce font size by 10% */
  .footer__copyright p {
    font-size: calc(16px * 0.9);
    /* 14.4px */
  }
}


@media (max-width: 1023px) {
  .footer__top {
    margin-bottom: 16px;
    padding-bottom: 28px;
  }
}

@media (max-width: 767px) {
  .footer__top {
    padding-bottom: 15px;
  }
}