/* Preview gate lives in PHP; selectors are additionally isolated to that body. */
body.srh-header-preview .srh-footer {
  position: relative; isolation: isolate; overflow: hidden; width: 100%;
  --srh-footer-edge-gap:50px;
  background: #123e33; color: #f4f8f5; padding: var(--srh-footer-edge-gap) 0;
  font-family: 'SRH Header Manrope', sans-serif;
}
body.srh-header-preview .srh-footer::before {
  content: ''; position: absolute; inset: -20%; z-index: -2; pointer-events: none;
  background: radial-gradient(ellipse at 22% 28%, #009a6b 0%, transparent 48%), radial-gradient(ellipse at 78% 58%, #08745b 0%, transparent 46%);
  filter: blur(20px); opacity: .42; animation: srh-footer-drift 56s ease-in-out infinite alternate;
}
body.srh-header-preview .srh-footer::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, rgba(18,62,51,.08) 42%, #123e33 92%, #123e33 100%);
}
body.srh-header-preview .srh-footer[data-srh-footer-motion="off"]::before { display: none; }
@keyframes srh-footer-drift { from { transform: translate(-2%,1%); } to { transform: translate(2%,-1%); } }
body.srh-header-preview .srh-footer__inner {
  width: min(1240px, calc(100% - 112px)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.55fr); gap: 24px 80px;
}
body.srh-header-preview #srh-global-footer-title {
  grid-column: 1 / -1; margin: 0; padding: 0; color: #f4f8f5;
  font: 600 clamp(28px,2.5vw,36px)/1.2 'SRH Header Manrope',sans-serif;
  letter-spacing: -.03em; text-transform: none;
}
body.srh-header-preview .srh-footer__intro { grid-column: 1; margin: 0; max-width: 620px; font-size: 18px; font-weight: 500; line-height: 1.7; }
body.srh-header-preview .srh-footer__details { grid-column: 2; grid-row: 2 / 4; }
body.srh-header-preview .srh-footer__details :is(p,address) { margin: 0 0 20px; font: normal 400 16px/1.7 'SRH Header Manrope',sans-serif; color: #d3dfd0; }
body.srh-header-preview .srh-footer__details > :last-child { margin-bottom:0; }
/* Exact shared button palette, including hover/visited; no inherited tracking. */
body.srh-header-preview :is(.srh-footer__cta, [data-srh-homepage] .srh-home__card .srh-home__link) {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 20px;
  background: #74b3ac !important; border: 1px solid #74b3ac !important; color: #ffffff !important;
  font-family: 'SRH Header Manrope',sans-serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: normal !important; word-spacing: normal !important; text-decoration: none !important;
  border-radius: 6px; box-shadow: none !important; box-sizing: border-box;
}
body.srh-header-preview .srh-footer__cta { grid-column: 1; margin: 0; width: min(100%,320px); min-height: 64px; padding: 18px 24px; font-size: 18px; justify-content: center; gap: 0; text-align: center; line-height: 1.4; }
body.srh-header-preview [data-srh-homepage] .srh-home__card .srh-home__link { font-size: 16px; min-height: 54px; padding: 14px 22px; }
body.srh-header-preview :is(.srh-footer__cta, [data-srh-homepage] .srh-home__card .srh-home__link):is(:hover,:focus,:visited,:active) {
  background: #74b3ac !important; color: #fff !important; text-decoration: none !important;
}
body.srh-header-preview :is(.srh-footer__cta, [data-srh-homepage] .srh-home__card .srh-home__link):focus-visible { outline: 3px solid #568f80; outline-offset: 5px; }
body.srh-header-preview .srh-footer__cta:focus-visible { outline-color: #f4f8f5; }
body.srh-header-preview :is(.srh-footer__cta, [data-srh-homepage] .srh-home__card .srh-home__link) svg { flex-shrink: 0; color: #fff; }
body.srh-header-preview #colophon, body.srh-header-preview #colophon .site-below-footer-wrap { background: #123e33 !important; border: 0 !important; box-shadow: none !important; margin: 0 !important; }
body.srh-header-preview #colophon .site-below-footer-wrap { padding: 0 0 28px !important; }
body.srh-header-preview #colophon :is(.site-below-footer-wrap,.site-below-footer-inner-wrap) { min-height:0!important; }
body.srh-header-preview #colophon .ast-builder-grid-row-container-inner { width: min(1240px,calc(100% - 112px)) !important; max-width: none !important; margin-inline: auto !important; padding: 0 !important; }
body.srh-header-preview #colophon :is(.site-below-footer-inner-wrap,.site-footer-section,.ast-footer-copyright) { min-width: 0; width: 100%; margin: 0 !important; padding: 0 !important; justify-content: flex-start !important; text-align: left !important; }
body.srh-header-preview #colophon .ast-footer-copyright :is(p,a,button) { font-family: 'SRH Header Manrope',sans-serif; color: #d3dfd0 !important; font-size: 14px; line-height: 1.8; }
body.srh-header-preview #colophon .ast-footer-copyright p { margin: 0 !important; }
body.srh-header-preview #colophon .cmplz-manage-consent { text-decoration: none !important; }
body.srh-header-preview #colophon :is(a,button):focus-visible { outline: 2px solid #74b3ac; outline-offset: 3px; }
body.srh-header-preview #ast-scroll-top { background: #74b3ac !important; color: #103d33 !important; width: 44px; height: 44px; line-height: 44px; border-radius: 4px; border: 0; box-shadow: none; opacity: 1; }
body.srh-header-preview #ast-scroll-top:focus-visible { outline: 2px solid #f4f8f5; outline-offset: 3px; }
@media(max-width:1000px) {
  body.srh-header-preview .srh-footer__inner { width: calc(100% - 64px); column-gap: 48px; }
  body.srh-header-preview #colophon .ast-builder-grid-row-container-inner { width: calc(100% - 64px) !important; }
}
@media(max-width:700px) {
  body.srh-header-preview .srh-footer { --srh-footer-edge-gap:36px; }
  body.srh-header-preview .srh-footer__inner { width: calc(100% - 40px); grid-template-columns: minmax(0,1fr); }
  body.srh-header-preview .srh-footer__details, body.srh-header-preview .srh-footer__cta, body.srh-header-preview .srh-footer__intro, body.srh-header-preview #srh-global-footer-title { grid-column: 1; grid-row: auto; }
  body.srh-header-preview .srh-footer__cta { font-size: 18px; padding: 18px 24px; }
  body.srh-header-preview #colophon .ast-builder-grid-row-container-inner { width: calc(100% - 40px) !important; }
}
@media(prefers-reduced-motion:reduce) { body.srh-header-preview .srh-footer::before { animation: none; transform: none; } }

/* Same actual family as the native global footer paragraph. */
body.srh-header-preview [data-srh-homepage] :is(.srh-home__approach p,.srh-home__card-description) { font-family: 'SRH Header Manrope',sans-serif; }

@media(max-width:700px){body.srh-header-preview #srh-global-footer-title{font-size:28px;line-height:1.25;text-wrap:pretty;}}
