/**
* Footer styles for the AFEL theme

* @package AFEL
*/

/* ===================================
   FOOTER DEFAULT STYLES
   =================================== */

.afel-site-footer {
  background-color: #1a1a1a;
  border-top-color: #333;
  color: #c1c2c4;
  font-size: 14px;
}

.afel-site-footer a:not(.afel-button):not(.afel-footer-button) {
  color: #c1c2c4;
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.afel-footer-button-container {
  margin-bottom: 24px;
}

.afel-site-footer .afel-footer-button {
  width: 100%;
  max-width: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.afel-site-footer .orf-form,
.afel-site-footer .orf-form input,
.afel-site-footer .orf-form .orf-field-label {
  background-color: transparent;
  color: #c1c2c4;
  font-size: 14px;
}

.afel-site-footer .orf-form input {
  background-color: #27292a;
  border: 1px solid #27292a;
}

.afel-footer-main {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Footer Left Section */
.afel-footer-left {
  flex: 1;
  min-width: 200px;
  max-width: 220px;
}

.afel-branding-footer {
  margin-bottom: 1.5rem;
  max-width: 220px;
}

.afel-footer-logo {
  margin-bottom: 10px;
}

.afel-footer-logo img {
  max-height: 40px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.afel-footer-tagline {
  margin-bottom: 16px;
  line-height: 1.3;
  max-width: 400px;
}

.afel-footer-contact-icon {
  margin-right: 4px;
}

.afel-footer-contact a {
  word-wrap: break-word;
}

/* Footer Center Section */
.afel-footer-center {
  flex: 1;
  min-width: 300px;
}

/* Footer Right Section */
.afel-footer-right {
  flex: 3;
  min-width: 300px;
}

.afel-footer-menu-container {
  display: flex;
  justify-content: end;
  flex-wrap: wrap;
  gap: 32px;
}

/* Individual Footer Menu Sections */
.afel-footer-menu-section {
  width: fit-content;
  min-width: 160px;
  max-width: 300px;
}

.afel-footer-menu-section.afel-footer-menu-menu-footer-1 {
  margin-right: 40px;
}

.afel-footer-menu-title,
.afel-footer-form-title {
  font-size: 16px;
  font-weight: 600;
  color: #ece5e5;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer Menu Styles */
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 0.5rem;
}

.afel-footer-main a:hover,
.afel-footer-main a:focus {
  color: var(--afel-brand-color) !important;
}

.afel-footer-button-container .afel-footer-button.afel-button-outline:hover {
  color: var(--afel-outline-btn-text-hover) !important;
}

/* ===================================
   FOOTER BOTTOM STYLES
   =================================== */

.afel-footer-bottom {
  /* background-color: #27292a; */
  padding: 20px 0;
  border-top: 1px solid #27292a;
}

/* Centered Layout */
.afel-footer-bottom-centered {
  text-align: center;
}

.afel-footer-bottom-centered > * {
  margin-bottom: 1rem;
}

.afel-footer-bottom-centered > *:last-child {
  margin-bottom: 0;
}

/* 2 Columns Layout */
.afel-footer-bottom-columns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.afel-footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.afel-footer-bottom-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

/* Copyright Text */
.afel-footer-copyright {
  color: #adb5bd;
  line-height: 1.4;
}

.afel-footer-copyright a {
  text-decoration: none;
}

.afel-footer-copyright a:hover {
  text-decoration: underline;
}

/* Footer Bottom Menu */
.afel-footer-bottom-menu {
  margin: 0.5rem 0;
}

.footer-bottom-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.afel-footer-bottom-centered .footer-bottom-menu-list {
  justify-content: center;
}

.footer-bottom-menu-list li {
  margin: 0;
}

.footer-bottom-menu-list a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom-menu-list a:hover,
.footer-bottom-menu-list a:focus {
  color: var(--afel-brand-color);
  text-decoration: underline;
}

/* Social Icons */
.afel-footer-social-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0;
}

.afel-footer-bottom-centered .afel-footer-social-icons {
  justify-content: center;
}

.afel-footer-social-icons a {
  font-size: 1.2rem;
  transition: color 0.3s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.afel-footer-social-icons a:hover {
  color: var(--afel-brand-color);
  transform: translateY(-2px);
}

.afel-footer-social-icons svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.afel-footer-social-icons img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Payment Icons */
.afel-footer-payment-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.afel-footer-bottom-centered .afel-footer-payment-icons {
  justify-content: center;
}

.afel-footer-payment-icons img,
.afel-footer-payment-icons svg {
  height: 24px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.afel-footer-payment-icons img:hover,
.afel-footer-payment-icons svg:hover {
  opacity: 1;
}

.afel-footer-payment-icons svg {
  fill: currentColor;
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

@media (max-width: 1400px) {
  .afel-footer-left,
  .afel-footer-center,
  .afel-footer-menu-section {
    min-width: 100px;
    flex: 1;
  }

  .afel-footer-right {
    min-width: 100px;
    flex: 3;
  }

  .afel-footer-menu-section.afel-footer-menu-menu-footer-1 {
    margin-right: 10px;
  }
}

@media (max-width: 992px) {
  .afel-footer-main,
  .afel-footer-menu-container {
    gap: 10px;
  }

  .afel-footer-left,
  .afel-footer-center {
    min-width: 60px;
    flex: 1;
  }

  .afel-footer-menu-section {
    min-width: 40px;
    flex: 1;
  }

  .afel-footer-right {
    gap: 10px;
    min-width: 60px;
    flex: 3;
  }

  .afel-footer-menu-section.afel-footer-menu-menu-footer-1 {
    margin-right: 10px;
  }
}

@media (max-width: 768px) {
  /* Footer Main */
  .afel-footer-main {
    flex-direction: column-reverse;
    gap: 20px;
    padding: 20px;
  }

  .afel-footer-form-container {
    text-align: center;
  }

  .afel-footer-left,
  .afel-footer-right,
  .afel-footer-center,
  .afel-footer-button {
    min-width: auto;
    text-align: center;
    margin: auto;
  }

  .afel-branding-footer,
  .afel-footer-button-container {
    margin: auto;
    margin-bottom: 20px;
    text-align: center;
  }

  .afel-footer-menu-container {
    text-align: center;
    flex-direction: column;
    gap: 1.5rem;
  }

  .afel-footer-menu-section {
    min-width: auto;
    margin: auto;
  }

  .afel-footer-menu-section.afel-footer-menu-menu-footer-1 {
    margin: auto;
  }

  /* Footer Bottom */
  .afel-footer-bottom-columns {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .afel-footer-bottom-left,
  .afel-footer-bottom-right {
    align-items: center;
  }

  .afel-footer-bottom-right {
    align-items: center;
  }

  .footer-bottom-menu-list {
    justify-content: center;
    gap: 1rem;
  }

  .afel-footer-social-icons,
  .afel-footer-payment-icons {
    justify-content: center;
  }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.afel-footer-main .screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* Spacing utilities for footer elements */
.afel-footer-spacing-small {
  margin-bottom: 0.5rem;
}

.afel-footer-spacing-medium {
  margin-bottom: 1rem;
}

.afel-footer-spacing-large {
  margin-bottom: 1.5rem;
}

/*--------------------------------------------------------------
# Navigation Buttons (Back to Top & Go to Bottom)
--------------------------------------------------------------*/
.afel-navigation-buttons {
  position: fixed;
  z-index: var(--afel-z-index-fixed);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.afel-back-to-top,
.afel-go-to-bottom {
  opacity: 0;
  visibility: hidden;
  transition: all var(--afel-transition-normal) ease;
  pointer-events: none;
}

.afel-back-to-top.show,
.afel-go-to-bottom.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.afel-nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--afel-brand-color);
  color: var(--afel-primary-btn-text);
  border: 1px solid var(--afel-brand-color);
  cursor: pointer;
  transition: all var(--afel-transition-normal) ease;
  box-shadow: var(--afel-shadow-md);
  font-size: 0;
}

.afel-nav-button:hover {
  background-color: var(--afel-primary-btn-bg-hover);
  color: var(--afel-primary-btn-text-hover);
  border-color: var(--afel-primary-btn-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--afel-shadow-lg);
}

.afel-nav-button:focus {
  outline: 2px solid var(--afel-brand-color);
  outline-offset: 2px;
}

.afel-nav-button-icon {
  width: 24px;
  height: 24px;
  transition: transform var(--afel-transition-normal) ease;
  color: inherit;
}

.afel-nav-button:hover .afel-nav-button-icon {
  transform: translateY(-2px);
}

/* Position Styles */
.afel-nav-buttons-bottom-right {
  bottom: 32px;
  right: 32px;
}

.afel-nav-buttons-bottom-left {
  bottom: 32px;
  left: 32px;
}

/* Shape Styles */
.afel-nav-buttons-circle .afel-nav-button {
  border-radius: 50%;
}

.afel-nav-buttons-square .afel-nav-button {
  border-radius: 0;
}

.afel-nav-buttons-rounded .afel-nav-button {
  border-radius: 6px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .afel-nav-button {
    padding: 8px 12px;
  }

  .afel-nav-buttons-bottom-right {
    bottom: 24px;
    right: 24px;
  }

  .afel-nav-buttons-bottom-left {
    bottom: 24px;
    left: 24px;
  }

  .afel-nav-button {
    width: 45px;
    height: 45px;
  }

  .afel-nav-button-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .afel-nav-button {
    padding: 6px 10px;
  }

  .afel-nav-buttons-bottom-right {
    bottom: 16px;
    right: 16px;
  }

  .afel-nav-buttons-bottom-left {
    bottom: 16px;
    left: 16px;
  }

  .afel-nav-button {
    width: 40px;
    height: 40px;
  }

  .afel-nav-button-icon {
    width: 18px;
    height: 18px;
  }
}
