﻿/* ===========================================
   FOOTER COMPONENT STYLES
   =========================================== */

/* CSS Custom Properties (Variables) */
:root {
  --footer-bg-solid: #1b4d3e;
  --footer-accent: #2ecc71;
  --footer-text-muted: rgba(255, 255, 255, 0.7);
  --footer-border: rgba(255, 255, 255, 0.1);
}

/* ===========================================
   MAIN FOOTER STRUCTURE
   =========================================== */

.eco-footer {
  background: var(--footer-bg-solid);
  color: #ffffff;
  padding: 40px 0 0; /* reduced from 60px */
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.eco-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--footer-accent), #3498db);
}

/* Footer Top Section */
.footer-top {
  padding-bottom: 25px; /* reduced */
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px; /* reduced side spacing */
}

.footer-top .footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 32px; /* reduced from 60px */
}

.footer-bottom .footer-container {
  display: block;
}

/* ===========================================
   FOOTER COMPONENTS
   =========================================== */

/* Footer About Section */
.footer-about {
  padding-right: 20px;
}

.footer-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.footer-logo {
  width: 45px;
  height: 45px;
  filter: brightness(0) invert(1);
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--footer-text-muted);
  margin-bottom: 20px; /* reduced */
}

/* Footer Column Headers */
.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 15px; /* reduced */
  color: #ffffff;
  position: relative;
}

/* Social Links */
.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social .social {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--footer-border);
}

.footer-social .social:hover {
  background: var(--footer-accent);
  color: #1a1a1a;
  transform: translateY(-4px);
  border-color: var(--footer-accent);
}

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

.footer-links-list li {
  margin-bottom: 6px; /* reduced gap between links */
}

.footer-links-list a {
  color: var(--footer-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-links-list a:hover {
  color: var(--footer-accent);
  transform: translateX(5px);
}

/* Footer Contact */
.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--footer-text-muted);
  font-size: 0.9rem;
}

.footer-contact i {
  color: var(--footer-accent);
  margin-top: 4px;
}

/* Newsletter Section */
.footer-newsletter-col {
  padding-left: 24px; /* reduced */
  border-left: 1px solid var(--footer-border);
}

.newsletter-footer-text {
  font-size: 0.9rem;
  color: var(--footer-text-muted);
  margin-bottom: 20px;
}

.newsletter-footer-input-group {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px;
  border-radius: 10px;
  border: 1px solid var(--footer-border);
  transition: all 0.3s ease;
}

.newsletter-footer-input-group:focus-within {
  border-color: var(--footer-accent);
  background: rgba(255, 255, 255, 0.08);
}

.newsletter-footer-input {
  background: transparent;
  border: none;
  padding: 10px 15px;
  color: #fff;
  flex: 1;
  font-size: 0.9rem;
  outline: none;
}

.newsletter-footer-btn {
  background: var(--footer-accent);
  color: #1a1a1a;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-footer-btn:hover {
  background: #27ae60;
  transform: scale(1.05);
}

.newsletter-footer-message {
  margin-top: 10px;
  font-size: 0.8rem;
  min-height: 20px;
}

.newsletter-footer-message.success {
  color: #2ecc71;
}

.newsletter-footer-message.error {
  color: #e74c3c;
}

/* ===========================================
   FOOTER BOTTOM SECTION
   =========================================== */

.footer-bottom {
  padding: 20px 0; /* reduced */
  border-top: 1px solid var(--footer-border);
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  width: 100%;
}

.copyright-text {
  flex: 1 1 auto;
  min-width: 300px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-credit-sep {
  opacity: 0.3;
  margin: 0 5px;
}

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

/* Tablet and Mobile Styles */
@media (max-width: 768px) {
  .copyright-text {
    flex-direction: column;
    gap: 5px;
  }

  .footer-credit-sep {
    display: none;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

/* Mobile Styles */
@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-about,
  .footer-newsletter-col {
    grid-column: span 1;
  }

  .footer-logo-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    font-size: 1.2rem;
  }

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

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

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