/**
 * Global footer component styles
 */
.footer-section {
  background: var(--bmga-surface-muted);
  padding-top: 40px;
  padding-bottom: 0;
}

.footer-section.home-1b-footer {
  margin-top: 0 !important;
}

.footer-bot,
.footer-section.home-1b-footer .footer-bot {
  padding: 15px 0;
  font-size: 0.9rem;
  border-top: 1px solid var(--bmga-border-strong);
}

.footer-logo-img,
.home-1b-footer__logo-img {
  max-height: 56px;
  width: auto;
}

.footer-brand-logo-wrap .footer-logo-img {
  max-height: 50px;
}

.footer-brand-logo-wrap .footer-logo-img--on-dark {
  display: none;
}

.footer-col-title {
  color: var(--bmga-brand);
  font-weight: 700;
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 1.1rem;
  font-family: var(--bmga-font-body);
}

.footer-link-list a {
  color: var(--bmga-text-muted);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-link-list a:hover,
.footer-link-list a.active {
  color: var(--bmga-brand);
}

.home-1b-footer__legal-link {
  color: var(--home-1b-muted-3, var(--bmga-text-muted));
  text-decoration: none;
  transition: color 0.2s;
}

.home-1b-footer__legal-link:hover {
  color: var(--home-1b-brand, var(--bmga-brand));
}

.home-1b-footer__contact-link {
  color: var(--bmga-text);
  text-decoration: none;
}

.home-1b-footer__contact-link:hover {
  color: var(--bmga-brand);
}

.social-icons a {
  color: var(--bmga-brand);
  font-size: 1.2rem;
  margin-right: 14px;
  transition: opacity 0.2s, color 0.2s;
}

.social-icons a:hover {
  color: var(--bmga-brand-dark);
}

.social-mobile a {
  margin: 0 10px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--bmga-text-muted);
  font-size: 0.95rem;
}

.contact-item i {
  color: var(--bmga-brand);
  font-size: 1rem;
  margin-top: 3px;
}

.brand-accent {
  color: var(--bmga-brand);
  font-weight: 700;
}

.footer-dropdown .dropdown-menu {
  background-color: var(--bmga-surface);
}

.footer-dropdown .dropdown-item:hover {
  background-color: var(--bmga-brand);
  color: #fff;
  width: 100%;
}

@media (max-width: 991.98px) {
  .footer-section {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .accordion-button {
    background: var(--bmga-surface);
    color: var(--bmga-text);
    padding: 0.9rem 1rem;
    font-weight: 600;
    border-radius: var(--bmga-radius-md);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  }

  .accordion-item {
    background: var(--bmga-surface);
    border: none;
    margin-bottom: 8px;
    border-radius: var(--bmga-radius-md);
    overflow: hidden;
  }

  .accordion-body {
    padding: 0.75rem 1rem 1rem;
  }

  .footer-list-mobile li {
    border-bottom: 1px solid #f1f3f5;
  }

  .footer-list-mobile li:last-child {
    border-bottom: none;
  }

  .footer-list-mobile a {
    display: block;
    padding: 0.65rem 0;
    color: var(--bmga-text);
    text-decoration: none;
  }

  .footer-list-mobile a:active,
  .footer-list-mobile a:hover {
    color: var(--bmga-brand);
  }
}

@media (min-width: 992px) {
  .footer-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .footer-section.home-1b-footer {
    padding-bottom: 0;
  }
}

/* Design 1b footer layout (shared across all public pages) */
body.page-home .footer-section.home-1b-footer,
body.bmga-design-1b .footer-section.home-1b-footer {
  background: var(--home-1b-footer-bg, var(--bmga-surface-muted)) !important;
  margin-top: 0 !important;
  padding: 40px 0 0 !important;
}

body.page-home .home-1b-footer__container,
body.bmga-design-1b .home-1b-footer__container {
  max-width: 1440px;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 992px) {
  body.page-home .home-1b-footer__container,
  body.bmga-design-1b .home-1b-footer__container {
    padding-left: 44px;
    padding-right: 44px;
  }
}

body.page-home .home-1b-footer__grid,
body.bmga-design-1b .home-1b-footer__grid {
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin: 0 !important;
}

body.page-home .home-1b-footer__grid > .home-1b-footer__brand,
body.page-home .home-1b-footer__grid > .home-1b-footer__col,
body.bmga-design-1b .home-1b-footer__grid > .home-1b-footer__brand,
body.bmga-design-1b .home-1b-footer__grid > .home-1b-footer__col {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

body.page-home .home-1b-footer .footer-logo-light,
body.bmga-design-1b .home-1b-footer .footer-logo-light {
  margin-bottom: 14px !important;
}

body.page-home .home-1b-footer__logo,
body.bmga-design-1b .home-1b-footer__logo,
body.page-home .home-1b-footer__logo-wrap,
body.bmga-design-1b .home-1b-footer__logo-wrap {
  display: block !important;
}

.dark-mode body.page-home .home-1b-footer__logo,
.dark-mode body.bmga-design-1b .home-1b-footer__logo,
.dark-mode body.page-home .home-1b-footer__logo-img,
.dark-mode body.bmga-design-1b .home-1b-footer__logo-img {
  display: block !important;
}

body.page-home .home-1b-footer__logo,
body.bmga-design-1b .home-1b-footer__logo {
  margin-bottom: 14px;
  text-decoration: none;
}

body.page-home .home-1b-footer__logo-img,
body.bmga-design-1b .home-1b-footer__logo-img,
body.page-home .home-1b-footer .footer-logo-img,
body.bmga-design-1b .home-1b-footer .footer-logo-img {
  display: block !important;
  max-height: 32px;
  width: auto;
  height: auto;
}

body.page-home .home-1b-footer__tagline,
body.bmga-design-1b .home-1b-footer__tagline {
  max-width: 280px;
  margin: 0;
  font: 400 13px/1.6 var(--home-1b-font-body, var(--bmga-font-body));
  color: var(--home-1b-muted-2, var(--bmga-text-muted)) !important;
}

body.page-home .home-1b-footer .footer-col-title,
body.bmga-design-1b .home-1b-footer .footer-col-title {
  font: 700 12.5px var(--home-1b-font-body, var(--bmga-font-body)) !important;
  color: var(--home-1b-ink, var(--bmga-text)) !important;
  margin-bottom: 12px !important;
  font-size: 12.5px !important;
}

body.page-home .home-1b-footer .footer-link-list a,
body.bmga-design-1b .home-1b-footer .footer-link-list a {
  display: block;
  padding: 0;
  margin-bottom: 8px;
  font: 400 13px var(--home-1b-font-body, var(--bmga-font-body)) !important;
  color: var(--home-1b-brand-dark, var(--bmga-brand-dark)) !important;
  text-decoration: none !important;
}

body.page-home .home-1b-footer .footer-link-list a:hover,
body.page-home .home-1b-footer .footer-link-list a.active,
body.bmga-design-1b .home-1b-footer .footer-link-list a:hover,
body.bmga-design-1b .home-1b-footer .footer-link-list a.active {
  color: var(--home-1b-brand, var(--bmga-brand)) !important;
}

body.page-home .home-1b-footer__contact-list,
body.bmga-design-1b .home-1b-footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font: 400 13px/1.6 var(--home-1b-font-body, var(--bmga-font-body));
  color: var(--home-1b-muted-2, var(--bmga-text-muted));
}

body.page-home .home-1b-footer__contact-link,
body.bmga-design-1b .home-1b-footer__contact-link {
  color: var(--home-1b-muted-2, var(--bmga-text-muted));
  text-decoration: none;
}

body.page-home .home-1b-footer__contact-link:hover,
body.bmga-design-1b .home-1b-footer__contact-link:hover {
  color: var(--home-1b-brand, var(--bmga-brand));
}

body.page-home .home-1b-footer__wa-btn,
body.bmga-design-1b .home-1b-footer__wa-btn,
body.page-home .home-1b-footer-mobile-contact .home-1b-footer__wa-btn,
body.bmga-design-1b .home-1b-footer-mobile-contact .home-1b-footer__wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--home-1b-brand, var(--bmga-brand));
  color: #fff !important;
  font: 700 13px var(--home-1b-font-body, var(--bmga-font-body));
  text-decoration: none;
  transition: background 0.2s ease, transform 0.18s ease;
}

body.page-home .home-1b-footer__wa-btn:hover,
body.bmga-design-1b .home-1b-footer__wa-btn:hover {
  background: #b52d20;
  color: #fff !important;
}

body.page-home .home-1b-footer-mobile-contact,
body.bmga-design-1b .home-1b-footer-mobile-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  font: 400 13px/1.6 var(--home-1b-font-body, var(--bmga-font-body));
  color: var(--home-1b-muted-2, var(--bmga-text-muted));
}

body.page-home .home-1b-footer__bot,
body.bmga-design-1b .home-1b-footer__bot {
  margin-top: 26px;
  padding: 16px 0 22px !important;
  border-top: 1px solid var(--home-1b-input-border, var(--bmga-border)) !important;
  text-align: left !important;
  font: 400 12px var(--home-1b-font-body, var(--bmga-font-body));
  color: var(--home-1b-muted-3, var(--bmga-text-muted)) !important;
  background: transparent !important;
}

body.page-home .home-1b-footer__bot-inner,
body.bmga-design-1b .home-1b-footer__bot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

body.page-home .home-1b-footer__copyright,
body.bmga-design-1b .home-1b-footer__copyright {
  margin: 0;
  font: inherit;
  color: #6f635f;
}

body.page-home .home-1b-footer__legal,
body.bmga-design-1b .home-1b-footer__legal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

body.page-home .home-1b-footer__legal-sep,
body.bmga-design-1b .home-1b-footer__legal-sep {
  color: var(--home-1b-muted-3, var(--bmga-text-muted));
  line-height: 1;
}

body.page-home .home-1b-footer__bot .home-1b-footer__legal-link,
body.bmga-design-1b .home-1b-footer__bot .home-1b-footer__legal-link {
  display: inline;
  padding: 0;
  font: inherit;
  white-space: nowrap;
}

body.page-home .home-1b-footer__bot .brand-accent,
body.bmga-design-1b .home-1b-footer__bot .brand-accent {
  color: inherit !important;
  font-weight: 400 !important;
}

.home-1b-footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.home-1b-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--home-1b-border, var(--bmga-border));
  background: #fff;
  color: var(--home-1b-brand, var(--bmga-brand)) !important;
  font-size: 15px;
  line-height: 1;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.18s ease;
}

.home-1b-footer__social-link:hover {
  background: var(--home-1b-brand, var(--bmga-brand));
  border-color: var(--home-1b-brand, var(--bmga-brand));
  color: #fff !important;
  transform: translateY(-1px);
}

.home-1b-footer__social-link i {
  font-size: 15px;
  line-height: 1;
}

body.page-home .home-1b-footer__social-link,
body.bmga-design-1b .home-1b-footer__social-link {
  display: inline-flex;
}

body.page-home .home-1b-footer .d-lg-none .home-1b-footer__social,
body.bmga-design-1b .home-1b-footer .d-lg-none .home-1b-footer__social {
  display: flex !important;
  margin-top: 0;
  margin-bottom: 14px;
}

body.page-home .home-1b-footer .d-lg-none.home-1b-footer__container,
body.bmga-design-1b .home-1b-footer .d-lg-none.home-1b-footer__container {
  padding: 28px 16px 20px;
}

body.page-home .home-1b-footer .d-lg-none .footer-brand-logo-wrap,
body.bmga-design-1b .home-1b-footer .d-lg-none .footer-brand-logo-wrap,
body.page-home .home-1b-footer .d-lg-none .home-1b-footer__logo-wrap,
body.bmga-design-1b .home-1b-footer .d-lg-none .home-1b-footer__logo-wrap {
  text-align: left;
  margin-bottom: 14px;
}

body.page-home .home-1b-footer .d-lg-none .footer-brand-logo-wrap .footer-logo-img,
body.bmga-design-1b .home-1b-footer .d-lg-none .footer-brand-logo-wrap .footer-logo-img,
body.page-home .home-1b-footer .d-lg-none .home-1b-footer__logo-wrap .home-1b-footer__logo-img,
body.bmga-design-1b .home-1b-footer .d-lg-none .home-1b-footer__logo-wrap .home-1b-footer__logo-img {
  max-height: 28px;
}

body.page-home .home-1b-footer__contact-list > div:last-child,
body.bmga-design-1b .home-1b-footer__contact-list > div:last-child {
  line-height: 1.55;
  max-width: 260px;
}

@media (max-width: 991.98px) {
  body.page-home .home-1b-footer__bot-inner,
  body.bmga-design-1b .home-1b-footer__bot-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

body.page-home .home-1b-footer-mobile-contact,
body.bmga-design-1b .home-1b-footer-mobile-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font: 400 12.5px var(--home-1b-font-body, var(--bmga-font-body));
  color: var(--home-1b-muted-2, var(--bmga-text-muted));
  margin-bottom: 16px;
}
