/* ==========================================================================
   Voldor custom overrides
   ========================================================================== */

/* Service cards – fixed image frame so mixed uploads stay aligned */
.service-card__thumb {
  overflow: hidden;
}

.service-card__thumb__item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #f2f2f2;
}

.service-card__thumb__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@supports not (aspect-ratio: 16 / 10) {
  .service-card__thumb__item {
    height: 220px;
  }
}

@media (max-width: 991px) {
  .service-card__thumb__item {
    aspect-ratio: 16 / 10;
  }

  @supports not (aspect-ratio: 16 / 10) {
    .service-card__thumb__item {
      height: 200px;
    }
  }
}

/* Service detail sub-sections – tighter, consistent vertical rhythm */
.service-details__subsection {
  margin-top: 35px;
}

.service-details__subsection .service-details__sub-title {
  margin-bottom: 14px;
}

.service-details__subsection .service-details__text {
  margin-bottom: 16px;
}

.service-details__subsection .service-details__list {
  margin-bottom: 16px;
}

/* Sub-section gallery – uniform square thumbnails, no heading */
.subsection-gallery {
  margin-top: 18px;
}

.subsection-gallery__item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 1 / 1;
  background-color: #f2f2f2;
}

.subsection-gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.subsection-gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.35s ease;
}

.subsection-gallery__item:hover img {
  transform: scale(1.06);
}

.subsection-gallery__item:hover::after {
  background-color: rgba(0, 0, 0, 0.18);
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 1 / 1) {
  .subsection-gallery__item {
    height: 0;
    padding-bottom: 100%;
  }
}

/* Certificate gallery – uniform openable thumbnails (Home + Quality pages) */
.certificate-gallery {
  width: 100%;
}

.certificate-gallery__item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 3 / 4;
  background-color: #f2f2f2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.certificate-gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.certificate-gallery__item:hover img {
  transform: scale(1.05);
}

.certificate-gallery__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  background-color: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: background-color 0.35s ease, opacity 0.35s ease;
}

.certificate-gallery__item:hover .certificate-gallery__zoom {
  background-color: rgba(0, 0, 0, 0.35);
  opacity: 1;
}

@supports not (aspect-ratio: 3 / 4) {
  .certificate-gallery__item {
    height: 0;
    padding-bottom: 133%;
  }
}

/* Feature icon cards (HSE + Environment) – keep circles round and icons centered */
.why-choose-one__feature__item {
  align-items: flex-start;
  height: 100%;
}

.why-choose-one__feature__item__icon {
  flex: 0 0 60px;
  width: 60px;
  min-width: 60px;
  max-width: 60px;
  height: 60px;
  aspect-ratio: 1 / 1;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.why-choose-one__feature__item__icon i {
  display: block;
  line-height: 1;
  font-size: 32px;
}

@media (max-width: 575px) {
  .why-choose-one__feature__item__icon {
    align-self: flex-start;
  }
}

/* Home introduction – keep uploaded images contained within the column */
#introduction .about-one__thumb {
  max-width: 100%;
}

#introduction .about-one__thumb__item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* Secondary image: smaller, layered over the main image (not overflowing) */
#introduction .about-one__thumb__item--two {
  width: 55%;
  margin-top: -22%;
  margin-left: 10%;
  margin-bottom: 0;
}

@media (max-width: 991px) {
  #introduction .about-one__thumb__item--two {
    width: 60%;
    margin-top: -18%;
    margin-left: 8%;
  }

  #introduction .about-one__thumb__item--two img {
    width: 100%;
  }
}

/* Contact bottom – fix overlap, oval icons, and multi-item grid */
.contact-bottom__inner {
  align-items: stretch;
}

.contact-bottom__inner__left {
  flex: 0 0 226px;
  width: 226px;
  max-width: 226px;
}

.contact-bottom__inner__right {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.contact-bottom__thumb {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f2f2;
  padding: 24px;
}

.contact-bottom__thumb img {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
}

.contact-bottom__list {
  align-items: flex-start;
}

.contact-bottom__list__item {
  flex: 0 0 calc(33.333% - 14px);
  width: calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
  align-items: flex-start;
}

.contact-bottom__list__item__icon {
  flex: 0 0 50px;
  width: 50px;
  min-width: 50px;
  max-width: 50px;
  height: 50px;
  aspect-ratio: 1 / 1;
}

.contact-bottom__list__item__content {
  min-width: 0;
  flex: 1 1 auto;
}

.contact-bottom__list__item__text {
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.35;
}

@media (max-width: 1199px) {
  .contact-bottom__list__item {
    flex: 0 0 calc(50% - 10px);
    width: calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

@media (max-width: 991px) {
  .contact-bottom__inner__left {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  .contact-bottom__thumb {
    min-height: 180px;
  }
}

@media (max-width: 575px) {
  .contact-bottom__list__item {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .contact-bottom__inner__right__bottom {
    padding: 36px 20px;
  }
}

/* Hero slider – company slogan */
.hero-one__slogan {
  font-family: var(--voldor-font, "Manrope", sans-serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--voldor-white, #fff);
  margin-bottom: 16px;
  padding: 0;
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateX(200px);
  transition: transform 1200ms ease, opacity 1200ms ease;
}

.hero-one__slogan::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--voldor-base, #f60516);
  vertical-align: middle;
  margin-right: 12px;
}

.hero-one__slogan::after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--voldor-base, #f60516);
  vertical-align: middle;
  margin-left: 12px;
}

.hero-one .active .hero-one__slogan {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 1000ms;
}

@media (max-width: 767px) {
  .hero-one__slogan {
    font-size: 16px;
    letter-spacing: 2px;
  }

  .hero-one__slogan::before,
  .hero-one__slogan::after {
    width: 20px;
    margin-right: 8px;
    margin-left: 8px;
  }
}

@media (max-width: 575px) {
  .hero-one__slogan {
    font-size: 14px;
    letter-spacing: 1.5px;
  }
}

/* Hero slider – keep the background still (no slow zoom) */
.hero-one .active .hero-one__item__bg {
  animation: none;
  transform: none;
}

/* Hero slider – light dark overlay, without the stripe pattern */
.hero-one__item__bg::before {
  content: "";
  background: rgba(0, 0, 0, 0.75);
  opacity: 1;
}

.hero-one__item__shape {
  display: none !important;
}

.hero-one__title,
.hero-one__text,
.hero-one__slogan {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

/* Hero slider – video backgrounds */
.hero-one__item__bg--video {
  background-color: #241f21;
  background-image: none;
  overflow: hidden;
}

.hero-one__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-one__item__bg--video::before {
  z-index: 1;
}

/* About funfact – space between "Since" and the year */
.about-one__funfact__item__text {
  margin-bottom: 10px;
}

/* Board of directors – name and title only */
.board-member {
  text-align: center;
  background: var(--voldor-white, #fff);
  padding: 36px 24px;
  border-bottom: 3px solid var(--voldor-base, #f60516);
  height: 100%;
  transition: box-shadow 0.3s ease;
}

.board-member:hover {
  box-shadow: 0 12px 28px rgba(36, 31, 33, 0.08);
}

.board-member__name {
  margin: 0 0 8px;
  padding: 0;
  color: var(--voldor-secondary, #241F21);
  font-family: var(--voldor-heading-font, "Barlow", sans-serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  text-transform: uppercase;
}

.board-member__role {
  margin: 0;
  padding: 0;
  color: var(--voldor-text, #797577);
  font-family: var(--voldor-font, "Manrope", sans-serif);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
}

/* Project covers – fixed frames wherever used (home, listing, detail) */
.project-card__image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 570 / 526;
  overflow: hidden;
  background-color: #f2f2f2;
}

.project-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@supports not (aspect-ratio: 570 / 526) {
  .project-card__image {
    height: 280px;
  }
}

.project-two__item__bg {
  background-position: center center !important;
  background-size: cover !important;
}

.project-two__thumb {
  overflow: hidden;
  background-color: #241f21;
}

.project-two__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.project-details__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1170 / 531;
  overflow: hidden;
  background-color: #f2f2f2;
  margin-bottom: 40px;
}

.project-details__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@supports not (aspect-ratio: 1170 / 531) {
  .project-details__thumb {
    height: 360px;
  }
}

@media (max-width: 767px) {
  .project-details__thumb {
    aspect-ratio: 16 / 10;
  }

  @supports not (aspect-ratio: 16 / 10) {
    .project-details__thumb {
      height: 220px;
    }
  }
}