/* ==========================================================================
   FOOTER STANDALONE — for old template system pages (homepage, weddings, etc.)
   These pages don't load style.css, so this file provides everything the
   global footer, back-to-top button, and Wedding Advisor FAB need.
   ========================================================================== */

/* ---- 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 — Premium editorial design (new global footer)
   ========================================================================== */

.sp-footer {
  background: #faf8f5;
  border-top: 1px solid #E8E3DA;
  padding: 0;
  font-family: var(--sp-f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Top: Brand + Navigation ---- */
.sp-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 3rem 0 2rem;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.sp-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.sp-footer__brand-link {
  display: flex;
  flex-shrink: 0;
}

.sp-footer__brand-link img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.sp-footer__brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sp-footer__brand-name {
  font-family: var(--sp-f-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #C53232;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.sp-footer__brand-tag {
  font-family: var(--sp-f-body);
  font-size: 0.6rem;
  font-weight: 500;
  color: #9A8A82;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

.sp-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.8rem;
  align-items: center;
  justify-content: flex-end;
}

.sp-footer__nav a {
  font-family: var(--sp-f-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: #5A4E4E;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
  position: relative;
}

.sp-footer__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #C53232;
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.sp-footer__nav a:hover { color: #C53232; }
.sp-footer__nav a:hover::after { width: 100%; }

/* ---- Divider ---- */
.sp-footer__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #D4CFC6 20%, #D4CFC6 80%, transparent);
}

/* ---- Middle: Contact + Social ---- */
.sp-footer__mid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 0;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.sp-footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  align-items: center;
}

.sp-footer__contact-item {
  font-family: var(--sp-f-body);
  font-size: 0.72rem;
  color: #8A7A7A;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

.sp-footer__contact-item:not(span)::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #C5B9A8;
  margin-right: 0.7rem;
  vertical-align: middle;
}

.sp-footer__contact-item:hover { color: #C53232; }

.sp-footer__social {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.sp-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.04);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.sp-footer__social-link:hover {
  background: rgba(197,50,50,0.08);
  transform: translateY(-2px);
}

.sp-footer__social-link svg { width: 16px; height: 16px; }

/* ---- Bottom: Legal + Copyright ---- */
.sp-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 0 2.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.sp-footer__legal {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.sp-footer__legal a {
  font-family: var(--sp-f-body);
  font-size: 0.68rem;
  color: #A09590;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.3s;
}

.sp-footer__legal a:hover { color: #C53232; }

.sp-footer__legal-sep {
  font-size: 0.6rem;
  color: #D4CFC6;
}

.sp-footer__copyright {
  font-family: var(--sp-f-body);
  font-size: 0.65rem;
  color: #B0A5A0;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   HEADER CTA BUTTON (Let's Talk)
   ========================================================================== */

.sp-header__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.2rem;
  border: 1px solid #E4DFD8;
  border-radius: 100px;
  font-family: 'Mulish', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #313131;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}
.sp-header__cta:hover {
  background: #313131;
  color: #F6F3F0;
  border-color: #313131;
}
@media (max-width: 768px) {
  .sp-header__cta { padding: 0.4rem 0.9rem; font-size: 0.65rem; }
}

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */

.sp-backtotop {
  position: fixed;
  left: 18px;
  bottom: 22px;
  z-index: 10003;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: #111;
  color: #fff;
  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;
  -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: #C53232;
  color: #fff;
}

/* ==========================================================================
   FLOATING HEADER — show on ALL pages after scrolling
   ========================================================================== */

.header-f-wrap {
  display: block !important;
}

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

@media (max-width: 767px) {
  .sp-footer__top {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .sp-footer__brand { justify-content: center; }
  .sp-footer__nav { justify-content: center; gap: 0.5rem 1.2rem; }
  .sp-footer__mid { flex-direction: column; text-align: center; gap: 1rem; }
  .sp-footer__contact { justify-content: center; }
  .sp-footer__contact-item:not(span)::before { display: none; }
  .sp-footer__social { justify-content: center; }
  .sp-footer__bottom { flex-direction: column; text-align: center; gap: 0.8rem; }
  .sp-footer__legal { justify-content: center; }
}

/* ==========================================================================
   OLD FOOTER CLASSES (backward compat — hidden if new footer is present)
   ========================================================================== */

.sp-footer__wrap {
  display: none;
}

.sp-footer__link {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-footer__copy {
  display: none;
}

.sp-footer__loc {
  display: none;
}

.sp-footer__chat {
  display: none;
}

.sp-social {
  display: none;
}
