/**
 * Aura header/footer integration inside frontend.layouts.app
 * Footer layout matches Aura_Botanica HTML (grid + full bleed), independent of BS4/BS5 grid utils.
 */

/* ── Full-bleed footer background ── */
footer.footer.aura-footer {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 0 !important;
  box-sizing: border-box;
  overflow: hidden;
}

footer.footer.aura-footer .aura-footer-container--full {
  max-width: 2560px !important;
}

footer.footer.aura-footer .aura-footer-container {
  width: 100%;
  max-width: 1280px !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
}

footer.footer.aura-footer .footer-inner {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 57px 0 0 !important;
  color: rgba(255, 255, 255, 0.85);
}

footer.footer.aura-footer .footer-top {
  padding-bottom: 32px;
}

/* ── Footer grid (replaces Bootstrap row/col — works with AIZ BS4 + Aura BS5) ── */
footer.footer.aura-footer .aura-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 24px;
}

@media (min-width: 576px) {
  footer.footer.aura-footer .aura-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  footer.footer.aura-footer .aura-footer-col-newsletter {
    grid-column: 1 / -1;
  }
}

@media (min-width: 992px) {
  footer.footer.aura-footer .aura-footer-grid {
    grid-template-columns: 2fr 2fr 3fr 5fr;
    gap: 24px;
    align-items: start;
  }

  footer.footer.aura-footer .aura-footer-col-newsletter {
    grid-column: auto;
    justify-self: stretch;
  }
}

/* Typography & links — reinforce original Aura styles over AIZ */
footer.footer.aura-footer h5 {
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--white, #fff);
  margin-bottom: 24px;
}

footer.footer.aura-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

footer.footer.aura-footer .footer-links a,
footer.footer.aura-footer .footer-links span {
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

footer.footer.aura-footer .footer-links a:hover {
  margin-left: 6px;
  color: rgba(255, 255, 255, 0.85);
}

footer.footer.aura-footer .footer-newsletter-text {
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: 16px;
  color: var(--white, #fff);
  margin-bottom: 22px;
}

footer.footer.aura-footer .newsletter-form {
  display: flex;
  gap: 7px;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

footer.footer.aura-footer .newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md, 11px);
  background: var(--white, #fff);
  color: var(--text-main, #351d1d);
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: 16px;
  font-weight: 500;
  outline: none;
}

footer.footer.aura-footer .newsletter-form input::placeholder {
  color: #b5b4b4;
  font-weight: 500;
}

footer.footer.aura-footer .newsletter-form button {
  padding: 12px 20px;
  background: var(--white, #fff);
  color: var(--text-main, #351d1d);
  border-radius: var(--radius-md, 11px);
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: 16px;
  font-weight: 400;
  border: none;
  white-space: nowrap;
  cursor: pointer;
}

footer.footer.aura-footer .newsletter-form button:hover:not(:disabled) {
  background: #f0f0f0;
}

footer.footer.aura-footer .newsletter-form button:disabled,
footer.footer.aura-footer .newsletter-form input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

footer.footer.aura-footer .footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

footer.footer.aura-footer .footer-social a {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer.footer.aura-footer .footer-social a:hover {
  transform: translateY(-4px);
}

footer.footer.aura-footer .footer-social img {
  width: 26px;
  height: 26px;
  display: block;
}

footer.footer.aura-footer .footer-social a i {
  font-size: 22px;
  line-height: 1;
  color: inherit;
}

footer.footer.aura-footer .footer-bottom {
  padding: 18px 0;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-top: none;
}

footer.footer.aura-footer .footer-brand {
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--white, #fff);
  display: flex;
  align-items: center;
  gap: 8px;
}

footer.footer.aura-footer .footer-brand img {
  height: 48px;
  width: auto;
}

footer.footer.aura-footer .footer-copyright {
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
}

/* ── Navbar dropdown (BS4/BS5 conflict fix) ── */
.navbar-aura .nav-item.dropdown {
  position: relative;
}

.navbar-aura .nav-link:hover,
.navbar-aura .nav-link.active {
  color: #014421 !important;
}

.navbar-aura.navbar-aura-themed .nav-link.active {
  color: #014421 !important;
}

.navbar-aura .nav-item.dropdown > .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 1070;
  min-width: 18rem;
  padding: 12px;
  margin-top: 0;
}

.navbar-aura .nav-item.dropdown .dropdown-item {
  font-size: 18px;
  padding: 10px 18px;
}

.navbar-aura .nav-item.dropdown .dropdown-divider {
  margin: 8px 0;
}

.navbar-aura .nav-item.dropdown > .dropdown-menu.show {
  display: block;
}

@media (max-width: 991.98px) {
  footer.footer.aura-footer .footer-inner {
    padding-top: 36px !important;
  }

  footer.footer.aura-footer .footer-bottom {
    flex-direction: column !important;
    gap: 12px;
    text-align: center;
  }

  footer.footer.aura-footer .footer-copyright {
    order: -1;
  }

  footer.footer.aura-footer .footer-brand {
    justify-content: center;
  }

  footer.footer.aura-footer .newsletter-form {
    flex-direction: column;
    max-width: 100%;
    gap: 10px;
  }

  footer.footer.aura-footer .newsletter-form input,
  footer.footer.aura-footer .newsletter-form button {
    width: 100%;
  }

  footer.footer.aura-footer .footer-social {
    justify-content: flex-start;
  }

  footer.footer.aura-footer h5 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  footer.footer.aura-footer .footer-brand {
    font-size: 24px;
  }

  footer.footer.aura-footer .footer-brand img {
    height: 36px;
  }

  .navbar-aura .nav-item.dropdown > .dropdown-menu {
    position: static !important;
    display: none;
    float: none;
    min-width: 0;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 0 6px 16px;
    background: transparent !important;
  }

  .navbar-aura .nav-item.dropdown > .dropdown-menu.show {
    display: block;
  }
}

@media (min-width: 991px) {
  footer.footer.aura-footer .aura-footer-container {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (min-width: 992px) {
  footer.footer.aura-footer .aura-footer-container {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (min-width: 992px) {
  .navbar-aura .nav-item.dropdown > .dropdown-menu {
    display: none;
  }

  .navbar-aura .nav-item.dropdown > .dropdown-menu.show {
    display: block;
  }
}

/* Mobile nav — Login / Registration or Dashboard */
.aura-mobile-auth {
  display: none;
}

@media (max-width: 1149px) {
  .aura-mobile-auth {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 4px 16px;
    border-bottom: 1px solid var(--aura-border, #e8e8e8);
    margin-bottom: 4px;
  }

  .aura-mobile-auth__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--aura-border, #e8e8e8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--white, #fff);
  }

  .aura-mobile-auth__icon img {
    width: 19px;
    height: 19px;
    display: block;
  }

  .navbar-aura .aura-mobile-auth__links,
  .navbar-aura .aura-mobile-auth__links a {
    font-family: var(--font-display, var(--aura-font-display, "Playfair Display", Georgia, serif)) !important;
    font-size: 16px;
    font-weight: 400;
  }

  .aura-mobile-auth__links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.2;
  }

  .aura-mobile-auth__links a {
    color: var(--text-main, var(--black, #351d1d));
    text-decoration: none;
  }

  .aura-mobile-auth__links a:hover {
    color: var(--primary, var(--aura-primary, #2d4a2b));
    text-decoration: none;
  }

  .aura-mobile-auth__sep {
    color: var(--text-gray, #91919b);
    font-weight: 400;
    user-select: none;
  }
}
