/* ==========================================================================
   Biotech Environ — Components
   Header · navigation · mobile menu · dialogs · lightbox · accordion ·
   form · map facade · back-to-top · footer
   ========================================================================== */

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--white);
  transition: background-color 0.45s var(--ease-out), color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out), height 0.45s var(--ease-out), transform 0.5s var(--ease-out);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  transition: opacity 0.45s;
}
.site-header.is-scrolled {
  --header-h: 66px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  box-shadow: 0 6px 24px -14px rgba(7, 24, 32, 0.3);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(1.6) blur(14px);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
  }
}
.site-header.is-scrolled::after {
  opacity: 0;
}
.site-header.is-hidden {
  transform: translateY(-100%);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  flex: none;
}
/* The supplied logo artwork is designed for a white background, so it sits
   on a white plate: readable over the dark hero and the dark footer, and
   seamless on the white (scrolled) header. */
.brand__plate {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 6px 20px -10px rgba(7, 24, 32, 0.55);
  transition: box-shadow 0.45s var(--ease-out), padding 0.45s var(--ease-out);
}
.brand__logo {
  display: block;
  width: auto;
  height: 46px;
  transition: height 0.45s var(--ease-out);
}
.site-header.is-scrolled .brand__plate {
  box-shadow: none;
}
.site-header.is-scrolled .brand__logo {
  height: 42px;
}
.brand--footer .brand__logo {
  height: 58px;
}
@media (max-width: 1359px) {
  .site-header .brand__logo {
    height: 40px;
  }
}
@media (max-width: 479px) {
  .site-header .brand__logo,
  .site-header.is-scrolled .brand__logo {
    height: 36px;
  }
  .brand__plate {
    padding: 5px 8px;
  }
}

/* Desktop nav */
.nav {
  display: none;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 0.2rem + 1.4vw, 2.1rem);
}
.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.3s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__link:hover,
.nav__link[aria-current="true"] {
  opacity: 1;
}
.nav__link:hover::after,
.nav__link[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone svg {
  width: 16px;
  height: 16px;
}
.header-cta {
  display: none;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  font-size: 0.75rem;
}

@media (min-width: 1200px) {
  .nav {
    display: block;
  }
  .header-cta {
    display: inline-flex;
  }
}
@media (min-width: 1360px) {
  .header-phone {
    display: inline-flex;
  }
}

/* Burger */
.menu-toggle {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-color: rgba(127, 127, 127, 0.35);
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.menu-toggle__bars {
  position: relative;
}
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle__bars::before {
  top: -6px;
}
.menu-toggle__bars::after {
  top: 6px;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
  background: transparent;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}
@media (min-width: 1200px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  background: var(--navy);
  color: var(--white);
  overflow-y: auto;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease-in-out), visibility 0s linear 0.6s;
}
.mobile-menu.is-open {
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.6s var(--ease-in-out), visibility 0s;
}
.mobile-menu__list {
  display: grid;
  gap: 0.25rem;
  border-top: 1px solid var(--line-dark);
}
.mobile-menu__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 2.5vw, 2.4rem);
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.1;
}
.mobile-menu__list a span {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--teal-300);
}
.mobile-menu__foot {
  margin-top: auto;
  padding-top: 2rem;
  display: grid;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--muted-on-dark);
}
.mobile-menu__foot a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}
body.menu-open {
  overflow: hidden;
}
body.menu-open .site-header {
  background: var(--navy);
  color: var(--white);
  box-shadow: none;
  backdrop-filter: none;
}
@media (min-width: 1200px) {
  .mobile-menu {
    display: none;
  }
}

/* ---------- Dialog (service detail) ---------- */
.dialog {
  width: min(880px, calc(100vw - 2rem));
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.dialog::backdrop {
  background: rgba(7, 24, 32, 0.72);
  backdrop-filter: blur(4px);
}
.dialog[open] {
  display: flex;
  flex-direction: column;
  animation: dialog-in 0.5s var(--ease-out);
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
}
.dialog__head {
  position: relative;
  flex: none;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 1.75rem clamp(1.25rem, 3vw, 2.5rem);
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}
.dialog__head img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.dialog__head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 43, 58, 0.1), rgba(16, 43, 58, 0.92));
}
.dialog__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem);
  line-height: 1;
  text-transform: uppercase;
}
.dialog__num {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--teal-300);
}
.dialog__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(7, 24, 32, 0.4);
  color: var(--white);
  transition: background 0.3s, transform 0.4s var(--ease-out);
}
.dialog__close:hover {
  background: var(--teal);
  transform: rotate(90deg);
}
.dialog__close svg {
  width: 18px;
  height: 18px;
}
.dialog__body {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.dialog__body p {
  color: var(--muted);
}
.dialog__body p + p {
  margin-top: 1em;
}
.dialog__body h4 {
  margin: 1.75rem 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}
.dialog__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag-list li {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--ink);
  background: var(--mist);
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(5, 17, 24, 0.96);
  color: var(--white);
}
.lightbox::backdrop {
  background: rgba(5, 17, 24, 0.96);
}
.lightbox[open] {
  display: grid;
  grid-template-rows: auto 1fr auto;
  animation: fade-in 0.35s ease;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem var(--gutter);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 clamp(0.5rem, 6vw, 6rem);
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: opacity 0.3s;
}
.lightbox__img.is-loading {
  opacity: 0.2;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(7, 24, 32, 0.55);
  color: var(--white);
  transition: background 0.3s, border-color 0.3s;
}
.lightbox__nav:hover {
  background: var(--teal);
  border-color: var(--teal);
}
.lightbox__nav svg {
  width: 20px;
  height: 20px;
}
.lightbox__nav--prev {
  left: clamp(0.5rem, 2vw, 1.5rem);
}
.lightbox__nav--next {
  right: clamp(0.5rem, 2vw, 1.5rem);
}
.lightbox__caption {
  padding: 1.25rem var(--gutter) 1.75rem;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}
.lightbox__caption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.lightbox__caption span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  color: var(--muted-on-dark);
}
.lightbox .dialog__close {
  position: static;
}
@media (max-width: 640px) {
  .lightbox__nav {
    top: auto;
    bottom: -0.5rem;
    translate: none;
    width: 46px;
    height: 46px;
  }
  .lightbox__stage {
    padding-bottom: 3.5rem;
  }
}

/* ---------- Accordion ---------- */
.accordion {
  border-top: 1px solid var(--line);
}
.accordion__item {
  border-bottom: 1px solid var(--line);
}
.accordion__heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
  transition: color 0.3s;
}
.accordion__trigger:hover {
  color: var(--teal);
}
.accordion__q-num {
  flex: none;
  min-width: 2.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--teal);
  padding-top: 0.3em;
}
.accordion__q-text {
  flex: 1;
}
.accordion__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  margin-top: -2px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background 0.35s, border-color 0.35s, transform 0.5s var(--ease-out);
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  translate: -50% -50%;
  transition: transform 0.4s var(--ease-out);
}
.accordion__icon::after {
  transform: rotate(90deg);
}
.accordion__trigger[aria-expanded="true"] .accordion__icon {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  transform: rotate(180deg);
}
.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: rotate(0deg);
}
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease-out);
}
.accordion__panel > div {
  overflow: hidden;
}
.accordion__panel.is-open {
  grid-template-rows: 1fr;
}
.accordion__panel[hidden] {
  display: grid;
}
.no-js .accordion__panel,
.accordion__panel.is-open {
  grid-template-rows: 1fr;
}
.accordion__answer {
  padding: 0 3.5rem 1.75rem 3.75rem;
  color: var(--muted);
}
.accordion__answer p + p,
.accordion__answer p + ul {
  margin-top: 0.85em;
}
.accordion__answer ul {
  padding-left: 1.1rem;
}
.accordion__answer a {
  color: var(--teal);
  font-weight: 600;
}
@media (max-width: 600px) {
  .accordion__answer {
    padding: 0 0 1.5rem 0;
  }
  .accordion__q-num {
    display: none;
  }
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 1.25rem;
}
.form__row {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 640px) {
  .form__row--2 {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: 0.45rem;
}
.field label {
  display: block;
  line-height: 1.4;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
.field .req {
  color: var(--teal);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.field select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102B3A' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--muted);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.18);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #b3261e;
}
.field__error:empty {
  display: none;
}
.field__error {
  min-height: 0;
  font-size: 0.8125rem;
  color: #b3261e;
}
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__note {
  font-size: 0.8125rem;
  color: var(--muted);
}
.form__status {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  border: 1px solid transparent;
}
.form__status:empty {
  display: none;
}
.form__status.is-success {
  background: rgba(101, 168, 120, 0.12);
  border-color: rgba(101, 168, 120, 0.5);
  color: #24573a;
}
.form__status.is-error {
  background: rgba(179, 38, 30, 0.06);
  border-color: rgba(179, 38, 30, 0.35);
  color: #8c1d18;
}
.form__status.is-info {
  background: rgba(8, 127, 140, 0.08);
  border-color: rgba(8, 127, 140, 0.35);
  color: var(--teal-700);
}
.btn[aria-busy="true"] {
  pointer-events: none;
  opacity: 0.75;
}

/* ---------- Map facade ---------- */
.map {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-900);
  border: 1px solid var(--line-dark);
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map__facade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--white);
}
.map__grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}
.map__pin {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 10px rgba(8, 127, 140, 0.25), 0 0 0 22px rgba(8, 127, 140, 0.1);
}
.map__pin svg {
  width: 20px;
  height: 20px;
}
.map__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.map__actions .btn {
  min-height: 44px;
  padding: 0.6rem 1rem;
  font-size: 0.6875rem;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 2vw, 1.75rem);
  bottom: clamp(1rem, 2vw, 1.75rem);
  z-index: 90;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.4s, transform 0.4s var(--ease-out), visibility 0s linear 0.4s, background 0.3s;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.4s, transform 0.4s var(--ease-out), visibility 0s, background 0.3s;
}
.to-top:hover {
  background: var(--teal);
}
.to-top svg.to-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.to-top__ring circle {
  fill: none;
  stroke-width: 2;
}
.to-top__ring .track {
  stroke: rgba(255, 255, 255, 0.15);
}
.to-top__ring .progress {
  stroke: var(--teal-300);
  stroke-linecap: round;
  stroke-dasharray: 150.8;
  stroke-dashoffset: calc(150.8 - 150.8 * var(--progress, 0));
}
.to-top__arrow {
  width: 18px;
  height: 18px;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--navy-950);
  color: var(--muted-on-dark);
  font-size: 0.9375rem;
}
.footer-cta {
  position: relative;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}
.footer-cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.footer-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.footer-cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 24, 32, 0.88) 0%, rgba(7, 24, 32, 0.6) 40%, rgba(7, 24, 32, 0.25) 75%, rgba(7, 24, 32, 0.4) 100%);
}
.footer-cta__inner {
  display: grid;
  gap: 2rem;
  align-items: end;
  padding-block: clamp(4rem, 3rem + 5vw, 8rem);
}
@media (min-width: 900px) {
  .footer-cta__inner {
    grid-template-columns: 1fr auto;
  }
}
.footer-cta .display {
  max-width: 15ch;
}
.footer-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-main {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3.5rem, 3rem + 3vw, 5.5rem);
  border-top: 1px solid var(--line-dark);
}
@media (min-width: 720px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1100px) {
  .footer-main {
    grid-template-columns: 1.5fr 0.8fr 1.2fr 1.3fr;
    gap: 3rem;
  }
}
.footer-brand .brand {
  color: var(--white);
}
.footer-brand p {
  margin-top: 1.25rem;
  max-width: 38ch;
}
.footer-col h2 {
  margin-bottom: 1.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-col ul {
  display: grid;
  gap: 0.55rem;
}
.footer-col a {
  text-decoration: none;
  transition: color 0.25s;
}
.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
}
.footer-contact {
  display: grid;
  gap: 1rem;
}
.footer-contact a {
  color: var(--white);
}
.footer-contact dt {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-300);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8125rem;
}
.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-bottom a {
  text-decoration: none;
}
.footer-bottom a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ---------- Desktop footer: light theme ----------
   On desktop the footer switches to a light blue surface; the logo
   (white-background artwork) sits on a clean white card.
   The photo call-to-action band above stays dark. Mobile is unchanged. */
@media (min-width: 1024px) {
  .site-footer > .container {
    max-width: none;
    margin: 0;
    padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
    background: linear-gradient(180deg, #d3ebf0 0%, #c4e3ea 100%);
    color: #4a5d66;
    box-shadow: inset 0 4px 0 var(--teal);
  }
  .site-footer > .container :focus-visible {
    outline-color: var(--teal);
  }
  .footer-main {
    border-top: 0;
  }
  .footer-brand .brand__plate {
    padding: 10px 14px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 8px 24px -14px rgba(16, 43, 58, 0.35);
  }
  .brand--footer .brand__logo {
    height: 64px;
  }
  .footer-col h2 {
    color: var(--navy);
    font-weight: 700;
  }
  .footer-col a {
    color: #3f525c;
  }
  .footer-col a:hover,
  .footer-bottom a:hover {
    color: var(--teal-700);
  }
  .footer-contact a {
    color: var(--navy);
    font-weight: 600;
  }
  .footer-contact dt {
    color: var(--teal-700);
    font-weight: 600;
  }
  .footer-bottom {
    border-top: 1px solid rgba(16, 43, 58, 0.14);
    color: #56666f;
  }
}

/* Homepage light hero: navy header text until the page scrolls */
.has-light-hero:not(.menu-open) .site-header:not(.is-scrolled) {
  color: var(--navy);
}
.has-light-hero:not(.menu-open) .site-header:not(.is-scrolled)::after {
  background: rgba(16, 43, 58, 0.1);
}
