/* ==========================================================================
   Rainbow Guest House - Common Footer Styles
   ========================================================================== */

:root {
  --footer-bg: #FFFFFF;
  --footer-text-color: #50536F;
  --footer-heading-color: #50536F;
  --footer-divider-color: #F0EFF3;
  --footer-credit-color: #8B35F5;
}

/* --------------------------------------------------------------------------
   Main Footer Wrapper & Container
   -------------------------------------------------------------------------- */
.site-footer {
  width: 100%;
  background-color: var(--footer-bg);
  color: var(--footer-text-color);
  position: relative;
  overflow: hidden;
}

.footer-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 105px;
  padding-bottom: 75px;
  padding-left: 24px;
  padding-right: 24px;
}

/* --------------------------------------------------------------------------
   Four-Column Grid Layout
   -------------------------------------------------------------------------- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 1fr 1.25fr;
  gap: 40px;
  align-items: start;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Column 1: Brand and Description
   -------------------------------------------------------------------------- */
.footer-brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--footer-heading-color);
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.2px;
}

.footer-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--footer-text-color);
  max-width: 280px;
  margin-top: 44px;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Columns 2 & 3: Headings and Navigation Links
   -------------------------------------------------------------------------- */
.footer-column-title {
  font-size: 22px;
  font-weight: 400;
  color: var(--footer-heading-color);
  line-height: 1.25;
  margin: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 28px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-item {
  margin: 0;
  padding: 0;
}

.footer-link {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--footer-text-color);
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
  color: #14171c;
  transform: translateX(2px);
}

.footer-link:focus-visible {
  outline: 2px solid var(--footer-credit-color);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Column 4: Contact Address and Social Media Icons
   -------------------------------------------------------------------------- */
.footer-contact-address {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--footer-text-color);
  max-width: 285px;
  margin-top: 28px;
  margin-bottom: 0;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 22px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  line-height: 1;
}

.footer-social-link:hover {
  transform: translateY(-2px);
  opacity: 0.82;
}

.footer-social-link:focus-visible {
  outline: 2px solid var(--footer-credit-color);
  outline-offset: 3px;
  border-radius: 4px;
}

.footer-social-icon {
  display: block;
}

/* --------------------------------------------------------------------------
   Horizontal Divider & Centered Copyright Bar
   -------------------------------------------------------------------------- */
.footer-bottom {
  width: 100%;
  border-top: 1px solid var(--footer-divider-color);
  background-color: var(--footer-bg);
}

.footer-bottom-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 26px 24px;
}

.footer-copyright {
  font-size: 14px;
  font-weight: 400;
  color: var(--footer-text-color);
  text-align: center;
  margin: 0;
  line-height: 1.6;
}

.footer-credit {
  color: var(--footer-credit-color);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */

/* Tablets / Medium Screens (768px - 1199px) */
@media (max-width: 1199px) {
  .footer-container {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 36px;
  }

  .footer-description,
  .footer-contact-address {
    max-width: 100%;
  }
}

/* Mobile Screens (Below 768px) */
@media (max-width: 767px) {
  .footer-container {
    padding-top: 54px;
    padding-bottom: 44px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-description {
    margin-top: 24px;
    max-width: 100%;
  }

  .footer-links {
    margin-top: 20px;
    gap: 10px;
  }

  .footer-contact-address {
    margin-top: 20px;
    max-width: 100%;
  }

  .footer-social-links {
    margin-top: 20px;
    gap: 20px;
  }

  .footer-bottom-container {
    padding: 22px 16px;
  }

  .footer-copyright {
    font-size: 13px;
    line-height: 1.5;
  }
}
