/* css/footer.css — Master Theme-Based Fully Responsive Footer */

/* ═══════════════════════════════════════════
   BASE FOOTER (DARK LUXURY THEME ACCORDING TO BRAND PALETTE)
   ═══════════════════════════════════════════ */
.footer {
  background: var(--dark-luxury-gradient, linear-gradient(145deg, #0a2129 0%, #0f171a 100%));
  color: #ffffff;
  padding: clamp(3.5rem, 8vw, 6rem) 0 0;
  overflow: hidden;
  position: relative;
}

/* Subtle top border gold accent glow according to theme */
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold, #b7905d), var(--color-accent, #469c76), transparent);
  z-index: 2;
}

/* Ambient radial spotlight according to brand theme */
.footer::after {
  content: '';
  position: absolute;
  bottom: -10%; left: -5%;
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(70, 156, 118, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Ensure container sits above background effects */
.footer .container {
  position: relative;
  z-index: 10;
}

/* ─── Top Grid ─────────────────────────────── */
.footer-top {
  display: grid;
  grid-template-columns: 1fr;          /* mobile: stack everything */
  gap: 2.5rem;
  margin-bottom: 3rem;
}

/* Tablet: 2 columns */
@media (min-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
  }
  /* Brand col spans full width on tablet */
  .footer-col:first-child {
    grid-column: 1 / -1;
  }
}

/* Desktop: 4-column layout */
@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
  }
  .footer-col:first-child {
    grid-column: auto;     /* reset tablet override */
  }
}

/* ─── Brand Column ─────────────────────────── */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo-img {
  height: 54px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  display: block;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 330px;
  font-weight: 300;
}

/* ─── Social Icons ─────────────────────────── */
.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(70, 156, 118, 0.35);
}

/* ─── Link Columns ─────────────────────────── */
.footer-col h4 {
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-body);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links li {
  line-height: 1.4;
}

.footer-links a,
.footer-links li {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-weight: 300;
  transition: color 0.25s ease, padding-left 0.25s ease;
  text-decoration: none;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 6px;
}

/* Contact info items */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.footer-contact-item:last-child { margin-bottom: 0; }

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  transition: color 0.25s ease;
}

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

/* ─── Divider ─────────────────────────────── */
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  margin: 0;
}

/* ─── Footer Bottom ─────────────────────────── */
.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  font-weight: 300;
}

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

.footer-bottom a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.25s ease;
}

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

/* ─── Mobile Accordion (Small Screens) ─────── */
@media (max-width: 599px) {
  .footer-col h4 {
    cursor: pointer;
    position: relative;
    margin-bottom: 0;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    user-select: none;
  }
  .footer-col h4::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
  }
  .footer-col.open h4::after {
    transform: rotate(45deg);
  }

  /* Collapsed by default */
  .footer-col:not(:first-child) .footer-links,
  .footer-col:not(:first-child) .footer-contact-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                padding 0.3s ease;
    padding-top: 0;
  }

  /* Expanded state */
  .footer-col.open .footer-links,
  .footer-col.open .footer-contact-list {
    max-height: 300px;
    padding-top: 0.75rem;
  }

  /* Brand col always visible */
  .footer-col:first-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1.5rem;
    margin-bottom: 0.5rem;
  }
}
