/**
 * SURPRISE GRANITE - FOOTER ENHANCED
 * Premium footer styling for home improvement site
 * Version: 1.0
 */

/* ===== SIMPLE FOOTER - ENHANCED ===== */
.simple-footer {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
}

/* ===== FOOTER CTA SECTION ===== */
.footer-cta {
  background: linear-gradient(135deg, #f9cb00 0%, #e6b800 100%);
  padding: 64px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.footer-cta h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: #1a2b3c;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  position: relative;
}

.footer-cta p {
  font-size: 17px;
  color: rgba(26, 43, 60, 0.8);
  margin: 0 0 28px;
  position: relative;
}

.footer-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.footer-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a2b3c;
  color: #f9cb00;
  padding: 16px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(26, 43, 60, 0.3);
  transition: all 0.3s ease;
}

.footer-btn-primary:hover {
  background: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 43, 60, 0.4);
}

.footer-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid #1a2b3c;
  color: #1a2b3c;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
}

.footer-btn-secondary:hover {
  background: rgba(26, 43, 60, 0.1);
  transform: translateY(-2px);
}

/* ===== FOOTER MAIN ===== */
.footer-main {
  padding: 64px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

/* ===== FOOTER COLUMNS ===== */
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #f9cb00;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(249, 203, 0, 0.2);
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 15px;
  padding: 8px 0;
  transition: all 0.2s ease;
  position: relative;
  padding-left: 0;
}

.footer-col a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 2px;
  background: #f9cb00;
  transition: width 0.2s ease;
  transform: translateY(-50%);
}

.footer-col a:hover {
  color: #ffffff;
  padding-left: 12px;
}

.footer-col a:hover::before {
  width: 6px;
}

/* ===== FOOTER CONTACT ===== */
.footer-contact {
  margin-bottom: 20px;
}

.footer-contact p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 16px;
  line-height: 1.6;
}

.footer-contact p strong {
  color: #ffffff;
  font-weight: 600;
}

/* ===== FOOTER SOCIALS ===== */
.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.footer-socials a:hover {
  background: #f9cb00;
  border-color: #f9cb00;
  color: #1a2b3c;
  transform: translateY(-3px);
}

.footer-socials a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ===== FOOTER BOTTOM ===== */
.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #f9cb00;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-payments {
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-payments img {
  height: 24px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer-payments img:hover {
  opacity: 1;
}

/* ===== NEWSLETTER SECTION (Optional) ===== */
.footer-newsletter {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
}

.footer-newsletter h4 {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 8px;
  border: none;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
}

.footer-newsletter p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 16px;
}

.footer-newsletter-form {
  display: flex;
  gap: 10px;
}

.footer-newsletter input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter input:focus {
  border-color: #f9cb00;
  background: rgba(255, 255, 255, 0.15);
}

.footer-newsletter button {
  padding: 12px 24px;
  background: #f9cb00;
  color: #1a2b3c;
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.footer-newsletter button:hover {
  background: #e6b800;
  transform: translateY(-2px);
}

/* ===== TRUST BADGES IN FOOTER ===== */
.footer-trust {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-trust-item svg {
  width: 20px;
  height: 20px;
  fill: #22c55e;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .footer-cta {
    padding: 48px 20px;
  }

  .footer-cta h2 {
    font-size: 26px;
  }

  .footer-main {
    padding: 48px 20px;
  }

  .footer-grid {
    gap: 32px;
  }

  .footer-btn-primary,
  .footer-btn-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col a {
    padding-left: 0;
  }

  .footer-col a:hover {
    padding-left: 0;
  }

  .footer-col a::before {
    display: none;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-trust {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .footer-newsletter-form {
    flex-direction: column;
  }
}

/* ===== CART/CHECKOUT PAGE FOOTER ===== */
.cart-footer {
  background: #1e293b;
  padding: 24px;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #f9cb00;
}

.cart-footer p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  margin: 0;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .footer-btn-primary,
  .footer-btn-secondary,
  .footer-socials a,
  .footer-col a {
    transition: none;
  }
}
