/**
 * Footer variant compositions (H21-FIX).
 * Scoped under .havena-pro-footer / .havena-pro-footer--*.
 * Visual authority: HTML - Markup/footer-variation.html
 *
 * @package HavenaPro
 */

/* —— Semantic tokens (shared by all variants) —— */
.havena-pro-footer {
  --havena-pro-footer-bg: var(--havena-pro-footer-background, var(--havena-pro-navy-950));
  --havena-pro-footer-fg: var(--havena-pro-footer-text, rgba(255, 255, 255, 0.65));
  --havena-pro-footer-hd: var(--havena-pro-footer-heading, var(--havena-pro-color-dark-text, #fff));
  --havena-pro-footer-lk: var(--havena-pro-footer-link, inherit);
  --havena-pro-footer-lk-hover: var(
    --havena-pro-footer-link-hover,
    var(--havena-pro-footer-accent, var(--havena-pro-gold, #c8a96a))
  );
  --havena-pro-footer-bd: var(--havena-pro-footer-border, var(--havena-pro-line-dark, rgba(255, 255, 255, 0.12)));
  --havena-pro-footer-ac: var(--havena-pro-footer-accent, var(--havena-pro-gold, #c8a96a));

  background: var(--havena-pro-footer-bg);
  color: var(--havena-pro-footer-fg);
  position: relative;
  overflow: hidden;
}

/*
 * H32 — Custom footer logos preserve natural aspect ratio.
 * Frozen .havena-pro-logo__mark may be square; .custom-logo must never be.
 */
.havena-pro-footer .havena-pro-logo--custom .custom-logo {
  display: block;
  width: auto;
  height: 52px;
  max-width: min(220px, 46vw);
  object-fit: contain;
}

.havena-pro-footer::before {
  content: "";
  position: absolute;
  top: -300px;
  inset-inline-end: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--havena-pro-footer-ac, #2e6bff) 14%, transparent),
    transparent 65%
  );
  pointer-events: none;
}

.havena-pro-footer .havena-pro-footer__title,
.havena-pro-footer .havena-pro-newsletter__text h3,
.havena-pro-footer .havena-pro-footer__news-text h3,
.havena-pro-footer .havena-pro-footer__news-text .havena-pro-footer__news-heading,
.havena-pro-footer .havena-pro-footer__cta-title,
.havena-pro-footer .havena-pro-footer__stmt-title,
.havena-pro-footer .havena-pro-footer__hero-title,
.havena-pro-footer .havena-pro-footer__featured-title {
  color: var(--havena-pro-footer-hd);
}

.havena-pro-footer a:not(.havena-pro-btn) {
  color: var(--havena-pro-footer-lk);
}

.havena-pro-footer a:not(.havena-pro-btn):hover,
.havena-pro-footer a:not(.havena-pro-btn):focus-visible,
.havena-pro-footer .current-menu-item > a,
.havena-pro-footer .current_page_item > a,
.havena-pro-footer [aria-current="page"] {
  color: var(--havena-pro-footer-lk-hover);
}

.havena-pro-footer a:not(.havena-pro-btn):focus-visible {
  outline: var(--havena-pro-focus-width, 2px) solid var(--havena-pro-footer-ac);
  outline-offset: 2px;
}

.havena-pro-footer .havena-pro-footer__news,
.havena-pro-footer .havena-pro-newsletter,
.havena-pro-footer .havena-pro-footer__bottom {
  border-color: var(--havena-pro-footer-bd);
}

.havena-pro-footer .havena-pro-footer__social a {
  border-color: var(--havena-pro-social-border-color, var(--havena-pro-footer-bd));
  color: var(--havena-pro-social-icon-color, var(--havena-pro-footer-lk, rgba(255, 255, 255, 0.7)));
}

.havena-pro-footer .havena-pro-footer__social a:hover,
.havena-pro-footer .havena-pro-footer__social a:focus-visible {
  background: var(--havena-pro-social-icon-hover-background, var(--havena-pro-footer-ac));
  border-color: var(--havena-pro-social-icon-hover-border, var(--havena-pro-footer-ac));
  color: var(--havena-pro-social-icon-hover-color, var(--havena-pro-navy-950, #0a1628));
}

.havena-pro-footer .havena-pro-footer__col a:hover,
.havena-pro-footer .havena-pro-footer__col a:focus-visible,
.havena-pro-footer .havena-pro-footer__links a:hover,
.havena-pro-footer .havena-pro-footer__links a:focus-visible,
.havena-pro-footer .havena-pro-footer__contact a:hover,
.havena-pro-footer .havena-pro-footer__bottom a:hover,
.havena-pro-footer .havena-pro-footer__bottom a:focus-visible {
  color: var(--havena-pro-footer-lk-hover);
}

.havena-pro-footer .havena-pro-footer__links a::before {
  background: var(--havena-pro-footer-ac);
}

.havena-pro-footer .havena-pro-footer__contact svg,
.havena-pro-footer .havena-pro-newsletter__note svg {
  color: var(--havena-pro-footer-ac);
}

/* —— Column grids (AUTHORITATIVE — H26/H29)
 * --havena-pro-footer-widget-tracks = rendered customized widget columns (0–5).
 * --cols-N classes remain for cascade/responsive fallbacks.
 * Classic source: brand + nav + office. Grid: brand + widgets + Contact (no footer-6).
 */
.havena-pro-footer .havena-pro-footer__main,
.havena-pro-footer .havena-pro-footer__nav {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

/* Classic: brand + N widget tracks (+ optional office) */
.havena-pro-footer--classic .havena-pro-footer__main,
.havena-pro-footer--classic .havena-pro-footer__main--cols-3,
.havena-pro-footer--classic .havena-pro-footer__main--cols-4,
.havena-pro-footer--classic .havena-pro-footer__main--cols-5 {
  grid-template-columns: minmax(0, 1.6fr) repeat(var(--havena-pro-footer-widget-tracks, 3), minmax(0, 1fr));
}
.havena-pro-footer--classic .havena-pro-footer__main--with-office,
.havena-pro-footer--classic .havena-pro-footer__main--cols-3.havena-pro-footer__main--with-office,
.havena-pro-footer--classic .havena-pro-footer__main--cols-4.havena-pro-footer__main--with-office,
.havena-pro-footer--classic .havena-pro-footer__main--cols-5.havena-pro-footer__main--with-office {
  grid-template-columns: minmax(0, 1.6fr) repeat(var(--havena-pro-footer-widget-tracks, 3), minmax(0, 1fr)) minmax(0, 1.2fr);
}

/* Grid: brand + widgets (+ Contact office) — five shared sidebars max, no footer-6 */
.havena-pro-footer--grid .havena-pro-footer__nav,
.havena-pro-footer--grid .havena-pro-footer__nav--cols-3,
.havena-pro-footer--grid .havena-pro-footer__nav--cols-4,
.havena-pro-footer--grid .havena-pro-footer__nav--cols-5 {
  grid-template-columns: minmax(0, 1.8fr) repeat(var(--havena-pro-footer-widget-tracks, 3), minmax(0, 1fr));
}
.havena-pro-footer--grid .havena-pro-footer__nav--with-office,
.havena-pro-footer--grid .havena-pro-footer__nav--cols-3.havena-pro-footer__nav--with-office,
.havena-pro-footer--grid .havena-pro-footer__nav--cols-4.havena-pro-footer__nav--with-office,
.havena-pro-footer--grid .havena-pro-footer__nav--cols-5.havena-pro-footer__nav--with-office {
  grid-template-columns: minmax(0, 1.8fr) repeat(var(--havena-pro-footer-widget-tracks, 3), minmax(0, 1fr)) minmax(0, 1.3fr);
}

/* Portal: widget tracks only (source shows up to 6 labels; theme exposes footer-1…5) */
.havena-pro-footer--portal .havena-pro-footer__portal,
.havena-pro-footer--portal .havena-pro-footer__portal--cols-3,
.havena-pro-footer--portal .havena-pro-footer__portal--cols-4,
.havena-pro-footer--portal .havena-pro-footer__portal--cols-5 {
  grid-template-columns: repeat(var(--havena-pro-footer-widget-tracks, 3), minmax(0, 1fr));
}

/* Atelier: always 3 centered clusters — Options 4/5 must not stretch */
.havena-pro-footer--atelier .havena-pro-footer__nav,
.havena-pro-footer--atelier .havena-pro-footer__nav--cols-3,
.havena-pro-footer--atelier .havena-pro-footer__nav--cols-4,
.havena-pro-footer--atelier .havena-pro-footer__nav--cols-5 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 56.25rem;
  margin-inline: auto;
  justify-items: center;
  text-align: center;
  gap: 2rem;
  padding-block: 0 clamp(2.5rem, 5vw, 4rem);
}

/* Widget titles / native Nav Menu → source title + link chrome */
.havena-pro-footer .havena-pro-footer__col .havena-pro-widget__title,
.havena-pro-footer .havena-pro-footer__col .widget-title,
.havena-pro-footer .havena-pro-footer__col .wp-block-heading {
  color: var(--havena-pro-footer-hd);
  font-family: var(--havena-pro-font-family-heading, inherit);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
}

.havena-pro-footer .havena-pro-footer__col .menu,
.havena-pro-footer .havena-pro-footer__col .havena-pro-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.havena-pro-footer .havena-pro-footer__col .menu > li + li,
.havena-pro-footer .havena-pro-footer__col .havena-pro-footer__links > li + li {
  margin-top: 0.75rem;
}

.havena-pro-footer .havena-pro-footer__col .menu a,
.havena-pro-footer .havena-pro-footer__col .havena-pro-footer__links a {
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.havena-pro-footer .havena-pro-footer__col .menu a::before,
.havena-pro-footer .havena-pro-footer__col .havena-pro-footer__links a::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--havena-pro-footer-ac);
  transition: width 0.25s ease;
}

.havena-pro-footer .havena-pro-footer__col .menu a:hover::before,
.havena-pro-footer .havena-pro-footer__col .havena-pro-footer__links a:hover::before {
  width: 16px;
}

/* Source newsletter pill */
.havena-pro-footer .havena-pro-footer__form {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.4rem 0.4rem 0.4rem 1.25rem;
  border: 1px solid var(--havena-pro-footer-bd);
  border-radius: var(--havena-pro-radius-pill, 999px);
  background: rgba(255, 255, 255, 0.04);
  min-width: min(420px, 100%);
}

.havena-pro-footer .havena-pro-footer__form:focus-within {
  border-color: var(--havena-pro-footer-ac);
}

.havena-pro-footer .havena-pro-footer__form input[type="email"],
.havena-pro-footer .havena-pro-footer__form .mc4wp-form input[type="email"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

.havena-pro-footer .havena-pro-footer__form .havena-pro-btn,
.havena-pro-footer .havena-pro-footer__form .mc4wp-form input[type="submit"],
.havena-pro-footer .havena-pro-footer__form .mc4wp-form button[type="submit"] {
  flex: none;
}

.havena-pro-footer .havena-pro-footer__form.havena-pro-newsletter__form--mc4wp,
.havena-pro-footer .havena-pro-footer__form .mc4wp-form,
.havena-pro-footer .havena-pro-footer__form .mc4wp-form > form {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

/* —— Shared bottom start (copyright + optional social) —— */
.havena-pro-footer .havena-pro-footer__bottom-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  min-width: 0;
}

.havena-pro-footer .havena-pro-footer__bottom-start > p {
  margin: 0;
}

/* —— Classic —— */
.havena-pro-footer .havena-pro-footer__news.havena-pro-newsletter,
.havena-pro-footer--classic .havena-pro-footer__news {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-bottom: 1px solid var(--havena-pro-footer-bd);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.havena-pro-footer--classic .havena-pro-footer__news-text h3,
.havena-pro-footer--classic .havena-pro-footer__news-text .havena-pro-footer__news-heading {
  color: var(--havena-pro-footer-hd);
  font-family: var(--havena-pro-font-family-heading, inherit);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0 0 0.5rem;
  font-weight: 400;
  line-height: 1.15;
}

.havena-pro-footer--classic .havena-pro-footer__news-text > p:not(.havena-pro-footer__news-heading) {
  max-width: 46ch;
  margin: 0;
  font-size: 0.95rem;
}

.havena-pro-footer--classic .havena-pro-footer__grid.havena-pro-footer__main {
  position: relative;
  z-index: 1;
}

.havena-pro-footer--classic .havena-pro-footer__brand > p {
  margin: 1.2rem 0 1.5rem;
  font-size: 0.86rem;
  max-width: 34ch;
}

/* —— Grid —— */
.havena-pro-footer--grid::before {
  inset-inline-end: auto;
  inset-inline-start: -160px;
  top: -260px;
}

.havena-pro-footer--grid .havena-pro-footer__cta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.75rem, 4.2vw, 3rem);
  margin-block-start: clamp(2.5rem, 6vw, 4rem);
  border-radius: var(--havena-pro-radius-lg, 16px);
  background: var(--havena-pro-navy-800, #12233a);
  border: 1px solid color-mix(in srgb, #fff 8%, transparent);
  overflow: hidden;
}

.havena-pro-footer--grid .havena-pro-footer__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    560px 300px at 100% 0%,
    color-mix(in srgb, var(--havena-pro-footer-ac, #2e6bff) 35%, transparent),
    transparent 62%
  );
  pointer-events: none;
}

.havena-pro-footer--grid .havena-pro-footer__cta-title {
  position: relative;
  font-family: var(--havena-pro-font-family-heading, inherit);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin: 0 0 0.5rem;
  font-weight: 400;
  line-height: 1.1;
}

.havena-pro-footer--grid .havena-pro-footer__cta p {
  position: relative;
  max-width: 52ch;
  margin: 0;
  font-size: 0.95rem;
}

.havena-pro-footer--grid .havena-pro-footer__cta-actions {
  position: relative;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.havena-pro-footer--grid .havena-pro-footer__news--grid {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  border-radius: var(--havena-pro-radius, 12px);
  background: color-mix(in srgb, #fff 4%, transparent);
  border: 1px solid var(--havena-pro-footer-bd);
}

.havena-pro-footer--grid .havena-pro-footer__news--grid .havena-pro-footer__news-text {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.havena-pro-footer--grid .havena-pro-footer__news--grid .havena-pro-footer__news-text svg {
  width: 22px;
  height: 22px;
  color: var(--havena-pro-footer-ac, var(--havena-pro-blue, #2e6bff));
  flex: none;
}

.havena-pro-footer--grid .havena-pro-footer__news--grid strong {
  display: block;
  color: var(--havena-pro-footer-hd);
  font-size: 0.95rem;
  font-weight: 700;
}

.havena-pro-footer--grid .havena-pro-footer__news--grid small {
  color: var(--havena-pro-footer-fg);
  font-size: 0.78rem;
}

.havena-pro-footer--grid .havena-pro-footer__nav {
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  gap: 2rem;
}

.havena-pro-footer--grid .havena-pro-footer__brand p {
  max-width: 26ch;
  font-size: 0.82rem;
  margin-top: 1rem;
}

/* —— Atelier —— */
.havena-pro-footer--atelier::before {
  display: none;
}

.havena-pro-footer--atelier .havena-pro-footer__brand {
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}

.havena-pro-footer--atelier .havena-pro-footer__brand .havena-pro-logo,
.havena-pro-footer--atelier .havena-pro-footer__brand .custom-logo-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.95rem;
  font-size: 2.35rem;
}

/* Frozen mark may be square; never apply these dimensions to .custom-logo. */
.havena-pro-footer--atelier .havena-pro-footer__brand .havena-pro-logo__mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

/* Atelier custom logo: preserve aspect ratio (H32) with definite height (P5.30). */
.havena-pro-footer--atelier .havena-pro-footer__brand .havena-pro-logo--custom .custom-logo {
  width: auto;
  height: 56px;
  max-width: min(320px, 72vw);
  object-fit: contain;
  border-radius: 0;
}

.havena-pro-footer--atelier .havena-pro-footer__tagline {
  margin: 1.5rem auto 0;
  font-family: var(--havena-pro-font-family-heading, inherit);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--havena-pro-footer-fg);
  max-width: 52ch;
  line-height: 1.5;
}

.havena-pro-footer--atelier .havena-pro-footer__rule {
  width: 48px;
  height: 1px;
  background: var(--havena-pro-footer-ac);
  margin: 2rem auto 0;
  opacity: 0.55;
}

.havena-pro-footer--atelier .havena-pro-footer__news--atelier {
  display: flex;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(2.5rem, 5vw, 4rem);
  border: 0;
}

.havena-pro-footer--atelier .havena-pro-footer__news--atelier .havena-pro-newsletter__form--mc4wp,
.havena-pro-footer--atelier .havena-pro-footer__news--atelier .mc4wp-form {
  width: min(480px, 100%);
}

.havena-pro-footer--atelier .havena-pro-footer__nav {
  border-block: 1px solid var(--havena-pro-footer-bd);
  padding-block: clamp(2rem, 4vw, 3rem);
}

.havena-pro-footer--atelier .havena-pro-footer__title,
.havena-pro-footer--atelier .havena-pro-footer__links,
.havena-pro-footer--atelier .havena-pro-footer__col {
  text-align: center;
}

.havena-pro-footer--atelier .havena-pro-footer__contact--row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 3rem;
  list-style: none;
  margin: 0;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--havena-pro-footer-bd);
  position: relative;
  z-index: 1;
  font-size: 0.86rem;
}

.havena-pro-footer--atelier .havena-pro-footer__contact--row li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.havena-pro-footer--atelier .havena-pro-footer__contact--row svg {
  width: 15px;
  height: 15px;
  color: var(--havena-pro-footer-ac);
  flex: none;
}

.havena-pro-footer--atelier .havena-pro-footer__bottom {
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 1rem;
}

/* —— Statement (centered stack + ◆ ribbon) —— */
.havena-pro-footer--statement::before {
  display: none;
}

.havena-pro-footer--statement::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    900px 500px at 50% 0%,
    color-mix(in srgb, var(--havena-pro-footer-ac) 12%, transparent),
    transparent 60%
  );
  pointer-events: none;
}

.havena-pro-footer--statement .havena-pro-footer__stmt {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.havena-pro-footer--statement .havena-pro-footer__stmt-title {
  font-family: var(--havena-pro-font-family-heading, inherit);
  font-size: clamp(2.6rem, 9vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 2rem;
  font-weight: 400;
}

.havena-pro-footer--statement .havena-pro-footer__stmt-title em {
  font-style: italic;
  color: var(--havena-pro-footer-ac);
}

.havena-pro-footer--statement .havena-pro-footer__stmt-news {
  display: inline-flex;
  justify-content: center;
  width: min(520px, 100%);
  margin-inline: auto;
}

.havena-pro-footer--statement .havena-pro-footer__stmt-news .havena-pro-newsletter__form--mc4wp,
.havena-pro-footer--statement .havena-pro-footer__stmt-news .mc4wp-form {
  width: 100%;
}

.havena-pro-footer--statement .havena-pro-footer__ribbon {
  position: relative;
  z-index: 1;
  border-block: 1px solid var(--havena-pro-footer-bd);
  padding-block: 1.5rem;
  background: transparent;
}

.havena-pro-footer--statement .havena-pro-footer__ribbon .havena-pro-footer__legal,
.havena-pro-footer--statement .havena-pro-footer__ribbon nav > ul,
.havena-pro-footer--statement .havena-pro-footer__ribbon-inner,
.havena-pro-footer--statement .havena-pro-footer__ribbon-inner ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.havena-pro-footer--statement .havena-pro-footer__ribbon .havena-pro-footer__legal > li,
.havena-pro-footer--statement .havena-pro-footer__ribbon nav > ul > li,
.havena-pro-footer--statement .havena-pro-footer__ribbon-inner li {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0;
}

.havena-pro-footer--statement .havena-pro-footer__ribbon .havena-pro-footer__legal > li + li::before,
.havena-pro-footer--statement .havena-pro-footer__ribbon nav > ul > li + li::before,
.havena-pro-footer--statement .havena-pro-footer__ribbon-inner li + li::before {
  content: "◆";
  color: var(--havena-pro-footer-ac);
  font-size: 0.5rem;
  margin-inline-end: 1.75rem;
  opacity: 0.7;
}

.havena-pro-footer--statement .havena-pro-footer__bottom {
  justify-content: center;
  border-top: 0;
}

/* —— Portal —— */
.havena-pro-footer--portal::before {
  top: -280px;
  inset-inline-end: -200px;
  width: 760px;
  height: 760px;
}

.havena-pro-footer--portal .havena-pro-footer__top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  border-bottom: 1px solid var(--havena-pro-footer-bd);
  max-width: none;
}

.havena-pro-footer--portal .havena-pro-footer__top p {
  margin: 0;
  font-size: 0.92rem;
  max-width: 52ch;
}

.havena-pro-footer--portal .havena-pro-footer__portal {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  border-bottom: 1px solid var(--havena-pro-footer-bd);
  border-top: 0;
}

.havena-pro-footer--portal .havena-pro-footer__featured {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  border-bottom: 1px solid var(--havena-pro-footer-bd);
}

.havena-pro-footer--portal .havena-pro-footer__featured-title {
  margin: 0 0 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--havena-pro-footer-ac);
}

.havena-pro-footer--portal .havena-pro-footer__tiles--locations {
  display: grid;
  grid-template-columns: repeat(var(--havena-pro-footer-tile-count, 5), minmax(0, 1fr));
  gap: 1rem;
}

.havena-pro-footer--portal .havena-pro-footer__tile--location {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--havena-pro-radius-sm, 10px);
  border: 0;
  text-decoration: none;
  min-height: 0;
  padding: 1rem;
  color: #fff;
  isolation: isolate;
}

.havena-pro-footer--portal .havena-pro-footer__tile--location img,
.havena-pro-footer--portal .havena-pro-footer__tile-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  background-color: var(--havena-pro-navy-800, #12233a);
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--havena-pro-ease, ease);
}

.havena-pro-footer--portal .havena-pro-footer__tile--location::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(5, 11, 22, 0.85), transparent 60%);
}

.havena-pro-footer--portal .havena-pro-footer__tile-caption {
  position: relative;
  z-index: 1;
}

.havena-pro-footer--portal .havena-pro-footer__tile-caption strong,
.havena-pro-footer--portal .havena-pro-footer__tile--location strong {
  font-family: var(--havena-pro-font-family-heading, inherit);
  font-size: 1.05rem;
  font-weight: 400;
  display: block;
}

.havena-pro-footer--portal .havena-pro-footer__tile-caption small,
.havena-pro-footer--portal .havena-pro-footer__tile--location small {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.15rem;
}

.havena-pro-footer--portal .havena-pro-footer__tile--location:hover img,
.havena-pro-footer--portal .havena-pro-footer__tile--location:focus-visible img,
.havena-pro-footer--portal .havena-pro-footer__tile--location:hover .havena-pro-footer__tile-visual,
.havena-pro-footer--portal .havena-pro-footer__tile--location:focus-visible .havena-pro-footer__tile-visual {
  transform: scale(1.08);
}

/* Portal source has no newsletter band between featured and bottom */

/* —— Contact (centered hero + tiles + mini triad) —— */
.havena-pro-footer--contact::before {
  top: auto;
  bottom: -400px;
  inset-inline: 50% auto;
  transform: translateX(-50%);
  width: 1200px;
  height: 800px;
  opacity: 1;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--havena-pro-footer-ac, #2e6bff) 15%, transparent),
    transparent 60%
  );
}

.havena-pro-footer--contact .havena-pro-footer__hero {
  position: relative;
  z-index: 1;
  max-width: none;
  text-align: center;
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.havena-pro-footer--contact .havena-pro-footer__hero-title {
  font-family: var(--havena-pro-font-family-heading, inherit);
  font-size: clamp(2.6rem, 9vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 1.5rem;
  font-weight: 400;
}

.havena-pro-footer--contact .havena-pro-footer__hero-title em {
  font-style: italic;
  color: var(--havena-pro-footer-ac);
}

.havena-pro-footer--contact .havena-pro-footer__hero > p {
  max-width: 52ch;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
}

.havena-pro-footer--contact .havena-pro-footer__hero-cta,
.havena-pro-footer--contact .havena-pro-footer__hero .havena-pro-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0;
}

/*
 * H33 — Contact gold CTA keeps readable ink on hover/focus/active.
 * Generic footer link colors must not override .havena-pro-btn--gold text/icon.
 */
.havena-pro-footer--contact .havena-pro-footer__hero-cta.havena-pro-btn--gold,
.havena-pro-footer--contact .havena-pro-footer__hero-cta.havena-pro-btn--gold:hover,
.havena-pro-footer--contact .havena-pro-footer__hero-cta.havena-pro-btn--gold:focus-visible,
.havena-pro-footer--contact .havena-pro-footer__hero-cta.havena-pro-btn--gold:active {
  color: var(--havena-pro-navy-950, #0a1628);
}

.havena-pro-footer--contact .havena-pro-footer__hero-cta.havena-pro-btn--gold:focus-visible {
  outline: var(--havena-pro-focus-width, 2px) solid var(--havena-pro-footer-ac);
  outline-offset: 3px;
}

.havena-pro-footer--contact .havena-pro-footer__tiles {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: clamp(2.5rem, 6vw, 3.5rem);
  margin-bottom: 0;
  border-bottom: 1px solid var(--havena-pro-footer-bd);
}

.havena-pro-footer--contact .havena-pro-footer__tile {
  display: block;
  padding: 2rem 1.75rem;
  border: 1px solid var(--havena-pro-footer-bd);
  border-radius: var(--havena-pro-radius, 12px);
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, #fff 3%, transparent);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.havena-pro-footer--contact .havena-pro-footer__tile:hover,
.havena-pro-footer--contact .havena-pro-footer__tile:focus-visible {
  background: color-mix(in srgb, #fff 6%, transparent);
  border-color: var(--havena-pro-footer-ac);
  transform: translateY(-3px);
}

.havena-pro-footer--contact .havena-pro-footer__tile-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--havena-pro-footer-ac) 12%, transparent);
  color: var(--havena-pro-footer-ac);
}

.havena-pro-footer--contact .havena-pro-footer__tile-icon svg {
  width: 20px;
  height: 20px;
}

.havena-pro-footer--contact .havena-pro-footer__tile-label {
  margin: 0 0 0.6rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--havena-pro-footer-fg) 70%, transparent);
}

.havena-pro-footer--contact .havena-pro-footer__tile-value {
  margin: 0;
  font-family: var(--havena-pro-font-family-heading, inherit);
  font-size: 1.4rem;
  line-height: 1.2;
  word-break: break-word;
  font-weight: 400;
  color: var(--havena-pro-footer-hd);
}

.havena-pro-footer--contact .havena-pro-footer__mini {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 0;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--havena-pro-footer-fg) 85%, transparent);
}

.havena-pro-footer--contact .havena-pro-footer__mini-brand .havena-pro-logo__mark {
  width: 26px;
  height: 26px;
}

.havena-pro-footer--contact .havena-pro-footer__mini-brand .havena-pro-logo--custom .custom-logo {
  width: auto;
  height: 28px;
  max-width: min(140px, 36vw);
  object-fit: contain;
}

.havena-pro-footer--contact .havena-pro-footer__mini-nav {
  justify-self: center;
}

.havena-pro-footer--contact .havena-pro-footer__mini-nav .havena-pro-footer__mini-list,
.havena-pro-footer--contact .havena-pro-footer__mini-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.havena-pro-footer--contact .havena-pro-footer__mini > .havena-pro-footer__legal,
.havena-pro-footer--contact .havena-pro-footer__mini > nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.havena-pro-footer--contact .havena-pro-footer__mini > .havena-pro-footer__legal ul,
.havena-pro-footer--contact .havena-pro-footer__mini > nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.havena-pro-footer--statement .havena-pro-footer__stmt > .havena-pro-footer__form {
  display: inline-flex;
  justify-content: center;
  width: min(520px, 100%);
  margin-inline: auto;
}

.havena-pro-footer--atelier .havena-pro-footer__brand .havena-pro-logo,
.havena-pro-footer--atelier .havena-pro-footer__brand .havena-pro-footer__wordmark {
  font-size: 2.35rem;
}

/* MC4WP shell */
.havena-pro-footer .havena-pro-newsletter__form--mc4wp {
  min-width: min(460px, 100%);
}

.havena-pro-footer .havena-pro-newsletter__form--mc4wp .mc4wp-form {
  margin: 0;
}

.havena-pro-footer .havena-pro-newsletter__form--mc4wp input[type="email"] {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--havena-pro-footer-bd);
  color: var(--havena-pro-footer-hd);
  border-radius: var(--havena-pro-radius-pill, 999px);
  padding: 0.7rem 1.1rem;
  width: min(100%, 18rem);
}

.havena-pro-footer .havena-pro-newsletter__form--mc4wp input[type="submit"],
.havena-pro-footer .havena-pro-newsletter__form--mc4wp button[type="submit"] {
  margin-inline-start: 0.5rem;
}

/*
 * Footer column widgets reuse .havena-pro-widget (same class as blog/sidebar cards
 * in inner.css). Footer chrome owns the surface here so content-card chrome
 * (white background, border, radius, padding) never paints as floating cards
 * inside any of the six footer variants. Sidebar/blog .havena-pro-widget is untouched.
 */
.havena-pro-footer .havena-pro-widget {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* Dark mode: keep footer text on footer tokens (no content-card color bleed). */
html.havena-pro-dark .havena-pro-footer .havena-pro-widget {
  color: inherit;
}

/* —— Responsive (specificity must beat variant desktop recipes) —— */
@media (max-width: 1180px) {
  .havena-pro-footer--classic .havena-pro-footer__main--cols-3,
  .havena-pro-footer--classic .havena-pro-footer__main--cols-4,
  .havena-pro-footer--classic .havena-pro-footer__main--cols-5,
  .havena-pro-footer--classic .havena-pro-footer__main--cols-3.havena-pro-footer__main--with-office,
  .havena-pro-footer--classic .havena-pro-footer__main--cols-4.havena-pro-footer__main--with-office,
  .havena-pro-footer--classic .havena-pro-footer__main--cols-5.havena-pro-footer__main--with-office,
  .havena-pro-footer--grid .havena-pro-footer__nav--cols-3,
  .havena-pro-footer--grid .havena-pro-footer__nav--cols-4,
  .havena-pro-footer--grid .havena-pro-footer__nav--cols-5,
  .havena-pro-footer--grid .havena-pro-footer__nav--cols-3.havena-pro-footer__nav--with-office,
  .havena-pro-footer--grid .havena-pro-footer__nav--cols-4.havena-pro-footer__nav--with-office,
  .havena-pro-footer--grid .havena-pro-footer__nav--cols-5.havena-pro-footer__nav--with-office {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .havena-pro-footer--portal .havena-pro-footer__tiles--locations {
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  }

  .havena-pro-footer--grid .havena-pro-footer__cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .havena-pro-footer--classic .havena-pro-footer__main--cols-3,
  .havena-pro-footer--classic .havena-pro-footer__main--cols-4,
  .havena-pro-footer--classic .havena-pro-footer__main--cols-5,
  .havena-pro-footer--classic .havena-pro-footer__main--cols-3.havena-pro-footer__main--with-office,
  .havena-pro-footer--classic .havena-pro-footer__main--cols-4.havena-pro-footer__main--with-office,
  .havena-pro-footer--classic .havena-pro-footer__main--cols-5.havena-pro-footer__main--with-office {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .havena-pro-footer--portal .havena-pro-footer__portal,
  .havena-pro-footer--portal .havena-pro-footer__portal--cols-3,
  .havena-pro-footer--portal .havena-pro-footer__portal--cols-4,
  .havena-pro-footer--portal .havena-pro-footer__portal--cols-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .havena-pro-footer--contact .havena-pro-footer__tiles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .havena-pro-footer--contact .havena-pro-footer__mini {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
  }

  .havena-pro-footer--contact .havena-pro-footer__mini-nav {
    justify-self: center;
  }

  .havena-pro-footer--contact .havena-pro-footer__mini > nav,
  .havena-pro-footer--contact .havena-pro-footer__mini > .havena-pro-footer__legal {
    justify-content: center;
  }

  .havena-pro-footer--contact .havena-pro-footer__mini-nav .havena-pro-footer__mini-list,
  .havena-pro-footer--contact .havena-pro-footer__mini-nav ul {
    justify-content: center;
  }
}

@media (max-width: 780px) {
  .havena-pro-footer--classic .havena-pro-footer__main--cols-3,
  .havena-pro-footer--classic .havena-pro-footer__main--cols-4,
  .havena-pro-footer--classic .havena-pro-footer__main--cols-5,
  .havena-pro-footer--classic .havena-pro-footer__main--cols-3.havena-pro-footer__main--with-office,
  .havena-pro-footer--classic .havena-pro-footer__main--cols-4.havena-pro-footer__main--with-office,
  .havena-pro-footer--classic .havena-pro-footer__main--cols-5.havena-pro-footer__main--with-office,
  .havena-pro-footer--grid .havena-pro-footer__nav--cols-3,
  .havena-pro-footer--grid .havena-pro-footer__nav--cols-4,
  .havena-pro-footer--grid .havena-pro-footer__nav--cols-5,
  .havena-pro-footer--grid .havena-pro-footer__nav--cols-3.havena-pro-footer__nav--with-office,
  .havena-pro-footer--grid .havena-pro-footer__nav--cols-4.havena-pro-footer__nav--with-office,
  .havena-pro-footer--grid .havena-pro-footer__nav--cols-5.havena-pro-footer__nav--with-office {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .havena-pro-footer--grid .havena-pro-footer__news--grid {
    flex-direction: column;
    align-items: stretch;
  }

  .havena-pro-footer--portal .havena-pro-footer__tiles--locations {
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  }
}

@media (max-width: 640px) {
  .havena-pro-footer--atelier .havena-pro-footer__nav,
  .havena-pro-footer--atelier .havena-pro-footer__nav--cols-3,
  .havena-pro-footer--atelier .havena-pro-footer__nav--cols-4,
  .havena-pro-footer--atelier .havena-pro-footer__nav--cols-5 {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .havena-pro-footer--atelier .havena-pro-footer__contact--row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .havena-pro-footer--portal .havena-pro-footer__top {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .havena-pro-footer--portal .havena-pro-footer__portal,
  .havena-pro-footer--portal .havena-pro-footer__portal--cols-3,
  .havena-pro-footer--portal .havena-pro-footer__portal--cols-4,
  .havena-pro-footer--portal .havena-pro-footer__portal--cols-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }

  .havena-pro-footer--statement .havena-pro-footer__ribbon .havena-pro-footer__legal,
  .havena-pro-footer--statement .havena-pro-footer__ribbon nav > ul,
  .havena-pro-footer--statement .havena-pro-footer__ribbon-inner,
  .havena-pro-footer--statement .havena-pro-footer__ribbon-inner ul {
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
  }

  .havena-pro-footer--statement .havena-pro-footer__ribbon .havena-pro-footer__legal > li + li::before,
  .havena-pro-footer--statement .havena-pro-footer__ribbon nav > ul > li + li::before,
  .havena-pro-footer--statement .havena-pro-footer__ribbon-inner li + li::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .havena-pro-footer--classic .havena-pro-footer__main--cols-3,
  .havena-pro-footer--classic .havena-pro-footer__main--cols-4,
  .havena-pro-footer--classic .havena-pro-footer__main--cols-5,
  .havena-pro-footer--classic .havena-pro-footer__main--cols-3.havena-pro-footer__main--with-office,
  .havena-pro-footer--classic .havena-pro-footer__main--cols-4.havena-pro-footer__main--with-office,
  .havena-pro-footer--classic .havena-pro-footer__main--cols-5.havena-pro-footer__main--with-office,
  .havena-pro-footer--grid .havena-pro-footer__nav--cols-3,
  .havena-pro-footer--grid .havena-pro-footer__nav--cols-4,
  .havena-pro-footer--grid .havena-pro-footer__nav--cols-5,
  .havena-pro-footer--grid .havena-pro-footer__nav--cols-3.havena-pro-footer__nav--with-office,
  .havena-pro-footer--grid .havena-pro-footer__nav--cols-4.havena-pro-footer__nav--with-office,
  .havena-pro-footer--grid .havena-pro-footer__nav--cols-5.havena-pro-footer__nav--with-office,
  .havena-pro-footer--portal .havena-pro-footer__portal--cols-3,
  .havena-pro-footer--portal .havena-pro-footer__portal--cols-4,
  .havena-pro-footer--portal .havena-pro-footer__portal--cols-5 {
    grid-template-columns: minmax(0, 1fr);
  }

  .havena-pro-footer--grid .havena-pro-footer__cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .havena-pro-footer .havena-pro-footer__form {
    flex-direction: column;
    border-radius: var(--havena-pro-radius, 12px);
    padding: 0.75rem;
  }

  .havena-pro-footer .havena-pro-footer__form .havena-pro-btn,
  .havena-pro-footer .havena-pro-newsletter__form--mc4wp input[type="email"],
  .havena-pro-footer .havena-pro-newsletter__form--mc4wp input[type="submit"],
  .havena-pro-footer .havena-pro-newsletter__form--mc4wp button[type="submit"] {
    width: 100%;
    margin-inline-start: 0;
    margin-block-start: 0.5rem;
  }

  .havena-pro-footer--portal .havena-pro-footer__tiles--locations {
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  }
}

@media (max-width: 400px) {
  .havena-pro-footer--portal .havena-pro-footer__portal,
  .havena-pro-footer--portal .havena-pro-footer__portal--cols-3,
  .havena-pro-footer--portal .havena-pro-footer__portal--cols-4,
  .havena-pro-footer--portal .havena-pro-footer__portal--cols-5 {
    grid-template-columns: minmax(0, 1fr);
  }
}