﻿/* =============================================================================
   HOME PAGE (index.html)
   Sections, top to bottom:
     1. .hero            video + "Turnkey Project Solutions"
     2. .services        "What we do" cards
     3. .why-bengal      counters + numbered list
     4. .markets         "Markets Served" text, then .markets-gallery photo grid
     5. .approach        "Where Complexity Meets Execution"
     6. .partner         "A Single Partner. Fully Aligned."
   Each section has its desktop rules first, then tablet / phone changes at the
   bottom of the file.
   ============================================================================= */


/* ---------- 1. Hero ---------------------------------------------------------- */
.hero {
  padding: 12.55cqw 0 8.35cqw 6.98cqw;   /* the height comes from the content */
  color: var(--white);
}

.hero .background { background-color: var(--black); }

.hero__video { opacity: 0; transition: opacity 0.4s ease; }
.hero__video.is-playing { opacity: 1; }   /* set by js/background-video.js */

/* dark shade on the left so the white text is easy to read */
.hero__shade {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, #000 18.42%, rgba(243, 248, 240, 0) 100%);
  box-shadow: 0 0.078cqw 0.3125cqw rgba(0, 0, 0, 0.6);
}

.hero__title { width: 53.65cqw; }

.hero__quote-button {
  width: 14.33cqw;
  height: 3.15cqw;
  margin-top: 0.67cqw;
  margin-left: -0.05cqw;
}

/* The yellow line is always 140px tall on desktop, so on small laptops it is
   taller than the text next to it and makes the hero a little taller. */
.hero__intro-block {
  position: relative;
  min-height: calc(0.45cqw + 140px);
  margin-top: 2.52cqw;
}
.hero__intro-block::before {
  content: "";
  position: absolute;
  left: 0.13cqw;
  top: 0.45cqw;
  height: 140px;
  border-left: 0.8px solid var(--yellow);
}

.hero__intro {
  width: 25.72cqw;
  margin-left: 1.58cqw;
  font-size: 1.272cqw;
  line-height: 1.6;
}

.hero__lunch-link {
  width: 22.94cqw;
  height: 2.78cqw;
  margin: 1.42cqw 0 0 1.63cqw;
}


/* ---------- 2. What we do ---------------------------------------------------- */
.services {
  padding: 7.24cqw 0 7.24cqw 6.93cqw;
  background-color: var(--white);
}

.services__cards {
  display: flex;
  gap: 2.42cqw;
  margin-top: 3.21cqw;
  margin-left: 0.1cqw;
}

.service-card {
  width: 27.03cqw;
  height: 33.33cqw;
  padding: 1.57cqw 1.58cqw;
  border: 0.8px solid rgba(245, 185, 23, 0.1);
  border-radius: 1.609cqw;
  background-color: var(--cream);
}

.service-card__picture {
  position: relative;
  height: 16.54cqw;
  overflow: hidden;
  border-radius: 1.207cqw;
}
.service-card__picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* the yellow name label on top of the photo */
.service-card__picture .service-card__label {
  position: absolute;
  top: 5.67cqw;
  left: 50%;
  width: 13.81cqw;
  height: 6.88cqw;
  transform: translateX(-50%);
}

.service-card h3 { margin-top: 2.41cqw; }
.service-card p { margin-top: 0.42cqw; }

.service-card .card-link {
  width: 12.6cqw;
  height: 4.2cqw;
  margin-top: 0.73cqw;
  margin-left: 0.05cqw;
}


/* ---------- 3. Why Bengal ------------------------------------------------------ */
.why-bengal {
  display: grid;
  grid-template-columns: 43.15cqw 37.85cqw;
  column-gap: 5.62cqw;
  align-items: start;
  padding: 8.08cqw 0 8.05cqw 6.98cqw;
  color: var(--white);
}

.why-bengal__eyebrow {
  font-size: 1.112cqw;
  line-height: normal;
  color: var(--off-white);
}

.why-bengal h2 { width: 35.85cqw; margin-top: 0.17cqw; }

.why-bengal__picture {
  width: 43.15cqw;
  height: 14.75cqw;
  margin-top: 1.2cqw;
  object-fit: cover;
  border-radius: 1.609cqw;
}

/* the three counters */
.stats {
  display: flex;
  margin-top: 2.28cqw;
}

.stat__number {
  display: flex;
  align-items: center;
  height: 6.31cqw;
  padding-left: 5px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.stat__label {
  margin-top: 0.7cqw;
  font-size: 1.115cqw;
  line-height: 1.6;
  color: var(--off-white);
  text-transform: capitalize;
}

/* width of each counter; the number's size follows the width (35px - 70px) */
.stat--years     { width: 10.49cqw; margin-left: 0.05cqw; }
.stat--equipment { width: 14.08cqw; margin-left: 1.38cqw; }
.stat--states    { width: 10.49cqw; margin-left: 3.08cqw; }
.stat--years     .stat__number,
.stat--states    .stat__number { font-size: clamp(35px, 4.397cqw, 70px); }
.stat--equipment .stat__number { font-size: clamp(35px, 5.902cqw, 70px); }

.stat--years .stat__label { line-height: 1.4; }
.stat--states .stat__label { width: 8.87cqw; color: var(--white); }

/* numbered list on the right */
.number-list {
  display: grid;
  row-gap: 1.17cqw;
  list-style: none;
}

.number-list li {
  display: grid;
  grid-template-columns: 4.15cqw 1fr;
  min-height: 4.2cqw;
  padding-bottom: 0.47cqw;
  /* thin gold line under each row */
  box-shadow: 0 max(0.5px, 0.0804cqw) 0 0 rgba(182, 121, 41, 0.4);
}

.number-list__number {
  margin-top: 0.37cqw;
  font-family: var(--font-heading);
  font-size: 2.414cqw;
  line-height: 1.4;
  color: var(--yellow);
}

.number-list p {
  align-self: center;
  font-size: 1.115cqw;
  line-height: 1.6;
}


/* ---------- 4. Markets served ---------------------------------------------- */
.markets {
  padding: 2.31cqw 0 4.05cqw;
  color: var(--white);
  text-align: center;
}

.markets__intro {
  width: 36.9cqw;
  margin: 0.63cqw auto 0;
  font-size: 1.115cqw;
  line-height: 1.6;
  color: var(--light-grey);
}

.markets__button {
  gap: 1.045cqw;
  width: 13.65cqw;
  height: 3.46cqw;
  margin-top: 0.84cqw;
}


/* ---------- 5. Where complexity meets execution ---------------------------- */
.approach {
  padding: 8.03cqw 6.98cqw;
  color: var(--off-white);
}

.approach__steps {
  display: grid;
  grid-template-columns: repeat(3, 22.2cqw);
  column-gap: 7.25cqw;
  margin: 3.2cqw 0 0 2.42cqw;
  text-align: center;
}

.approach__icon {
  width: 9.08cqw;
  height: 9.08cqw;
  margin: 0 auto;
}
.approach__icon img { width: 100%; height: 100%; object-fit: cover; }

.approach h3 { margin-top: 1.21cqw; }
.approach p  { margin-top: 0.79cqw; }


/* ---------- 6. A single partner ------------------------------------------- */
.partner {
  display: grid;
  grid-template-columns: 33.65cqw 49.55cqw;
  column-gap: 2.78cqw;
  align-items: start;
  padding: 7.98cqw 0 0 6.98cqw;
  height: 27.51cqw;
  color: var(--white);
}

.partner .background { background-color: rgba(0, 0, 0, 0.83); }

.partner__title {
  margin-top: 0.73cqw;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 4.181cqw;
  line-height: 1.2;
  text-transform: capitalize;
}

.partner__text p {
  font-size: 1.287cqw;
  line-height: 1.6;
  color: var(--off-white);
}

.partner__button {
  width: 12.23cqw;
  height: 3.46cqw;
  margin-top: 1.79cqw;
  gap: 1.045cqw;
  font-size: 1.254cqw;
}


/* =============================================================================
   TABLET (751px - 1000px)
   ============================================================================= */
@media (max-width: 1000px) {

  .hero { height: 62.71cqw; padding: 17.29cqw 0 0 3.95cqw; }
  .hero__title { width: 57.4cqw; }
  .hero__quote-button { width: 22.15cqw; height: 5.31cqw; margin: 0.67cqw 0 0; }
  .hero__intro-block { min-height: calc(0.45cqw + 119px); margin-top: 2.6cqw; }
  .hero__intro-block::before { height: 119px; }
  .hero__intro { width: 39.89cqw; margin-left: 1.47cqw; font-size: 1.864cqw; }
  .hero__lunch-link { width: 33.56cqw; height: 5.42cqw; margin: 1.58cqw 0 0 1.7cqw; font-size: 1.812cqw; }

  /* on tablets and phones the buttons' text is not bold */
  .hero__quote-button, .service-card .card-link, .markets__button, .partner__button { font-weight: 400; }

  .services { padding: 8.02cqw 0 7.92cqw 3.95cqw; }
  .services__cards { gap: 2.37cqw; margin: 3.28cqw 0 0 0.23cqw; }
  .service-card { width: 28.93cqw; height: 42.03cqw; padding: 1.59cqw 1.58cqw; }
  .service-card__picture { height: 17.85cqw; }
  .service-card__picture .service-card__label { top: 5.65cqw; width: 14.92cqw; height: 7.46cqw; }
  .service-card h3 { margin-top: 2.37cqw; }
  .service-card p { margin-top: 0.35cqw; }
  .service-card .card-link { width: 21.92cqw; height: 5.65cqw; margin-top: 0.9cqw; font-size: 1.726cqw; }

  .why-bengal {
    grid-template-columns: 46.1cqw 39.77cqw;
    column-gap: 5.77cqw;
    padding: 8.14cqw 0 7.91cqw 3.95cqw;
  }
  .why-bengal__eyebrow { font-size: 1.859cqw; }
  .why-bengal h2 { width: 38.31cqw; margin-top: 1.24cqw; }
  .why-bengal__picture { width: 46.1cqw; height: 15.82cqw; margin-top: 1.25cqw; }
  .stats { margin-top: 1.99cqw; }
  .stat__number { height: 5.22cqw; }
  .stat__label { margin-top: 0.92cqw; font-size: 1.598cqw; }
  .stat--years     { width: 10.46cqw; margin-left: 0.09cqw; }
  .stat--equipment { width: 11.39cqw; margin-left: 2.61cqw; }
  .stat--states    { width: 9.87cqw; margin-left: 5.86cqw; }
  .stat--years  .stat__number { font-size: clamp(35px, 4.384cqw, 70px); }
  .stat--equipment .stat__number { height: 4.27cqw; font-size: clamp(35px, 4.774cqw, 70px); }
  .stat--states .stat__number { font-size: clamp(35px, 4.137cqw, 70px); }
  .stat--years .stat__label { width: 10.62cqw; }
  .stat--equipment .stat__label { width: 14.24cqw; margin-top: 0.96cqw; }
  .stat--states .stat__label { width: 14.24cqw; font-size: 1.731cqw; }

  .number-list { row-gap: 1.13cqw; }
  .number-list li { grid-template-columns: 4.18cqw 1fr; min-height: 0; padding-bottom: 0.45cqw; }
  .number-list__number { margin-top: 0.33cqw; }
  .number-list p { align-self: start; font-size: 1.864cqw; }

  .markets { padding: 2.37cqw 0 3.95cqw; }
  .markets__intro { width: 36.84cqw; margin-top: 0.69cqw; font-size: 1.726cqw; }
  .markets__button { width: 21.92cqw; height: 5.65cqw; margin-top: 1.01cqw; font-size: 1.115cqw; }

  .approach { padding: 8.02cqw 5.42cqw 8.13cqw; }
  .approach__steps {
    grid-template-columns: repeat(3, 23.28cqw);
    column-gap: 7.23cqw;
    margin: 3.28cqw 0 0 2.38cqw;
  }
  .approach__icon { width: 10.62cqw; height: 10.62cqw; }
  .approach h3 { margin-top: 1.14cqw; }

  .partner {
    grid-template-columns: 33.67cqw 49.6cqw;
    column-gap: 2.71cqw;
    height: 39.32cqw;
    padding: 8.02cqw 0 0 7.01cqw;
  }
  .partner__title { margin-top: 6.9cqw; font-size: 3.984cqw; }
  .partner__text p { font-size: 1.864cqw; }
  .partner__button { width: 19.89cqw; height: 6.67cqw; margin-top: 1.81cqw; font-size: 2.091cqw; }
}


/* =============================================================================
   PHONE (750px and narrower)
   ============================================================================= */
@media (max-width: 750px) {

  .hero { height: 128.27cqw; padding: 32cqw 0 0 5.33cqw; }
  .hero .hero__shade { background-image: linear-gradient(90deg, #000 26.32%, rgba(243, 248, 240, 0) 100%); }
  .hero__title { width: 89.33cqw; }
  .hero__quote-button { width: 40cqw; height: 10.67cqw; margin: 2.67cqw 0 0; font-size: 3.697cqw; }
  .hero__quote-button::after { width: 4.6cqw; height: 4.6cqw; }
  .hero__intro-block { min-height: 150px; margin-top: 8cqw; }
  .hero__intro-block::before { top: 50%; height: 150px; transform: translateY(-50%); }   /* centred on phones */
  .hero__intro { width: 61.33cqw; margin-left: 2.67cqw; font-size: 3.737cqw; }
  .hero__lunch-link { width: 61.33cqw; height: 10.67cqw; margin: 1.6cqw 0 0 2.94cqw; font-size: 3.139cqw; }
  .hero__lunch-link::after { width: 6cqw; height: 6cqw; }

  .services { padding: 8cqw 8cqw 8cqw 8.27cqw; }
  .services h2 { margin-left: -0.27cqw; }
  .services__cards { flex-direction: column; gap: 5.6cqw; margin: 3.2cqw 0 0; }
  .service-card { width: 83.73cqw; height: 97.07cqw; padding: 5.33cqw 4.8cqw; border-radius: 4.026cqw; }
  .service-card__picture { height: 50.67cqw; border-radius: 2.684cqw; }
  /* on phones the photo is a little darker */
  .service-card__picture::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.23);
  }
  .service-card__picture .service-card__label { z-index: 2; top: 14.67cqw; width: 44.27cqw; height: 22.13cqw; }
  .service-card h3 { margin-top: 2.4cqw; }
  .service-card p { margin: 0.53cqw 0 0 0.26cqw; }
  .service-card .card-link { width: 53.87cqw; height: 13.33cqw; margin: 0.53cqw 0 0 0.26cqw; font-size: 3.737cqw; }
  .service-card .card-link::after { width: 8.8cqw; height: 8.8cqw; }

  .why-bengal {
    grid-template-columns: 84cqw;
    row-gap: 8.53cqw;
    padding: 10.93cqw 0 10.41cqw 8cqw;
  }
  .why-bengal__eyebrow { font-size: 3.221cqw; }
  .why-bengal h2 { width: 69.87cqw; margin-top: 1.07cqw; }
  .why-bengal__picture { width: 84cqw; height: 37.6cqw; margin-top: 1.6cqw; border-radius: 5.367cqw; }
  .stats { margin-top: 1.09cqw; }
  .stat__number { height: 10.32cqw; }
  .stat__label { width: 26.93cqw; margin-top: 1.92cqw; font-size: 2.684cqw; }
  .stat--years     { width: 20.64cqw; margin-left: -0.13cqw; }
  .stat--equipment { width: 22.61cqw; margin-left: 8.36cqw; }
  .stat--states    { width: 20.64cqw; margin-left: 5.74cqw; }
  .stat .stat__number { height: 10.32cqw; font-size: 35px; }
  .stat--equipment .stat__number { font-size: clamp(35px, 9.474cqw, 70px); }
  .stat--states .stat__label { width: 26.93cqw; font-size: 2.684cqw; color: var(--white); }
  .stat--equipment .stat__label { width: 26.93cqw; margin-top: 1.92cqw; }

  .stat--years .stat__label { width: 26.93cqw; }
  .stat__label { position: relative; left: 0.4cqw; }
  .stat--equipment .stat__label { left: 2.7cqw; }
  .stat--states .stat__label { left: 3.94cqw; }

  .number-list { row-gap: 1.07cqw; width: 77.6cqw; margin-left: 2.67cqw; }
  .number-list li { grid-template-columns: 10.93cqw 1fr; padding-bottom: 0.53cqw; }
  .number-list__number { align-self: center; margin-top: 0; font-size: 5.368cqw; }
  .number-list p { font-size: 3.489cqw; }

  .markets { padding: 2.13cqw 0 4cqw; }
  .markets h2 { width: 86.13cqw; margin: 0 auto; font-size: 6.674cqw; }
  .markets__intro { width: 77.6cqw; margin-top: 0.8cqw; font-size: 3.737cqw; }
  .markets__button { width: 51.73cqw; height: 13.33cqw; margin-top: 1.07cqw; font-size: 3.737cqw; }
  .markets__button::after { width: 4.6cqw; height: 4.6cqw; }

  .approach { padding: 8cqw 8cqw 8cqw 8.27cqw; }
  .approach__steps { grid-template-columns: 83.73cqw; row-gap: 6.67cqw; margin: 3.2cqw 0 0; }
  .approach__step { padding: 5.33cqw 0; }
  .approach__icon { width: 21.33cqw; height: 21.33cqw; }
  .approach h3 { width: 67.2cqw; margin: 2.67cqw auto 0; }
  .approach p { width: 73.07cqw; margin: 2.67cqw auto 0; }

  .partner {
    grid-template-columns: 1fr;
    height: 84cqw;
    padding: 8cqw 8.8cqw 0;
    text-align: center;
  }
  .partner__title { width: 58.67cqw; margin: 0 auto; font-size: 6.71cqw; }
  .partner__text { margin-top: 5.6cqw; }
  .partner__text p { font-size: 3.489cqw; }
  .partner__button { width: 42.67cqw; height: 13.33cqw; margin-top: 9.07cqw; font-size: 3.976cqw; }
  .partner__button::after { width: 5.5cqw; height: 5.5cqw; }
}
