/* ==========================================================================
   DP WORLD · LG200 — Home page
   Sections, in document order:
     1. Hero                             .page-hero (shared, theme.css)
     2. Occupiers intro + aerial + stats .home-occupiers
     3. Park services                    .home-park
     4. Testimonials                     .home-testimonials
   ========================================================================== */

/* ==========================================================================
   2 · Occupiers — the aerial carries everything: intro copy over the sky,
       the stats card and the numbered occupier index over the fields below.
   ========================================================================== */
.home-occupiers {
  position: relative;
  background: linear-gradient(180deg, var(--c-indigo-700) 0%, var(--c-blue-600) 55%, var(--c-blue-400) 100%);
}

/* Sits over the sky. The scrim darkens the top of the photo back toward the
   brand indigo so the copy reads without a solid band behind it. */
.home-occupiers__intro {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1;
  text-align: center;
  padding: clamp(1.25rem, 3.1vw, 3.5rem) var(--gutter) clamp(1.5rem, 3vw, 3rem);
  max-width: none;
}
.home-occupiers__intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(33, 24, 83, 0.86) 0%, rgba(33, 24, 83, 0.55) 45%, rgba(33, 24, 83, 0) 100%);
  pointer-events: none;
}
.home-occupiers__lead {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.2rem, 1.76vw, 1.6rem);
  line-height: 1.16;
  margin: 0 auto;
  max-width: 44rem;
}
.home-occupiers__sub {
  font-weight: 300;
  font-size: clamp(1rem, 1.3vw, 1.1875rem);
  line-height: 1.24;
  margin: 1.5rem auto 0;
  max-width: 44rem;
  opacity: 0.95;
}

/* ---- Aerial plate ---- */
/* The full frame is used, sky included — the copy sits on it, so nothing is
   cropped. The image itself sets the plate's height. */
.home-occupiers__plate {
  position: relative;
  overflow: hidden;
}
.home-occupiers__aerial {
  display: block;
  width: 100%;
  height: auto;
}

/* Card + index sit over the lower half of the aerial on wide screens */
.home-occupiers__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: 0 var(--edge-capped);
  height: 32%;
}

/* Stats card — glass panel */
.stats-card {
  align-self: center;
  justify-self: end;
  max-width: 35rem;
  width: 100%;
  padding: clamp(1.5rem, 2.8vw, 2.5rem) clamp(1.5rem, 3.4vw, 3.25rem);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  background: rgba(217, 217, 217, 0.20);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.stats-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.4vw, 1.3125rem);
  line-height: 1.16;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0;
}
.stats-card__copy {
  font-weight: 300;
  font-size: clamp(0.95rem, 1.32vw, 1.1875rem);
  line-height: 1.32;
  margin: 1.1rem 0 0;
}

/* ---- Numbered occupier index ---- */
.occupier-index {
  justify-self: start;
  align-self: center;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(0.75rem, 1.9vw, 2.25rem);
  row-gap: 0.35rem;
  grid-auto-flow: column;
  grid-template-rows: repeat(5, auto);
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 46rem;
  width: 100%;
}
.occupier-index li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  min-height: 46px;
}
.occupier-index__num {
  flex: none;
  width: 1.85em;
  text-align: right;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
/* Logos carry their own intrinsic px size (baked into each SVG) so the
   relative weighting matches the artwork; the cap only guards small screens.
   `zoom` scales every logo by the same factor — and unlike `transform` it
   grows the layout box, so the rows and columns space themselves. */
.occupier-index img {
  zoom: 1.3;
  max-width: 100%;
  max-height: 42px;
  width: auto;
  height: auto;
}

/* ==========================================================================
   3 · Park services
   ========================================================================== */
.home-park {
  background: linear-gradient(90deg, var(--c-indigo-800) 0%, var(--c-purple-500) 100%);
  padding-block: clamp(2.5rem, 4.86vw, 4.25rem) clamp(2.75rem, 6.3vw, 5.5rem);
}
.home-park__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
  margin-bottom: clamp(2rem, 7.3vw, 6.5rem);
}
.home-park__head .btn-pill { margin-left: auto; }

.park-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.6vw, 2.75rem);
}
.park-card__media {
  aspect-ratio: 298 / 234;
  border-radius: 10px;
  overflow: hidden;
}
.park-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.park-card:hover .park-card__media img { transform: scale(1.05); }
/* Per-card crop framing */
.park-card__media img.pos-right { object-position: right center; }
.park-card__media img.pos-top   { object-position: center 40%; }
.park-card__media img.zoom-in   { transform: scale(1.25); transform-origin: right center; }
.park-card:hover .park-card__media img.zoom-in { transform: scale(1.32); }

/* Divider — white, fading out toward the right */
.park-card__divider {
  height: 0;
  border: none;
  border-top: 1px solid;
  border-image-source: linear-gradient(90deg, #FFFFFF 53.37%, rgba(255, 255, 255, 0) 100%);
  border-image-slice: 1;
  margin: 1.9rem 0 1.75rem;
}
.park-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1rem, 1.43vw, 1.3rem);
  line-height: 1.22;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}
.park-card__copy {
  color: var(--c-green);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.33vw, 1.2rem);
  line-height: 1.28;
  margin: 0;
  max-width: 26ch;
  padding-right: 0.75rem;
}

/* ==========================================================================
   4 · Testimonials
   ========================================================================== */
.home-testimonials {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 11.8vw, 11rem);
  padding-top: clamp(3rem, 8vw, 6rem);
  width: 100%;
}
/* The rule spans the full column height to the section's bottom edge; the
   quote carries its own bottom padding rather than the wrapper. */
.quote {
  position: relative;
  margin: 0;   /* the UA blockquote margin would hold the rule off the section's bottom edge */
  padding-left: clamp(1.25rem, 2vw, 1.75rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.quote::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 35.58%);
}
.quote p {
  font-weight: 600;
  font-size: clamp(1.1rem, 2.1vw, 1.8125rem);
  line-height: 1.14;
  color: #000;
  margin: 0 0 2.25rem;
  max-width: 19em;
}
.quote img { height: 44px; width: auto; }

/* ==========================================================================
   Responsive — home
   ========================================================================== */
@media (max-width: 1280px) {
  /* Below this width the index needs two columns, and ten rows of it no longer
     fit over the aerial — so the whole plate unstacks: the intro lifts back
     above the photo, the card and index drop beneath it, and the section
     gradient carries through both. */
  .occupier-index { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(10, auto); }

  .home-occupiers__plate {
    display: flex;
    flex-direction: column;
  }
  .home-occupiers__intro {
    position: static;
    order: -1;
    padding: clamp(1.5rem, 2.6vw, 2.5rem) var(--gutter) clamp(1rem, 1.8vw, 1.75rem);
    max-width: 60rem;
    margin-inline: auto;
  }
  .home-occupiers__intro::before { display: none; }

  .home-occupiers__overlay {
    position: static;
    height: auto;
    grid-template-columns: 1fr;
    padding: clamp(2rem, 5vw, 3rem) var(--edge) clamp(2.5rem, 6vw, 3.5rem);
    background: var(--c-indigo-700);
  }
  .stats-card { justify-self: center; }
  .occupier-index { justify-self: center; max-width: none; }
}

@media (max-width: 1100px) {
  .park-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 768px) {
  .park-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .park-card__copy { max-width: none; }
  /* Single column — let the titles wrap naturally instead of at the design
     break. The source keeps a space before each <br> so the words stay apart. */
  .park-card__title br,
  .stats-card__title br { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .quote { padding-left: 0; padding-bottom: 2.5rem; }
  .quote::before { display: none; }
  .quote p { max-width: none; }

  /* Too little floor is left once the interior is cropped to a phone, so the
     photo sits full-width at the top and the quotes drop onto a flat extension
     of the concrete below it — same look, but the black type stays legible. */
  .home-testimonials {
    min-height: 0;
    padding-top: 66.7vw;                 /* the photo's own 2560×1706 ratio */
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #D1D1CE;   /* the photo's own bottom-edge tone, so the join is invisible */
  }
  .testimonials-grid { padding-top: 2.5rem; }
}

@media (max-width: 560px) {
  /* Two columns of ten, not twenty stacked — the logos are small and a single
     file of them ran off the screen. */
  .occupier-index { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(10, auto); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue__arrow { animation: none; }
}
