/* Footer designs. The active design is picked in Admin > Site Settings > Template Settings.
   Design 1 is the original footer; its old inline styles live in the "Base" block. */

/* ===== Base (all designs) ===== */
.site-footer {
  padding-bottom: 15px;
}

.site-footer .footer-about-text {
  margin: 20px 0 10px;
  color: #fff;
  opacity: 0.8;
  line-height: 1.6;
}

.site-footer .footer-about-text p {
  margin-bottom: 0;
}

.site-footer .social-links li a {
  color: #fff;
}

.site-footer .copyright-section {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.site-footer .copyright-section p {
  color: #fff;
  opacity: 0.8;
  font-size: 14px;
}

/* ===== Dark footers (designs 1 and 3) ===== */
.site-footer:not(.site-footer--light) .footer-grid {
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 48px;
}

.site-footer:not(.site-footer--light) .footer-grid .footer-module:first-child {
  padding-right: 24px;
}

.site-footer:not(.site-footer--light) .footer-grid .footer-module .footer-img {
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.site-footer:not(.site-footer--light) .footer-about-text {
  margin: 22px 0 18px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  opacity: 0.95;
}

.site-footer:not(.site-footer--light) .footer-contact-details {
  gap: 12px;
}

.site-footer:not(.site-footer--light) .footer-grid .footer-module .footer-contact-details p {
  gap: 12px;
  font-size: 15px;
}

.site-footer:not(.site-footer--light) .footer-contact-details p > i {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.site-footer:not(.site-footer--light) .footer-grid .footer-module .footer-contact-details p a {
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.site-footer:not(.site-footer--light) .footer-grid .footer-module .footer-contact-details p a:hover {
  opacity: 1;
}

.site-footer:not(.site-footer--light) .footer-grid .footer-module .social-links {
  gap: 12px;
  margin-top: 26px;
}

.site-footer:not(.site-footer--light) .footer-grid .footer-module .social-links li a {
  width: 40px;
  height: 40px;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  font-size: 15px;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.site-footer:not(.site-footer--light) .footer-grid .footer-module .social-links li a:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  transform: translateY(-3px);
}

.site-footer:not(.site-footer--light) .footer-grid .footer-module .social-links li:hover a i {
  color: var(--btn-color);
}

.site-footer:not(.site-footer--light) .footer-grid .footer-module h6 {
  position: relative;
  margin-bottom: 10px;
  padding-bottom: 14px;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.site-footer:not(.site-footer--light) .footer-grid .footer-module h6::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand-primary);
}

.site-footer:not(.site-footer--light) .footer-grid .footer-module .links li {
  padding-top: 10px;
}

.site-footer:not(.site-footer--light) .footer-grid .footer-module .links li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-footer:not(.site-footer--light) .footer-grid .footer-module .links li a::after {
  content: "\f105";
  order: -1;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 11px;
  color: var(--brand-primary);
}

.site-footer:not(.site-footer--light) .footer-grid .footer-module .links li a:hover {
  color: var(--brand-primary);
  opacity: 1;
  transform: translateX(4px);
}

.site-footer:not(.site-footer--light) .footer-grid .footer-module .links .white-hvr-link::before {
  display: none;
}

.site-footer:not(.site-footer--light) .copyright-section {
  margin-top: 56px;
  padding-top: 22px;
  border-top-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1199px) {
  .site-footer:not(.site-footer--light) .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 575px) {
  .site-footer:not(.site-footer--light) .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer:not(.site-footer--light) .footer-grid .footer-module:first-child {
    padding-right: 0;
  }
}

/* ===== Light footers (designs 2 and 4) ===== */
.site-footer--light {
  background: #f7f7f5;
  border-top: 3px solid var(--brand-primary);
  color: var(--brand-text);
}

.site-footer--light .footer-img {
  border: 1px solid #ececec;
}

.site-footer--light .footer-about-text {
  color: var(--brand-text);
}

.site-footer--light .footer-grid {
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 48px;
}

.site-footer--light .footer-grid .footer-module .footer-img {
  margin-bottom: 22px;
  border-color: var(--brand-primary);
  background: var(--brand-primary);
}

.site-footer--light .footer-grid .footer-module .footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer--light .footer-grid .footer-module h6 {
  margin-bottom: 6px;
  color: var(--brand-text);
}

@media (max-width: 1199px) {
  .site-footer--light .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 575px) {
  .site-footer--light .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.site-footer--light .footer-grid .footer-module .links li a,
.site-footer--light .footer-grid .footer-module .footer-contact-details p,
.site-footer--light .footer-grid .footer-module .footer-contact-details p a {
  color: #555;
  transition: color 0.2s ease;
}

.site-footer--light .footer-grid .footer-module .links li a:hover,
.site-footer--light .footer-grid .footer-module .footer-contact-details p a:hover {
  color: var(--brand-primary);
}

.site-footer--light .footer-contact-details i {
  color: var(--brand-primary);
}

.site-footer--light .white-hvr-link::before,
.site-footer--light .copyright-section p a::before {
  background: var(--brand-primary);
}

.site-footer--light .footer-grid .footer-module .social-links li a,
.site-footer--light .footer-centered .social-links li a {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: var(--btn-color);
}

.site-footer--light .footer-grid .footer-module .social-links li a:hover,
.site-footer--light .footer-centered .social-links li a:hover {
  border-color: var(--brand-secondary);
  background: var(--brand-secondary);
}

.site-footer--light .footer-grid .footer-module .social-links li:hover a i {
  color: var(--btn-color);
}

.site-footer--light .copyright-section {
  border-top-color: #e5e5e5;
}

.site-footer--light .copyright-section p {
  color: #666;
  opacity: 1;
}

.site-footer--light .copyright-section p a {
  color: var(--brand-primary);
}

/* ===== Design 3: Help band (dark footer with a contact band on top) ===== */
.site-footer--3 {
  background: var(--brand-text);
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 60px;
  padding: 32px 40px;
  border-radius: 20px;
  background: var(--brand-primary);
  color: var(--btn-color);
}

.site-footer--3 .footer-cta h4 {
  margin: 0 0 8px;
  font-size: 24px;
  color: inherit;
}

.footer-cta p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
}

.footer-cta p a {
  color: inherit;
  opacity: 0.9;
}

.footer-cta p a:hover {
  opacity: 1;
}

.footer-cta p i {
  margin-right: 6px;
}

.footer-cta-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--btn-radius);
  background: #fff;
  color: var(--brand-primary);
  font-family: var(--btn-font-family);
  font-weight: var(--btn-font-weight);
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-cta-btn:hover {
  background: var(--btn-hover-bg);
  color: var(--btn-hover-color);
}

/* ===== Design 4: Centered (compact single column) ===== */
.site-footer--4 {
  background: rgb(var(--brand-primary-rgb) / 0.05);
}

.footer-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-centered .footer-img {
  padding: 15px;
  border-radius: 6px;
  background: #fff;
}

.footer-centered .footer-img img {
  width: 100px;
}

.footer-centered-about {
  max-width: 560px;
  margin: 0;
  color: #555;
  line-height: 1.6;
}

.footer-centered-links,
.footer-centered-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-centered-links {
  gap: 8px 28px;
}

.footer-centered-links a {
  font-weight: 500;
  color: var(--brand-text);
  transition: color 0.2s ease;
}

.footer-centered-links a:hover {
  color: var(--brand-primary);
}

.footer-centered-contact {
  gap: 8px 28px;
  font-size: 14px;
}

.footer-centered-contact a {
  color: #666;
}

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

.footer-centered-contact i {
  margin-right: 6px;
  color: var(--brand-primary);
}

.footer-centered .social-links {
  display: flex;
  gap: 12px;
}

.footer-centered .social-links li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid;
  border-radius: 50%;
  transition: background 0.2s ease, border-color 0.2s ease;
}

/* Admin-chosen two-colour background (Settings > Footer). */
.site-footer.site-footer--custom-bg {
  background: linear-gradient(160deg, var(--footer-bg-from), var(--footer-bg-to));
}

/* ===== Design 1: Modern (brand row, contact tiles, compact links) ===== */
/* Own background (replaces the old Component-1.png artwork): deep brand gradient
   with soft brand-primary glows. */
.site-footer--1 {
  background:
    radial-gradient(700px circle at 100% 0%, rgb(var(--brand-primary-rgb) / 0.22), transparent 60%),
    radial-gradient(600px circle at 0% 100%, rgb(var(--brand-primary-rgb) / 0.14), transparent 60%),
    linear-gradient(160deg,
      color-mix(in srgb, var(--brand-secondary) 80%, #000) 0%,
      color-mix(in srgb, var(--brand-secondary) 45%, #000) 100%);
  background-color: var(--brand-secondary);
  overflow: hidden;
}

.site-footer--1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
}

/* Cozy spacing: a little more room at the top and between blocks. */
.site-footer--1.pt-80 {
  padding-top: 88px;
}

.footer-modern {
  color: #f6efe9;
}

.fm-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fm-brand-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.fm-brand .footer-img {
  flex-shrink: 0;
  padding: 0;
  background: none;
}

.fm-brand .footer-img img {
  width: auto;
  max-width: 260px;
  max-height: 110px;
}

.fm-about {
  max-width: 420px;
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}

.fm-follow {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fm-follow > span {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.7;
}

.fm-social {
  display: flex;
  gap: 10px;
  margin: 0;
}

.fm-social li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.fm-social li a:hover {
  background: var(--brand-primary);
  color: var(--btn-color);
  transform: translateY(-3px);
}

.fm-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 0;
}

.fm-contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  color: #f6efe9;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.fm-contact-card:hover {
  border-color: rgb(var(--brand-primary-rgb) / 0.55);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.fm-contact-card > i {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--btn-color);
  font-size: 17px;
}

.fm-contact-card span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  word-break: break-word;
}

.fm-contact-card small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: 0.6;
}

.fm-links {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1fr;
  gap: 64px;
  padding: 12px 0 28px;
}

.site-footer--1 .fm-col h6 {
  margin-bottom: 20px;
  color: #fff7ef;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.fm-list {
  margin: 0;
}

.fm-list--split {
  columns: 2;
  column-gap: 28px;
}

.fm-list--split li {
  break-inside: avoid;
  padding-bottom: 14px;
}

.fm-list--split li a {
  color: #f6efe9;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  opacity: 0.74;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.fm-list--split li a:hover {
  color: var(--brand-primary);
  opacity: 1;
}

.fm-list--single {
  columns: 1;
}

.site-footer--1 .copyright-section .container {
  position: relative;
  text-align: center;
}

.site-footer--1 .copyright-section {
  padding-top: 26px;
  padding-bottom: 26px;
}

.site-footer--1 .copyright-section p {
  margin: 0;
  color: #f6efe9;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
  opacity: 0.75;
}

/* Back-to-top floats at the bottom-right of the screen; shown once the page is scrolled. */
.site-footer--1 .fm-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  width: 46px;
  height: 46px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.site-footer--1 .fm-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.site-footer--1 .fm-top-btn.is-visible:hover {
  transform: translateY(-3px);
}

.fm-top-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--btn-color);
  transition: transform 0.25s ease;
}

.fm-top-btn:hover {
  color: var(--btn-color);
  transform: translateY(-3px);
}

@media (max-width: 991px) {
  .fm-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer--1.pt-80 {
    padding-top: 60px;
  }

  .fm-contact {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0;
  }

  .fm-contact-card {
    padding: 18px 20px;
  }

  .fm-links {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .fm-links .fm-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575px) {
  .fm-brand-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .fm-about {
    font-size: 19px;
  }

  .fm-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 40px;
    padding: 24px;
  }

  .site-footer--3 .footer-cta h4 {
    font-size: 20px;
  }
}
