/* ═══════════════════════════════════════════════
   GLOBAL RESET — prevent white space below footer
   ═══════════════════════════════════════════════ */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

/* ═══════════════════════════════════════════════
   WORDPRESS OVERRIDES — kill all theme spacing
   ═══════════════════════════════════════════════ */
:host,
.entry-content,
.post-content,
.wp-block-post-content,
.site-main,
main[role="main"],
.page-content,
.content-area,
#content,
#main,
.site-content,
.wrap,
.container,
.site-inner {
  padding-top: 0 !important;
  margin-top: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  overflow: visible !important;
}

/* If footer is the last thing in the page, strip any trailing spacing */
.ce-footer:last-child,
.ce-footer:last-of-type,
.wp-block-html:last-child .ce-footer,
.entry-content > .ce-footer:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* WordPress sometimes injects empty <p> or <br> after custom HTML blocks */
.ce-footer + p:empty,
.ce-footer + br,
.ce-footer ~ p:empty,
.ce-footer ~ br {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.ce-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0d101c;
  color: #fff;
  font-family: "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Full-width breakout from WordPress container */
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.ce-footer::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 110% 78% at 12% -6%,
      rgba(252, 206, 31, 0.075),
      transparent 54%
    ),
    radial-gradient(
      ellipse 88% 58% at 98% 100%,
      rgba(0, 0, 0, 0.2),
      transparent 52%
    );
  content: "";
}

.ce-footer::after {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(252, 206, 31, 0.56) 18%,
    rgba(252, 206, 31, 0.56) 82%,
    transparent 100%
  );
  content: "";
}

/* Bleed fix — ensures no white space can show below the footer */
.ce-footer--bleed {
  position: relative;
}
.ce-footer--bleed::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #0d101c;
  z-index: 5;
  pointer-events: none;
}

.ce-footer__container {
  position: relative;
  z-index: 10;
  padding: 2rem 1rem 0;
}

@media (min-width: 640px) {
  .ce-footer__container {
    padding: 2rem 1.5rem 0;
  }
}

@media (min-width: 768px) {
  .ce-footer__container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    padding-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .ce-footer__container {
    padding: 2.25rem 2.5rem 0;
  }
}

@media (min-width: 1280px) {
  .ce-footer__container {
    padding-left: 3.5rem;
    padding-right: 3.5rem;
    padding-bottom: 0;
  }
}

.ce-footer__inner {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 1280px) {
  .ce-footer__inner {
    max-width: 80rem;
  }
}

@media (min-width: 1536px) {
  .ce-footer__inner {
    max-width: 90rem;
  }
}

/* Logo */
.ce-footer__logo {
  display: inline-block;
  border-radius: 2px;
  outline-offset: 8px;
  transition: opacity 0.3s ease;
}

.ce-footer__logo:hover {
  opacity: 0.88;
}

.ce-footer__logo:focus-visible {
  outline: 2px solid #fcce1f;
}

.ce-footer__logo img {
  height: 2.25rem;
  width: auto;
}

@media (min-width: 640px) {
  .ce-footer__logo img {
    height: 2.5rem;
  }
}

/* Sitemap */
.ce-footer__sitemap-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #fcce1f;
}

.ce-footer__sitemap-label::before {
  display: block;
  width: 1.75rem;
  height: 1px;
  background: #fcce1f;
  opacity: 0.7;
  content: "";
}

.ce-footer__sitemap {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1rem;
}

@media (min-width: 640px) {
  .ce-footer__sitemap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .ce-footer__sitemap {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.5rem 2rem;
  }
}

.ce-footer__col-title {
  border-bottom: 1px solid rgba(252, 206, 31, 0.5);
  padding-bottom: 0.375rem;
  font-family: "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  color: #fcce1f !important;
  text-transform: none !important;
}

/* Standalone columns (Partner with CE, News, Blog, Contact Us) whose heading is the link */
.ce-footer__col-title a {
  color: inherit;
  text-decoration: none;
}

.ce-footer__col-title a:hover,
.ce-footer__col-title a:focus-visible {
  text-decoration: underline;
}

.ce-footer__col-list {
  margin-top: 0.5rem;
  list-style: none;
  padding: 0;
}

.ce-footer__col-list li + li {
  margin-top: 0.25rem;
}

.ce-footer__link {
  display: block;
  border-radius: 2px;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.54);
  text-decoration: none;
  transition: color 0.3s ease;
}

.ce-footer__link:hover {
  color: #fcce1f;
}

.ce-footer__link:focus-visible {
  outline: 2px solid #fcce1f;
  outline-offset: 4px;
}

@media (min-width: 640px) {
  .ce-footer__link {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }
}

/* Offices */
.ce-footer__offices {
  margin-top: 2rem;
  max-width: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
}

@media (min-width: 1024px) {
  .ce-footer__offices {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
  }
}

.ce-footer__offices-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #fcce1f;
}

.ce-footer__offices-label::before {
  display: block;
  width: 1.75rem;
  height: 1px;
  background: #fcce1f;
  opacity: 0.7;
  content: "";
}

.ce-footer__offices-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 1.5rem;
  list-style: none;
  padding: 0;
}

@media (min-width: 640px) {
  .ce-footer__offices-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ce-footer__offices-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.5rem;
  }
}

.ce-footer__office-name {
  font-family: "Lora", "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
  font-size: 0.84rem !important;
  font-weight: 400 !important;
  letter-spacing: -0.025em !important;
  color: #fff !important;
  text-transform: none !important;
}

@media (min-width: 640px) {
  .ce-footer__office-name {
    font-size: 0.9rem !important;
  }
}

.ce-footer__office-address {
  margin-top: 0.25rem;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.52);
}

@media (min-width: 640px) {
  .ce-footer__office-address {
    font-size: 0.78rem;
  }
}

.ce-footer__office-contact {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.5rem;
  font-size: 0.72rem;
}

@media (min-width: 640px) {
  .ce-footer__office-contact {
    font-size: 0.78rem;
  }
}

.ce-footer__office-phone {
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.3s ease;
}

.ce-footer__office-phone:hover {
  color: #fcce1f;
}

.ce-footer__office-sep {
  user-select: none;
  color: rgba(255, 255, 255, 0.25);
}

.ce-footer__office-email {
  min-width: 0;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #fcce1f;
  text-decoration: none;
  transition: color 0.3s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ce-footer__office-email:hover {
  color: #ffe05a;
}

/* Copyright */
.ce-footer__copyright {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
  padding-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .ce-footer__copyright {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .ce-footer__copyright {
    padding-bottom: 2rem;
  }
}

.ce-footer__copyright p {
  margin: 0 auto;
  max-width: 36rem;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.36em;
  color: rgba(255, 255, 255, 0.43);
}

@media (min-width: 640px) {
  .ce-footer__copyright p {
    font-size: 0.75rem;
    letter-spacing: 0.4em;
  }
}

.ce-footer__copyright-sep {
  display: inline-block;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  color: rgba(255, 255, 255, 0.34);
}
