/* One footer layout for every page; overrides older page-local footer rules. */
.site-footer.site-footer-shared {
  padding: 0;
  border: 0;
  color: #fff;
  background: var(--olive);
}
.site-footer.site-footer-shared::before { content: none; }
.site-footer.site-footer-shared .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
  padding: 1.3rem 0 2.6rem;
  color: #fff;
  font: 400 .9rem/1.6 var(--sans);
  letter-spacing: normal;
  text-align: left;
}
.site-footer.site-footer-shared .footer-grid > * { min-width: 0; }
.site-footer.site-footer-shared p { margin: .2rem 0; }
.site-footer.site-footer-shared .footer-center {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  order: 0;
  color: #fff;
  font: inherit;
  letter-spacing: normal;
}
.site-footer.site-footer-shared .footer-certifications {
  display: block;
  flex: 0 0 150px;
  width: 150px;
  max-width: 100%;
  height: auto;
}
.site-footer.site-footer-shared .footer-social-group {
  display: grid;
  gap: .45rem;
  justify-items: start;
}
.site-footer.site-footer-shared .footer-social-label {
  color: #fff;
  font: 500 .88rem/1.6 var(--sans);
  letter-spacing: .04em;
}
.site-footer.site-footer-shared .social-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .8rem;
  margin: 0 !important;
}
.site-footer.site-footer-shared .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--gold-light);
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  background: transparent;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease;
}
.site-footer.site-footer-shared .social-links a:hover,
.site-footer.site-footer-shared .social-links a:focus-visible {
  color: var(--olive);
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
}
.site-footer.site-footer-shared .social-links svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-footer.site-footer-shared .footer-right { text-align: right; }
.site-footer.site-footer-shared .footer-slogan {
  margin: .2rem 0 .65rem;
  color: var(--gold-light);
  font: 400 1.65rem/1.1 var(--script);
  letter-spacing: .02em;
}
.site-footer.site-footer-shared a { color: #fff; text-underline-offset: 4px; }
.site-footer.site-footer-shared .footer-cookie-settings {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* The same existing cookie controls now work on every route. */
.cookie-banner {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 50;
  display: none;
  max-width: 760px;
  max-height: calc(100dvh - 3rem);
  overflow-y: auto;
  margin-left: auto;
  padding: 1.4rem 1.5rem;
  color: var(--ink);
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(183,154,74,.55);
  box-shadow: 0 18px 55px rgba(30,34,29,.2);
  backdrop-filter: blur(14px);
}
.cookie-banner.is-visible { display: block; }
.cookie-banner h2 { margin: 0 0 .35rem; font: 500 1.65rem/1.1 var(--serif); }
.cookie-banner p { margin: 0; color: var(--muted); font: 400 1rem/1.5 var(--sans); }
.cookie-banner a { color: inherit; text-underline-offset: 4px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.cookie-button {
  min-height: 46px;
  padding: .72rem 1.15rem;
  border: 1px solid var(--olive);
  font: 400 .875rem/1.2 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.cookie-accept { color: #fff; background: var(--olive); }
.cookie-reject { color: var(--olive); background: transparent; }
.cookie-button:hover, .cookie-button:focus-visible { color: #fff; background: var(--olive); border-color: var(--olive); }
@media (max-width: 960px) {
  .site-footer.site-footer-shared .footer-grid { grid-template-columns: 1fr; }
  .site-footer.site-footer-shared .footer-center { order: -1; justify-content: flex-start; }
  .site-footer.site-footer-shared .footer-right { text-align: left; }
}
@media (min-width: 781px) {
  /* Keep the footer links above the fixed contact action. */
  .site-footer.site-footer-shared .footer-grid { padding-bottom: 6rem; }
}
@media (max-width: 780px) {
  .site-footer.site-footer-shared .footer-grid {
    width: min(1180px, calc(100% - 36px));
    padding-block: 1.3rem 2.25rem;
    font-size: .875rem;
  }
  .site-footer.site-footer-shared .social-links a { width: 2.25rem; height: 2.25rem; }
  .site-footer.site-footer-shared .social-links svg { width: 1.15rem; height: 1.15rem; }
  .cookie-banner { right: .8rem; bottom: .8rem; left: .8rem; padding: 1.2rem; max-height: calc(100dvh - 1.6rem); }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-button { width: 100%; }
}
