/* Shared site system layered across every page. */

:root {
  --nav-h: 76px;
  --site-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--site-font) !important;
}

.nav,
.footer {
  font-family: var(--site-font) !important;
}

.nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  min-height: var(--nav-h) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 22px !important;
  padding: 14px clamp(18px, 4vw, 64px) !important;
  color: #fff !important;
  background: rgba(16, 22, 21, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(14px) !important;
}

.nav a {
  outline-offset: 4px;
}

.brand,
.nav > a:first-child {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
}

.brand-logo,
.nav img {
  width: 198px !important;
  height: auto !important;
  object-fit: contain !important;
}

.nav-links {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(12px, 1.7vw, 24px) !important;
  color: rgba(255, 255, 255, 0.84) !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  content: "";
  background: #78c94d;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  flex: 0 0 auto !important;
  color: #fff !important;
  background: #0f5f53 !important;
  border: 1px solid transparent !important;
}

.contact-direct {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-direct p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.contact-direct .button {
  width: 100%;
}

.contact-email {
  display: inline-flex;
  width: fit-content;
  color: #fff;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.trust-row span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
}

.about-page .dark .grid .card {
  position: relative !important;
  display: grid !important;
  align-content: end !important;
  min-height: 310px !important;
  overflow: hidden !important;
  padding: 0 !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: #16201e !important;
}

.about-page .dark .grid .card::before {
  display: block;
  min-height: 170px;
  content: "";
  background-position: center;
  background-size: cover;
}

.about-page .dark .grid .card:nth-of-type(1)::before {
  background-image: linear-gradient(180deg, rgba(16, 22, 21, 0.08), rgba(16, 22, 21, 0.18)), url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=900&q=82");
}

.about-page .dark .grid .card:nth-of-type(2)::before {
  background-image: linear-gradient(180deg, rgba(16, 22, 21, 0.08), rgba(16, 22, 21, 0.18)), url("https://images.unsplash.com/photo-1559136555-9303baea8ebd?auto=format&fit=crop&w=900&q=82");
}

.about-page .dark .grid .card:nth-of-type(3)::before {
  background-image: linear-gradient(180deg, rgba(16, 22, 21, 0.08), rgba(16, 22, 21, 0.18)), url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=900&q=82");
}

.about-page .dark .grid .card h3,
.about-page .dark .grid .card p {
  margin-left: 22px !important;
  margin-right: 22px !important;
}

.about-page .dark .grid .card h3 {
  margin-top: 20px !important;
  color: #fff !important;
}

.about-page .dark .grid .card p {
  margin-bottom: 22px !important;
  color: rgba(255, 255, 255, 0.74) !important;
}

.footer {
  padding: 42px clamp(18px, 5vw, 72px) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  background: #101615 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.footer-inner {
  display: grid !important;
  grid-template-columns: minmax(220px, 1fr) auto !important;
  gap: 28px !important;
  align-items: start !important;
  max-width: 1160px !important;
  margin: 0 auto !important;
  font-size: 14px !important;
}

.footer-brand {
  display: grid !important;
  gap: 12px !important;
  max-width: 430px !important;
}

.footer-logo {
  width: 190px !important;
  height: auto !important;
}

.footer-brand p {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

.footer-links {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 12px 18px !important;
  max-width: 520px !important;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 650 !important;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff !important;
}

@media (max-width: 980px) {
  .nav {
    flex-wrap: wrap;
    min-height: auto;
  }

  .nav .brand,
  .nav > a:first-child {
    order: 1;
  }

  .nav-cta,
  .nav > .button {
    order: 2;
  }

  .nav-links {
    order: 3;
    display: flex !important;
    width: 100%;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 2px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
  }

  .nav-links a::after {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr !important;
  }

  .footer-links {
    justify-content: flex-start !important;
  }
}

@media (max-width: 620px) {
  .nav {
    gap: 10px;
  }

  .nav-cta,
  .nav > .button {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .brand-logo,
  .nav img {
    width: 154px !important;
  }

  .footer {
    padding: 34px 18px !important;
  }

  .footer-links {
    display: grid !important;
    gap: 12px !important;
  }
}
