#ssgf-global-footer,
#ssgf-global-footer * {
  box-sizing: border-box;
}

#ssgf-global-footer {
  --ssgf-bg: var(--ss-dark, #1A1A1A);
  --ssgf-text: var(--ss-white, #FFFFFF);
  --ssgf-muted: rgba(255, 255, 255, 0.7);
  --ssgf-line: rgba(255, 255, 255, 0.18);
  --ssgf-accent: var(--ss-accent, #8C927D);
  --ssgf-accent-soft: var(--ss-accent-soft, #E6EBE4);
  background: var(--ssgf-bg);
  color: var(--ssgf-text);
  font-family: Manrope, Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  position: relative;
  width: 100%;
}

#ssgf-global-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

#ssgf-global-footer a:hover {
  color: var(--ssgf-accent-soft);
}

#ssgf-global-footer a:focus-visible,
#ssgf-global-footer button:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--ssgf-accent);
  outline-offset: 4px;
}

#ssgf-global-footer .ssgf-shell {
  margin: 0 auto;
  max-width: 1600px;
  padding-left: clamp(24px, 3.5vw, 56px);
  padding-right: clamp(24px, 3.5vw, 56px);
  width: 100%;
}

#ssgf-global-footer .ssgf-main {
  display: grid;
  gap: clamp(52px, 6vw, 96px);
  grid-template-columns: minmax(250px, 0.88fr) minmax(720px, 2.8fr);
  padding-bottom: clamp(28px, 2.5vw, 38px);
  padding-top: clamp(36px, 3.5vw, 50px);
}

#ssgf-global-footer .ssgf-brand,
#ssgf-global-footer .ssgf-navigation,
#ssgf-global-footer .ssgf-nav-group {
  min-width: 0;
}

#ssgf-global-footer .ssgf-logo {
  display: inline-flex;
  margin-bottom: 18px;
  max-width: 210px;
}

#ssgf-global-footer .ssgf-logo img {
  display: block;
  filter: none;
  height: auto;
  max-height: 66px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  width: auto;
}

#ssgf-global-footer .ssgf-description {
  color: var(--ssgf-muted);
  font-size: 14px;
  line-height: 1.62;
  margin: 0;
  max-width: 360px;
}

#ssgf-global-footer .ssgf-accent-rule,
#ssgf-global-footer .ssgf-heading-rule {
  background: var(--ssgf-accent);
  display: block;
  height: 2px;
  width: 30px;
}

#ssgf-global-footer .ssgf-accent-rule {
  margin: 16px 0;
  width: 44px;
}

#ssgf-global-footer .ssgf-contact {
  display: grid;
  gap: 8px;
}

#ssgf-global-footer .ssgf-contact a {
  align-items: flex-start;
  color: var(--ssgf-text);
  display: flex;
  gap: 10px;
  min-width: 0;
}

#ssgf-global-footer .ssgf-contact .dashicons {
  color: var(--ssgf-accent-soft);
  flex: 0 0 19px;
  font-size: 18px;
  height: 19px;
  line-height: 19px;
  margin-top: 2px;
  width: 19px;
}

#ssgf-global-footer .ssgf-contact span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

#ssgf-global-footer .ssgf-social {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
}

#ssgf-global-footer .ssgf-social a {
  align-items: center;
  color: var(--ssgf-muted);
  display: inline-flex;
  gap: 7px;
}

#ssgf-global-footer .ssgf-social .dashicons {
  font-size: 17px;
  height: 17px;
  width: 17px;
}

#ssgf-global-footer .ssgf-navigation {
  /* Page-level mobile nav rules must not position the footer over its contact links. */
  position: static;
  inset: auto;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  gap: clamp(30px, 3.6vw, 56px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#ssgf-global-footer .ssgf-nav-heading-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

#ssgf-global-footer .ssgf-nav-group h2,
#ssgf-global-footer .ssgf-certifications h2 {
  color: var(--ssgf-text);
  font-family: var(--font-display, "Manrope", Arial, Helvetica, sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  margin: 0 0 10px;
  text-transform: uppercase;
}

#ssgf-global-footer .ssgf-heading-rule {
  margin-bottom: 20px;
  width: 24px;
}

#ssgf-global-footer .ssgf-nav-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ssgf-text);
  cursor: pointer;
  display: none;
  height: 36px;
  justify-content: center;
  margin: -8px -8px -8px 12px;
  padding: 8px;
  width: 36px;
}

#ssgf-global-footer .ssgf-nav-toggle .dashicons {
  font-size: 18px;
  height: 18px;
  width: 18px;
}

#ssgf-global-footer .ssgf-subgroups {
  display: grid;
  gap: 20px;
}

#ssgf-global-footer .ssgf-subgroup h3 {
  color: var(--ssgf-text);
  font-family: var(--font-display, "Manrope", Arial, Helvetica, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.45;
  margin: 0 0 11px;
  text-transform: uppercase;
}

#ssgf-global-footer .ssgf-link-list {
  display: grid;
  gap: 10px;
}

#ssgf-global-footer .ssgf-link-list a {
  color: var(--ssgf-muted);
  display: block;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#ssgf-global-footer .ssgf-link-list a:hover,
#ssgf-global-footer .ssgf-link-list a:focus-visible {
  color: var(--ssgf-text);
}

#ssgf-global-footer .ssgf-inquiry {
  align-items: flex-end;
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

#ssgf-global-footer .ssgf-inquiry-button {
  align-items: center;
  background: var(--ssgf-accent);
  border: 1px solid var(--ssgf-accent);
  color: var(--ssgf-bg);
  display: inline-flex;
  font-family: var(--font-display, "Manrope", Arial, Helvetica, sans-serif);
  font-size: 12px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.06em;
  min-height: 44px;
  padding: 10px 20px;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

#ssgf-global-footer .ssgf-inquiry-button:hover,
#ssgf-global-footer .ssgf-inquiry-button:focus-visible {
  background: var(--ssgf-accent-soft);
  border-color: var(--ssgf-accent-soft);
  color: var(--ssgf-bg);
}

#ssgf-global-footer .ssgf-certifications {
  align-items: center;
  border-top: 1px solid var(--ssgf-line);
  display: grid;
  gap: clamp(34px, 5vw, 80px);
  grid-template-columns: minmax(150px, 0.55fr) minmax(0, 3.45fr);
  padding-bottom: 24px;
  padding-top: 24px;
}

#ssgf-global-footer .ssgf-certifications h2 {
  margin-bottom: 10px;
}

#ssgf-global-footer .ssgf-cert-heading .ssgf-heading-rule {
  margin-bottom: 0;
}

#ssgf-global-footer .ssgf-cert-list {
  align-items: center;
  display: grid;
  gap: clamp(26px, 4vw, 64px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#ssgf-global-footer .ssgf-cert-list img {
  display: block;
  filter: grayscale(1) brightness(0) invert(1);
  height: 52px;
  margin: 0 auto;
  max-width: 190px;
  object-fit: contain;
  opacity: 0.82;
  width: 100%;
}

#ssgf-global-footer .ssgf-utility {
  border-top: 1px solid var(--ssgf-line);
}

#ssgf-global-footer .ssgf-utility-inner {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto auto;
  min-height: 66px;
}

#ssgf-global-footer .ssgf-utility p {
  color: var(--ssgf-muted);
  font-size: 12px;
  margin: 0;
}

#ssgf-global-footer .ssgf-utility-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#ssgf-global-footer .ssgf-utility-links a {
  color: var(--ssgf-muted);
  font-size: 12px;
  padding: 2px 15px;
}

#ssgf-global-footer .ssgf-utility-links a + a {
  border-left: 1px solid var(--ssgf-line);
}

#ssgf-global-footer .ssgf-back-to-top {
  align-items: center;
  border: 1px solid var(--ssgf-accent);
  border-radius: 50%;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

#ssgf-global-footer .ssgf-back-to-top .dashicons {
  font-size: 19px;
  height: 19px;
  line-height: 19px;
  width: 19px;
}

#ssgf-global-footer .ssgf-back-to-top span:last-child,
#ssgf-global-footer .ssgf-visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 1120px) {
  #ssgf-global-footer .ssgf-main {
    gap: 48px;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 2.2fr);
  }

  #ssgf-global-footer .ssgf-navigation {
    gap: 28px 42px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  #ssgf-global-footer .ssgf-main {
    grid-template-columns: 1fr;
  }

  #ssgf-global-footer .ssgf-brand {
    max-width: 620px;
  }

  #ssgf-global-footer .ssgf-navigation {
    border-top: 1px solid var(--ssgf-line);
    padding-top: 34px;
  }

  #ssgf-global-footer .ssgf-certifications {
    gap: 30px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #ssgf-global-footer .ssgf-main {
    gap: 24px;
    padding-bottom: 22px;
    padding-top: 32px;
  }

  #ssgf-global-footer .ssgf-description {
    line-height: 1.55;
  }

  #ssgf-global-footer .ssgf-navigation {
    display: grid;
    gap: 0;
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  #ssgf-global-footer .ssgf-nav-group {
    border-bottom: 1px solid var(--ssgf-line);
    padding: 17px 0;
  }

  #ssgf-global-footer .ssgf-nav-group:first-child {
    border-top: 1px solid var(--ssgf-line);
  }

  #ssgf-global-footer .ssgf-inquiry {
    justify-content: flex-start;
    padding-top: 18px;
  }

  #ssgf-global-footer .ssgf-nav-heading-row h2 {
    margin: 0;
  }

  #ssgf-global-footer .ssgf-nav-heading-row h2 a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
  }

  #ssgf-global-footer .ssgf-nav-toggle {
    display: inline-flex;
  }

  #ssgf-global-footer .ssgf-nav-group > .ssgf-heading-rule {
    display: none;
  }

  #ssgf-global-footer.ssgf-mobile-nav-ready .ssgf-nav-group:not(.is-open) .ssgf-subgroups {
    display: none;
  }

  #ssgf-global-footer .ssgf-nav-group.is-open .ssgf-subgroups {
    padding-bottom: 8px;
    padding-top: 14px;
  }

  #ssgf-global-footer .ssgf-certifications {
    padding-bottom: 22px;
    padding-top: 22px;
  }

  #ssgf-global-footer .ssgf-cert-list {
    gap: 18px;
  }

  #ssgf-global-footer .ssgf-cert-list img {
    height: 42px;
    max-width: 125px;
  }

  #ssgf-global-footer .ssgf-utility-inner {
    align-items: start;
    grid-template-columns: 1fr auto;
    padding-bottom: 18px;
    padding-top: 18px;
  }

  #ssgf-global-footer .ssgf-utility-links {
    gap: 8px 22px;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  #ssgf-global-footer .ssgf-utility-links a,
  #ssgf-global-footer .ssgf-utility-links a:first-child,
  #ssgf-global-footer .ssgf-utility-links a + a {
    border-left: 0;
    padding: 0;
  }
}

@media (max-width: 520px) {
  #ssgf-global-footer .ssgf-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  #ssgf-global-footer .ssgf-logo {
    max-width: 182px;
  }

  #ssgf-global-footer .ssgf-description {
    font-size: 13px;
  }

  #ssgf-global-footer .ssgf-cert-list {
    gap: 16px 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #ssgf-global-footer .ssgf-cert-list img {
    height: 46px;
    max-width: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ssgf-global-footer,
  #ssgf-global-footer * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Isolate footer links from standalone page nav styling. */
#ssgf-global-footer .ssgf-navigation a {
  min-height: 0;
  border-bottom: 0;
}
/* Existing inquiry actions share the homepage / Contact brand green. */
body .primary-btn,
body .primary-button,
body .button.primary,
#sgh-global-header .sgh-cta,
#ssgf-global-footer .ssgf-inquiry-button {
  background: #3f5f4a;
  border-color: #3f5f4a;
  color: #fff;
}
body .primary-btn:hover,
body .primary-button:hover,
body .button.primary:hover,
#sgh-global-header .sgh-cta:hover,
#ssgf-global-footer .ssgf-inquiry-button:hover,
#ssgf-global-footer .ssgf-inquiry-button:focus-visible {
  background: #28463b;
  border-color: #28463b;
  color: #fff;
}

/* The existing opaque logo must remain legible in legacy mobile footers too. */
.footer .footer-grid > img { filter: none; }

/* Both footer navigation regions must be isolated from page-level mobile nav rules. */
#ssgf-global-footer nav {
  position: static;
  inset: auto;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
#ssgf-global-footer nav a {
  min-height: 0;
  border-bottom: 0;
}
/* Keep the original white footer treatment only for the verified transparent theme logo. */
#ssgf-global-footer .ssgf-logo img[src$="/themes/sunsync-sports-v210/assets/images/logo.png"],
.footer .footer-grid > img[src$="/themes/sunsync-sports-v210/assets/images/logo.png"] {
  filter: brightness(0) invert(1);
}
