/* =========================================================
   ILTS — Team Page Styles (team.css)
   ========================================================= */

/* ---- PAGE HERO ---- */
.page-hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transform: scale(1.05);
  transition: transform 6s ease;
}
.page-hero:hover .page-hero-img { transform: scale(1); }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(21,32,51,0.5) 0%, rgba(21,32,51,0.82) 100%);
}
.page-hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  padding-bottom: 50px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.page-hero-content .section-label { color: var(--gold-lt, #ddb96e); margin-bottom: 10px; }
.page-hero-content .section-label::before { background: var(--gold-lt, #ddb96e); }
.page-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(46px, 6vw, 72px);
  font-weight: 900; color: #ffffff;
  text-transform: uppercase; letter-spacing: -0.01em;
  line-height: 1; margin-bottom: 10px;
}
.page-hero-accent { color: transparent; -webkit-text-stroke: 2px #ffffff; }
.page-hero-sub { font-size: 16px; color: rgba(255,255,255,0.75); }
.page-breadcrumb {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.page-breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.page-breadcrumb a:hover { color: var(--gold); }
.page-breadcrumb i { font-size: 10px; color: var(--gold); }
.page-breadcrumb span { color: #ffffff; }

/* ---- TEAM INTRO ---- */
.team-intro { background: var(--off-white); }

/* ---- CEO FEATURED CARD WRAPPER ---- */
.team-ceo-wrap {
  max-width: 900px;
  margin: 0 auto 32px;
}

/* ---- BASE TEAM CARD ---- */
.team-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--gray);
  box-shadow: 0 4px 20px rgba(21,32,51,0.06);
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
  display: flex;
  flex-direction: column;
}
.team-card:hover {
  box-shadow: 0 24px 60px rgba(21,32,51,0.14);
  border-color: transparent;
}

/* ---- CEO CARD — HORIZONTAL LAYOUT ---- */
.team-card-ceo {
  flex-direction: row;
  min-height: 360px;
  border: 2px solid var(--gray);
  position: relative;
}
.team-card-ceo::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(to bottom, var(--navy), var(--gold));
  border-radius: 20px 0 0 20px;
  z-index: 2;
}
.team-card-ceo:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(21,32,51,0.16);
  border-color: transparent;
}

/* CEO image — left side fixed width */
.team-card-ceo .team-card-img-wrap {
  width: 320px;
  flex-shrink: 0;
  height: auto;
  min-height: 360px;
}

/* CEO body — right side */
.team-card-ceo .team-card-body {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0;
}
.team-card-body-inner {
  padding: 40px 44px;
  width: 100%;
}

/* CEO eyebrow label */
.team-card-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

/* CEO stats row */
.team-ceo-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--gray);
}
.ceo-stat {
  padding: 0 24px;
  text-align: center;
}
.ceo-stat:first-child { padding-left: 0; }
.ceo-stat strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.ceo-stat span {
  font-size: 12px;
  color: var(--text-lt);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ceo-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray);
  flex-shrink: 0;
}

/* ---- SMALLER CARDS GRID (MD + Ops) ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

/* ---- SHARED IMAGE STYLES ---- */
.team-card-img-wrap {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: var(--navy);
  flex-shrink: 0;
}
.team-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}
.team-card:hover .team-card-img { transform: scale(1.05); }
.team-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(21,32,51,0.6) 100%);
}

/* Placeholder for members without photo */
.team-card-img-placeholder-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
}
.team-img-placeholder {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 3px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 48px;
  position: relative;
  z-index: 1;
}

/* Role tag */
.team-role-tag {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--gold);
  color: #ffffff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 30px;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(196,154,60,0.4);
}
.team-role-tag-ops {
  background: var(--navy-mid, #1e3a5f);
}

/* ---- CARD BODY (shared) ---- */
.team-card-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.team-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.team-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin-bottom: 5px;
}
/* CEO name larger */
.team-card-ceo .team-name {
  font-size: 28px;
  margin-bottom: 6px;
}
.team-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.team-icon-wrap {
  width: 42px; height: 42px;
  background: rgba(21,32,51,0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 16px;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}
.team-card:hover .team-icon-wrap { background: var(--navy); color: var(--gold); }

/* Divider */
.team-divider {
  width: 38px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 14px;
  transition: width 0.4s;
}
.team-card:hover .team-divider { width: 65px; }

/* Quote */
.team-quote {
  font-size: 14px;
  color: var(--text-lt);
  line-height: 1.8;
  font-style: italic;
}

/* ---- VALUES STRIP ---- */
.team-values {
  background: var(--navy);
  padding: 60px 0;
}
.team-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.team-value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background 0.3s;
}
.team-value-item:last-child { border-right: none; }
.team-value-item:hover { background: rgba(255,255,255,0.04); }
.value-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 20px;
  margin-bottom: 14px;
  transition: background 0.3s, transform 0.3s;
}
.team-value-item:hover .value-icon {
  background: var(--gold); color: #ffffff;
  transform: rotate(-8deg) scale(1.1);
}
.team-value-item strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px; font-weight: 800; color: #ffffff;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.team-value-item span { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.5; }

/* ---- CTA ---- */
.sd-cta {
  background: var(--navy);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.sd-cta::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.sd-cta-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.sd-cta-text .section-label { color: var(--gold-lt, #ddb96e); margin-bottom: 10px; }
.sd-cta-text .section-label::before { background: var(--gold-lt, #ddb96e); }
.sd-cta-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 900; color: #ffffff;
  text-transform: uppercase; letter-spacing: -0.01em;
  line-height: 1.05; margin-bottom: 8px;
}
.sd-cta-sub { font-size: 15px; color: rgba(255,255,255,0.65); }
.sd-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  /* CEO card stacks vertically on tablet */
  .team-card-ceo {
    flex-direction: column;
  }
  .team-card-ceo .team-card-img-wrap {
    width: 100%;
    height: 320px;
    min-height: unset;
  }
  .team-card-ceo::before {
    width: 100%; height: 4px;
    border-radius: 20px 20px 0 0;
    top: 0; left: 0;
  }
  .team-card-body-inner { padding: 30px 28px; }
  .team-card-ceo .team-name { font-size: 24px; }
  .ceo-stat { padding: 0 16px; }
  .ceo-stat strong { font-size: 22px; }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .team-card-img-wrap { height: 280px; }
  .team-values-grid { grid-template-columns: repeat(2, 1fr); }
  .team-value-item:nth-child(2) { border-right: none; }
  .team-value-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.1); border-right: 1px solid rgba(255,255,255,0.1); }
  .team-value-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.1); border-right: none; }
  .page-hero { height: 320px; }
  .page-hero-inner { flex-direction: column; align-items: flex-start; padding-bottom: 28px; }
  .team-ceo-wrap { margin-bottom: 24px; }
}

@media (max-width: 480px) {
  .team-card-img-wrap { height: 250px; }
  .team-ceo-stats { flex-wrap: wrap; gap: 16px; }
  .ceo-stat-divider { display: none; }
  .ceo-stat { padding: 0; min-width: 30%; }
  .sd-cta-inner { flex-direction: column; align-items: flex-start; }
  .sd-cta-actions { width: 100%; }
  .sd-cta-actions a { flex: 1; justify-content: center; }
  .page-hero { height: 260px; }
  .page-hero-title { font-size: 42px; }
}