/* ==========================================================================
   FOOTER STANDALONE — for old template system pages (homepage, weddings, etc.)
   These pages don't load style.css, so this file provides everything the
   footer needs: container, layout, typography, and responsive behaviour.
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  --sp-deep:          #1E1E1E;
  --sp-deep-2:        #171717;
  --sp-brand:         #DF5253;
  --sp-brand-deep:    #B93E3F;
  --sp-canvas:        #F6F3F0;
  --sp-white:         #FFFFFF;

  --sp-f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sp-f-body:    "Mulish", "Helvetica Neue", system-ui, sans-serif;
  --sp-f-sans:    "Mulish", "Helvetica Neue", system-ui, sans-serif;

  --sp-text-xs:  0.75rem;
  --sp-text-sm:  0.875rem;

  --sp-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --sp-fast:     180ms;
}

/* ---- Container ---- */
.sp-container {
  width: 100%;
  max-width: 85.375rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.sp-footer {
  background: var(--sp-deep);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--sp-f-body);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Inner wrapper (flex row: nav + copyright + location) ---- */
.sp-footer__wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 2.8rem 0 2rem;
  flex-wrap: wrap;
}

/* ---- Navigation links ---- */
.sp-footer__link {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.sp-footer__link a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color var(--sp-fast) var(--sp-ease-out);
}

.sp-footer__link a:hover {
  color: var(--sp-white);
}

/* ---- WhatsApp chat link ---- */
.sp-footer__chat a {
  color: rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color var(--sp-fast) var(--sp-ease-out);
}

.sp-footer__chat a svg {
  width: 18px;
  height: 18px;
}

.sp-footer__chat a:hover {
  color: #25D366;
}

/* ---- Copyright ---- */
.sp-footer__copy {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  text-align: center;
}

/* ---- Location / contact line ---- */
.sp-footer__loc {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

.sp-footer__loc a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color var(--sp-fast) var(--sp-ease-out);
}

.sp-footer__loc a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Separator dots between location items */
.sp-footer__loc span + span::before,
.sp-footer__loc span + a::before,
.sp-footer__loc a + span::before,
.sp-footer__loc a + a::before {
  content: "\00b7";
  margin-right: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
}

/* ---- Social icons row ---- */
.sp-social {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
}

.sp-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color var(--sp-fast) var(--sp-ease-out),
              transform var(--sp-fast) var(--sp-ease-out);
}

.sp-social a svg {
  width: 0.9rem;
  height: 0.9rem;
}

.sp-social a:hover {
  color: var(--sp-white);
  transform: translateY(-2px);
}
/* Brand icons: default state is coloured, hover brightens */
.sp-social__icon { transition: filter 0.3s ease, transform 0.3s ease; }
.sp-social a:hover .sp-social__icon--ig { filter: drop-shadow(0 0 4px rgba(214, 41, 118, 0.4)) brightness(1.2); }
.sp-social a:hover .sp-social__icon--yt { filter: drop-shadow(0 0 4px rgba(255, 0, 0, 0.4)) brightness(1.2); }
.sp-social a:hover .sp-social__icon--li { filter: drop-shadow(0 0 4px rgba(10, 102, 194, 0.4)) brightness(1.2); }

/* ---- Legal links bar ---- */
.sp-footer__legal {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sp-footer__legal a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  transition: color var(--sp-fast) var(--sp-ease-out);
}

.sp-footer__legal a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ---- Back to top button ---- */
.sp-backtotop {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.85);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 90;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.sp-backtotop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sp-backtotop:hover {
  background: rgba(30, 30, 30, 0.95);
  color: #fff;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .sp-footer__wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
  }
  .sp-footer__link {
    justify-content: center;
    gap: 1rem;
  }
  .sp-footer__loc {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .sp-footer__link {
    gap: 0.8rem;
  }
  .sp-footer__link a {
    font-size: 0.75rem;
  }
  .sp-footer__loc {
    flex-direction: column;
    gap: 0.3rem;
  }
  .sp-footer__loc span + span::before,
  .sp-footer__loc span + a::before,
  .sp-footer__loc a + span::before,
  .sp-footer__loc a + a::before {
    content: "";
    margin-right: 0;
  }
  .sp-footer__legal {
    gap: 1rem;
  }
}
