/* Modern global footer — loaded after main.css so the legacy footer rules remain harmless. */
.site-footer--modern {
  --footer-bg: #071219;
  --footer-panel: #0d2027;
  --footer-card: rgba(255, 255, 255, 0.045);
  --footer-line: rgba(255, 255, 255, 0.11);
  --footer-text: #f4f8f7;
  --footer-muted: #a8b8b8;
  --footer-accent: #80d5c4;
  --footer-accent-strong: #4eb5a0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4.5rem, 7vw, 7rem) 0 0;
  color: var(--footer-text);
  background:
    radial-gradient(circle at 4% 8%, rgba(86, 191, 169, 0.14), transparent 31rem),
    radial-gradient(circle at 94% 30%, rgba(36, 117, 124, 0.16), transparent 34rem),
    linear-gradient(145deg, #09161d 0%, var(--footer-bg) 52%, #061016 100%);
}

.site-footer--modern::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 70%, transparent);
}

.site-footer--modern .site-footer__glow {
  z-index: -1;
  filter: blur(100px);
  opacity: 0.7;
}

.site-footer--modern .site-footer__glow--left {
  top: 5%;
  left: -12rem;
  width: 34rem;
  height: 34rem;
  background: rgba(93, 205, 183, 0.16);
}

.site-footer--modern .site-footer__glow--right {
  top: 30%;
  right: -14rem;
  width: 38rem;
  height: 38rem;
  background: rgba(38, 112, 127, 0.18);
}

.site-footer--modern .site-footer__inner {
  position: relative;
  z-index: 1;
  width: min(100% - clamp(2rem, 6vw, 6rem), 90rem);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

.footer-v2-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  min-height: 17rem;
  padding: clamp(2rem, 5vw, 4.75rem);
  overflow: hidden;
  border: 1px solid rgba(180, 244, 228, 0.22);
  border-radius: 1.75rem;
  background:
    radial-gradient(circle at 8% 15%, rgba(255, 255, 255, 0.14), transparent 20rem),
    linear-gradient(120deg, #1d7466 0%, #155b55 46%, #103e43 100%);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.24);
}

.footer-v2-cta::before,
.footer-v2-cta::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.footer-v2-cta::before {
  right: -5rem;
  bottom: -10rem;
  width: 25rem;
  height: 25rem;
}

.footer-v2-cta::after {
  right: 6rem;
  bottom: -9rem;
  width: 17rem;
  height: 17rem;
}

.footer-v2-cta__copy,
.footer-v2-cta__actions {
  position: relative;
  z-index: 1;
}

.footer-v2-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.15rem;
  color: #d3f3eb;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.footer-v2-eyebrow span {
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  font-size: 0.9rem;
}

.footer-v2-cta h2 {
  max-width: 17ch;
  margin: 0;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.25vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.footer-v2-cta__copy > p:last-child {
  max-width: 47rem;
  margin: 1.15rem 0 0;
  color: rgba(240, 253, 249, 0.78);
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.7;
}

.footer-v2-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: min(100%, 18rem);
}

.footer-v2-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.7rem;
  padding: 0.8rem 1.15rem 0.8rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  transition:
    transform 180ms var(--ease-out),
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}

.footer-v2-btn > svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
}

.footer-v2-btn--primary {
  color: #102d2c;
  background: #f4fbf8;
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.14);
}

.footer-v2-btn--primary:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 1rem 2.2rem rgba(0, 0, 0, 0.2);
}

.footer-v2-btn--secondary {
  justify-content: flex-start;
  color: #fff;
  background: rgba(5, 30, 31, 0.24);
  border-color: rgba(255, 255, 255, 0.22);
}

.footer-v2-btn--secondary:hover {
  transform: translateY(-2px);
  background: rgba(5, 30, 31, 0.42);
  border-color: rgba(255, 255, 255, 0.38);
}

.footer-v2-btn--secondary > svg {
  width: 1.45rem;
  height: 1.45rem;
  color: #bff0e4;
}

.footer-v2-btn--secondary span {
  display: grid;
  gap: 0.15rem;
}

.footer-v2-btn--secondary small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-v2-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 1.28fr) minmax(10rem, 0.78fr) minmax(9rem, 0.68fr) minmax(18rem, 1.2fr);
  gap: clamp(2.5rem, 4.5vw, 5.25rem);
  align-items: start;
  padding: clamp(4.5rem, 7vw, 7.2rem) 0 clamp(3.5rem, 5vw, 5rem);
}

.footer-v2-brand,
.footer-v2-col,
.footer-v2-contact {
  min-width: 0;
}

.footer-v2-logo {
  display: inline-flex;
  max-width: min(100%, 13.5rem);
  margin-bottom: 1.65rem;
}

.footer-v2-logo img {
  width: auto;
  height: 3.1rem;
  object-fit: contain;
  object-position: left center;
}

.footer-v2-brand__desc {
  max-width: 35ch;
  margin: 0;
  color: var(--footer-muted);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.78;
}

.footer-v2-brand__note {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1.4rem 0 0;
  color: #d7e7e4;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-v2-brand__note span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--footer-accent);
  box-shadow: 0 0 0 0.3rem rgba(128, 213, 196, 0.1);
}

.footer-v2-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.8rem;
}

.footer-v2-social a {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  color: #d7e3e1;
  border: 1px solid var(--footer-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  transition:
    transform 180ms var(--ease-out),
    color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    background-color 180ms var(--ease-out);
}

.footer-v2-social a:hover {
  transform: translateY(-3px);
  color: #071b1b;
  border-color: var(--footer-accent);
  background: var(--footer-accent);
}

.footer-v2-social svg {
  width: 1.1rem;
  height: 1.1rem;
}

.footer-v2-col h3,
.footer-v2-contact h3 {
  position: relative;
  margin: 0 0 1.65rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.footer-v2-col h3::after {
  content: "";
  display: block;
  width: 2rem;
  height: 2px;
  margin-top: 0.75rem;
  border-radius: 2px;
  background: var(--footer-accent);
}

.footer-v2-links {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.footer-v2-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.35rem;
  padding: 0.35rem 0;
  color: var(--footer-muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
  transition: color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.footer-v2-links a span:last-child {
  flex: 0 0 auto;
  color: var(--footer-accent);
  font-size: 0.85rem;
  opacity: 0;
  transform: translate(-0.35rem, 0.35rem);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.footer-v2-links a:hover {
  color: #fff;
  transform: translateX(0.2rem);
}

.footer-v2-links a:hover span:last-child {
  opacity: 1;
  transform: translate(0, 0);
}

.footer-v2-contact {
  padding: 1.7rem;
  border: 1px solid var(--footer-line);
  border-radius: 1.35rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    var(--footer-panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.footer-v2-contact__kicker {
  margin: 0 0 0.45rem;
  color: var(--footer-accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-v2-contact h3 {
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.footer-v2-contact ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}

.footer-v2-contact li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-v2-contact li:first-child {
  padding-top: 0.35rem;
  border-top: 0;
}

.footer-v2-contact li:last-child {
  padding-bottom: 0.15rem;
}

.footer-v2-contact__icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  color: var(--footer-accent);
  border: 1px solid rgba(128, 213, 196, 0.16);
  border-radius: 0.75rem;
  background: rgba(128, 213, 196, 0.07);
}

.footer-v2-contact__icon svg {
  width: 1.08rem;
  height: 1.08rem;
}

.footer-v2-contact li > a,
.footer-v2-contact li > span:not(.footer-v2-contact__icon) {
  display: block;
  min-width: 0;
  padding-top: 0.1rem;
  color: #d7e2e0;
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
  transition: color 180ms var(--ease-out);
}

.footer-v2-contact li > a:hover {
  color: #fff;
}

.footer-v2-contact small {
  display: block;
  margin-bottom: 0.15rem;
  color: #78908f;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer-v2-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 5.75rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--footer-line);
  color: #80908f;
  font-size: 0.72rem;
  font-weight: 600;
}

.footer-v2-bottom__meta,
.footer-v2-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.footer-v2-bottom__meta {
  gap: 0.8rem;
}

.footer-v2-bottom__meta > span {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.footer-v2-credit a {
  color: #d9e8e5;
  font-weight: 700;
  transition: color 180ms var(--ease-out);
}

.footer-v2-credit a:hover {
  color: var(--footer-accent);
}

.footer-v2-legal {
  justify-content: flex-end;
  gap: 0;
}

.footer-v2-legal li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.75rem;
  margin: 0 0.85rem;
  vertical-align: -0.1rem;
  background: rgba(255, 255, 255, 0.16);
}

.footer-v2-legal a {
  color: #899a99;
  transition: color 180ms var(--ease-out);
}

.footer-v2-legal a:hover {
  color: #fff;
}

.site-footer--modern a:focus-visible {
  outline: 2px solid var(--footer-accent);
  outline-offset: 4px;
}

@media (min-width: 901px) {
  .footer-v2-bottom {
    padding-left: 11rem;
  }
}

@media (max-width: 1180px) {
  .footer-v2-cta {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 17rem);
  }

  .footer-v2-grid {
    grid-template-columns: minmax(15rem, 1.1fr) minmax(12rem, 0.9fr);
    gap: 3.5rem 5rem;
  }
}

@media (max-width: 900px) {
  .footer-v2-cta {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-v2-cta h2 {
    max-width: 20ch;
  }

  .footer-v2-cta__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .footer-v2-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem 4rem;
  }

  .footer-v2-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.6rem 0 6rem;
  }

  .footer-v2-legal {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-footer--modern {
    padding-top: 2.5rem;
  }

  .site-footer--modern .site-footer__inner {
    width: min(100% - 2rem, 90rem);
  }

  .footer-v2-cta {
    min-height: 0;
    padding: 2rem 1.35rem 1.35rem;
    border-radius: 1.25rem;
  }

  .footer-v2-cta::before {
    right: -10rem;
    bottom: -14rem;
  }

  .footer-v2-cta::after {
    display: none;
  }

  .footer-v2-cta h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .footer-v2-cta__copy > p:last-child {
    font-size: 0.86rem;
  }

  .footer-v2-cta__actions {
    grid-template-columns: 1fr;
  }

  .footer-v2-btn {
    min-height: 3.65rem;
  }

  .footer-v2-grid {
    grid-template-columns: 1fr;
    gap: 2.8rem;
    padding: 4rem 0 3.25rem;
  }

  .footer-v2-contact {
    grid-column: auto;
  }

  .footer-v2-links a {
    min-height: 2.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  }

  .footer-v2-links a span:last-child {
    opacity: 0.7;
    transform: none;
  }

  .footer-v2-bottom__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .footer-v2-bottom__meta > span {
    display: none;
  }

  .footer-v2-legal {
    row-gap: 0.55rem;
  }

  .footer-v2-legal li + li::before {
    margin-inline: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer--modern *,
  .site-footer--modern *::before,
  .site-footer--modern *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
