/* Closing CTA band and site footer. */
.cta-band { background: var(--brand-deep); color: var(--on-brand); padding-block: 80px; }
.cta-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.cta-inner h2 { font-size: var(--display-lg); line-height: 1.15; margin-top: 14px; max-width: 18ch; }
.cta-inner p { color: var(--brand-muted); font-size: var(--text-lg); line-height: 1.6; margin-top: 14px; max-width: 60ch; }
.cta-inner p + p { margin-top: 6px; }
.cta-inner .cta-tagline { color: var(--teal-bright); font-weight: 700; margin-top: 20px; }

.site-footer { padding: 64px 0 28px; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { font-size: var(--text-sm); color: var(--muted-foreground); line-height: 1.7; margin-top: 18px; max-width: 30ch; }
.footer-heading { font-size: var(--text-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; font-size: var(--text-sm); color: var(--muted-foreground); }
.footer-links a:hover { color: var(--primary); }
.footer-social { display: flex; align-items: center; gap: 8px; }
.footer-newsletter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; margin-bottom: 28px; padding: 24px 28px; border-radius: var(--radius-lg); background: var(--secondary); }
.footer-newsletter .footer-heading { margin-bottom: 6px; }
.footer-newsletter p { font-size: var(--text-sm); line-height: 1.6; color: var(--muted-foreground); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); padding-top: 24px; color: var(--muted-foreground); font-size: 13px; }
.footer-bottom__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.footer-bottom__links a, .footer-bottom__button { color: inherit; font-size: inherit; font-weight: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom__links a:hover, .footer-bottom__button:hover { color: var(--primary); }

/* Analytics consent banner (partials/cookie-banner.html), pinned to the bottom of the viewport until the visitor chooses. */
.cookie-banner { position: fixed; inset: auto 0 0; z-index: 45; padding-block: 20px; border-top: 1px solid var(--border); background: var(--background); box-shadow: var(--shadow-menu); }
.cookie-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 40px; }
.cookie-banner__title { font-size: var(--text-base); font-weight: 800; }
.cookie-banner__text p { margin-top: 4px; max-width: 70ch; font-size: var(--text-sm); line-height: 1.6; color: var(--muted-foreground); }
.cookie-banner__text a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__text .cookie-banner__status { font-weight: 700; color: var(--foreground); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
/* scripts/consent.js sets --cookie-banner-space to the banner's height while it shows, so it never hides the end of the page. */
body { padding-bottom: var(--cookie-banner-space, 0px); }

@media (max-width: 1080px) {
  /* Comfortable tap targets; the extra padding replaces most of the gap. */
  .footer-links { gap: 2px; }
  .footer-links a { padding-block: 8px; }
  .footer-bottom__links a, .footer-bottom__button { padding-block: 8px; }
}

@media (max-width: 860px) {
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  /* Contact details and social icons need the full width on small screens. */
  .footer-main > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  /* Phones: a slim banner. The heading stays for screen readers; the text and two equal buttons take a few lines. */
  .cookie-banner { padding-block: 12px; }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .cookie-banner__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cookie-banner__text p { margin-top: 0; font-size: var(--text-xs); line-height: 1.45; }
  .cookie-banner__actions { flex-wrap: nowrap; gap: 8px; }
  .cookie-banner__actions .btn { flex: 1 1 0; min-height: 44px; padding-inline: 12px; }
}

@media (max-width: 720px) {
  .cta-band { padding-block: 60px; }
  .cta-inner p { font-size: var(--text-base); }
}
