/* ==========================================================================
   DP WORLD · LG200 — Freeport Status
   Sections, in document order:
     1. Hero                 .page-hero (shared, theme.css)
     2. Freeport benefits    .fp-benefits   (light)
     3. Closing photograph   .fp-photo

   Section 2 runs on light artwork, so it sets its own ink colour — the site's
   default type colour is white.
   ========================================================================== */

:root {
  --fp-ink:      #1F174F;   /* indigo type on the light section */
  --fp-ink-soft: #3B3B4F;   /* body copy on the light section */
}

/* Hero type runs to the same scale as the other interior pages. The measure is
   what folds this headline to three lines — see docs/FREEPORT-STATUS.md. */
.page-hero--freeport {
  --hero-title-size: clamp(1.9rem, 5.885vw, 67px);
  --hero-title-measure: 41rem;
}

/* ==========================================================================
   2 · Freeport benefits — the saving, the explanation, then eight benefits on
       a four-wide grid, over the ring artwork.
   ========================================================================== */
.fp-benefits {
  position: relative;
  isolation: isolate;
  color: var(--fp-ink);
  background: linear-gradient(180deg, #EDEEF0 0%, #BDD5F0 100%);
  padding-block: clamp(2.75rem, 5.6vw, 4.75rem) clamp(3rem, 6.4vw, 5.5rem);
  overflow: hidden;
}
/* Decoration only. The rings sit dead-centre on the foot of the section — the
   50% shift down puts their centre exactly on that edge, so only the top half
   of the circles breaks the line. */
.fp-benefits__rings {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: -1;
  width: min(150%, 78rem);
  aspect-ratio: 1;
  transform: translate(-50%, 50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

.fp-benefits__head {
  text-align: center;
  max-width: 64rem;
  margin: 0 auto clamp(2.5rem, 5.4vw, 4.5rem);
}
/* The saving is the page's headline figure: sentence case and centred, sized
   above the standard section heading. */
.fp-benefits__title {
  color: var(--fp-ink);
  font-size: clamp(1.35rem, 2.75vw, 2.4rem);
  line-height: 1.16;
  /* Folds to the drawn two lines — break after "for the". Below 54rem it runs
     to three lines; at 55rem "LG200" climbs onto the first line. */
  max-width: 54.25rem;
  margin-inline: auto;
}
.fp-benefits__copy {
  color: var(--fp-ink-soft);
  font-weight: 300;
  font-size: clamp(0.9rem, 1.15vw, 1.0625rem);
  line-height: 1.42;
  max-width: 44rem;
  margin: clamp(1.25rem, 2.6vw, 2.1rem) auto 0;
}

.fp-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2rem, 4.2vw, 4rem) clamp(1.5rem, 3vw, 3.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* The icons are drawn to different widths, so the row is held together by a
   common icon height and a shared baseline for the copy beneath it. */
.fp-benefit__icon {
  display: block;
  width: auto;
  height: clamp(2.1rem, 3vw, 2.9rem);
  margin-bottom: clamp(1rem, 2vw, 1.6rem);
}
.fp-benefit__copy {
  color: var(--fp-ink-soft);
  font-weight: 300;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  line-height: 1.36;
  margin: 0;
  max-width: 28ch;
}

/* ==========================================================================
   3 · Closing photograph — full width, its own ratio, no crop.
   ========================================================================== */
.fp-photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .fp-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-benefit__copy { max-width: 34ch; }
}

@media (max-width: 560px) {
  /* Two up rather than one — eight benefits in a single column ran very long. */
  .fp-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 5vw, 2.25rem) clamp(0.75rem, 3vw, 1.5rem); }
  .fp-benefit__copy { max-width: none; }   /* the column is the measure now */
  /* Same half-above-the-line placement, just wider relative to the viewport. */
  .fp-benefits__rings { width: 150%; }
}
