/**
 * c43 footer styles — scoped under body.c43-theme.
 * Does not override header selectors.
 */

body.c43-theme #footer,
body.c43-theme .c43-footer-section {
  background-color: var(--c43-bg);
  color: var(--c43-text);
}

body.c43-theme .c43-footer-section .section-content {
  color: var(--c43-text);
}

/* Match body prose gutters (16px / 14px mobile, max 1080px) */
body.c43-theme .c43-footer-section .section-content,
body.c43-theme .c43-footer-section .c43-footer-row {
  max-width: var(--c43-prose-max, 1080px);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--c43-prose-gutter, 16px);
  padding-right: var(--c43-prose-gutter, 16px);
  box-sizing: border-box;
}

body.c43-theme .c43-footer-section .c43-footer-row {
  /* row already inside section-content — avoid double horizontal pad */
  padding-left: 0;
  padding-right: 0;
}

body.c43-theme .c43-footer-col > .col-inner {
  padding-left: 0;
  padding-right: 0;
}

body.c43-theme .absolute-footer .container,
body.c43-theme .absolute-footer .flex-row {
  max-width: var(--c43-prose-max, 1080px);
  padding-left: var(--c43-prose-gutter, 16px);
  padding-right: var(--c43-prose-gutter, 16px);
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

body.c43-theme .c43-footer-heading strong,
body.c43-theme .c43-footer-section strong {
  color: #d4af37;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

body.c43-theme .c43-footer-desc p,
body.c43-theme .c43-footer-keywords p,
body.c43-theme .c43-footer-contact-text {
  color: var(--c43-text);
  font-size: 0.95em;
  line-height: 1.65;
}

body.c43-theme .c43-footer-keywords {
  margin-top: 1rem;
  opacity: 0.9;
}

body.c43-theme .c43-footer-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

body.c43-theme .c43-footer-list li {
  position: relative;
  margin: 0.35rem 0;
  padding-left: 0.9rem;
  line-height: 1.55;
}

body.c43-theme .c43-footer-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c43-primary);
  font-weight: 700;
}

body.c43-theme .c43-footer-contact-list li::before {
  content: "●";
  font-size: 0.45rem;
  top: 0.55em;
  color: #d4af37;
}

body.c43-theme .c43-footer-section a {
  color: var(--c43-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

body.c43-theme .c43-footer-section a:hover {
  color: var(--c43-highlight);
}

body.c43-theme .c43-footer-sitemap {
  color: #d4af37 !important;
  font-weight: 600;
}

body.c43-theme .c43-footer-col .img,
body.c43-theme .c43-footer-col img {
  max-width: 100%;
  height: auto;
}

body.c43-theme .absolute-footer {
  background-color: var(--c43-bg) !important;
  color: var(--c43-text);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.c43-theme .absolute-footer a {
  color: var(--c43-highlight);
}

body.c43-theme .copyright-footer {
  color: var(--c43-text);
}

@media (max-width: 849px) {
  body.c43-theme .c43-footer-col {
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 549px) {
  body.c43-theme .c43-footer-heading {
    text-align: center;
  }

  body.c43-theme .c43-footer-list li {
    text-align: left;
  }

  body.c43-theme .c43-footer-about {
    text-align: center;
  }

  body.c43-theme .c43-footer-about .img {
    margin-left: auto;
    margin-right: auto;
  }
}

/* -------- Sticky mobile bottom bar (source cmbn / sym) -------- */
body.c43-theme {
  --sym-bg: #2b2d3a;
  --sym-text: #9fa4b2;
  --sym-login-bg: #3f4254;
  --sym-login-text: #ffffff;
  --sym-promo-bg: #ff3d00;
  --sym-reg-bg: #ff7800;
  --sym-reg-text: #ffffff;
}

body.c43-theme .cmbn-master-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99990;
  pointer-events: none;
}

body.c43-theme .st-sticky-overlay,
body.c43-theme .sym-bottom-nav {
  pointer-events: auto;
}

body.c43-theme .st-sticky-overlay {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto 26px;
  box-sizing: border-box;
}

body.c43-theme .st-container {
  position: relative;
  width: 100%;
  padding: 0 4px;
  box-sizing: border-box;
}

body.c43-theme .st-close {
  position: absolute;
  top: -24px;
  right: 8px;
  background: #000;
  color: #fff;
  border: 1px solid #333;
  padding: 2px 8px;
  font-size: 10px;
  cursor: pointer;
  border-radius: 4px;
  z-index: 10;
  font-weight: bold;
}

body.c43-theme .st-grid {
  display: grid;
  gap: 4px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: 6px;
  grid-template-columns: 1fr;
}

body.c43-theme .st-banner {
  display: block;
  width: 100%;
}

body.c43-theme .st-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

body.c43-theme .sym-bottom-nav {
  display: none;
}

@media screen and (max-width: 991px) {
  body.c43-theme {
    padding-bottom: 75px !important;
  }

  body.c43-theme .sym-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    background: var(--sym-bg);
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
  }

  body.c43-theme .sym-side-item {
    flex: 0 0 16%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: var(--sym-text) !important;
    min-width: 0;
    padding: 2px 0;
  }

  body.c43-theme .sym-side-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 3px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.c43-theme .sym-side-icon svg {
    width: 100%;
    height: 100%;
    color: var(--sym-text);
  }

  body.c43-theme .sym-side-item span {
    font-size: 10px;
    white-space: nowrap;
    font-weight: 500;
  }

  body.c43-theme .sym-red-dot {
    position: absolute;
    top: -2px;
    right: -3px;
    width: 7px;
    height: 7px;
    background: #ff1744;
    border-radius: 50%;
    border: 1px solid var(--sym-bg);
  }

  body.c43-theme .sym-center-trio {
    flex: 0 0 68%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0 2px;
    box-sizing: border-box;
  }

  body.c43-theme .sym-pill-btn {
    flex: 1;
    height: 38px;
    border-radius: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
    letter-spacing: 0.2px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
    border: 2px solid var(--sym-bg);
    transform: translateY(-6px);
  }

  body.c43-theme .sym-pill-btn.btn-login {
    background: var(--sym-login-bg);
    color: var(--sym-login-text) !important;
  }

  body.c43-theme .sym-pill-btn.btn-register {
    background: var(--sym-reg-bg);
    color: var(--sym-reg-text) !important;
  }

  body.c43-theme .sym-promo-center {
    flex: 0 0 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    position: relative;
    overflow: visible;
    margin: 0 3px;
  }

  body.c43-theme .sym-promo-circle {
    width: 48px;
    height: 48px;
    background: var(--sym-promo-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -26px;
    border: 3.5px solid var(--sym-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  }

  body.c43-theme .sym-promo-circle svg {
    width: 24px;
    height: 24px;
  }

  body.c43-theme .sym-promo-text {
    color: #ff9100 !important;
    font-size: 10.5px;
    font-weight: bold;
    margin-top: 24px;
    white-space: nowrap;
  }

  body.c43-theme .sym-side-item:active,
  body.c43-theme .sym-pill-btn:active,
  body.c43-theme .sym-promo-center:active {
    opacity: 0.75;
  }
}

@media (min-width: 992px) {
  body.c43-theme .sym-bottom-nav {
    display: none !important;
  }

  body.c43-theme .st-sticky-overlay {
    margin-bottom: 5px !important;
  }

  body.c43-theme .st-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
