/* Site footer v2 — matches footer mockup */

:root {
  --ci-footer-red: #8b1538;
  --ci-footer-red-dark: #6f112d;
  --ci-footer-bg: #f5f5f5;
  --ci-footer-text: #111111;
  --ci-footer-muted: #111111;
  --ci-footer-border: #e0e0e0;
  --ci-footer-serif: "Playfair Display", "Times New Roman", Times, serif;
  --ci-footer-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.ci-has-v2-footer .site-footer:not(.ci-site-footer),
body.ci-has-v2-footer .footer-copyright,
body.ci-has-v2-footer .footer-all-reviews,
body.ci-has-v2-footer .footer-disclaimer,
body.ci-has-v2-footer .footer-lang-switcher {
  display: none !important;
}

/* Sticky footer on flex column body (same behaviour as legacy .site-footer) */
body.ci-has-v2-footer #main.main-wrapper {
  flex: 1 0 auto;
}

body.ci-has-v2-footer .ci-site-footer {
  margin-top: auto;
  flex-shrink: 0;
}

.ci-site-footer {
  box-sizing: border-box;
  width: 100%;
  font-family: var(--ci-footer-sans);
  color: var(--ci-footer-text);
  background: var(--ci-footer-bg) !important;
  margin-top: 0;
  padding: 0;
  border-top: 1px solid var(--ci-footer-border);
  line-height: normal;
}

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

.ci-site-footer__inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 0;
}

.ci-site-footer__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: start;
  padding-bottom: 36px;
}

.ci-site-footer__brand {
  padding-right: 40px;
}

.ci-site-footer__col {
  padding: 0 32px;
  border-left: 1px solid var(--ci-footer-border);
}

.ci-site-footer__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin: 0 0 18px;
  line-height: 0;
}

.ci-site-footer__logo-img {
  display: block;
  height: 22px;
  width: auto;
  max-width: 206px;
}

.ci-site-footer__tagline {
  margin: 0 0 22px;
  max-width: 300px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ci-footer-muted);
}

.ci-site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ci-site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 5px;
  background: var(--ci-footer-red);
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease;
}

.ci-site-footer__social-link:hover {
  background: var(--ci-footer-red-dark);
  color: #fff;
}

.ci-site-footer__social-link svg,
.ci-site-footer__social-icon-img {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
}

.ci-site-footer__social-icon-img {
  filter: brightness(0) invert(1);
}

.ci-site-footer__heading {
  margin: 0 0 14px;
  font-family: var(--ci-footer-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ci-footer-red);
}

.ci-site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ci-site-footer__links li + li {
  margin-top: 8px;
}

.ci-site-footer__links a {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ci-footer-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.ci-site-footer__links a:hover {
  color: var(--ci-footer-red);
}

.ci-site-footer__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 0 22px;
  border-top: 1px solid var(--ci-footer-border);
}

.ci-site-footer__bar:not(:has(.ci-site-footer__center)) {
  grid-template-columns: 1fr auto;
}

.ci-site-footer__copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ci-footer-text);
  justify-self: start;
}

.ci-site-footer__center {
  justify-self: center;
  text-align: center;
}

.ci-site-footer__cookies,
.ci-site-footer__center .cn-revoke-cookie,
.ci-site-footer__center .gdpr-cmp-manage-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ci-footer-text);
  text-decoration: none;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.4;
  width: auto;
}

.ci-site-footer__cookies:hover,
.ci-site-footer__center .cn-revoke-cookie:hover,
.ci-site-footer__center .gdpr-cmp-manage-link:hover,
.ci-site-footer__center .gdpr-cmp-manage-link:focus {
  color: var(--ci-footer-red);
  text-decoration: underline;
}

/* GDPR CMP prints a duplicate manage link after the footer in wp_footer */
body.ci-has-v2-footer #gdpr-cmp-manage-link {
  display: none !important;
}

body.ci-has-v2-footer #ciFooterCookies #gdpr-cmp-manage-link {
  display: inline-block !important;
}

/* Never show the plugin revoke strip; footer bar link is the control */
body.ci-has-v2-footer #cookie-notice .cookie-revoke-container {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Collapse fixed bar when only the revoke strip would show (below footer) */
body.ci-has-v2-footer #cookie-notice.cookie-revoke-visible:not(.cookie-notice-visible),
body.ci-has-v2-footer #cookie-notice.ci-footer-revoke-hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  background: transparent !important;
}

body.ci-has-v2-footer #cookie-notice.cookie-notice-visible {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
}

.ci-site-footer__rss {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ci-footer-text);
  text-decoration: none;
  transition: color 0.15s ease;
  justify-self: end;
}

.ci-site-footer__rss:hover {
  color: var(--ci-footer-red);
}

.ci-site-footer__rss svg {
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .ci-site-footer__inner {
    width: calc(100% - 32px);
    padding-top: 44px;
  }

  .ci-site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .ci-site-footer__brand {
    grid-column: 1 / -1;
    padding-right: 0;
    border-bottom: 1px solid var(--ci-footer-border);
    padding-bottom: 28px;
  }

  .ci-site-footer__col {
    border-left: none;
    padding: 0;
  }

  .ci-site-footer__col:nth-child(odd) {
    padding-right: 16px;
  }
}

@media (max-width: 600px) {
  .ci-site-footer__inner {
    width: calc(100% - 24px);
    padding-top: 36px;
  }

  /* Brand full width; link columns in two side-by-side columns */
  .ci-site-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px 20px;
  }

  .ci-site-footer__brand {
    grid-column: 1 / -1;
    padding-bottom: 24px;
  }

  .ci-site-footer__col {
    min-width: 0;
  }

  .ci-site-footer__col:nth-child(2) {
    padding-right: 10px;
  }

  .ci-site-footer__col:nth-child(3) {
    padding-left: 0;
  }

  /* About: full width below the first pair */
  .ci-site-footer__grid > .ci-site-footer__col:last-child {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .ci-site-footer__bar {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 14px 12px;
  }

  .ci-site-footer__bar:not(:has(.ci-site-footer__center)) {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .ci-site-footer__copy {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    text-align: center;
    width: 100%;
  }

  .ci-site-footer__center {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    text-align: left;
  }

  .ci-site-footer__rss {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .ci-site-footer__bar:not(:has(.ci-site-footer__center)) .ci-site-footer__rss {
    grid-column: 1 / -1;
    justify-self: end;
  }
}
