:root {
  --artcon-orange: #f26522;
  --artcon-orange-dark: #d45518;
  --artcon-slate: #35414a;
  --artcon-slate-deep: #2a343c;
  --artcon-paper: #ececea;
  --artcon-ink: #1d2429;
  --artcon-muted: #5c6770;
  --font-display: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: var(--artcon-paper) !important;
  color: var(--artcon-ink);
  font-family: var(--font-body);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 1080;
  transform: translateY(-160%);
}

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

.top-gap {
  height: 88px;
}

.navbar-custom-bg {
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(6px);
  min-height: 84px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}

.site-logo {
  height: 56px;
  width: auto;
  display: block;
}

.navbar-nav .nav-link {
  font-size: 1.05rem;
  color: #222 !important;
  font-weight: 500;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .show > .nav-link {
  color: var(--artcon-orange) !important;
}

.dropdown-menu {
  border-radius: 0;
  border: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.lang-switch {
  font-size: 0.9rem;
  white-space: nowrap;
}

.lang-dropdown-btn {
  border-color: #d6d6d6;
  color: #333;
  background: #fff;
}

.lang-dropdown-btn:hover,
.lang-dropdown-btn:focus {
  border-color: var(--artcon-orange);
  color: var(--artcon-orange);
  background: #fff;
}

.btn-artcon {
  background: var(--artcon-orange);
  border: 1px solid var(--artcon-orange);
  color: #fff;
  font-weight: 600;
  border-radius: 2px;
  padding: 0.65rem 1.35rem;
}

.btn-artcon:hover,
.btn-artcon:focus {
  background: var(--artcon-orange-dark);
  border-color: var(--artcon-orange-dark);
  color: #fff;
}

.link-artcon {
  color: var(--artcon-orange);
  font-weight: 600;
  text-decoration: none;
}

.link-artcon:hover {
  color: var(--artcon-orange-dark);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section-kicker {
  color: var(--artcon-orange);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.lead-sm {
  font-size: 1.05rem;
  color: var(--artcon-muted);
}

/* Hero */
.hero-home {
  position: relative;
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.hero-home__slides,
.hero-home__slide,
.hero-home__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-home__slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
  z-index: 0;
}

.hero-home__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-home__slide img {
  object-fit: cover;
  transform: scale(1.02);
}

.hero-home__slide.is-active img {
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-home__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(26, 32, 38, 0.88) 0%, rgba(26, 32, 38, 0.55) 48%, rgba(26, 32, 38, 0.28) 100%),
    linear-gradient(0deg, rgba(26, 32, 38, 0.75) 0%, transparent 45%);
  pointer-events: none;
}

.hero-home__content {
  position: relative;
  z-index: 3;
  padding-bottom: 4.5rem;
  padding-top: 3rem;
  max-width: 920px;
}

.hero-home__eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd2b8;
  animation: fadeUp 0.8s ease both;
}

.hero-home__brand {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 16ch;
  animation: fadeUp 0.9s ease 0.08s both;
}

.hero-home__lead {
  font-size: 1.15rem;
  max-width: 42ch;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeUp 1s ease 0.16s both;
}

.hero-home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeUp 1.05s ease 0.24s both;
}

.hero-home__nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(26, 32, 38, 0.35);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-home__nav:hover,
.hero-home__nav:focus-visible {
  background: rgba(242, 101, 34, 0.9);
  border-color: var(--artcon-orange);
  outline: none;
}

.hero-home__nav--prev {
  left: 1rem;
}

.hero-home__nav--next {
  right: 1rem;
}

.hero-home__dots {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
}

.hero-home__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-home__dot.is-active,
.hero-home__dot:hover,
.hero-home__dot:focus-visible {
  background: var(--artcon-orange);
  transform: scale(1.15);
  outline: none;
}

.page-hero {
  background: var(--artcon-slate);
  color: #fff;
  padding: 2.5rem 0;
}

.page-hero--compact {
  padding: 2rem 0;
}

/* Services */
.services-home {
  background: var(--artcon-slate);
}

.service-tile,
.service-card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  height: 100%;
  position: relative;
  padding: 1.35rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.service-tile p {
  color: var(--artcon-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.service-tile__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 0.85rem;
  background: var(--artcon-orange);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.service-tile__icon--pm {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M4 19V5M4 19h16M8 15V9m4 6V7m4 8v-4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M4 19V5M4 19h16M8 15V9m4 6V7m4 8v-4'/%3E%3C/svg%3E");
}

.service-tile__icon--eng {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.1-3.1a6 6 0 0 1-7.9 7.9L7 19.7a2.1 2.1 0 1 1-3-3l5.6-5.9a6 6 0 0 1 7.9-7.9l-2.8 2.8z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.1-3.1a6 6 0 0 1-7.9 7.9L7 19.7a2.1 2.1 0 1 1-3-3l5.6-5.9a6 6 0 0 1 7.9-7.9l-2.8 2.8z'/%3E%3C/svg%3E");
}

.service-tile__icon--man {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M3 21h18M5 21V9l7-5 7 5v12M9 21v-6h6v6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M3 21h18M5 21V9l7-5 7 5v12M9 21v-6h6v6'/%3E%3C/svg%3E");
}

.service-tile__icon--asm {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 2v6m0 8v6M2 12h6m8 0h6M6.3 6.3l4.2 4.2m3 3 4.2 4.2m0-11.4-4.2 4.2m-3 3-4.2 4.2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 2v6m0 8v6M2 12h6m8 0h6M6.3 6.3l4.2 4.2m3 3 4.2 4.2m0-11.4-4.2 4.2m-3 3-4.2 4.2'/%3E%3C/svg%3E");
}

.service-tile__icon--ea {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 10-14h-7l0-6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 10-14h-7l0-6z'/%3E%3C/svg%3E");
}

.about-home {
  background: #f7f7f5;
}

.about-home__image {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.certs-home {
  background: #f7f8f9;
  border-block: 1px solid rgba(0, 0, 0, 0.06);
}

.certs-home__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  align-items: stretch;
  max-width: 920px;
  margin-inline: auto;
}

.certs-home__item {
  margin: 0;
  text-align: center;
}

.certs-home__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 210px;
  padding: 0.85rem;
  margin: 0;
  border: 1px solid rgba(53, 65, 74, 0.12);
  background: #fff;
  cursor: zoom-in;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.certs-home__frame:hover,
.certs-home__frame:focus-visible {
  border-color: var(--artcon-orange);
  box-shadow: 0 10px 28px rgba(53, 65, 74, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.certs-home__frame img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.certs-home__item figcaption {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--artcon-slate);
  letter-spacing: 0.01em;
}

.certs-home__fallback {
  font-weight: 700;
  color: var(--artcon-slate);
}

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

.certs-page__item {
  margin: 0;
  text-align: center;
}

.certs-page__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 280px;
  padding: 1rem;
  margin: 0;
  border: 1px solid rgba(53, 65, 74, 0.12);
  background: #fff;
  cursor: zoom-in;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.certs-page__frame:hover,
.certs-page__frame:focus-visible {
  border-color: var(--artcon-orange);
  box-shadow: 0 12px 30px rgba(53, 65, 74, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.certs-page__frame img {
  width: 100%;
  height: 260px;
  object-fit: contain;
}

.certs-page__item figcaption {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--artcon-slate);
}

.sectors-home {
  background: #fff;
}

.sector-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: 1.25rem;
  color: #fff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background-color: var(--artcon-slate);
  background-size: cover;
  background-position: center;
}

.sector-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 15%, rgba(0, 0, 0, 0.78) 100%);
  transition: opacity 0.3s ease;
}

.sector-tile span,
.sector-tile em {
  position: relative;
  z-index: 1;
}

.sector-tile span {
  font-size: 1.2rem;
  font-weight: 700;
}

.sector-tile em {
  font-style: normal;
  opacity: 0.85;
  font-size: 0.9rem;
}

.sector-tile:hover {
  color: #fff;
}

.sector-tile:hover::before {
  opacity: 0.85;
}

.portfolio-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.portfolio-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ececea;
}

.portfolio-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.portfolio-card:hover .portfolio-card__media img {
  transform: scale(1.05);
}

.clients-home {
  background: #f3f3f1;
}

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

.clients-home__item {
  background: #fff;
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.clients-home__item img {
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
}

.clients-home__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--artcon-slate);
  text-align: center;
}

.careers-band {
  background: linear-gradient(120deg, var(--artcon-slate-deep), var(--artcon-slate));
  color: #fff;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portfolio-filter {
  border: 1px solid #cfd4d8;
  background: #fff;
  color: var(--artcon-ink);
  padding: 0.45rem 0.9rem;
  font-size: 0.92rem;
  border-radius: 2px;
}

.portfolio-filter.is-active,
.portfolio-filter:hover {
  background: var(--artcon-orange);
  border-color: var(--artcon-orange);
  color: #fff;
}

.portfolio-card__body {
  padding: 1.25rem;
}

.portfolio-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.portfolio-card__tags span {
  background: #eef1f3;
  color: var(--artcon-slate);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
}

.portfolio-card__loc {
  color: var(--artcon-orange);
  font-weight: 600;
  font-size: 0.92rem;
}

.portfolio-card__link {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.portfolio-card__link:hover {
  color: inherit;
}

.project-back {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
}

.project-back:hover {
  color: #fff;
}

.project-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f5;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  overflow: hidden;
  min-height: 220px;
  padding: 0.75rem;
  text-decoration: none;
  width: 100%;
  cursor: zoom-in;
}

button.project-frame {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
}

.project-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
}

.project-frame--hero {
  min-height: 320px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.project-frame--hero img {
  max-height: 480px;
}

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

.project-gallery-grid .project-frame {
  min-height: 200px;
  aspect-ratio: 4 / 3;
}

.project-gallery-grid .project-frame img {
  max-height: 100%;
  height: 100%;
}

.project-detail__body,
.project-detail__list li {
  font-size: 1.05rem;
  line-height: 1.75;
}

.project-detail__list {
  padding-left: 1.15rem;
}

@media (max-width: 991px) {
  .project-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .project-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.lightbox-content {
  background: transparent;
  border: 0;
  box-shadow: none;
  position: relative;
}

.lightbox-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  padding: 1rem;
}

.lightbox-body img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  background: #111;
}

.lightbox-close {
  position: absolute;
  top: -0.25rem;
  right: 0.25rem;
  z-index: 5;
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
}

.lightbox-nav--prev {
  left: 0.5rem;
}

.lightbox-nav--next {
  right: 0.5rem;
}

.lightbox-nav:hover {
  background: #fff;
}

#imageLightbox .modal-dialog {
  max-width: min(1100px, 96vw);
}

.portfolio-item.is-hidden {
  display: none !important;
}

.map-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.footer-custom-bg {
  background: rgba(52, 65, 73, 0.96) !important;
}

.project-management-page p,
.project-management-page li,
.engineering-services-page p,
.engineering-services-page li {
  font-size: 1.08rem;
  line-height: 1.8;
}

.project-management-page h2 {
  font-size: 1.55rem;
}

.engineering-services-page ul {
  padding-left: 1.2rem;
}

.engineering-services-page .logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(90px, 1fr));
  gap: 1rem 1.4rem;
  align-items: center;
}

.engineering-services-page .logo-grid img {
  max-width: 100%;
  max-height: 85px;
  width: auto;
  height: auto;
  object-fit: contain;
}

#formStatus.success {
  color: #198754;
}

#formStatus.error {
  color: #dc3545;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1199px) {
  .clients-home__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .top-gap {
    height: 66px;
  }

  .navbar-custom-bg {
    min-height: 60px;
  }

  .site-logo {
    height: 42px;
  }

  .hero-home {
    min-height: calc(100vh - 66px);
  }

  .hero-home__nav {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
  }

  .hero-home__nav--prev {
    left: 0.6rem;
  }

  .hero-home__nav--next {
    right: 0.6rem;
  }

  .certs-home__row,
  .certs-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .certs-home__frame {
    min-height: 190px;
  }

  .certs-home__frame img {
    height: 160px;
  }

  .certs-page__frame {
    min-height: 240px;
  }

  .certs-page__frame img {
    height: 220px;
  }
}

@media (max-width: 767px) {
  .clients-home__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-home__content {
    padding-bottom: 3rem;
  }

  .sector-tile {
    min-height: 160px;
  }

  .certs-home__frame {
    min-height: 170px;
    padding: 0.7rem;
  }

  .certs-home__frame img {
    height: 140px;
  }

  .certs-page__frame {
    min-height: 210px;
  }

  .certs-page__frame img {
    height: 190px;
  }
}
