/* Footer CTA & Footer Wrapper: the page closes in warm charcoal, with a soft lavender halo
   behind the closing call to action and a little lamp light low on each side. */
.footer-cta-wrapper {
  position: relative;
  overflow: hidden;
  background-color: var(--color-deep);
  background-image:
    radial-gradient(ellipse 120% 90% at 50% 20%, rgba(145, 128, 172, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 90% 70% at 12% 90%, rgba(232, 178, 118, 0.06) 0%, transparent 65%),
    radial-gradient(ellipse 85% 65% at 88% 85%, rgba(124, 145, 163, 0.06) 0%, transparent 65%),
    linear-gradient(168deg, var(--color-deep) 0%, #262120 38%, #1a1716 100%);
}

.footer-cta-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  isolation: isolate;
  opacity: 1;
  padding: var(--space-48) var(--space-24);
  text-align: center;
}

/* Wide, soft halo behind headline, CTA, and social proof */
.footer-cta-content::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: min(140vw, 56rem);
  height: 200%;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 100% 90% at 50% 48%, rgba(192, 198, 213, 0.06) 0%, transparent 78%),
    radial-gradient(ellipse 75% 70% at 35% 55%, rgba(244, 114, 182, 0.04) 0%, transparent 82%),
    radial-gradient(ellipse 70% 65% at 65% 52%, rgba(253, 230, 138, 0.04) 0%, transparent 82%),
    radial-gradient(ellipse 120% 100% at 50% 50%, rgba(159, 145, 177, 0.04) 0%, transparent 85%);
  filter: blur(32px);
  opacity: 0.45;
}

.footer-cta-title {
  font-family: var(--font-display);
  font-variation-settings: var(--font-display-axes, "SOFT" 60, "opsz" 48);
  font-size: var(--fs-32);
  font-weight: var(--weight-regular);
  color: var(--text);
  margin-bottom: var(--space-16);
  line-height: 1.2;
}

.footer-cta-subtitle {
  font-family: var(--font-ui);
  font-size: var(--fs-18);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-32);
  line-height: 1.6;
}

.footer-cta-button {
  display: inline-block;
  padding: var(--space-16) var(--space-40);
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
  color: var(--color-white, #ffffff);
  text-decoration: none;
  border-radius: var(--radius-button);
  font-weight: var(--weight-medium);
  font-size: var(--fs-18);
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgb(var(--rgb-brand) / 0.3);
  will-change: transform, box-shadow;
}

.footer-cta-button:hover {
  background: linear-gradient(135deg, var(--brand-primary-hover) 0%, var(--brand-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgb(var(--rgb-brand) / 0.4);
}

.footer-cta-facebook {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  align-items: center;
  margin-top: var(--space-32);
}

.footer-cta-facebook-logo {
  height: 20px;
  width: auto;
  /* Facebook's blue, softened for the warm charcoal: less saturated, a touch lighter. */
  filter: saturate(0.55) brightness(1.35);
  opacity: 0.92;
}

.footer-cta-rating {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-cta-rating-stars {
  color: var(--color-star);
  font-size: var(--fs-16);
  letter-spacing: 1px;
  line-height: 1;
}

.footer-cta-rating-text {
  font-weight: var(--weight-semibold);
  color: var(--text);
  font-size: var(--fs-14);
  line-height: 1;
}

.footer-cta-rating-count {
  font-size: var(--fs-14);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  line-height: 1.4;
}

/* Divider between CTA and Footer */
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 0 var(--space-24);
  position: relative;
  z-index: 10;
}

/* Footer Styles — horizontal rhythm matches v3 .nav (homepage.css @768px: max-width 2400px, padding 1.5rem 3rem) */
.footer {
  background: transparent;
  color: var(--text);
  padding: var(--space-48) 0 var(--space-32);
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 2400px;
  margin: 0 auto;
  padding: 0 var(--space-24);
  box-sizing: border-box;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-40);
  margin-bottom: var(--space-32);
}

.footer-logo-column {
  display: flex;
  justify-content: center;
}

.footer-logo {
  height: 2rem;
  width: auto;
}

.footer-column-header {
  font-family: var(--font-ui);
  font-size: var(--fs-14);
  font-weight: var(--weight-semibold);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 var(--space-16) 0;
}

.footer-column-no-header ul {
  margin-top: var(--space-32);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: var(--space-8);
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: var(--fs-15);
  transition: color var(--transition-base);
}

.footer-column ul li a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-24);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-16);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-14);
  margin: 0;
  text-align: center;
}

.footer-legal {
  display: flex;
  gap: var(--space-24);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: var(--fs-14);
  transition: opacity var(--transition-base);
}

.footer-legal a:hover {
  opacity: 1;
  color: var(--text);
}

/* Desktop Styles */
@media (min-width: 768px) {
  .footer-cta-content {
    padding: var(--space-96) var(--space-48);
  }

  .footer-cta-content::before {
    width: min(120vw, 72rem);
    height: 240%;
    filter: blur(48px);
    opacity: 0.5;
  }

  .footer-cta-title {
    font-size: 3.5rem;
  }

  .footer-cta-subtitle {
    font-size: var(--fs-20);
  }
  
  .footer-divider {
    margin: 0 var(--space-48);
  }

  /* One line, set on a shared baseline: the wordmark's letters, the stars and the words all
     sit on the same line, which reads as centered (box centering left the wordmark low). */
  .footer-cta-facebook {
    flex-direction: row;
    gap: var(--space-12);
    margin-top: var(--space-40);
    align-items: baseline;
    justify-content: center;
  }
  .footer-cta-rating { align-items: baseline; }
  .footer-cta-rating-count { line-height: 1; }

  .footer-cta-facebook-logo {
    height: 24px;
    width: auto;
  }

  .footer-cta-rating {
    gap: var(--space-8);
    justify-content: flex-start;
  }

  .footer-cta-rating-stars {
    font-size: var(--fs-20);
    line-height: 1;
  }

  .footer-cta-rating-text {
    font-size: var(--fs-16);
    line-height: 1;
  }

  .footer-cta-rating-count {
    font-size: var(--fs-14);
    margin-left: var(--space-8);
    text-align: left;
  }

  .footer {
    padding: var(--space-80) 0 var(--space-40);
  }

  .footer-content {
    padding: 0 var(--space-48);
  }

  .footer-columns {
    /* 6 columns: Company, Tools, Occasions(x3), Social. Logo column was
       removed in favor of giving the SEO text block full width below. */
    grid-template-columns: repeat(6, 1fr);
    gap: 2.5rem;
    align-items: start;
  }

  .footer-logo-column {
    justify-content: flex-start;
  }

  .footer-column-no-header ul {
    margin-top: var(--space-32);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-copyright {
    text-align: left;
  }
}

/* Footer SEO text block */
.footer-seo-text {
  padding: var(--space-24) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-8);
}

.footer-seo-text p {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-12);
  line-height: 1.6;
  max-width: none;
}
