/**
 * Site Pre-Footer
 *
 * Branded footer section injected via kadence_before_footer hook.
 * Matches homepage dark green + gold aesthetic.
 */

/* ========================================
   PRE-FOOTER SECTION
   ======================================== */

.sm-prefooter {
  background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 50%, #1e3a28 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 2rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  position: relative;
}

/* Subtle texture overlay */
.sm-prefooter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ----------------------------------------
   Newsletter signup row (above columns)
   ---------------------------------------- */

.sm-newsletter-footer {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.sm-newsletter-footer h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.sm-newsletter-footer h3 span {
  background: linear-gradient(135deg, #d4a853, #f5d89a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sm-newsletter-footer p {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.sm-newsletter-footer-input-group {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
}

.sm-newsletter-footer-input-group input[type='email'] {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.sm-newsletter-footer-input-group input[type='email']::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.sm-newsletter-footer-input-group input[type='email']:focus {
  border-color: #d4a853;
}

.sm-newsletter-footer-input-group button {
  padding: 0.65rem 1.4rem;
  background: linear-gradient(135deg, #d4a853, #b8923d);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 168, 83, 0.3);
}

.sm-newsletter-footer-input-group button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(212, 168, 83, 0.4);
}

.sm-newsletter-footer-input-group button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.sm-newsletter-footer-message {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #ff8a80;
}

.sm-newsletter-footer-subscribed {
  text-align: center;
}

.sm-newsletter-footer-subscribed p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 600px) {
  .sm-newsletter-footer-input-group {
    flex-direction: column;
  }

  .sm-newsletter-footer-input-group button {
    width: 100%;
  }
}

.sm-prefooter-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ----------------------------------------
   Grid layout: 4 columns on desktop
   ---------------------------------------- */

.sm-prefooter-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

/* ----------------------------------------
   Column 1: Brand + app links
   ---------------------------------------- */

.sm-prefooter-brand h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.sm-prefooter-brand h3 span {
  background: linear-gradient(135deg, #d4a853, #f5d89a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sm-prefooter-brand p {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.sm-prefooter-apps {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.sm-prefooter-app-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.sm-prefooter-app-link:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.sm-prefooter-app-link i {
  font-size: 1rem;
}

/* ----------------------------------------
   Column headings
   ---------------------------------------- */

.sm-prefooter h4 {
  color: #d4a853;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}

/* ----------------------------------------
   Column 2 & 3: Link lists
   ---------------------------------------- */

.sm-prefooter-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sm-prefooter-links li {
  margin-bottom: 0.5rem;
}

.sm-prefooter-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.sm-prefooter-links a:hover {
  color: #fff;
  text-decoration: none;
}

/* ----------------------------------------
   Column 4: Events + CTA
   ---------------------------------------- */

.sm-prefooter-cta-text {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.sm-prefooter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #d4a853, #b8923d);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 168, 83, 0.3);
}

.sm-prefooter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 168, 83, 0.4);
  color: #fff;
  text-decoration: none;
}

.sm-prefooter-contact {
  display: block;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sm-prefooter-contact:hover {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

/* ----------------------------------------
   Bottom bar: divider + copyright
   ---------------------------------------- */

.sm-prefooter-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sm-prefooter-copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.sm-prefooter-legal {
  display: flex;
  gap: 1.25rem;
}

.sm-prefooter-legal a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sm-prefooter-legal a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ========================================
   HIDE KADENCE DEFAULT FOOTER
   The pre-footer now includes copyright + legal links,
   so Kadence's minimal footer is redundant.
   ======================================== */

.site-footer {
  display: none;
}

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

@media (max-width: 900px) {
  .sm-prefooter-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .sm-prefooter {
    padding: 2rem 0 1.5rem;
  }

  .sm-prefooter-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .sm-prefooter-bottom {
    flex-direction: column;
    text-align: center;
  }

  .sm-prefooter-legal {
    justify-content: center;
  }
}
