/**
 * @file
 * WMD Solutions Base Theme - Footer styles.
 * All variables defined in base.css.
 * Override --footer-bg, --footer-color etc in your subtheme CSS.
 *
 * Column layout (1-5 regions) is handled by page.html.twig + Bootstrap grid.
 * This file styles the contents only.
 */

/* ======================================================
   SITE FOOTER
   ====================================================== */

.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-color);
  padding: var(--section-padding);
}

/* Vertical breathing room when columns stack */
.site-footer .row {
  row-gap: 2rem;
  align-items: flex-start;
}

@media (min-width: 992px) {
  .site-footer .row {
    align-items: center;
    row-gap: 0;
  }
}

/* Default: center content on mobile, left-align on tablet+ */
.site-footer .footer-col {
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer .footer-col {
    text-align: left;
  }
  /* Logo column (first) always centered, regardless of breakpoint */
  .site-footer .footer-col--first {
    text-align: center;
  }
}

/* ======================================================
   FOOTER LOGO
   ====================================================== */

.site-footer .site-logo,
.site-footer .navbar-brand-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.site-footer .site-logo img,
.site-footer .navbar-brand-wrapper img {
  max-width: 220px;
  height: auto;
}

/* ======================================================
   FOOTER REGION HEADINGS
   ====================================================== */

.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer .block-title {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ======================================================
   FOOTER NAV
   ====================================================== */

.site-footer .nav,
.site-footer ul.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

@media (min-width: 768px) {
  .site-footer .footer-col:not(.footer-col--first) .nav,
  .site-footer .footer-col:not(.footer-col--first) ul.menu {
    align-items: flex-start;
  }
}

.site-footer .nav a,
.site-footer ul.menu a {
  color: var(--footer-color);
  opacity: 0.8;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: opacity 0.2s ease, border-bottom-color 0.2s ease;
  border-bottom: 1px solid transparent;
  padding: 0.4rem 0;
  display: inline-block;
  /* 44px tap target for thumbs */
  min-height: 44px;
  line-height: 1.6;
}

.site-footer .nav a:hover,
.site-footer .nav a:focus,
.site-footer ul.menu a:hover,
.site-footer ul.menu a:focus {
  opacity: 1;
  border-bottom-color: var(--footer-color);
}

/* ======================================================
   SOCIAL ICONS IN FOOTER
   ====================================================== */

.site-footer .wmd-social-links {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .site-footer .footer-col:not(.footer-col--first) .wmd-social-links {
    justify-content: flex-start;
  }
}

/* ======================================================
   FREEFORM CONTENT — wrap long emails/URLs
   ====================================================== */

.site-footer p,
.site-footer address {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.site-footer a[href^="tel:"],
.site-footer a[href^="mailto:"] {
  color: var(--footer-color);
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0;
}

/* ======================================================
   FOOTER BOTTOM BAR
   ====================================================== */

.footer-bottom {
  background: var(--footer-bottom-bg);
  color: var(--footer-bottom-color);
  padding: var(--footer-bottom-padding);
  font-size: var(--footer-bottom-font-size);
  text-align: center;
}

.footer-bottom a {
  color: var(--footer-bottom-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover,
.footer-bottom a:focus {
  color: #ffffff;
}
