/* ==========================================================================
   About page (page-about.php). Loaded on the About page only.
   Desktop numbers = Figma "About us" (1440).
   Phone numbers (600px block) = Figma "About us_responsive" (402), from the
   SVG export the user dropped in Downloads on 19 Nov 2026. Tablet is in between.
   The banner (.page-banner) and careers panel (.cta) live in style.css.
   ========================================================================== */

/* Introduction (Figma 1440 x 600: text 730 wide, video 710 wide) ----------- */
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 730fr) minmax(0, 710fr);
  min-height: 600px;
}
.about-intro__text {
  /* Left edge lines up with the page container on screens wider than 1440 */
  padding: 70px 60px 70px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.about-intro__title { max-width: 435px; margin-bottom: 20px; }
.about-intro__paragraph { max-width: 610px; font-size: var(--fs-text); line-height: var(--lh-text); }
.about-intro__paragraph + .about-intro__paragraph { margin-top: 20px; }
.about-intro__media { position: relative; overflow: hidden; background: var(--color-grey); }
.about-intro__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* The GreenShield Advantage (6 cards of 427 x 242) ------------------------- */
.advantage { padding: 80px 0; }
.advantage__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 20px; margin: 0; padding: 0; list-style: none; }
.advantage-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  min-height: 242px;
  padding: 18px; /* 20px minus the 2px border */
  border: 2px solid transparent;
  border-radius: var(--radius-card);
  /* Figma "Subtract": gradient fill + gradient 2px border */
  background:
    linear-gradient(166.18deg, var(--color-primary) 10%, var(--color-primary-deep) 146.4%) padding-box,
    linear-gradient(155.14deg, var(--color-primary) 6.4%, var(--color-primary-darkest) 108.6%) border-box;
  color: var(--color-white);
}
.advantage-card__icon { width: auto; height: 60px; }
.advantage-card__title { font-size: var(--fs-card); font-weight: 600; line-height: 1.09; }
.advantage-card__text { font-size: var(--fs-text); line-height: var(--lh-text); }

/* The Leadership (cards 315 x 360 + name) ---------------------------------- */
.leadership { padding: 80px 0; background: var(--color-grey); }
/* Cards keep their 4-per-row width and centre, so 3 people sit in the middle */
.team-grid { --team-cols: 4; --team-gap: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 30px var(--team-gap); margin: 0; padding: 0; list-style: none; }
.team-grid > li { flex: 0 0 calc((100% - (var(--team-cols) - 1) * var(--team-gap)) / var(--team-cols)); min-width: 0; }
.team-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 315 / 360;
  border-radius: var(--radius-panel);
  background: var(--color-white) url("../images/bg-texture.jpg") center / cover no-repeat;
  isolation: isolate; /* the photo blends with this card only */
}
/* Portrait: 246 x 346 box, standing on the bottom edge. The photos have a
   white background, so "multiply" lets the card texture show through the
   white instead of leaving a white box around the person. */
.team-card__photo {
  mix-blend-mode: multiply;
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 78.1%;
  height: 96.1%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
}
/* A photo with its own background (not a cut-out) fills the whole card,
   head kept in view; no blend, so the texture doesn't print onto it. */
.team-card__media--fill .team-card__photo {
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  transform: none;
  mix-blend-mode: normal;
}
/* Teal fade over the lower half (Figma "Rectangle 9", 171px of 360) */
.team-card__media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 47.5%;
  background: linear-gradient(183.6deg, rgba(255, 255, 255, 0) 14.417%, var(--color-primary) 94.808%);
}
.team-card__info { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 12px; padding: 12px 10px 0; }
.team-card__name { font-size: var(--fs-lead); font-weight: 500; line-height: var(--lh-lead); }
.team-card__linkedin { grid-column: 2; grid-row: 1; margin-bottom: -2px; border-radius: 6px; } /* 32px icon in a 30px row */
.team-card__linkedin img { width: 32px; height: 32px; }
.team-card__linkedin:hover { opacity: .8; }
.team-card__role { grid-column: 1 / -1; margin-top: 4px; font-size: var(--fs-text); line-height: var(--lh-text); }

/* Arrows for the sideways team row: phones only (main.js "Scroller") */
.team-slider__arrows { display: none; }

/* Careers banner (Figma 1320 x 304) ----------------------------------------- */
.careers { padding: 80px 0; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .about-intro { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .about-intro__text { padding: 64px var(--gutter); }
  .about-intro__title { max-width: none; }
  .about-intro__media { aspect-ratio: 16 / 10; }
  .advantage,
  .leadership,
  .careers { padding: 64px 0; }
  .advantage__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { --team-cols: 2; }
}

@media (max-width: 600px) {
  /* Body copy is 16 / 23.2 (145%) in the mobile frame, larger than the home page's 14 */
  .about-intro__paragraph,
  .advantage .section-head__text,
  .leadership .section-head__text { font-size: 16px; line-height: 1.45; }

  /* Intro: text, then the photo full width, 402 x 340 */
  .about-intro__text { padding: 50px var(--gutter) 16px; }
  .about-intro__title { max-width: 280px; margin-bottom: 16px; } /* breaks after "Protect." as in Figma */
  .about-intro__paragraph + .about-intro__paragraph { margin-top: 14px; }
  .about-intro__media { aspect-ratio: 402 / 340; }

  .advantage,
  .leadership,
  .careers { padding: 50px 0; }
  .advantage .section-head,
  .leadership .section-head { max-width: none; }
  .advantage .section-head .section-title,
  .leadership .section-head .section-title { margin-bottom: 16px; }
  .advantage .section-head { margin-bottom: 36px; }
  .leadership .section-head { margin-bottom: 32px; }

  /* Advantage: full-width cards, 228 tall, 24 apart */
  .advantage__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .advantage-card { gap: 18px; min-height: 228px; padding: 18px; } /* 20px minus the 2px border */
  .advantage-card__icon { height: 50px; }
  .advantage-card__title { font-size: 20px; line-height: 1.09; }
  .advantage-card__text { font-size: 16px; line-height: 24px; }

  /* Team: one row of 236px cards, 16 apart, running off the right edge */
  .team-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 16px;
    margin-right: calc(var(--gutter) * -1);
    padding-right: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .team-grid::-webkit-scrollbar { display: none; }
  .team-grid > li { flex: 0 0 236px; scroll-snap-align: start; }
  .team-card__media { border-radius: 10px; }
  .team-card__info { padding: 7px 4px 0; column-gap: 8px; }
  .team-card__linkedin img { width: 24px; height: 24px; }
  .team-slider__arrows { display: flex; justify-content: center; margin-top: 38px; }
}
