*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --green: #007100;
  --green-dark: #004d1f;
  --green-soft: #eaf6ee;
  --ink: #172027;
  --muted: #59656f;
  --surface: #f5f7f8;
  --surface-strong: #e8eef1;
  --line: #d7e0e5;
  --blue: #0f5f86;
  --amber: #b36b10;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(22, 32, 39, 0.12);
  --header-height: 118px;
}

html {
  scroll-behavior: smooth;
  letter-spacing: 0;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
object {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0 0 0.7rem;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  font-size: 3rem;
  max-width: 860px;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.18rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin-top: 0;
}

.container {
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
}

.narrow {
  max-width: 880px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(23, 32, 39, 0.06);
}

.top-bar {
  background: var(--ink);
  color: var(--white);
  font-size: 0.92rem;
}

.top-bar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--white);
  text-decoration: none;
}

.top-bar__item img {
  filter: invert(1);
}

.main-header__inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
}

.brand picture {
  display: block;
  flex: 0 0 auto;
}

.brand__logo {
  width: 58px;
  height: auto;
}

.brand__text {
  max-width: 260px;
  line-height: 1.2;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.55rem 0.85rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 650;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--green-dark);
  background: var(--green-soft);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin-inline: auto;
  position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle__bars::before {
  top: -7px;
}

.menu-toggle__bars::after {
  top: 7px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button--primary {
  background: var(--green);
  color: var(--white);
}

.button--primary:hover {
  background: var(--green-dark);
  color: var(--white);
}

.button--secondary {
  background: var(--white);
  border-color: var(--green);
  color: var(--green-dark);
}

.button--secondary:hover {
  background: var(--green-soft);
}

.button--light {
  background: var(--white);
  color: var(--green-dark);
}

.button--light:hover {
  background: var(--surface);
}

.text-link {
  font-weight: 750;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: #071012;
}

.hero__media,
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.98) contrast(1.03) brightness(0.94);
}

.hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 9, 11, 0.82) 0%, rgba(3, 9, 11, 0.66) 42%, rgba(3, 9, 11, 0.2) 72%, rgba(3, 9, 11, 0.38) 100%),
    linear-gradient(0deg, rgba(3, 9, 11, 0.42) 0%, rgba(3, 9, 11, 0.06) 44%, rgba(3, 9, 11, 0.2) 100%);
}

.hero__content {
  color: var(--white);
  padding: 7rem 0 5rem;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.36);
}

.hero__content p {
  max-width: 720px;
  font-size: 1.18rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.eyebrow {
  margin-bottom: 0.65rem;
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero .eyebrow {
  color: #9be098;
}

.section {
  padding: 5rem 0;
}

.section--muted {
  background: var(--surface);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.7rem;
}

.section-heading h2 {
  margin-bottom: 0;
}

.split,
.credentials,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 2rem;
  align-items: start;
}

.fact-panel,
.highlight-box,
.contact-details,
.contact-direct {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 1.5rem;
}

.fact-panel {
  box-shadow: var(--shadow);
}

.code-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.7rem 0 1.3rem;
}

.code-list span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 800;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service-grid--home {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.work-card,
.client-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card {
  padding: 1.25rem;
  min-height: 210px;
}

.service-card img {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  filter: invert(24%) sepia(76%) saturate(1636%) hue-rotate(113deg) brightness(83%) contrast(104%);
}

.service-card p {
  color: var(--muted);
}

.credentials {
  align-items: center;
}

.certification-row,
.footer-certifications {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.certification-badge {
  width: 100px;
  height: auto;
}

.iso-badge {
  width: 64px;
  height: auto;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.work-card {
  overflow: hidden;
}

.work-card__media picture {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--surface-strong);
}

.work-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.work-card:hover .work-card__image {
  transform: scale(1.035);
}

.work-card__title {
  min-height: 74px;
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  font-weight: 750;
}

.client-strip,
.client-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.client-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.client-strip li,
.client-item {
  padding: 0.95rem 1rem;
  font-weight: 700;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.filter-row {
  display: grid;
  grid-template-columns: auto minmax(240px, 420px) auto;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.filter-row label {
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

textarea {
  resize: vertical;
  min-height: 160px;
}

.filter-count,
.copy-status {
  color: var(--muted);
  font-size: 0.94rem;
}

.copy-status {
  min-height: 1.6em;
  margin-top: 1rem;
  color: var(--green-dark);
  font-weight: 700;
}

.page-hero {
  padding: 5.5rem 0 3rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  color: var(--ink);
}

.page-hero p {
  max-width: 760px;
}

.page-hero--compact {
  min-height: 55vh;
  display: grid;
  align-items: center;
}

.lead {
  font-size: 1.14rem;
}

.commitment-list {
  display: grid;
  gap: 0.75rem;
  padding-left: 1.35rem;
}

.legal-text h2 {
  margin-top: 2rem;
}

.document-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pdf-viewer {
  display: block;
  width: 100%;
  height: 74vh;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.contact-details address {
  font-style: normal;
  margin-bottom: 1rem;
}

.contact-direct h2 {
  font-size: 1.5rem;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.button--ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.button--ghost:hover {
  background: var(--surface-strong);
}

.cta-band {
  background: var(--ink);
  color: var(--white);
  padding: 3rem 0;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 {
  margin-bottom: 0.35rem;
}

.cta-band p {
  margin-bottom: 0;
  color: #d7e0e5;
}

.site-footer {
  background: #0f171c;
  color: #eef5f0;
}

.site-footer a {
  color: #eef5f0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

.site-footer h2 {
  font-size: 1.05rem;
  color: #ffffff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.footer-recognition {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0;
}

.footer-recognition p {
  margin: 0;
  color: #d7e0e5;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-bottom__inner {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.back-to-top {
  position: fixed;
  left: auto !important;
  right: clamp(14px, 2.8vw, 34px);
  bottom: clamp(14px, 2.8vw, 34px);
  z-index: 30;
  width: 58px;
  min-height: 56px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  padding: 0.42rem 0.5rem;
  border: 1px solid rgba(23, 32, 39, 0.14);
  border-radius: 8px;
  color: rgba(23, 32, 39, 0.86);
  background: rgba(245, 247, 248, 0.82);
  box-shadow: 0 10px 24px rgba(7, 16, 18, 0.12);
  backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease, visibility 0.18s ease;
}

.back-to-top span {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.back-to-top:hover {
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 113, 0, 0.22);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.redirect-page {
  min-height: 100vh;
  display: grid;
  place-content: center;
  padding: 2rem;
  text-align: center;
}

@media (max-width: 1080px) {
  h1 {
    font-size: 2.45rem;
  }

  .primary-nav a {
    padding-inline: 0.62rem;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .top-bar__inner {
    justify-content: center;
  }

  .brand__text {
    max-width: 210px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .primary-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 100%;
    display: none;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    display: grid;
    gap: 0;
    padding: 0.4rem;
  }

  .primary-nav a {
    width: 100%;
  }

  .hero {
    min-height: 560px;
  }

  .split,
  .credentials,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .service-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-grid,
  .client-strip,
  .client-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1240px);
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .main-header__inner {
    min-height: 74px;
  }

  .brand__logo {
    width: 50px;
  }

  .brand__text {
    font-size: 0.94rem;
  }

  .hero {
    min-height: 520px;
  }

  .hero__content {
    padding: 5rem 0 3rem;
  }

  .hero__content p {
    font-size: 1rem;
  }

  .hero__actions,
  .document-actions,
  .cta-band__inner,
  .section-heading,
  .footer-bottom__inner {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 3.5rem 0;
  }

  .page-hero {
    padding: 3.5rem 0 2.4rem;
  }

  .service-grid,
  .service-grid--home,
  .work-grid,
  .client-strip,
  .client-grid,
  .contact-actions,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .work-card__title {
    min-height: 64px;
  }

  .pdf-viewer {
    min-height: 520px;
    height: 68vh;
  }

}

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