/* ============================================ */

/* FOOTER STYLES - LEFT ALIGNED */

/* ============================================ */

.site-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  width: 100%;
  text-align: left;
}

.footer-main {
  padding: 4rem 0 2rem;
}

.footer-widget {
  margin-bottom: 2rem;
  text-align: left;
}

/* FOOTER LOGO */

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  justify-content: flex-start;
}

.footer-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  text-align: left;
}

/* SOCIAL LINKS */

.footer-social {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
}

.social-link:hover {
  background: var(--primary-solid);
  color: #fff;
  transform: translateY(-3px);
  border-color: var(--primary-solid);
}

/* FOOTER WIDGET TITLE */

.footer-widget-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
  text-align: left;
}

.footer-widget-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-solid);
  border-radius: var(--radius-full);
}

/* FOOTER LINKS */

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  display: inline-block;
}

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

/* CONTACT INFO */

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  justify-content: flex-start;
}

.footer-contact i {
  color: var(--primary-solid);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

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

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

/* NEWSLETTER */

.newsletter-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  text-align: left;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--background);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  max-width: 100%;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary-solid);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.newsletter-btn {
  width: 45px;
  height: 45px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--primary-solid);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.newsletter-btn:hover {
  background: #256F2B;
  transform: scale(1.05);
}

/* FOOTER BOTTOM */

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  background: var(--accent);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: left;
}

.footer-copyright {
  margin: 0;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: left;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-start;
}

.footer-legal-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--primary-solid);
}

.footer-legal-links .separator {
  color: var(--border-color);
}

/* ============================================ */

/* BODY LAYOUT - ENSURE FOOTER STAYS AT BOTTOM */

/* ============================================ */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

/* ENSURE BOTTOM NAV DOESN'T COVER FOOTER ON MOBILE */

@media (max-width: 991.98px) {
  .site-footer {
    /*padding-bottom: 80px;*/
  }
}

/* ============================================ */

/* RESPONSIVE DESIGN - LEFT ALIGNED */

/* ============================================ */

@media (max-width: 767.98px) {
  .footer-main {
    padding: 3rem 0 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .footer-widget {
    margin-bottom: 2rem;
    text-align: left;
  }
}

@media (max-width: 767.98px) {
  .footer-bottom-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
  }
}

@media (max-width: 767.98px) {
  .footer-legal-links {
    justify-content: flex-start;
    width: 100%;
  }
}

/* Ensure all content stays left-aligned on mobile */

@media (max-width: 767.98px) {
  .footer-logo {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .footer-social {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .footer-links {
    text-align: left;
  }
}

@media (max-width: 767.98px) {
  .footer-contact {
    text-align: left;
  }
}

@media (max-width: 767.98px) {
  .footer-contact li {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .newsletter-form {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .footer-main {
    padding: 2.5rem 0 1rem;
  }
}

@media (max-width: 575.98px) {
  .footer-logo-img {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 575.98px) {
  .footer-brand-name {
    font-size: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .footer-description {
    font-size: 0.9rem;
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .footer-widget-title {
    font-size: 1rem;
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .social-link {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .newsletter-input, .newsletter-btn {
    height: 42px;
  }
}

@media (max-width: 575.98px) {
  .footer-bottom {
    padding: 1.25rem 0;
  }
}

@media (max-width: 575.98px) {
  .footer-copyright p, .footer-legal-links a {
    font-size: 0.85rem;
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .footer-legal-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .footer-legal-links .separator {
    display: none;
  }
}

/* Extra small devices */

@media (max-width: 375.98px) {
  .footer-main {
    padding: 2rem 0 1rem;
  }
}

@media (max-width: 375.98px) {
  .newsletter-form {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 375.98px) {
  .newsletter-btn {
    width: 100%;
    height: 42px;
  }
}

@media (max-width: 375.98px) {
  .footer-social {
    gap: 0.5rem;
  }
}

@media (max-width: 375.98px) {
  .social-link {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
}

/* ============================================ */

/* DARK MODE ADJUSTMENTS */

/* ============================================ */

[data-bs-theme="dark"] .site-footer, .dark-mode .site-footer {
  background: var(--card-bg);
  border-top-color: var(--border-color);
}

[data-bs-theme="dark"] .footer-bottom, .dark-mode .footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  border-top-color: var(--border-color);
}

