/* ============================================================
   Statera — Team page
   Sections: hero, team grid, leadership, cta
   ============================================================ */

/* ---------- Hero ---------- */
.team-hero {
  padding: 60px var(--gutter);
}
.team-hero__panel {
  background: var(--green-pale);
  border-radius: var(--radius-lg);
  overflow: clip;
  padding: 79px 277px;
}
.team-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 45px;
}

body.wp-theme-statera .team-hero__eyebrow {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  color: #4F555C;
  white-space: nowrap;
}
.team-hero__title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  color: var(--black);
}

body.wp-theme-statera .team-hero__title {
  font-size: 54px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1.62px;
}
.team-hero__intro {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.54px;
  max-width: 466.204px;
}

/* ---------- Team grid ---------- */
.team-grid-section {
  padding: 70px 10px;
}
.team-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 86px;
  row-gap: 62px;
}
.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.team-card__photo {
  position: relative;
  width: 100%;
  height: 374px;
  background: #F6F5F2;
  border-radius: 21px;
  overflow: clip;
}
/* Photo crop positions come from the design per-card via inline custom props */
.team-card__photo > img,
.team-leadership__photo > img {
  position: absolute;
  left: calc(50% + var(--img-dx, 0px));
  top: var(--img-top, calc(50% + var(--img-dy, 0px)));
  width: var(--img-w, 100%);
  height: var(--img-h);
  max-width: none;
  object-fit: cover;
  transform: translate(-50%, var(--img-ty, -50%));
  pointer-events: none;
  height: inherit;
}
.team-card__disc {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
  overflow: clip;
}
.team-card__disc img {
  width: 18px;
  height: 18px;
}
.team-card__meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

body.wp-theme-statera .team-card__name {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--black);
}
/* Card 1 (Mike Bornstein) carries the underline as a static design choice,
   independent of hover. */
.team-card__name--underlined {
  text-decoration: underline;
}
/* Hover-only, guarded: on touch there is no hover-intent to release a
   :hover state, so an unguarded rule here reads as a name staying
   underlined/"selected" after the user has already tapped away. */
@media (hover: hover) and (pointer: fine) {
  .team-card:hover .team-card__name {
    text-decoration: underline;
  }
}
  .team-card:active .team-card__name {
    text-decoration: underline;
  }

.team-card__credentials {
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
  color: var(--footer-ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Hand-drawn accent on the first card only */
/* ---------- Leadership ----------
   Restructured to match the About page leadership pattern: two cards,
   each with a leader photo + name/role + button, stacked on mobile.
   ---------- */
.team-leadership {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 70px;
  background: var(--fog);
  padding: 100px 24px;
}
.team-leadership .section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
  width: 100%;
  max-width: var(--content-max);
}
.team-leadership .section-head-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

body.wp-theme-statera .team-leadership .section-head-title h2 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1.44px;
  color: #2B2B29;
}
.team-leadership .section-sub {
  max-width: 511px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--black);
}

body.wp-theme-statera .team-leadership .eyebrow-sm {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  color: #686E76;
}
.team-leadership .leader-grid {
  display: flex;
  gap: 46px;
  align-items: stretch;
  width: 100%;
  max-width: var(--content-max);
}
.team-leadership .leader-card {
  width: 549px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 30px;
  background: var(--footer-ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex: 1 1 0;
}
.team-leadership .leader-photo {
  height: 455px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex: none;
}
.team-leadership .leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-leadership .leader-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 60px;
}
.team-leadership .leader-text {
  display: flex;
  flex-direction: column;
  gap: 34px;
  color: var(--white);
}
.team-leadership .leader-name-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.wp-theme-statera .team-leadership .leader-name {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.6px;
}
.team-leadership .leader-role {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  opacity: .6;
}
.team-leadership .btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  gap: 10px;
  height: 50px;
  padding: 0 20px;
  background: var(--white);
  border: none;
  border-radius: 80px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.16px;
  color: var(--black);
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.team-leadership .btn-light:focus-visible { background: var(--green-accent); color: var(--black); }
/* Hover-only, guarded: touch has no hover-intent to release a :hover state,
   so an unguarded rule reads as the button staying "pressed" after a tap. */
@media (hover: hover) and (pointer: fine) {
  .team-leadership .btn-light:hover { background: var(--green-accent); color: var(--black); }
}
  .team-leadership .btn-light:active { background: var(--green-accent); color: var(--black); }

.team-leadership .btn-light-label { display: inline-block; line-height: 1; }
.team-leadership .btn-light img { display: block; width: 24px; height: 24px; flex: none; transform: scaleX(-1); }

/* ---------- CTA ---------- */
.team-cta {
  padding: 100px 152px 54px;
}
.team-cta__card {
  background: var(--green-pale);
  border-radius: var(--radius-lg);
  overflow: clip;
  display: flex;
  align-items: center;
  gap: 40px;
  height: 590px;
  padding: 30px 30px 30px 50px;
}
.team-cta__content {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.team-cta__text {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 542px;
  max-width: 100%;
}

body.wp-theme-statera .team-cta__eyebrow {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  color: #686E76;
  white-space: nowrap;
}

body.wp-theme-statera .team-cta__title {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1.44px;
  color: var(--black);
}
.team-cta__intro {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--black);
  max-width: 448.529px;
}
.team-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
/* CTA button reuses .btn-primary but with a blue disc + right-facing arrow */
.team-cta .btn-disc { background: var(--signal-blue);
    border-radius: 0 999px 999px 0;
    transition: background .2s ease; }
.team-cta .btn-disc img { transform: scaleX(-1); }
/* Hover-only, guarded: touch has no hover-intent to release a :hover state,
   so an unguarded rule reads as the disc staying "pressed" after a tap. */
@media (hover: hover) and (pointer: fine) {
  .team-cta .btn-primary:hover .btn-disc {
    background: var(--green-accent);
  }
}
  .team-cta .btn-primary:active .btn-disc {
    background: var(--green-accent);
  }

.team-cta__note {
  font-family: 'Inter Display', var(--font);
  font-size: 14px;
  font-weight: 500;
  color: #8C9095;
}
.team-cta__photo {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: clip;
}
.team-cta__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Elementor widget overrides ----------
   The drag-and-drop widgets live inside full-width Elementor containers,
   so we neutralise the theme's outer gutters and fine-tune spacing to the
   Team Main design.
   ---------- */
.elementor-widget-statera-team-hero .team-hero {
  margin-top: 70px;
  padding: 60px 0;
  max-width: var(--content-max);
  margin: 0 auto;
}
.elementor-widget-statera-team-hero .team-hero__panel {
  width: 100%;
  padding-top: 93px;
  padding-bottom: 93px;
}
.elementor-widget-statera-team-grid .team-grid-section {
  padding: 70px 0;
}
.elementor-widget-statera-team-cta .team-cta {
  padding-bottom: 0;
  margin-bottom: 54px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .team-hero { padding: 40px 60px; }
  .team-hero__panel { padding: 60px 48px; }
  .elementor-widget-statera-team-hero .team-hero { margin-top: 40px; padding: 40px 0; }
  .elementor-widget-statera-team-hero .team-hero__panel { padding: 60px 48px; }
  .elementor-widget-statera-team-grid .team-grid-section { padding: 40px 0; }
  .team-grid { column-gap: 32px; }
  .team-leadership { gap: 48px; }
  .team-leadership .leader-grid { gap: 24px; }
  .team-leadership .leader-card { width: auto; flex: 1 1 0; }
  .team-cta { padding: 60px 60px 40px; }
.team-cta__card {
    height: auto;
  flex-direction: column;
  align-items: stretch;
    padding: 40px;
}
  .team-cta__text { width: 100%; }
  .team-cta__photo { height: 360px; }
}

@media (max-width: 900px) {
  .team-hero { padding: 30px 24px; }
  .team-hero__panel { padding: 48px 24px; }
  .elementor-widget-statera-team-hero .team-hero { margin-top: 30px; padding: 30px 24px; }
  .elementor-widget-statera-team-hero .team-hero__panel { padding: 48px 24px; }
  .elementor-widget-statera-team-grid .team-grid-section { padding: 30px 24px; }
  .elementor-widget-statera-team-cta .team-cta { padding: 40px 24px 0; margin-bottom: 30px; }

body.wp-theme-statera .team-hero__title { font-size: 38px; letter-spacing: -1px; }

  .team-grid-section { padding: 30px 24px; }
.team-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 48px;
}
.team-card__photo {
    height: 320px;
}
  /* Reset desktop-specific the design crop coordinates so faces stay centered
   in the narrower mobile card. */
  .team-card__photo > img {
    left: 50%;
    top: 50%;
  width: 100%;
  height: 100%;
    transform: translate(-50%, -50%);
    object-position: center 20%;
}
    .team-leadership { padding: 60px 24px; gap: 48px; }

body.wp-theme-statera .team-leadership .section-head-title h2 { letter-spacing: -0.8px; }
  .team-leadership .leader-grid { flex-direction: column; gap: 24px; }
  .team-leadership .leader-card { width: 100%; flex: none; gap: 32px; padding: 24px; }
  .team-leadership .leader-photo { height: 360px; }
  .team-leadership .leader-info { gap: 32px; }
  .team-leadership .leader-text { gap: 20px; }

  .team-cta { padding: 40px 24px; }
  .team-cta__card { padding: 24px; gap: 30px; }

body.wp-theme-statera .team-cta__title { letter-spacing: -0.8px; }
  .team-cta__photo { height: 280px; }
}

@media (max-width: 600px) {
  .team-hero { padding: 20px 20px; }
  .team-hero__panel { padding: 32px 20px; }
  .elementor-widget-statera-team-hero .team-hero { margin-top: 20px; padding: 20px 20px; }
  .elementor-widget-statera-team-hero .team-hero__panel { padding: 32px 20px; }
  .elementor-widget-statera-team-grid .team-grid-section { padding: 24px 20px; }
  .elementor-widget-statera-team-cta .team-cta { padding: 32px 20px 0; }
  .team-hero__content { gap: 24px; }

body.wp-theme-statera .team-hero__title { font-size: 28px; letter-spacing: -0.7px; }
  .team-hero__intro { font-size: 16px; letter-spacing: -0.32px; }

  .team-grid-section { padding: 24px 20px; }
  /* One column, not two, at mobile. The site's mobile system (file
     sxOTqM7HfYLXDnt0sEItgn, frame 40:5175 "Mobile") runs its stacked cards
     at the full 350px content width (frame 40:5183 "Frame 2147233887" is
     350px wide), not half of it. At a 390px viewport the content column is
     only 350px (20px gutter each side); a two-up grid would squeeze each
     portrait to ~165px, too narrow to keep a name and role legible
     underneath without truncating or overlapping. Full-width single-column
     portraits match that system and keep every name/role on one clean line. */
  .team-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    /* "Gap between stacked cards: 30px" per the mobile system — measured
       from frame 40:5182 (y:0, h:545) to frame 40:5189 (y:575). */
    row-gap: 30px;
  }
  .team-card { gap: 12px; }
  /* 272px matches the mobile system's card image block, 350x272
     (frame 40:5183 "Frame 2147233887"). */
  .team-card__photo { height: 272px; border-radius: 16px; }

body.wp-theme-statera .team-card__name { font-size: 18px; }
  .team-card__credentials { font-size: 13px; }
  .team-card__disc { width: 36px; height: 36px; }
  .team-card__disc img { width: 16px; height: 16px; }

  .team-leadership { padding: 40px 20px; gap: 32px; }

body.wp-theme-statera .team-leadership .section-head-title h2 { letter-spacing: -0.65px; }
  .team-leadership .section-sub { font-size: 16px; }
  .team-leadership .leader-grid { gap: 16px; }
  .team-leadership .leader-card { gap: 24px; padding: 20px; }
  .team-leadership .leader-photo { height: 280px; }
  .team-leadership .leader-info { gap: 24px; }
  .team-leadership .leader-text { gap: 16px; }

body.wp-theme-statera .team-leadership .leader-name { font-size: 24px; letter-spacing: -0.4px; }
  .team-leadership .leader-role { font-size: 17px; }
  .team-leadership .btn-light { height: 46px; font-size: 15px; }
  .team-leadership .btn-light img { width: 20px; height: 20px; }

  .team-cta { padding: 32px 20px; }
  .team-cta__card { padding: 20px; gap: 24px; }
  .team-cta__content { gap: 32px; }
  .team-cta__text { gap: 16px; }

body.wp-theme-statera .team-cta__title { letter-spacing: -0.65px; }
  .team-cta__intro { font-size: 16px; }
  .team-cta__photo { height: 220px; border-radius: 16px; }
}

/* ============================================================
   Leadership — one navy card: two portraits left, copy right.
   Card 1150 x 590 at x179, padding 30, gap 50.
   ============================================================ */
.team-leadership {
  padding: 100px var(--gutter);
}

.team-lead-card {
  display: flex;
  align-items: center;
  gap: 50px;
  height: 590px;
  padding: 30px;
  background: var(--footer-ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.team-lead-photos {
  flex: 1 1 0;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-lead-photo {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.team-lead-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-lead-body {
  width: 449px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 173px;
}

.team-lead-top {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 100%;
}

.team-lead-head {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}

body.wp-theme-statera .team-lead-eyebrow {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  color: #D7D7D7;
  white-space: nowrap;
}

body.wp-theme-statera .team-lead-title {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1.44px;
  color: var(--white);
}

.team-lead-intro {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--white);
}

.team-lead-owners {
  display: flex;
  align-items: center;
  gap: 30px;
  width: 438px;
  max-width: 100%;
}

.team-lead-owner {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--white);
}

body.wp-theme-statera .team-lead-owner-name { font-size: 18px; font-weight: 600; }

.team-lead-owner-role {
  font-size: 16px;
  font-weight: 500;
  opacity: .7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-lead-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, .3);
  flex: none;
}

.team-lead-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50.005px;
  padding: 0 20px;
  background: var(--white);
  border-radius: 80px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.16px;
  color: var(--black);
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}

.team-lead-btn:focus-visible { background: var(--green-accent); color: var(--black); }
/* Hover-only, guarded: touch has no hover-intent to release a :hover state,
   so an unguarded rule reads as the button staying "pressed" after a tap. */
@media (hover: hover) and (pointer: fine) {
  .team-lead-btn:hover { background: var(--green-accent); color: var(--black); }
}
  .team-lead-btn:active { background: var(--green-accent); color: var(--black); }

.team-lead-btn img { width: 24px; height: 24px; }

@media (max-width: 1100px) {
  .team-leadership { padding: 60px 24px; }
  .team-lead-card { height: auto; flex-direction: column; align-items: stretch; gap: 32px; }
  .team-lead-photos { height: 380px; align-self: auto; }
  .team-lead-body { width: 100%; gap: 40px; }
}

@media (max-width: 600px) {
  /* .team-leadership's own padding is set once, unguarded, above (see
     "Card 1150 x 590...") and again at 1100px below, but neither carries a
     <=600px override, so the 1100px value (24px sides) is what actually
     survives down to 390px — 4px short of the mobile gutter. Restate it
     here so 390 gets the mobile system's real 20px side gutter (frame
     40:5176 "Frame 2147233786", x:20 within the 390px "Mobile" frame). */
  .team-leadership { padding: 40px 20px; }
  .team-lead-card { padding: 20px; border-radius: 24px; }
  .team-lead-photos { height: 260px; }

body.wp-theme-statera .team-lead-title { font-size: 32px; letter-spacing: -0.8px; }
  .team-lead-intro { font-size: 17px; }
  .team-lead-owners { width: 100%; gap: 20px; }
  .team-lead-owner-role { white-space: normal; }
}

/* ---------- Elementor container reset ---------- */
/* The Team sections are Elementor widgets inside one container. Elementor's
   default flex container adds a 20px gap and 10px padding, which lands between
   every section; the sections carry their own padding, so the container is
   reduced to a plain block. */
.elementor .elementor-element.team-root {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  --content-width: 100%;
  --padding-block-start: 0px;
  --padding-block-end: 0px;
  --padding-inline-start: 0px;
  --padding-inline-end: 0px;
  --margin-block-start: 0px;
  --margin-block-end: 0px;
  --gap: 0px;
}

.elementor .elementor-element[class*="elementor-widget-statera-team-"]:not(:last-child) {
  margin-block-end: 0;
}
