/* ==========================================================================
   Mahalyaa — Premium Dark Luxury Footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SHARED FOOTER RESET
   Override the old sections.css .footer-premium which is light (#F8FAFC).
   The dark footer uses .footer-luxury class.
   -------------------------------------------------------------------------- */
.footer-luxury {
  background-color: #0c0905;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-family);
  position: relative;
  overflow: hidden;
}

/* Subtle ambient glow — very restrained */
.footer-luxury::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108, 74, 182, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.footer-luxury > * {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   2. OWNER CTA BAND
   Purple gradient band above the footer columns.
   -------------------------------------------------------------------------- */
.footer-owner-band {
  background: linear-gradient(135deg, #4a2e80 0%, #6C4AB6 60%, #7d5ac4 100%);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Hide the global CTA on the homepage, because the homepage already has a dedicated premium CTA section right above it */
.homepage-body .footer-owner-band {
  display: none;
}

.footer-owner-band::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.footer-owner-band::after {
  content: '';
  position: absolute;
  bottom: -60%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.footer-owner-band__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-owner-band__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 162, 39, 0.9);
  margin-bottom: 16px;
}

.footer-owner-band__title {
  font-family: 'Cormorant Garamond', 'Poppins', serif;
  font-size: clamp(1.8rem, 1rem + 2vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  color: #FFFFFF;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.footer-owner-band__desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 28px;
}

.footer-owner-band__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: var(--border-radius-full);
  background: var(--color-accent);
  color: #FFFFFF !important;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: var(--transition-normal);
  border: none;
  cursor: pointer;
}

.footer-owner-band__cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
  color: #FFFFFF !important;
}

/* --------------------------------------------------------------------------
   3. MAIN FOOTER BODY — columns
   -------------------------------------------------------------------------- */
.footer-luxury__body {
  padding: 72px 0 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.footer-luxury__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px 40px;
}

/* Column 1 — Brand area */
.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand__logo-link {
  display: inline-block;
  margin-bottom: 18px;
  transition: opacity 0.2s ease;
}

.footer-brand__logo-link:hover {
  opacity: 0.85;
}

.footer-brand__logo-img {
  height: 46px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  /* Logo is dark; use brightness to make it visible on dark bg */
  filter: brightness(0) invert(1);
}

.footer-brand__tagline {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.footer-brand__desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
  max-width: 260px;
  margin-bottom: 28px;
}

/* Trust badges */
.footer-trust-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.footer-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.footer-trust-pill__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* Social buttons */
.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: var(--transition-normal);
}

.footer-social-btn:hover {
  background: rgba(108, 74, 182, 0.4);
  border-color: rgba(108, 74, 182, 0.6);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   4. FOOTER COLUMNS — nav links
   -------------------------------------------------------------------------- */
.footer-col__heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-col__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col__links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  line-height: 1.4;
}

.footer-col__links a:hover {
  color: rgba(255, 255, 255, 0.92);
  transform: translateX(2px);
}

/* Location links — slightly different treatment */
.footer-col__links .location-link {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col__links .location-link::before {
  content: '↗';
  font-size: 0.7rem;
  color: var(--color-accent);
  opacity: 0.7;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   5. FOOTER BOTTOM BAR
   -------------------------------------------------------------------------- */
.footer-luxury__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-luxury__copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
  margin: 0;
}

.footer-luxury__tagline {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.06em;
}

.footer-luxury__built {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.25);
  margin: 0;
}

.footer-luxury__built span {
  color: rgba(201, 162, 39, 0.6);
}

/* --------------------------------------------------------------------------
   6. RESPONSIVE
   -------------------------------------------------------------------------- */

/* Tablet: 2 columns */
@media (max-width: 1023px) {
  .footer-luxury__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    align-items: flex-start;
  }

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

  .footer-trust-pills {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .footer-owner-band {
    padding: 50px 0;
  }
}

/* Mobile: stacked */
@media (max-width: 639px) {
  .footer-luxury__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1;
    align-items: center;
    text-align: center;
  }

  .footer-brand__desc {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-trust-pills {
    justify-content: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-col__heading {
    text-align: center;
  }

  .footer-col__links {
    align-items: center;
    text-align: center;
  }

  .footer-col__links .location-link::before {
    display: none;
  }

  .footer-luxury__body {
    padding-top: 56px;
  }

  .footer-luxury__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 40px;
    gap: 8px;
  }

  .footer-owner-band__title {
    font-size: 1.7rem;
  }

  .footer-owner-band {
    padding: 48px 0;
  }
}

/* --------------------------------------------------------------------------
   7. SIMPLE STUB FOOTER — for owner/admin pages that want a lightweight footer
   -------------------------------------------------------------------------- */
.footer-stub {
  padding: 24px 0;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.07);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   8. ACCESSIBILITY
   -------------------------------------------------------------------------- */
.footer-owner-band__cta:focus-visible,
.footer-social-btn:focus-visible,
.footer-col__links a:focus-visible,
.footer-brand__logo-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .footer-owner-band__cta,
  .footer-social-btn,
  .footer-col__links a {
    transition: none !important;
  }
}
