/* footer */

.site-footer {
  background-color: #060b19;
  color: #ffffff;
}

.footer-container {
  width: 100%;
  max-width: 1280px;

  margin-inline: auto;
  padding-inline: 24px;
}

/* main grid */

.footer-main {
  display: grid;

  grid-template-columns:
    minmax(260px, 1.2fr)
    minmax(190px, 0.9fr)
    minmax(200px, 0.9fr)
    minmax(280px, 1.1fr);

  gap: 48px;

  align-items: start;

  padding-block: 52px;
}

@media (min-width: 1001px) {
  .footer-main:not(:has(.footer-departments)) {
    grid-template-columns:
      minmax(260px, 1.2fr)
      minmax(190px, 0.9fr)
      minmax(280px, 1.1fr);
  }
}

/* company */

.footer-brand-row {
  display: flex;

  align-items: center;

  gap: 12px;

  margin-bottom: 18px;
}

.footer-logo-placeholder {
  display: flex;

  width: 36px;
  height: 36px;

  flex-shrink: 0;

  align-items: center;
  justify-content: center;

  border-radius: 9px;

  background-color: var(--color-primary);
  color: #ffffff;

  font-size: 13px;
  font-weight: 700;
}

.footer-company-name {
  margin: 0;

  color: #ffffff;

  font-size: 18px;
  font-weight: 700;

  line-height: 1.2;
}

.footer-company-description {
  max-width: 390px;

  margin: 0;

  color: rgb(255 255 255 / 58%);

  font-size: 13px;

  line-height: 1.7;
}

/* section headings */

.footer-section {
  display: flex;

  flex-direction: column;

  align-items: flex-start;

  gap: 13px;
}

.footer-section h3 {
  margin: 3px 0 10px;

  color: #ffffff;

  font-size: 15px;
  font-weight: 700;
}

/* footer info */

.footer-info {
  display: flex;

  align-items: center;

  gap: 10px;

  color: rgb(255 255 255 / 58%);

  font-size: 13px;

  line-height: 1.45;

  text-decoration: none;
}

.footer-info i {
  display: inline-flex;

  width: 16px;

  flex: 0 0 16px;

  align-items: center;
  justify-content: center;

  margin: 0;

  color: var(--color-primary);

  font-size: 14px;

  line-height: 1;
}

.footer-info span {
  min-width: 0;
}

.footer-link {
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
}

/* opening hours */

.footer-hours-section {
  min-width: 0;
}

.footer-opening-hours {
  width: 100%;

  white-space: nowrap;
}

/* call to action */

.footer-cta {
  width: 100%;

  margin-top: 6px;

  padding: 16px;

  border-radius: 12px;

  background-color: #121b2b;
}

.footer-cta-label {
  display: block;

  margin-bottom: 6px;

  color: rgb(255 255 255 / 60%);

  font-size: 11px;
}

.footer-cta a {
  color: #ffffff;

  font-size: 13px;
  font-weight: 700;

  text-decoration: none;

  transition: color 0.2s ease;
}

.footer-cta a:hover {
  color: var(--color-accent);
}

/* social media */

.footer-socials {
  display: flex;

  align-items: center;

  gap: 12px;

  margin-top: 20px;
}

.footer-socials a {
  display: inline-flex;

  width: 36px;
  height: 36px;

  align-items: center;
  justify-content: center;

  border-radius: 9px;

  background-color: #1b2535;
  color: rgb(255 255 255 / 65%);

  font-size: 15px;

  text-decoration: none;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.footer-socials a:hover {
  background-color: var(--color-primary);
  color: #ffffff;

  transform: translateY(-2px);
}

/* tablet */

@media (max-width: 1000px) {
  .footer-main {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 44px 50px;
  }

  .footer-hours-section {
    grid-column: 1 / -1;
  }

  .footer-opening-hours {
    width: auto;
  }

  .footer-cta {
    max-width: 420px;
  }
}

/* mobile */

@media (max-width: 600px) {
  .footer-container {
    padding-inline: 18px;
  }

  .footer-main {
    grid-template-columns: 1fr;

    gap: 38px;

    padding-block: 44px;
  }

  .footer-hours-section {
    grid-column: auto;
  }

  .footer-company-description {
    max-width: 100%;
  }

  .footer-opening-hours {
    white-space: normal;
  }

  .footer-cta {
    max-width: 100%;
  }
}

/* footer bottom */

.footer-bottom {
  display: flex;

  min-height: 72px;

  align-items: center;
  justify-content: space-between;

  gap: 30px;

  border-top: 1px solid rgb(255 255 255 / 8%);
}

.footer-copyright, .footer-made-by {
  color: rgb(255 255 255 / 55%);

  font-size: 12px;

  line-height: 1.5;
}

.footer-bottom-links {
  display: flex;

  align-items: center;

  gap: 28px;
}

.footer-bottom-links a {
  color: rgb(255 255 255 / 55%);

  font-size: 12px;

  text-decoration: none;

  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* mobile */

@media (max-width: 600px) {
  .footer-bottom {
    min-height: auto;

    flex-direction: column;

    align-items: flex-start;

    gap: 14px;

    padding-block: 22px;
  }

  .footer-bottom-links {
    flex-wrap: wrap;

    gap: 12px 22px;
  }
}

/* departments */

.footer-departments {
  min-width: 0;
}

.footer-department {
  width: 100%;
}

.footer-department-content {
  display: flex;

  min-width: 0;

  flex-direction: column;

  gap: 3px;
}

.footer-department-name {
  color: rgb(255 255 255 / 78%);

  font-size: 13px;
  font-weight: 600;

  line-height: 1.35;
}

.footer-department-address {
  color: rgb(255 255 255 / 48%);

  font-size: 12px;

  line-height: 1.45;
}
