/* ===========================
   Footer Styles - Equus Energy
   =========================== */

/* ===========================
   Theme Variables (inherited from root)
   =========================== */
:root {
  --brand: #ed2e2e;
  --brand-2: #b61f1f;
  --text: #0b1220;
  --muted: #6b7280;
  --surface: #f7f8fb;
  --surface-2: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="dark"] {
  --text: #e6edf3;
  --muted: #9fb0c3;
  --surface: #121821;
  --surface-2: #0f141c;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ===========================
   Site Footer
   =========================== */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
  padding: 80px 20px 40px;
  position: relative;
  margin-top: 0;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  z-index: 1;
}

/* Footer Container */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 50px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

/* Footer Columns */
.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column h3 {
  color: var(--text);
  margin-bottom: 25px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding-bottom: 10px;
  font-weight: 700;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.footer-column:hover h3::after {
  width: 50px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 15px;
}

.footer-column ul li a {
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  position: relative;
}

.footer-column ul li a:hover {
  color: var(--brand);
  transform: translateX(8px);
}

.footer-column ul li a::before {
  content: '›';
  opacity: 0;
  transform: translateX(-5px);
  transition: var(--transition-smooth);
  font-size: 1.2rem;
  line-height: 1;
}

.footer-column ul li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Footer Bottom Section */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 2;
}

/* Footer Logo */
.footer-logo {
  height: 45px;
  width: auto;
  filter: brightness(0.9);
  transition: var(--transition-smooth);
  display: block;
}

.footer-logo:hover {
  filter: brightness(1);
  transform: scale(1.05);
}

/* Copyright Text */
.copyright {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  flex-grow: 1;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-link {
  width: 44px;
  height: 44px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: 18px;
  border: 1px solid color-mix(in srgb, var(--muted) 20%, transparent);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.social-link:hover {
  color: white;
  transform: translateY(-5px) scale(1.1);
  border-color: transparent;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--brand) 30%, transparent);
}

.social-link:hover::before {
  opacity: 1;
}

/* Footer Newsletter (optional - can be added) */
.footer-newsletter {
  margin-top: 20px;
}

.footer-newsletter p {
  color: var(--muted);
  margin-bottom: 15px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-newsletter-input {
  display: flex;
  gap: 10px;
}

.footer-newsletter-input input {
  flex: 1;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--muted) 20%, transparent);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-newsletter-input input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
}

.footer-newsletter-input button {
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.footer-newsletter-input button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px color-mix(in srgb, var(--brand) 25%, transparent);
}

/* Footer Badges / Awards (optional) */
.footer-badges {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-badge i {
  font-size: 1.2rem;
  color: var(--brand);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .site-footer {
    padding: 60px 20px 30px;
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 50px;
  }
  
  .footer-logo {
    height: 40px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 50px 20px 30px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
  }
  
  .footer-column {
    text-align: left;
  }
  
  .footer-column h3::after {
    left: 0;
    transform: none;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 25px;
    padding-top: 30px;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-newsletter-input {
    flex-direction: column;
  }
  
  .footer-newsletter-input button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 40px 15px 20px;
  }
  
  .footer-container {
    gap: 25px;
  }
  
  .footer-column h3 {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .footer-column ul li {
    margin-bottom: 12px;
  }
  
  .footer-column ul li a {
    font-size: 0.9rem;
  }
  
  .footer-logo {
    height: 35px;
  }
  
  .copyright {
    font-size: 0.85rem;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* Print Styles */
@media print {
  .site-footer {
    background: none;
    border-top: 1px solid #ccc;
    padding: 20px;
  }
  
  .social-links,
  .footer-newsletter {
    display: none;
  }
  
  .copyright {
    color: #000;
  }
}

/* Dark Theme Specific Adjustments */
html[data-theme="dark"] .footer-logo {
  filter: brightness(1);
}

html[data-theme="dark"] .social-link {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .footer-newsletter-input input {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .site-footer *,
  .footer-column h3::after,
  .footer-column ul li a,
  .footer-logo,
  .social-link {
    transition: none !important;
    animation: none !important;
  }
}