/*
  CBF footer styles — single source for preflight + staging.
  Colors: Frame Design :root tokens (--cbf-footer-*, --cbf-gold, --cbf-white).
*/

/*
  Fallback tokens for local preflight. Staging: Frame Design overrides
  these on :root after this sheet.
*/
:root {
  --cbf-footer-bg: #111111;
  --cbf-footer-text: #ffffff;
  --cbf-footer-muted: #b0b0b0;
  --cbf-footer-heading: #c39a44;
  --cbf-red: #c00000;
  --cbf-gold: #c39a44;
  --cbf-white: #ffffff;
  --cbf-black: #111111;
}

.cbf-preflight-page {
  margin: 0;
  background: #e8e6e1;
  font-family: Inter, system-ui, sans-serif;
}

.cbf-preflight-note {
  max-width: 1200px;
  margin: 16px auto 8px;
  padding: 0 16px;
  font-size: 13px;
  color: #444;
  line-height: 1.45;
}

.cbf-preflight-frame {
  max-width: 1200px;
  margin: 0 auto 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

/* Blocksy chrome around the CBF footer widget on staging */
footer#footer.ct-footer,
footer#footer.ct-footer [data-row],
footer#footer.ct-footer [data-row] > .ct-container,
footer#footer.ct-footer [data-column],
footer#footer.ct-footer .ct-widget,
footer#footer.ct-footer .textwidget,
footer#footer.ct-footer .custom-html-widget,
footer#footer.ct-footer .cbf-pf-footer {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

footer#footer.ct-footer [data-row] > .ct-container,
footer#footer.ct-footer [data-row*="middle"] > div,
[data-footer*="type-1"] .ct-footer [data-row*="middle"] > div,
[data-footer*="type-2"] .ct-footer [data-row*="middle"] > div,
footer#footer.ct-footer[data-id="type-1"] [data-row*="middle"] > div,
footer#footer.ct-footer[data-id="type-2"] [data-row*="middle"] > div {
  --theme-container-width: 100%;
  --theme-container-edge-spacing: 0px;
  --container-spacing: 0px;
  --footer-container-padding: 0px;
  --footer-container-bottom-offset: 0px;
  --theme-border: none;
  --theme-border-top: none;
  --theme-border-bottom: none;
  --grid-template-columns: initial;
  display: block;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

footer#footer.ct-footer .widget_custom_html {
  margin: 0;
}

footer#footer.ct-footer .widget-title {
  display: none;
}

.cbf-pf-footer {
  background: var(--cbf-footer-bg);
  color: var(--cbf-footer-text);
  padding: 28px clamp(24px, 4vw, 48px) 20px;
  font-family: Inter, sans-serif;
}

.cbf-pf-footer-main,
.cbf-pf-footer-bottom {
  width: 100%;
  max-width: none;
}

.cbf-pf-footer a {
  color: var(--cbf-footer-text, var(--cbf-white, #ffffff));
  text-decoration: none;
}

.cbf-pf-footer a:hover {
  color: var(--cbf-gold);
}

.cbf-pf-footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) repeat(4, minmax(0, 1fr));
  gap: 24px 28px;
  align-items: start;
}

.cbf-pf-footer-brand {
  padding-right: 8px;
  min-width: 0;
}

.cbf-pf-brand-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.cbf-pf-footer-brand img,
.cbf-pf-logo img {
  height: 52px;
  width: auto;
  display: block;
  margin: 0;
  flex-shrink: 0;
}

.cbf-pf-logo {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

.cbf-pf-footer-brand .name {
  margin: 0;
  max-width: 9.5em;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cbf-white, #ffffff);
}

.cbf-pf-footer-brand .address,
.cbf-pf-footer-brand .tagline {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--cbf-footer-muted);
}

.cbf-pf-socials {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cbf-pf-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: var(--cbf-white, #ffffff);
}

.cbf-pf-socials a img {
  width: 16px;
  height: 16px;
  display: block;
}

.cbf-pf-socials a:hover {
  border-color: var(--cbf-gold);
}

.cbf-pf-socials a:hover img {
  opacity: 0.85;
}

.cbf-pf-footer-col {
  min-width: 0;
}

.cbf-pf-footer-col h3 {
  margin: 0 0 14px;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cbf-footer-heading);
}

.cbf-pf-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cbf-pf-footer-col li {
  margin: 0 0 8px;
}

.cbf-pf-footer-col a {
  font-family: Inter, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: var(--cbf-white, #ffffff);
}

.cbf-pf-footer-col a:hover {
  color: var(--cbf-gold);
}

.cbf-pf-footer-col a[href="#"] {
  opacity: 0.55;
}

.cbf-pf-footer-contact .cbf-pf-person {
  margin: 0 0 14px;
}

.cbf-pf-footer-contact .role {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cbf-white, #ffffff);
}

.cbf-pf-footer-contact .person-name {
  margin: 0 0 2px;
  font-size: 13px;
  color: var(--cbf-footer-text, var(--cbf-white, #ffffff));
}

.cbf-pf-footer-contact .person-email,
.cbf-pf-footer-contact .person-email a {
  margin: 0;
  font-size: 13px;
  color: var(--cbf-footer-heading);
}

.cbf-pf-footer-contact .person-email a:hover {
  color: var(--cbf-gold);
}

.cbf-pf-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: var(--cbf-footer-muted);
}

.cbf-pf-copy {
  color: var(--cbf-footer-muted);
}

.cbf-pf-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cbf-pf-legal a {
  color: var(--cbf-footer-muted);
}

.cbf-pf-legal a:hover {
  color: var(--cbf-gold);
}

.cbf-pf-legal .sep {
  opacity: 0.4;
  color: var(--cbf-footer-muted);
}

.cbf-pf-body-placeholder {
  padding: 60px 28px;
  background: #fff;
  color: #777;
  font-size: 14px;
}

@media (max-width: 1000px) {
  .cbf-pf-footer-main {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .cbf-pf-footer {
    padding: 24px 20px 16px;
  }

  .cbf-pf-footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .cbf-pf-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/*
 * Blocksy footer dynamic CSS is emitted only for type-1.
 * Mirror chrome onto type-2. Keep the same dark background as EN.
 */
[data-footer*="type-2"] .ct-footer,
footer#footer.ct-footer[data-id="type-2"] {
  background-color: var(--cbf-footer-bg, #111111) !important;
}

[data-footer*="type-2"] .ct-footer [data-row*="top"],
[data-footer*="type-2"] .ct-footer [data-row*="middle"],
[data-footer*="type-2"] .ct-footer [data-row*="bottom"],
footer#footer.ct-footer[data-id="type-2"] [data-row*="top"],
footer#footer.ct-footer[data-id="type-2"] [data-row*="middle"],
footer#footer.ct-footer[data-id="type-2"] [data-row*="bottom"] {
  --theme-border-top: none;
  --theme-border-bottom: none;
  background: var(--cbf-footer-bg, #111111) !important;
  background-color: var(--cbf-footer-bg, #111111) !important;
}

[data-footer*="type-2"] .ct-footer [data-row*="middle"] > div,
footer#footer.ct-footer[data-id="type-2"] [data-row*="middle"] > div {
  --container-spacing: 0px;
  --theme-border: none;
  --theme-border-top: none;
  --theme-border-bottom: none;
  --grid-template-columns: initial;
  background: transparent !important;
}

[data-footer*="type-2"] footer.ct-container,
footer#footer.ct-footer[data-id="type-2"].ct-container,
[data-footer*="type-2"] .ct-footer.ct-container {
  --footer-container-bottom-offset: 0px;
  --footer-container-padding: 0px;
}

footer#footer.ct-footer,
footer#footer.ct-footer[data-id="type-1"],
footer#footer.ct-footer[data-id="type-2"] {
  background: var(--cbf-footer-bg, #111111) !important;
}

footer#footer.ct-footer [data-row="top"],
footer#footer.ct-footer [data-row="middle"],
footer#footer.ct-footer [data-row="bottom"] {
  background: var(--cbf-footer-bg, #111111) !important;
}
