/* ==========================================================================
   CHON Security Service — static site stylesheet
   Rebuilt from the live site's measured layout. No external dependencies.
   ========================================================================== */

:root {
  --green: #0e6639;
  --green-dark: #0a4d2b;
  --icon-green: #18b364;
  --footer-bg: #222222;
  --gray: #595959;
  --light: #f6f6f6;
  --line: #e3e3e3;
  --text: #000000;

  --font-sans: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

  /* Fluid typography matching the original WordPress theme presets. */
  --fs-body: clamp(1rem, calc(1rem + ((1vw - 0.2rem) * 0.227)), 1.125rem);
  --fs-small: clamp(0.875rem, calc(0.875rem + ((1vw - 0.2rem) * 0.227)), 1rem);
  --fs-large: clamp(1.75rem, calc(1.75rem + ((1vw - 0.2rem) * 0.227)), 1.875rem);

  --gutter: clamp(20px, 5vw, 56px);
  --page-w: min(1120px, 90vw);
  --overlap: calc(var(--page-w) / 10);
}

@media (max-width: 1024px) {
  :root {
    --page-w: min(1120px, 100vw);
  }
}

/* ---------- Reset & base ------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 50px auto;
  width: 90%;
  max-width: 1120px;
  background: #fff;
  box-shadow: 0 0 5px #cccccc;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

picture {
  display: block;
}

figure {
  margin: 0;
}

img {
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 400;
  line-height: 1.4;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--green);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.shell {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section-title {
  font-size: var(--fs-large);
  line-height: 1.4;
  text-align: center;
}

/* ---------- Reusable buttons -------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  line-height: 1.6;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background: var(--green-dark);
}

.btn svg {
  width: 0.8em;
  height: 0.8em;
  fill: currentColor;
  flex: none;
}

.btn--small {
  font-size: var(--fs-small);
  padding: 4px 16px;
}

.btn--medium {
  font-size: var(--fs-body);
  padding: 8px 32px;
}

.btn--large {
  font-size: var(--fs-large);
  line-height: 1.6;
  padding: 16px 32px;
}

/* ---------- Header ------------------------------------------------------ */

.site-header {
  position: relative;
  z-index: 50;
  background: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  padding: 24px var(--gutter);
}

.brand {
  display: inline-flex;
  line-height: 0;
  flex: none;
}

.brand img {
  width: 350px;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  font-size: var(--fs-small);
  line-height: 1.6;
}

.nav-list > li {
  position: relative;
}

.nav-link {
  display: block;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  text-decoration: underline;
}

.nav-link[aria-current="page"] {
  text-decoration: none;
}

/* Language switcher */
.lang {
  position: relative;
}

.lang-current-mobile {
  display: none;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  line-height: 1.6;
  white-space: nowrap;
}

.lang-toggle:hover {
  text-decoration: underline;
}

.lang-toggle .flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
  flex: none;
}

.lang-toggle .chev {
  width: 10px;
  height: 10px;
  fill: currentColor;
  margin-left: -2px;
  transition: transform 0.2s ease;
}

.lang.is-open .lang-toggle .chev {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 148px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.22);
  display: none;
}

.lang:hover .lang-menu,
.lang:focus-within .lang-menu,
.lang.is-open .lang-menu {
  display: block;
}

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  text-decoration: none;
  white-space: nowrap;
}

.lang-menu a:hover,
.lang-menu a:focus-visible {
  background: var(--light);
}

.lang-menu .flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
}

.nav-toggle,
.nav-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle {
  margin-right: -10px;
}

.nav-toggle svg,
.nav-close svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ---------- Hero slider ------------------------------------------------- */

.hero {
  position: relative;
  background: #111;
}

.hero-slider {
  position: relative;
  aspect-ratio: 2.4 / 1;
  overflow: hidden;
  touch-action: pan-y;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hero:hover .hero-arrow,
.hero-arrow:focus-visible {
  opacity: 1;
}

.hero-arrow svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.hero-arrow--prev {
  left: 15px;
}

.hero-arrow--next {
  right: 15px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  gap: 0;
}

.hero-dot {
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
}

.hero-dot::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.hero-dot.is-active::after {
  opacity: 1;
}

@media (hover: none) {
  .hero-arrow {
    display: none;
  }
}

/* ---------- Page banner / service hero ---------------------------------- */

.page-banner img {
  width: 100%;
  height: auto;
}

.service-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 2.4 / 1;
  object-fit: cover;
}

/* ---------- Home: about card over faded image --------------------------- */

.home-about {
  position: relative;
  z-index: 1;
}

.home-about__bg {
  height: 300px;
  overflow: hidden;
  background: #fff;
}

.home-about__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-about__card {
  position: absolute;
  top: calc(300px - var(--overlap));
  right: 5%;
  width: 50%;
  max-width: 560px;
  z-index: 2;
  padding: 5%;
  background: #fff;
  box-shadow: 0 0 5px #808080;
}

.home-about__card h2 {
  font-size: var(--fs-large);
  margin-bottom: 32px;
}

.home-about__card p {
  line-height: 1.6;
}

.home-about__card .btn {
  margin-top: 32px;
}

/* ---------- Home: services ---------------------------------------------- */

.home-services {
  margin-top: 450px;
  margin-bottom: 72px;
  padding-bottom: 0;
}

.home-services .section-title {
  margin-bottom: 32px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 23px;
  list-style: none;
}

.service-card__link {
  display: block;
  text-decoration: none;
}

.service-card__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.service-card__body {
  margin-top: 18px;
  text-align: center;
}

.service-card__title {
  font-size: var(--fs-body);
  line-height: 1.4;
  font-weight: 400;
}

html[lang="en"] .service-card__title {
  text-transform: uppercase;
}

.service-card__link:hover .service-card__title,
.service-card__link:focus-visible .service-card__title {
  text-decoration: underline;
}

.service-card__subtitle {
  font-size: var(--fs-body);
  line-height: 1.6;
  margin-top: 0;
}

/* ---------- Home: quality ------------------------------------------------ */

.quality {
  margin-top: 32px;
  background: var(--light);
  padding: 48px 32px 72px;
}

.quality .section-title {
  margin-bottom: 32px;
}

.quality__groups {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 27px;
}

.quality__group {
  display: flex;
  justify-content: center;
  gap: 27px;
}

.quality__cert img {
  width: 225px;
  height: 225px;
}

/* ---------- Home: careers cover ----------------------------------------- */

.career {
  position: relative;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 18px;
  overflow: hidden;
  color: #fff;
}

.career__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.career::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.2);
}

.career__content {
  position: relative;
  z-index: 2;
  width: 650px;
  max-width: 100%;
}

.career__eyebrow {
  font-size: var(--fs-small);
  line-height: 1.6;
}

.career__heading {
  font-size: var(--fs-large);
  line-height: 1.2;
  margin-top: 4px;
}

.career__content .btn {
  margin-top: 16px;
}

/* ---------- Home: contact strip ----------------------------------------- */

.home-contact {
  background: var(--light);
  padding: 48px 0;
}

.home-contact .section-title {
  margin-bottom: 32px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 0 var(--gutter);
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.contact-item svg {
  width: 64px;
  height: 64px;
  fill: var(--icon-green);
  flex: none;
}

.contact-item h3 {
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.4;
}

.contact-item p {
  font-size: var(--fs-body);
  line-height: 1.6;
}

.contact-item a {
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* ---------- Footer ------------------------------------------------------ */

.site-footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 72px 48px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer-cols {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 48px;
}

.footer-brand {
  width: 198px;
  display: flex;
  justify-content: center;
}

.footer-cols > .footer-col:nth-child(2) {
  width: 217px;
}

.footer-cols > .footer-col:nth-child(3) {
  width: 178px;
}

.footer-brand img {
  width: 151px;
  height: 151px;
}

.footer-col {
  font-size: var(--fs-small);
  line-height: 1.6;
}

.footer-col h2 {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--icon-green);
  line-height: 1.4;
  margin-bottom: 10px;
}

.footer-col p {
  margin-bottom: 8px;
}

.footer-col a {
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: 8px;
}

.footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.footer-lang img {
  width: 18px;
  height: 12px;
  object-fit: cover;
}

.footer-chev {
  width: 10px;
  height: 10px;
  fill: currentColor;
  margin-left: 2px;
}

.footer-copy a {
  text-decoration: none;
}

.footer-copy a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: var(--fs-small);
  line-height: 1.6;
  text-align: center;
}

.footer-copy a {
  color: inherit;
}

/* ---------- About page -------------------------------------------------- */

.about-overview {
  padding: 72px var(--gutter) 0;
}

.about-overview h2 {
  margin-bottom: 32px;
}

.about-overview p {
  line-height: 2;
}

.about-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 72px;
}

.about-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-quality {
  padding: 0 var(--gutter);
  margin: 72px 0;
}

.about-quality h2 {
  margin-bottom: 32px;
}

.about-quality p {
  margin-bottom: 32px;
}

.about-quality__certs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 27px;
  align-items: center;
}

.about-quality__certs img {
  width: 100%;
  max-width: 225px;
  height: auto;
  margin: 0 auto;
}

.philosophy {
  position: relative;
}

.philosophy > picture img {
  width: 100%;
  height: auto;
}

.philosophy__card {
  position: absolute;
  top: calc(100% - var(--overlap));
  right: 5%;
  width: 50%;
  max-width: 560px;
  z-index: 2;
  padding: 5%;
  background: rgba(246, 246, 246, 0.95);
}

.philosophy__card h2 {
  margin-bottom: 32px;
}

.about-services {
  background: var(--gray);
  color: #fff;
  padding: 300px 0 48px;
}

.about-services h2 {
  margin-bottom: 18px;
}

.about-services__list {
  max-width: 1008px;
  margin: 0 auto;
  padding: 0;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 250px;
  background: var(--light);
  color: #000;
}

.service-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-row__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
}

.service-row__content h3 {
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.4;
}

.service-row__content p {
  margin-top: 18px;
  font-size: var(--fs-body);
  line-height: 1.6;
  white-space: pre-line;
}

.service-row--reverse .service-row__media {
  order: 2;
}

.service-row--reverse .service-row__content {
  order: 1;
  text-align: right;
}

.about-cta {
  margin: 72px 0;
  display: flex;
  justify-content: center;
}

/* ---------- Careers page ------------------------------------------------ */

.careers-section {
  background: var(--light);
  padding: 72px;
}

.careers-intro {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.careers-intro .btn {
  margin-top: 18px;
}

.job-card {
  background: #fff;
  padding: 32px;
  margin-top: 72px;
}

.job-card h2 {
  font-size: var(--fs-large);
  margin-bottom: 18px;
}

.job-card h3 {
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.4;
  margin-top: 24px;
}

.job-card p {
  margin-top: 8px;
}

.job-list {
  margin-top: 8px;
  padding-left: 40px;
  line-height: 2;
}

.job-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.job-section h3 {
  margin-top: 0;
}

html[lang="en"] .contact-item h3,
html[lang="en"] .contact-card h3,
html[lang="en"] .footer-col h2 {
  text-transform: uppercase;
}

/* ---------- Contact page ------------------------------------------------ */

.contact-section {
  padding: 72px 0 0;
}

.contact-section > h2 {
  padding: 0 var(--gutter);
  margin-bottom: 32px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 0 var(--gutter);
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.contact-card svg {
  width: 64px;
  height: 64px;
  fill: var(--icon-green);
  flex: none;
}

.contact-card h3 {
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.4;
}

.contact-card p {
  font-size: var(--fs-body);
  line-height: 1.6;
}

.contact-card a {
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-map {
  margin-top: 80px;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

/* ---------- Gallery page ------------------------------------------------ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 2px 0;
}

.gallery-item {
  padding: 2px;
  line-height: 0;
}

.gallery-item a {
  display: block;
  line-height: 0;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.gallery-item a:hover img {
  opacity: 0.88;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1400px, 92vw);
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #111;
}

.lightbox__caption {
  margin-top: 16px;
  font-size: var(--fs-small);
  text-align: center;
}

.lightbox__count {
  margin-top: 4px;
  font-size: var(--fs-small);
  opacity: 0.75;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: rgba(0, 0, 0, 0.35);
  border: 0;
  color: #fff;
  cursor: pointer;
}

.lightbox__close {
  top: 20px;
  right: 20px;
}

.lightbox__prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__close svg,
.lightbox__prev svg,
.lightbox__next svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ---------- Service pages ----------------------------------------------- */

.service-head {
  padding: 72px var(--gutter) 0;
  text-align: center;
}

.service-head h1 {
  font-size: clamp(2.25rem, 4vw, 3.625rem);
  line-height: 1.2;
  max-width: 650px;
  margin: 0 auto;
}

.service-meta {
  max-width: 1120px;
  margin: 72px auto 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: #555;
}

.service-body {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px var(--gutter) 72px;
}

.service-body .lead {
  line-height: 1.9;
}

.service-body h2 {
  font-size: var(--fs-large);
  line-height: 1.4;
  margin: 48px 0 18px;
}

.service-scope {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
}

.service-scope li {
  position: relative;
  padding-left: 28px;
  line-height: 1.7;
}

.service-scope li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.service-cta {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

/* ---------- 404 --------------------------------------------------------- */

.error-page {
  padding: 120px var(--gutter);
  text-align: center;
}

.error-page h1 {
  font-size: var(--fs-large);
  margin-bottom: 16px;
}

.error-page p {
  margin-bottom: 32px;
}

/* ---------- Responsive -------------------------------------------------- */

@media (max-width: 1024px) {
  body {
    width: 100%;
  }
}

@media (max-width: 980px) {
  body {
    margin: 0 auto;
  }

  .site-header__inner {
    min-height: 92px;
  }

  .brand img {
    width: 250px;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    padding: 108px var(--gutter) 48px;
    background: #fff;
    overflow-y: auto;
  }

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

  .nav-close {
    display: flex;
    position: fixed;
    top: 32px;
    right: calc(9.5% - 10px);
    z-index: 101;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    font-size: 1.25rem;
    line-height: 1.5;
  }

  .nav-list .lang {
    margin-top: 0;
  }

  .lang-toggle {
    display: none;
  }

  .lang-current-mobile {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.25rem;
  }

  .lang-current-mobile .flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
  }

  .lang-menu {
    position: static;
    display: block;
    min-width: 0;
    padding: 16px 0 0 34px;
    background: transparent;
    box-shadow: none;
  }

  .lang:hover .lang-menu,
  .lang:focus-within .lang-menu {
    display: block;
  }

  .home-services {
    margin-top: 450px;
    margin-bottom: 99px;
  }

  .home-about__card {
    right: 0;
    left: 0;
    margin: 0 auto;
    width: 90%;
    max-width: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .service-card__media img {
    aspect-ratio: 1 / 1;
  }

  .service-card__body {
    margin: 18px 0 0;
  }

  .quality {
    margin-top: 24px;
  }

  .about-overview {
    padding-top: 40px;
  }

  .about-strip {
    margin-top: 40px;
  }

  .about-quality {
    margin: 40px 0;
  }

  .about-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-quality__certs {
    gap: 0;
  }

  .about-quality__certs img {
    max-width: 100%;
  }

  .philosophy__card {
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90%;
    max-width: none;
  }

  .about-services {
    padding-top: 300px;
  }

  .about-services__list {
    padding: 0 var(--gutter);
  }

  .service-row {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .service-row--reverse .service-row__media {
    order: 0;
  }

  .service-row--reverse .service-row__content {
    order: 1;
    text-align: center;
  }

  .service-row__media img {
    aspect-ratio: auto;
    width: 100%;
    height: 250px;
  }

  .service-row__content {
    padding: 22px 28px;
    text-align: center;
  }

  .contact-grid,
  .contact-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-item svg,
  .contact-card svg {
    width: 64px;
    height: 64px;
  }

  .career {
    min-height: 350px;
  }

  .career__content {
    width: 100%;
    padding-left: 38px;
    padding-right: 0;
  }

  .site-footer {
    padding: 40px 28.8px 28.8px;
    gap: 24px;
  }

  .footer-cols {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    width: 100%;
  }

  .footer-brand,
  .footer-cols > .footer-col:nth-child(2),
  .footer-cols > .footer-col:nth-child(3) {
    width: 100%;
  }

  .footer-copy {
    text-align: center;
  }

  .careers-section {
    padding: 40px;
  }

  .job-card {
    padding: 24px;
    margin-top: 40px;
  }

  .careers-intro .btn {
    padding: 8px 24px;
  }

  .contact-section {
    padding-top: 40px;
  }

  .contact-map {
    margin-top: 40px;
  }

  .contact-map iframe {
    height: 300px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-head {
    padding-top: 40px;
  }

  .service-meta {
    margin-top: 40px;
    padding: 16px var(--gutter);
  }

  .service-body {
    padding-top: 32px;
  }

  .service-scope {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 781px) {
  .quality {
    padding: 28.8px 24px 40px;
  }

  .quality__groups {
    flex-direction: column;
    gap: 0;
  }

  .quality__group {
    width: 100%;
    gap: 0;
  }

  .quality__cert {
    width: 50%;
    display: flex;
    justify-content: center;
  }

  .quality__cert img {
    width: 171px;
    height: 171px;
  }

  .home-contact {
    padding: 28.8px 0;
  }

  .contact-grid {
    padding: 0 20px;
  }

  .careers-section {
    padding: 40px;
  }

  .contact-map iframe {
    height: 400px;
  }

  .about-services {
    padding-bottom: 32px;
  }

  .about-cta {
    margin: 40px 0;
  }

  .btn--large {
    padding: 16px 32px;
  }
}

@media (max-width: 480px) {
  .lightbox__prev {
    left: 8px;
  }

  .lightbox__next {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
