/* Cross-page layout polish — minimal depth, no heavy shadows */

.wrapper:not(.footer):not(.hero-section-wrapper) {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.wrapper.dark-grey-bg {
  border-top: 4px solid var(--bright-yellow);
}

.stack-lg {
  margin-top: 48px !important;
}

/* Yellow bar underline only on non-white h2 */
.h2.center:not(.white)::after,
.container.center > .h2:not(.white)::after {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  background: var(--bright-yellow);
  margin: 20px auto 0;
}

/* No yellow bar underline on white h2 (dark sections) */
.h2.white::after {
  display: none !important;
}

/* Hero */
.hero-section-wrapper:not(:has(.hero-bg)) {
  padding: 0;
}

.hero-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  min-height: min(78vh, 640px);
}

.hero-content-wrapper {
  padding: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 56px);
}

.hero-para {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--black);
  max-width: 32ch;
}

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

/* Inner heroes */
.hero-section-wrapper:not(:has(.hero-grid)) {
  min-height: 72vh;
}

.hero-section-wrapper .hero-content,
.hero-section-wrapper .about-hero-content {
  padding: clamp(40px, 7vw, 72px) 24px;
}

/* Partners */
.partner-img {
  opacity: 0.65;
  filter: grayscale(100%);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.partner-img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* About split — scoped so CTA is not affected */
.home-about .div-block {
  display: flex;
  flex-flow: row;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  width: 100%;
}

.image-2,
.custom-image,
.why-image,
.benefits-image {
  border: 1px solid var(--border-subtle);
}

/* Services cards */
.home-services-img-wrap {
  overflow: hidden;
  line-height: 0;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.home-services-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  min-height: 180px;
}

/* Portfolio full bleed */
#portfolio.wrapper {
  padding-left: 0;
  padding-right: 0;
}

#portfolio .container.center {
  padding-left: var(--section-pad-x);
  padding-right: var(--section-pad-x);
}

.portfolio-marquee-wrapper {
  width: 100%;
  margin: 48px 0;
}

/* Stats */
.home-work-grid {
  margin-top: 48px;
}

.div-block-7 {
  padding: 24px 16px;
  border: 1px solid var(--border-subtle);
  background: var(--white);
}

.home-work-achievements {
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: capitalize;
  color: var(--black);
}

.text-field:focus,
.textarea:focus {
  border-color: var(--black);
  outline: none;
}

/* Benefit tiles */
.benefit-grid-2x2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
  width: 100% !important;
  margin-top: 8px !important;
}

.benefit-item {
  background: var(--ash-bg);
  border: 1px solid var(--border-subtle);
  padding: 20px 14px !important;
}

.benefit-icon {
  width: 44px !important;
  height: 44px !important;
  display: block;
}

.benefit-label {
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: var(--dark-grey) !important;
}


@media (max-width: 991px) {
  .hero-grid {
    min-height: auto;
  }

  .hero-img {
    min-height: 280px;
  }

  .home-about .div-block {
    flex-flow: column;
  }
}

/* Services pages custom/benefits/why grids alignment & polish */
.custom-grid,
.benefits-grid,
.why-grid {
  display: flex !important;
  flex-flow: row !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: clamp(40px, 6vw, 80px) !important;
  width: 100% !important;
  margin-top: 48px !important;
}

.custom-text,
.benefits-text,
.why-text {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: 540px !important;
}

.custom-image,
.benefits-image,
.why-image {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: 48% !important;
  max-width: 540px !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  align-self: stretch !important;
}

@media (max-width: 991px) {
  .custom-grid,
  .benefits-grid,
  .why-grid {
    flex-flow: column !important;
    gap: 32px !important;
  }
  .custom-image,
  .benefits-image,
  .why-image {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 380px !important;
  }
}



