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

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

/* ================================
   FOOTER BASE - FULL VIEWPORT WIDTH
   ================================ */
.site-footer {
  background: var(--dark-bg);
  color: var(--text-secondary);
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  width: 100%;
  /* Ensure footer fills viewport bottom — no gap for body gradient to show through */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top content constrained to 1400px */
.footer-content-wrapper {
  width: 100%;
  max-width: 1600px;
  text-align: left;
  margin: 0 auto;
  padding: 70px 40px 0;
  flex: 1;
}

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

/* ================================
   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-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(--primary-green) !important;
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(27, 67, 50, 0.4);
}

.social-link:hover svg {
  fill: #FFFFFF !important;
}

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

.footer-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--primary-green);
  display: inline-block;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
}

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

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

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

.footer-links a:hover {
  color: var(--text-primary);
  padding-left: 6px;
}

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

/* ================================
   FOOTER CONTACT
   ================================ */
.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  margin-bottom: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: rgba(27, 67, 50, 0.15);
  border-radius: 6px;
  color: var(--primary-green);
  margin-top: 1px;
}

.contact-icon svg {
  width: 13px;
  height: 13px;
}

/* ================================
   FOOTER BOTTOM ROW - SAME WIDTH AS GRID
   ================================ */
.footer-bottom-row {
  width: 100%;
  max-width: 1600px;
  text-align: left;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom-inner {
  padding: 40px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.025);
}

/* ================================
   CERTIFICATIONS
   ================================ */
.footer-certs {
  flex: 1 1 260px;
  background: rgba(27, 67, 50, 0.05);
  padding: 40px;
  margin-bottom: 60px;
}

.cert-icons-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.cert-badge {
  width: 48px;
  height: 48px;
  background: #FFFFFF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 10px;
  color: var(--primary-green);
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

.cert-footnote {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}
}

/* ================================
   NEWSLETTER
   ================================ */
.footer-newsletter {
  flex: 1 1 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.newsletter-title {
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.newsletter-desc {
  text-align: left;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
  line-height: 1.5;
}

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

.newsletter-input {
  flex: 1;
  padding: 11px 14px;
  background: #252525;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.3s ease, background 0.3s ease;
  box-sizing: border-box;
}

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

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary-green);
  background: #2a2a2a;
}

.newsletter-btn {
  padding: 11px 20px;
  background: var(--primary-green);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: inherit;
}

.newsletter-btn:hover {
  background: var(--primary-green-dark);
  box-shadow: 0 4px 15px rgba(27, 67, 50, 0.35);
  transform: translateY(-1px);
}

.newsletter-btn:active {
  transform: translateY(0);
}

/* ================================
   COPYRIGHT - TRUE FOOTER BOTTOM
   ================================ */
.copyright {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 40px;
  text-align: center;
  background: var(--darker-bg);
  width: 100%;
  box-sizing: border-box;
  /* Push to bottom of footer via flex */
  margin-top: auto;
}

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

.copyright-links {
  display: flex;
  justify-content: center;
  gap: 14px;
}

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

.copyright-links a:hover {
  color: var(--primary-green);
}

.copyright-links span {
  color: #444;
}

/* ================================
   RESPONSIVE - TABLET
   ================================ */
@media (max-width: 1024px) {
  .footer-content-wrapper {
    padding: 60px 24px 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

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

  .footer-bottom-row {
    padding: 0 24px;
  }
}

/* ================================
   RESPONSIVE - MOBILE
   ================================ */
@media (max-width: 768px) {
  .footer-content-wrapper {
    padding: 50px 20px 0;
  }

  .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: center;
  }

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

  .footer-bottom-row {
    padding: 0 20px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    padding: 28px 0;
    gap: 32px;
  }

  .footer-newsletter {
    display: block;
  }

  .newsletter-inner {
    display: block;
    padding: 30px 0 0;
  }

  .newsletter-left {
    max-width: 100%;
    margin-bottom: 24px;
  }

  .newsletter-why {
    max-width: 100%;
    padding-left: 0;
  }

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

  .newsletter-btn {
    width: 100%;
  }

  .copyright {
    padding: 20px;
  }
}

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

  .cert-footnote {
    font-size: 11px;
  }

  .cert-icons-row {
    gap: 12px;
  }

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

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

  .footer-bottom-row {
    padding: 0 16px;
  }

  .footer-bottom-inner {
    padding: 24px 0;
  }
}

.newsletter-left {
  max-width: 620px;
}
.newsletter-why {
  padding-left: 8px;
  max-width: 620px;
}
.newsletter-why h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-align: left;
}
.newsletter-why ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.newsletter-why ul li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
  padding-left: 18px;
  position: relative;
}
.newsletter-why ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  background: var(--primary-green);
  border-radius: 50%;
}
