/*
 ****************************************************************************************************************
 *
 * FILE NAME: icloudy-footer.css
 * FUNCTIONALITY: Defines the shared footer styles used across the website, including layout, legal links, social icons, and responsive behavior.
 *
 * HISTORY
 * =======
 *
 * VERSION DATE AUTHOR(S) DESCRIPTION
 ----------------------------------------------------------------------------------------------------------------
 * 1.0 24-APR-2026 Shrey Kevadia Initial version
*/

html,
body {
  background-color: var(--blue-dark);
}

[data-footer] {
  display: block;
  background: var(--blue-dark);
}

.icloudy-footer-container {
  width: 100%;
  max-width: calc(1120px + 32px);
  margin: 0 auto;
  padding: 0 16px;
}

.icloudy-footer-footer {
  position: relative;
  z-index: 100;
  background: var(--blue-dark);
  color: var(--panel);
  padding: 24px 0;
  overflow: visible;
}

.icloudy-footer-footer p,
.icloudy-footer-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.icloudy-footer-footer a:hover {
  color: var(--panel);
}

.icloudy-footer-footer-bottom {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
}

.icloudy-footer-footer-bottom p {
  margin: 0;
}

.icloudy-footer-small {
  grid-column: 3;
  justify-self: end;
}

.icloudy-footer-footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 2;
  justify-self: center;
  gap: 24px;
  flex-wrap: wrap;
}

.icloudy-footer-footer-legal a {
  font-weight: inherit;
}

.icloudy-footer-socials {
  display: flex;
  grid-column: 1;
  justify-self: start;
  gap: 14px;
}

.icloudy-footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.icloudy-footer-socials .icloudy-footer-chamber-badge {
  width: 34px;
  height: 34px;
  background: transparent;
  border-radius: 0;
}

.icloudy-footer-chamber-badge img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.icloudy-footer-socials a:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.icloudy-footer-socials .icloudy-footer-chamber-badge:hover {
  background: transparent;
}

@media (max-width: 900px) {
  .icloudy-footer-footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .icloudy-footer-small,
  .icloudy-footer-footer-legal,
  .icloudy-footer-socials {
    grid-column: auto;
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .icloudy-footer-footer {
    padding: 24px 0 calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .icloudy-footer-footer-bottom {
    gap: 14px;
  }
}

@media (max-width: 932px) and (orientation: landscape) {
  .icloudy-footer-footer {
    padding: 18px 0 calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .icloudy-footer-footer-bottom {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    text-align: left;
  }

  .icloudy-footer-socials {
    grid-column: 1;
    justify-self: start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .icloudy-footer-footer-legal {
    grid-column: 2;
    justify-self: center;
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .icloudy-footer-small {
    grid-column: 3;
    justify-self: end;
    text-align: right;
  }
}
