/**
 * G-INVITE / GIFTALAYA — Universal Site Footer & Policy Modal Styles
 * Consistent across all pages (index, wedding-templates, birthday-templates, template-preview)
 */

/* ---------------------------------------------------------
   1. FOOTER CONTAINER & LAYOUT
   --------------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, #241635 0%, #1a0f26 100%);
  color: #c9bed8;
  padding: 48px 0 26px;
  border-top: 1px solid rgba(201, 158, 78, 0.22);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
  width: 100%;
  position: relative;
}

.site-footer * {
  box-sizing: border-box;
}

.site-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------
   2. MAIN FOOTER CONTENT WRAPPER
   --------------------------------------------------------- */
.footer-simple-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  padding-bottom: 28px;
}

/* Brand Side */
.footer-brand-side {
  max-width: 440px;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 10px;
}

.footer-brand-logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-brand-tag {
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
}

.footer-simple-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #b3a5c2;
  margin: 0;
}

/* Links & Contact Side */
.footer-links-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.footer-legal-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-legal-link {
  font-size: 14px;
  font-weight: 600;
  color: #e5daf0;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

.footer-legal-link:hover {
  color: #f5e4bd;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-dot {
  color: rgba(201, 158, 78, 0.45);
  font-size: 16px;
  user-select: none;
}

.footer-contact-pill {
  margin-top: 2px;
}

.footer-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #2ee06f;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.footer-wa-btn svg.lucide,
.footer-wa-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.footer-wa-btn:hover {
  background: rgba(37, 211, 102, 0.22);
  border-color: rgba(37, 211, 102, 0.55);
  color: #3ef07e;
  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   3. BOTTOM BAR (Copyright & Trust Badges)
   --------------------------------------------------------- */
.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
  font-size: 12.5px;
  color: #9b8da9;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-copy-text {
  font-size: 12.5px;
  color: #9b8da9;
}

.footer-trust-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #b3a5c2;
  font-size: 12px;
  font-weight: 500;
}

.trust-tag svg.lucide,
.trust-tag svg {
  width: 13px;
  height: 13px;
  color: #e8c97a;
  stroke: currentColor;
}

.trust-tag-dot {
  color: rgba(201, 158, 78, 0.4);
  user-select: none;
}

/* ---------------------------------------------------------
   OPTIONAL PALETTES (EASY TOGGLE)
   --------------------------------------------------------- */
/* Variant: Warm Champagne Cashmere (Light) */
.site-footer.theme-champagne {
  background: #f4ede4;
  color: #5d5045;
  border-top: 1px solid #dfd2c0;
}
.site-footer.theme-champagne .footer-brand-logo { filter: none; }
.site-footer.theme-champagne .footer-brand-tag { color: #2a1b12; }
.site-footer.theme-champagne .footer-simple-desc { color: #73655a; }
.site-footer.theme-champagne .footer-legal-link { color: #3b2b20; }
.site-footer.theme-champagne .footer-legal-link:hover { color: #744b9e; }
.site-footer.theme-champagne .footer-dot { color: #c4b5a2; }
.site-footer.theme-champagne .footer-wa-btn { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.site-footer.theme-champagne .footer-bottom-bar { border-top-color: #e5d9ca; color: #87786b; }
.site-footer.theme-champagne .trust-tag { color: #6e6053; }
.site-footer.theme-champagne .trust-tag svg { color: #c99e4e; }

/* Variant: Soft Royal Lavender (Light) */
.site-footer.theme-lavender {
  background: #f5f0f9;
  color: #554760;
  border-top: 1px solid #e3d8ec;
}
.site-footer.theme-lavender .footer-brand-logo { filter: none; }
.site-footer.theme-lavender .footer-brand-tag { color: #241432; }
.site-footer.theme-lavender .footer-simple-desc { color: #6d5e7a; }
.site-footer.theme-lavender .footer-legal-link { color: #362447; }
.site-footer.theme-lavender .footer-legal-link:hover { color: #744b9e; }
.site-footer.theme-lavender .footer-dot { color: #baa7cc; }
.site-footer.theme-lavender .footer-wa-btn { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.site-footer.theme-lavender .footer-bottom-bar { border-top-color: #e8dff0; color: #7e6f8c; }
.site-footer.theme-lavender .trust-tag { color: #615270; }
.site-footer.theme-lavender .trust-tag svg { color: #9a6ec9; }

/* ---------------------------------------------------------
   4. LEGAL & POLICY MODAL
   --------------------------------------------------------- */
.policy-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
}

.policy-modal-overlay * {
  box-sizing: border-box;
}

.policy-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.policy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 10, 17, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.policy-modal-dialog {
  position: relative;
  z-index: 10;
  max-width: 680px;
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px 32px 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 85vh;
  overflow-y: auto;
}

.policy-modal-dialog::-webkit-scrollbar {
  width: 10px;
}

.policy-modal-dialog::-webkit-scrollbar-track {
  background: transparent;
  margin-block: 20px;
}

.policy-modal-dialog::-webkit-scrollbar-thumb {
  background-color: rgba(116, 75, 158, 0.22);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

.policy-modal-dialog::-webkit-scrollbar-thumb:hover {
  background-color: rgba(116, 75, 158, 0.42);
}

.policy-modal-dialog::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.policy-modal-overlay.is-open .policy-modal-dialog {
  transform: scale(1) translateY(0);
}

.policy-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f4efe9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #57504a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.policy-modal-close:hover {
  background: #e8e0d6;
  color: #1a1715;
  transform: rotate(90deg);
}

.policy-tabs-nav {
  display: flex;
  gap: 4px;
  background: #f4efe9;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 24px;
  margin-right: 36px;
  overflow-x: auto;
  scrollbar-width: none;
}

.policy-tabs-nav::-webkit-scrollbar {
  display: none;
}

.policy-tab-btn {
  flex: 1;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #6b6158;
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}

.policy-tab-btn.active {
  background: #ffffff;
  color: #744b9e;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  font-weight: 700;
}

.policy-tab-panel {
  display: none;
}

.policy-tab-panel.active {
  display: block;
  animation: fadeInPolicyTab 0.25s ease;
}

@keyframes fadeInPolicyTab {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.policy-panel-header {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0ebe4;
}

.policy-heading {
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 800;
  color: #1c1716;
  margin: 0 0 4px;
}

.policy-updated {
  font-size: 12px;
  color: #8c8278;
  font-weight: 500;
}

.policy-body {
  font-size: 14px;
  line-height: 1.65;
  color: #4a433e;
}

.policy-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: #241d1a;
  margin: 18px 0 6px;
}

.policy-body h4:first-of-type {
  margin-top: 0;
}

.policy-body p {
  margin: 0 0 12px;
  color: #5c544e;
}

.policy-inline-link {
  color: #744b9e;
  font-weight: 600;
  text-decoration: underline;
}

/* Contact Cards in Policy Modal */
.contact-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #faf8f5;
  border: 1px solid #eee7de;
  transition: all 0.2s;
}

.contact-card:hover {
  border-color: #744b9e;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(116, 75, 158, 0.08);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f1e9f8;
  color: #744b9e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg.lucide,
.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.contact-info h5 {
  font-size: 14.5px;
  font-weight: 700;
  color: #211c19;
  margin: 0 0 4px;
}

.contact-info p {
  font-size: 13px;
  color: #6e655d;
  margin: 0 0 8px;
  line-height: 1.5;
}

.contact-btn-link {
  font-size: 13px;
  font-weight: 700;
  color: #744b9e;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.contact-btn-link:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------
   5. RESPONSIVE BREAKPOINTS
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-simple-wrap {
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 38px 0 24px;
  }
  .site-footer .footer-container {
    padding: 0 16px;
  }
  .footer-simple-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footer-links-side {
    align-items: flex-start;
    width: 100%;
  }
  .footer-legal-nav {
    gap: 8px 12px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .policy-modal-dialog {
    padding: 24px 20px 20px;
  }
  .policy-tabs-nav {
    margin-right: 0;
  }
}
