/* =========================================================
   AHUJA INFRACORE — OUR CLIENTS
   Premium client/partnership page styling
   Uses the existing variables from css/style.css
   ========================================================= */

.clients-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 42%, rgba(184,135,74,.18), transparent 31%),
    linear-gradient(115deg, var(--dark) 0%, var(--deep-brown) 48%, #120e0b 100%);
  padding-top: var(--nav-h);
  color: var(--white);
  isolation: isolate;
}

.clients-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(184,135,74,.055) 42.1% 42.35%, transparent 42.45%),
    linear-gradient(315deg, transparent 0 72%, rgba(184,135,74,.045) 72.1% 72.3%, transparent 72.4%);
  pointer-events: none;
}

.clients-hero-inner {
  position: relative;
  min-height: 660px;
  overflow: hidden;
}

/* Full-width dark panel holding the headline/copy — clipped along the
   SAME diagonal as the gold line below, so the two can never mismatch */
.clients-hero-copy {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 5vw 70px;
  background: linear-gradient(115deg, var(--dark) 0%, var(--deep-brown) 48%, rgba(18,14,11,.92) 100%);
  clip-path: polygon(0 0, 56% 0, 41% 100%, 0 100%);
}

.clients-hero .eyebrow {
  position: relative;
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: .72rem;
  color: var(--gold);
  margin: 0 0 15px;
  font-family: var(--font-body);
  font-weight: 700;
}

.clients-hero h1 {
  font-family: var(--font-body);
  font-size: clamp(3.5rem, 6.2vw, 6.2rem);
  line-height: .92;
  margin: 0 0 24px;
  letter-spacing: 1px;
  color: var(--white);
  text-transform: uppercase;
  max-width: 700px;
}

.clients-hero h1 span {
  font-family: var(--font-display);
  color: var(--gold);
  text-shadow: 0 0 35px rgba(184,135,74,.12);
}

.clients-sub {
  max-width: 500px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 27px;
}

.hero-rule {
  display: block;
  width: 62px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 32px;
  box-shadow: 0 0 18px rgba(184,135,74,.24);
}

.hero-badges {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 120px;
}

.hero-badge svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
  flex-shrink: 0;
}

.hero-badge span {
  font-family: var(--font-body);
  font-size: .67rem;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--beige);
  line-height: 1.45;
}

/* Full-bleed construction photo — plain, untinted, fills the whole box.
   What's visible of it is decided entirely by what's clipped/drawn on
   top (the copy panel to the left, the gold lines on top of that). */
.clients-hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("../assets/clients/hero_bg.png");
  background-size: cover;
  background-position: center;
}

/* the two gold strokes framing the seam, each its own thin
   parallelogram parallel to the diagonal cut */
.hero-line {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(
    180deg,
    rgba(184,135,74,0) 0%,
    var(--gold) 12%,
    var(--gold) 88%,
    rgba(184,135,74,0) 100%
  );
  filter: drop-shadow(0 0 6px rgba(184,135,74,.45));
  pointer-events: none;
}

.hero-line--1 {
  clip-path: polygon(56% 0, 56.6% 0, 41% 100%, 40.4% 100%);
}

.hero-line--2 {
  clip-path: polygon(90% 0, 90.6% 0, 75% 100%, 74.4% 100%);
}

/* Blurred zone — everything to the right of the second gold line */
.hero-blur-right {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("../assets/clients/hero_bg.png");
  background-size: cover;
  background-position: center;
  clip-path: polygon(90.6% 0, 100% 0, 100% 100%, 75% 100%);
  filter: blur(7px) saturate(0.9) brightness(0.9);
}

.hero-tagline {
  position: absolute;
  z-index: 6;
  top: 76px;
  right: 4.5vw;
  text-align: right;
  font-family: var(--font-body);
  font-size: .67rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 2;
  opacity: .92;
}

.hero-tagline .rule {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--gold);
  margin: 10px 0 0 auto;
}

/* ---------- STATS ---------- */
.stats-bar {
  background:
    linear-gradient(90deg, var(--deep-brown), var(--dark), var(--deep-brown));
  border-top: 1px solid rgba(184,135,74,.45);
  border-bottom: 1px solid rgba(184,135,74,.2);
  position: relative;
  z-index: 5;
}

.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 104px;
  padding: 20px 28px;
  border-right: 1px solid rgba(184,135,74,.26);
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 27px;
  bottom: 27px;
  width: 1px;
  background: rgba(184,135,74,.16);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item svg {
  width: 34px;
  height: 34px;
  color: var(--gold);
  flex-shrink: 0;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--gold);
  line-height: 1;
  margin: 0 0 5px;
  text-transform: uppercase;
}

.stat-label {
  font-family: var(--font-body);
  font-size: .64rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--beige);
  margin: 0;
}

/* ---------- CLIENTS ---------- */
.partners-section {
  background:
    radial-gradient(circle at 90% 5%, rgba(184,135,74,.10), transparent 28%),
    var(--light-cream);
  padding: 5px 0 78px;
  position: relative;
  overflow: hidden;
}

.partners-section::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(110,63,29,.09);
  transform: rotate(45deg);
  pointer-events: none;
}

.partners-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 42px;
  position: relative;
  z-index: 1;
}

.partners-head-text {
  flex: 1;
}

.partners-head-text .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: .7rem;
  color: var(--brown);
  font-family: var(--font-body);
  font-weight: 700;
  margin: 0 0 15px;
}

.partners-head-text .eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.partners-head-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 4.5vw, 4rem);
  color: var(--dark);
  margin: 0 0 13px;
  letter-spacing: .4px;
  line-height: 1;
}

.partners-head-text h2 em {
  font-style: italic;
  color: var(--brown);
}

.partners-head-text p {
  max-width: 590px;
  font-family: var(--font-body);
  font-size: .92rem;
  line-height: 1.75;
  color: var(--dark);
  opacity: .72;
  margin: 0;
}

.partners-head-visual {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  padding-right: 5px;
}

.partners-head-visual .rotated-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-body);
  font-size: .65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brown);
  border-left: 1px solid var(--gold);
  padding-left: 14px;
}

.partners-head-visual img {
  width: 140px;
  height: 400px;
  object-fit: cover;
  object-position: center;
  opacity: .62;
  filter: grayscale(.85) sepia(.15) brightness(.6) contrast(1.15);
  border-radius: 2px;
  mix-blend-mode: multiply;
}

/* Logo grid */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  z-index: 1;
}

.client-card {
  background: rgba(255,255,255,.86);
  border: 2px solid rgba(184,135,74,.32);
  border-radius: 3px;
  padding: 17px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  box-shadow: 0 5px 18px rgba(36,24,17,.045);
  transition:
    transform .28s var(--ease),
    box-shadow .28s var(--ease),
    border-color .28s var(--ease),
    background .28s var(--ease);
}

.client-card:hover {
  transform: translateY(-5px);
  background: var(--white);
  border-color: rgba(184,135,74,.7);
  box-shadow: 0 18px 35px rgba(36,24,17,.13);
}

.client-card img {
  display: block;
  max-width: 100%;
  max-height: 86px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---------- CTA ---------- */
.clients-cta {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  padding: 66px 0;
  border-top: 1px solid rgba(184,135,74,.35);
}

.clients-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.clients-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .34;
  filter: grayscale(.25);
}

.clients-cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23,19,15,.97) 0%, rgba(23,19,15,.79) 43%, rgba(23,19,15,.42) 100%),
    linear-gradient(180deg, rgba(23,19,15,.15), rgba(23,19,15,.55));
}

.clients-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  flex-wrap: wrap;
}

.clients-cta-text .eyebrow {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: .68rem;
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 700;
  margin: 0 0 11px;
}

.clients-cta-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.7vw, 3.25rem);
  line-height: 1;
  color: var(--white);
  margin: 0 0 12px;
}

.clients-cta-text p {
  font-family: var(--font-body);
  color: var(--beige);
  max-width: 520px;
  margin: 0;
  font-size: .9rem;
  line-height: 1.7;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-width: 165px;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: .7rem;
  padding: 17px 28px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
  transition: all .25s var(--ease);
}

.btn-cta svg {
  transition: transform .25s var(--ease);
}

.btn-cta:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-cta:hover svg {
  transform: translateX(4px);
}

/* ---------- TRUST BAR ---------- */
.trust-bar {
  background: var(--light-cream);
  border-top: 1px solid rgba(184,135,74,.32);
  padding: 31px 0;
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 4px 25px;
  border-right: 1px solid rgba(110,63,29,.18);
}

.trust-item:last-child {
  border-right: none;
}

.trust-item svg {
  width: 37px;
  height: 37px;
  color: var(--brown);
  flex-shrink: 0;
}

.trust-item p {
  margin: 0;
  color: var(--dark);
  font-family: var(--font-body);
  font-size: .67rem;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .8px;
}

/* ---------- FOOTER POLISH ----------
   These rules only target footer elements on the clients page and
   therefore work alongside the existing global footer styles. */
.site-footer {
  position: relative;
  background:
    radial-gradient(circle at 82% 20%, rgba(110,63,29,.13), transparent 27%),
    var(--dark);
}



/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .clients-hero-inner {
    min-height: 560px;
  }

  .clients-hero-copy {
    padding-left: 6vw;
  }

  .clients-grid {
    gap: 10px;
  }

  .client-card {
    min-height: 122px;
  }

  .stat-item {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 991px) {
  .clients-hero-inner {
    min-height: auto;
  }

  .clients-hero-copy {
    position: relative;
    clip-path: none;
    min-height: 500px;
    padding: 75px 7vw 55px;
  }

  .clients-hero-media {
    position: relative;
    height: 360px;
  }

  .hero-line {
    display: none;
  }

  .hero-tagline {
    display: none;
  }

  .stats-bar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-bottom: 1px solid rgba(184,135,74,.25);
  }

  .stat-item:nth-child(2n) {
    border-right: none;
  }

  .partners-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }

  .partners-head-visual {
    display: none;
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .trust-bar-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
  }

  .trust-item:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 640px) {
  .clients-hero-copy {
    min-height: 450px;
    padding: 55px 6vw 48px;
  }

  .clients-hero h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .clients-sub {
    font-size: .9rem;
  }

  .hero-badges {
    gap: 19px;
  }

  .hero-badge {
    min-width: 105px;
  }

  .stats-bar-grid {
    grid-template-columns: 1fr;
  }

  .stat-item,
  .stat-item:nth-child(2n) {
    border-right: none;
    min-height: 84px;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .stat-item {
    border-bottom: 1px solid rgba(184,135,74,.22);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .partners-section {
    padding: 60px 0 55px;
  }

  .partners-head {
    margin-bottom: 30px;
  }

  .partners-head-text h2 {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
  }

  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .client-card {
    min-height: 112px;
    padding: 12px;
  }

  .client-card img {
    max-height: 72px;
  }

  .clients-cta {
    padding: 55px 0;
  }

  .clients-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-cta {
    width: 100%;
  }

  .trust-bar-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .trust-item,
  .trust-item:nth-child(2) {
    border-right: none;
    border-bottom: 1px solid rgba(110,63,29,.17);
    padding: 18px 5px;
  }

  .trust-item:last-child {
    border-bottom: none;
  }
}