/* Site Footer widget styles.
   Everything is scoped under .sf-footer (the shortcode's root container) and
   every class is sf-* prefixed, since this file is loaded on arbitrary
   WordPress pages alongside a theme and other plugins. */

.sf-footer {
  --sf-bg: #02221b;
  --sf-accent: #529e5b;
  --sf-heading: #ffffff;
  --sf-text: rgba(255, 255, 255, 0.78);
  --sf-text-muted: rgba(255, 255, 255, 0.55);
  --sf-divider: rgba(255, 255, 255, 0.14);
  --sf-radius: 4px;

  box-sizing: border-box;
  background: var(--sf-bg);
  color: var(--sf-text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  padding: 64px 24px 0;

  /* Full-bleed: stretch to the browser viewport width regardless of how
     narrow the theme's content/entry column is wherever the shortcode is
     dropped in. */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.sf-footer,
.sf-footer *,
.sf-footer *::before,
.sf-footer *::after {
  box-sizing: border-box;
}

.sf-footer__inner {
  max-width: 1440px;
  margin: 0 auto;
}

/* [site_footer_social] standalone drop-in: same vars/fonts/colors as the
   full footer, but sized to sit inline inside an existing widget/column
   instead of breaking out full-bleed. */
.sf-footer--inline {
  width: auto;
  padding: 0;
  background: transparent;
  margin-left: 0;
  margin-right: 0;
}

/* Top area: brand column + Quick Links column + Follow Us column,
   separated by thin vertical dividers. */

.sf-footer__top {
  display: grid;
  grid-template-columns: minmax(280px, 1.6fr) 1px minmax(160px, 1fr) 1px minmax(
      180px,
      1fr
    );
  gap: 48px;
  align-items: start;
  padding-bottom: 48px;
}

.sf-footer__divider {
  align-self: stretch;
  width: 1px;
  background: var(--sf-divider);
}

/* Brand column */

.sf-footer__logo {
  margin-bottom: 20px;
}

.sf-footer__logo-image {
  display: block;
  height: 72px;
  width: auto;
  max-width: 100%;
}

.sf-footer__description {
  margin: 0 0 28px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--sf-text);
  max-width: 480px;
  text-align: justify;
}

.sf-footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 480px;
}

.sf-footer__contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  gap: 10px;
  background: var(--sf-accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 16px 24px;
  border-radius: var(--sf-radius);
  text-decoration: none;
  white-space: nowrap;
}

.sf-footer__contact-btn:hover {
  filter: brightness(1.08);
}

/* Quick Links / Follow Us columns */

.sf-footer__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sf-heading);
}

.sf-footer__heading-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(82, 158, 91, 0.18);
  color: var(--sf-accent);
  flex-shrink: 0;
}

.sf-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sf-footer__links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sf-text);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 150ms ease;
}

.sf-footer__links a:hover {
  color: #ffffff;
}

.sf-icon--chevron {
  color: var(--sf-accent);
  flex-shrink: 0;
}

/* Follow Us row icons: small filled circular badges so the new section
   reads as an extension of the same button language used for the
   email/phone buttons above, rather than a mismatched icon set. */

.sf-social-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sf-accent);
  color: #ffffff;
  flex-shrink: 0;
}

.sf-social-badge svg {
  width: 13px;
  height: 13px;
}

/* Bottom bar */

.sf-footer__bottom {
  border-top: 1px solid var(--sf-divider);
  padding: 24px 0;
  text-align: center;
}

.sf-footer__copyright {
  margin: 0;
  font-size: 0.875rem;
  color: var(--sf-text-muted);
}

.sf-footer__copyright a {
  color: var(--sf-accent);
  font-weight: 600;
  text-decoration: none;
}

.sf-footer__copyright a:hover {
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 900px) {
  .sf-footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sf-footer__divider {
    width: 100%;
    height: 1px;
  }

  .sf-footer__description {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .sf-footer__contact {
    flex-direction: column;
  }

  .sf-footer__contact-btn {
    width: 100%;
  }
}
