/* ==========================================================================
   VIP System: style.css (home page only)

   NEEDS site.css LINKED FIRST. Tokens (colours, spacing, type scale),
   reset, buttons, header, footer and the contact modal all live there.

   CONTENTS
   1.  Hero (two columns: photo + content)
   2.  Info blocks (the four repeating sections)
   3.  Stats bar (four photo tiles)
   4.  Closing call to action
   5.  Responsive layout
   ========================================================================== */


/* -----------------------------------------
   1. Hero (two columns: photo + content)
----------------------------------------- */
/* The hero and stats bar run edge to edge, so they don't use the .wrap
   column. They stop growing at 1920px and centre on wider or zoomed-out
   screens; on anything up to 1920px they look exactly as before. */
.hero {
  display: grid;
  grid-template-columns: 1fr 2fr;
  max-width: 1920px;
  margin: 0 auto;
}

.hero-media {
  background-color: var(--color-black); /* shown if the image path is wrong or still loading */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: right 25%;
  min-height: 600px;
}

.hero-content {
  padding: 3rem clamp(1.5rem, 5vw, 4rem);
  margin-left: 80px;
  max-width: 100%;
}

.hero-intro__line {
  font-size: clamp(5rem, 8vw, 9rem);
  line-height: 0.9;
  font-weight: bold;
  letter-spacing: -0.03em;
}

.hero-intro__line--dark {
  color: var(--color-black);
  margin-left: clamp(-80px, -6vw, 0px);
  margin-bottom: -0.25rem;
}

.hero-intro__line--grey {
  color: var(--color-grey-hero-light);
  margin-bottom: 3rem;
}

.hero-intro p {
  max-width: 50ch;
  color: var(--color-black);
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 80px;
  margin-left: clamp(0px, 6vw, 70px);
}


/* -----------------------------------------
   2. Info blocks (the four repeating sections)
----------------------------------------- */
.info-blocks {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.info-block {
  display: grid;
  grid-template-columns: 2rem 1fr;
  column-gap: 0.75rem;
}

.info-block__marker {
  color: var(--color-yellow);
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  padding-top: 0.22rem;
  -webkit-text-stroke: 3px currentColor;
}

.info-block__content {
  margin-left: -10px;
  min-width: 0;
}

.info-block__content h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.info-block__content p {
  color: var(--color-black);
  max-width: 55ch;
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 10px;
}


/* -----------------------------------------
   3. Stats bar
   Each tile sets its own photo with an inline style in the HTML.
   The ::before veil sits between the photo and the text so the
   text stays readable over any image.
----------------------------------------- */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  width: 100%;
  max-width: 1920px;
  margin: 0.75rem auto;
  padding: 0 0.75rem;
}

.stats__tile {
  position: relative;
  color: var(--color-white);
  aspect-ratio: 1 / 1;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6%;
  overflow: hidden;
  background-color: var(--color-black); /* shown if an image path is wrong or still loading */
  background-size: cover;
  background-position: center;
}

.stats__tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--veil-medium);
  z-index: 1;
}

.stats__text {
  position: relative;
  z-index: 2;
}

.stats__figure {
  font-size: clamp(1.1rem, 12cqw, 3.5rem);
  font-weight: bold;
  margin-bottom: 2%;
}

.stats__caption {
  font-size: clamp(0.7rem, 5cqw, 1rem);
  opacity: 0.85;
}

.stats__link {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  width: 14cqw;
  height: 14cqw;
  min-width: 2rem;
  min-height: 2rem;
  max-width: 3rem;
  max-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-yellow);
  color: var(--color-black);
  border-radius: 50%;
  font-size: clamp(1rem, 6cqw, 2rem);
  font-weight: bold;
  transition: transform 0.15s ease;
  -webkit-text-stroke: 1.5px currentColor;
}

.stats__link:hover { transform: scale(1.08); }


/* -----------------------------------------
   4. Closing call to action
----------------------------------------- */
.closing-call {
  background-color: var(--color-grey-band);
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
}

.closing-call h2 {
  font-size: clamp(1.75rem, 6vw, 3.5rem);
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.closing-call p {
  max-width: 60ch;
  margin: 0 auto var(--gap-lg);
  color: var(--color-grey-text);
  font-size: clamp(0.95rem, 2vw, 1.25rem);
}


/* -----------------------------------------
   5. Responsive layout
----------------------------------------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 320px; }

  .hero-content { margin-left: 0; }
  .hero-intro__line--dark { margin-left: 0; }
  .hero-intro p { margin-left: 0; margin-bottom: 3rem; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero-media { min-height: 240px; }
  .hero-content { padding: 2rem 1.25rem; }

  .info-block { grid-template-columns: 1.5rem 1fr; column-gap: 0.5rem; }
  .info-block__content { margin-left: 0; }

  .stats__grid { grid-template-columns: 1fr; }

  .btn--cta { width: 100%; }
}

/* ==========================================================================
   6. RESPONSIVE FIXES (October 2026)
   Added on top of everything above. No earlier rule has been edited.
   ========================================================================== */

/* Small laptops and tablets in landscape: the fixed 80px left margin
   squeezed the hero text column. It now shrinks with the screen. */
@media (min-width: 901px) and (max-width: 1280px) {
  .hero-content { margin-left: clamp(0px, 4vw, 80px); }
}

/* Phones: the hero headline had a minimum size of 5rem (80px), so
   "Hard to fake." ran off the side of small phones. It now scales down. */
@media (max-width: 640px) {
  .hero-intro__line { font-size: clamp(2.75rem, 14vw, 5rem); }
  .hero-intro__line--grey { margin-bottom: 2rem; }
}