/*
 * EcoPack Solutions - Footer Styles v3.0
 * Design: Consistent with header.css color system
 * Last Updated: 2026-04-07
 */

:root {
  --primary-green: #2D5A27;
  --primary-green-dark: #245020;
  --primary-green-light: #3A7A34;
  --accent-gold: #F5A623;
  --accent-gold-light: #F7B84B;
  --dark-bg: #1A1A1A;
  --darker-bg: #111111;
  --card-bg: #222222;
  --text-primary: #FFFFFF;
  --text-secondary: #CCCCCC;
  --text-muted: #666666;
  --border-subtle: rgba(255, 255, 255, 0.06);
}

/* ================================
   FOOTER BASE
   ================================ */
.site-footer {
  background: var(--dark-bg);
  color: var(--text-secondary);
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding-top: 70px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 40px;
}

/* ================================
   FOOTER ABOUT SECTION
   ================================ */
.footer-about {
  padding-right: 10px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 20px;
  text-decoration: none;
}

.footer-logo img {
  height: 48px;
  width: auto;
}

.footer-slogan {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-green-light);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  margin-top: -4px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* Social Links - SVG Brand Colors */
.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: var(--brand-color, #888);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link svg {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.social-link:hover {
  background: var(--brand-color, #888);
  color: white;
  transform: translateY(-2px);
}

.social-link:hover svg {
  color: white;
}

/* Stats Row */
.footer-stats-row {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.footer-stat-item {
  text-align: left;
}

.stat-number {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-green-light);
}

.stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ================================
   FOOTER SECTIONS
   ================================ */
.footer-section {
  min-width: 0;
}

.footer-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  display: block;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  display: inline-block;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-green-light);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-green-light);
  padding-left: 4px;
}

.footer-links a:hover::after {
  width: 100%;
}

/* ================================
   FOOTER CONTACT
   ================================ */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.footer-contact i {
  width: 18px;
  color: var(--primary-green-light);
  text-align: center;
}

.footer-contact a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--primary-green-light);
}

/* ================================
   CERTIFICATIONS
   ================================ */
.certifications {
  background: var(--darker-bg);
  padding: 35px 40px;
  margin-top: 20px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cert-icon {
  width: 48px;
  height: 48px;
  background: var(--card-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--primary-green-light);
  flex-shrink: 0;
}

.cert-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.cert-text strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
}

/* ================================
   NEWSLETTER
   ================================ */
.newsletter-section {
  border-top: 1px solid var(--border-subtle);
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.newsletter-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.newsletter-text h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.newsletter-text p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex: 1;
  max-width: 450px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.newsletter-input::placeholder {
  color: var(--text-muted);
}

.newsletter-input:focus {
  border-color: var(--primary-green);
}

.newsletter-btn {
  padding: 12px 24px;
  background: var(--primary-green);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: var(--primary-green-dark);
  transform: translateY(-1px);
}

/* ================================
   FOOTER BOTTOM
   ================================ */
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 25px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.copyright p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

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

.footer-legal a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--primary-green-light);
}

/* ================================
   RESPONSIVE - TABLET
   ================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-about {
    grid-column: span 2;
  }

  .cert-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .newsletter-content {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    max-width: 100%;
    width: 100%;
  }
}

/* ================================
   RESPONSIVE - MOBILE
   ================================ */
@media (max-width: 768px) {
  .site-footer {
    padding-top: 50px;
  }

  .footer-main {
    padding: 0 20px 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-about {
    grid-column: span 1;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-logo {
    display: block;
    text-align: center;
  }

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

  .footer-title {
    display: block;
  }

  .footer-links a:hover {
    padding-left: 0;
    transform: none;
  }

  .footer-links a:hover::after {
    width: 0;
  }

  .footer-contact p {
    justify-content: flex-start;
    text-align: left;
  }

  .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .certifications {
    padding: 24px 20px;
  }

  .cert-grid {
    gap: 24px;
  }

  .cert-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .newsletter-section {
    padding: 32px 20px;
  }

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

  .newsletter-btn {
    width: 100%;
  }

  .copyright {
    padding: 20px;
  }
}

/* ================================
   RESPONSIVE - SMALL MOBILE
   ================================ */
@media (max-width: 480px) {
  .cert-icon {
    width: 44px;
    height: 44px;
    font-size: 10px;
  }

  .cert-text {
    font-size: 12px;
  }

  .cert-grid {
    gap: 18px;
  }

  .footer-title {
    font-size: 12px;
    letter-spacing: 1.2px;
  }

  .footer-about p {
    font-size: 13px;
  }
}

/* ========================================
   FULL WIDTH FIX FOR CATEGORY PAGES
   ======================================== */
.footer-cta-section,
.site-footer {
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

/* Remove gap between CTA and footer */
.footer-cta-section {
    margin-bottom: 0 !important;
}

.site-footer {
    margin-top: 0 !important;
}

/* Prevent horizontal scroll - only on footer, not body (breaks sticky) */
.site-footer {
    overflow-x: hidden !important;
}

/* Alternative: use wrapper for overflow control */
.footer-cta-section,
.site-footer {
    overflow-x: hidden;
}
