/* ================================================================
   ACTIVE HYDRAULICS — MEET THE TEAM
   FRAMEWORK MASTER:
   - styles/global.css = site-wide framework
   - styles/home.css   = locked homepage/service dimensions
   This file contains ONLY team-page-specific styling.
   ================================================================ */

/* ------------------------------------------------
   TEAM HERO
   Uses the same compact framework as the Home/Services heroes.
   ------------------------------------------------ */
.team-hero{
  position:relative;
  padding:0;
  min-height:0;
  color:#fff;
  overflow:hidden;
  background:var(--navy);
}
.team-hero-image{
  position:absolute;
  inset:0;
  z-index:0;
  background:
    linear-gradient(90deg,
      rgba(6,27,43,.97) 0%,
      rgba(6,27,43,.88) 30%,
      rgba(6,27,43,.40) 58%,
      rgba(6,27,43,.08) 100%),
    url('team-hero-image.png') center 50% / cover no-repeat;
}
.team-hero-copy{
  position:relative;
  z-index:1;
  display:flex;
  align-items:stretch;
  width:100%;
}
.team-hero-copy-inner{
  padding:28px 0 34px;
}
.team-hero .eyebrow{margin-bottom:14px}
.team-hero h1{
  max-width:820px;
  margin:0 0 18px;
  font-size:clamp(50px,5.1vw,78px);
  line-height:.98;
  letter-spacing:-.055em;
  font-weight:800;
}
.team-hero-sub{
  max-width:690px;
  margin:0 0 8px;
  color:#fff;
  font-size:18px;
  line-height:1.45;
  font-weight:800;
}
.team-hero-body{
  max-width:690px;
  margin:0 0 24px;
  color:#e0edf4;
  font-size:18px;
  line-height:1.45;
}
.team-hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.team-hero-actions .btn{
  min-height:46px;
}

/* ------------------------------------------------
   TEAM INTRO
   ------------------------------------------------ */
.team-section{
  background:#fff;
  padding-top:68px;
  padding-bottom:72px;
}
.team-intro{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);
  gap:90px;
  align-items:end;
  margin-bottom:36px;
}
.team-intro h2{
  margin:0;
  font-family:Manrope,Inter,sans-serif;
  font-size:clamp(42px,4.1vw,61px);
  line-height:.98;
  letter-spacing:-.05em;
  font-weight:800;
}
.team-intro-copy{
  margin:0 0 5px;
  color:var(--muted);
  font-size:16px;
  line-height:1.48;
}

/* ------------------------------------------------
   PEOPLE
   ------------------------------------------------ */
.people-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.person-card{
  display:grid;
  grid-template-columns:210px minmax(0,1fr);
  min-width:0;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 1px 0 rgba(0,0,0,.02);
}
.person-card:not(.person-wide){min-height:310px}
.person-photo{
  min-width:0;
  background:#eef4f7;
  display:flex;
}
.person-photo img{
  width:100%;
  height:100%;
  min-height:100%;
  object-fit:cover;
}
.person-content{
  min-width:0;
  padding:24px 25px 23px;
}
.person-name{
  margin:0;
  color:var(--ink);
  font-size:23px;
  line-height:1.05;
  font-weight:800;
  letter-spacing:-.025em;
}
.person-role{
  margin:5px 0 13px;
  color:var(--blue);
  font-size:12px;
  line-height:1.2;
  font-weight:900;
}
.person-bio{
  margin:0;
  color:#52687b;
  font-size:13.5px;
  line-height:1.52;
}
.person-detail{
  display:grid;
  grid-template-columns:24px minmax(0,1fr);
  gap:8px;
  align-items:start;
  margin-top:14px;
  color:#52687b;
  font-size:11.8px;
  line-height:1.43;
}
.detail-icon{
  color:var(--blue);
  font-size:18px;
  line-height:1;
  text-align:center;
  margin-top:1px;
}
.detail-title{
  display:block;
  margin:0 0 2px;
  color:var(--ink);
  font-size:11.8px;
  font-weight:900;
}
.person-wide{
  grid-column:1/-1;
  grid-template-columns:198px minmax(0,1fr);
}
.person-wide .person-content{padding:23px 25px}
.person-wide-content{
  display:grid;
  grid-template-columns:1.5fr .9fr;
  gap:38px;
}
.person-wide .person-detail{margin-top:0}
.person-wide .wide-detail-group{
  padding-top:1px;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.person-wide .wide-detail-group .person-detail{
  margin-top:0;
}
.person-wide .wide-detail-group .detail-title{
  margin-bottom:4px;
}
.person-wide .wide-detail-group .person-detail{
  line-height:1.5;
}

.person-photo img[src*="mark-littler"],
.person-photo img[src*="nathan-green"]{object-position:center top}
.person-wide .person-photo img[src*="craig-dawber"]{object-position:center 22%}

/* Team CTA/footer inherit the master global.css styles. */

/* ------------------------------------------------
   RESPONSIVE — keep the same breakpoints as the master site
   ------------------------------------------------ */
@media (max-width:1200px){
  .person-card{grid-template-columns:195px minmax(0,1fr)}
  .person-wide{grid-template-columns:195px minmax(0,1fr)}
}
@media (max-width:1000px){
  .team-hero h1{font-size:clamp(46px,7vw,64px)}
  .team-intro{grid-template-columns:1fr;gap:14px}
  .people-grid{grid-template-columns:1fr}
  .person-wide{grid-column:auto}
}
@media (max-width:650px){
  .team-hero-copy-inner{padding:38px 0 36px}
  .team-hero h1{font-size:48px}
  .team-hero-sub{font-size:17px}
  .team-hero-body{font-size:17px}
  .team-section{padding-top:38px;padding-bottom:46px}
  .team-intro h2{font-size:40px}
  .team-intro-copy{font-size:15px}
  .team-intro{margin-bottom:22px}

  /* Mobile team photos:
     Give headshots more vertical room so hair/foreheads are not
     cropped by the fixed landscape-style image box. */
  .person-card,.person-wide{grid-template-columns:1fr}
  .person-photo{
    width:100%;
    aspect-ratio:4 / 3;
    overflow:hidden;
  }
  .person-photo img{
    width:100%;
    height:100%;
    min-height:0;
    object-fit:cover;
    object-position:center top;
    display:block;
  }

  /* Keep individual headshots naturally biased towards the top. */
  .person-photo img[src*="andy-byrom"],
  .person-photo img[src*="mark-littler"],
  .person-photo img[src*="nathan-green"],
  .person-photo img[src*="angela_halliday"],
  .person-photo img[src*="craig-dawber"]{
    object-position:center top;
  }

  .person-content,.person-wide .person-content{padding:16px}
  .person-wide-content{grid-template-columns:1fr;gap:8px}
  .person-card:not(.person-wide){min-height:0}
}
