/* ============================================================
   Partners page (Figma node 2716:3711)
   Loaded after staging-trojai-environment.webflow.css.
   Dark hero/recognized/why + light better-together/quotes + dark CTA.
   ============================================================ */

/* shared eyebrow (lime dot + uppercase label) */
.p_eyebrow { display: inline-flex; align-items: center; gap: 0.625rem; }
.p_eyebrow_dot { width: 8px; height: 8px; border-radius: 50%; background-color: var(--swatch--colors3); flex-shrink: 0; }
.p_eyebrow_text { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--swatch--colors3); }
.p_eyebrow--green .p_eyebrow_dot { background-color: var(--swatch--colorp3); }
.p_eyebrow--green .p_eyebrow_text { color: var(--swatch--colorp2); }

.p_contain {
  max-width: var(--max-width--main);
  width: calc(100% - var(--site--margin) * 2);
  margin-inline: auto;
}

/* ── 1. Hero ── */
.p_hero {
  position: relative;
  overflow: clip;
  background-color: #002017;
  border-bottom: 1px solid var(--swatch--light-100-o20);
}
.p_hero.u-section { padding-top: 0; padding-bottom: 0; }
.p_hero_bg { position: absolute; inset: 0; z-index: 0; overflow: clip; pointer-events: none; }
.p_hero_bg_img { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100%; min-width: 90rem; max-width: 120rem; height: auto; }
.p_hero_layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 46rem; }
.p_hero_visual { position: relative; overflow: clip; }
.p_hero_visual_img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.p_hero_content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding-top: 9rem;
  padding-bottom: 5rem;
  padding-left: clamp(2rem, 4vw, 5rem);
  padding-right: max(1.5rem, calc(100% - var(--max-width--main) / 2));
}
.p_hero_head { display: flex; flex-direction: column; gap: 1.125rem; max-width: 37rem; }
.p_hero_title { margin: 0; font-weight: 300; font-size: clamp(2.4rem, 1.7rem + 2.4vw, 3.3125rem); line-height: 1.12; letter-spacing: -0.04em; color: #fff; }
.p_hero_sub { margin: 0; font-size: 1rem; line-height: 1.6; color: #fff; }
.p_hero_actions { display: flex; flex-direction: column; }
.p_hero_action {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem clamp(1.5rem, 3vw, 2.5rem);
  min-height: 5.25rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff; text-decoration: none;
  transition: background-color 0.25s ease;
}
.p_hero_action + .p_hero_action { border-top: none; }
.p_hero_action:not(.is-active) { opacity: 0.8; }
.p_hero_action:hover { background-color: rgba(255, 255, 255, 0.05); opacity: 1; }
.p_hero_action_label { font-size: 1.25rem; font-weight: 500; }
.p_hero_action_arrow {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid #fff; display: flex; align-items: center; justify-content: center;
}
.p_hero_action_arrow svg { width: 12px; height: 12px; display: block; }

/* ── 2. Recognized by ── */
.p_recog { background-color: #002017; }
.p_recog_eyebrow_wrap { display: flex; justify-content: center; margin-bottom: 2.5rem; }
.p_recog_strip {
  border: 1px solid var(--swatch--light-100-o20);   /* full box: side lines meet top + bottom */
  padding: 1.75rem clamp(1.5rem, 4vw, 3rem);
}
.p_recog_logos { width: 100%; max-width: 79rem; margin-inline: auto; height: auto; display: block; }

/* ── 3. Why Partner ── */
.p_why { background-color: #002017; }
.p_why_head { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.p_why_title { margin: 0; font-weight: 400; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.5rem); line-height: 1.12; letter-spacing: -0.03em; color: #fff; }
.p_why_intro { margin: 0; max-width: 60ch; font-size: 1rem; line-height: 1.6; color: #fff; opacity: 0.8; }
.p_why_grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--swatch--light-100-o20);
  border-left: 1px solid var(--swatch--light-100-o20);
}
.p_why_card {
  border-right: 1px solid var(--swatch--light-100-o20);
  border-bottom: 1px solid var(--swatch--light-100-o20);
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: clamp(1.5rem, 2vw, 1.75rem);
  min-height: 16rem;
}
.p_why_icon { width: 28px; height: auto; }
.p_why_card_body_wrap { display: flex; flex-direction: column; gap: 0.6rem; margin-top: auto; }
.p_why_card_title { margin: 0; font-weight: 500; font-size: 1.25rem; line-height: 1.3; color: #fff; }
.p_why_card_body { margin: 0; font-size: 0.875rem; line-height: 1.55; color: #fff; opacity: 0.75; }
.p_why_tile {
  border-right: 1px solid var(--swatch--light-100-o20);
  border-bottom: 1px solid var(--swatch--light-100-o20);
  position: relative; overflow: clip; min-height: 16rem;
}
.p_why_tile_img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ── 4. Better Together (light) ── */
.p_better { background-color: #fff; color: #1c1c16; }
.p_better_head { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: clamp(2.5rem, 4vw, 3rem); }
.p_better_title { margin: 0; font-weight: 400; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.5rem); line-height: 1.12; letter-spacing: -0.03em; color: #1c1c16; }
.p_better_layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(18rem, 32%, 25rem); gap: clamp(2rem, 3vw, 2rem); align-items: stretch; }
.p_better_rows { display: flex; flex-direction: column; gap: 1.5rem; }
.p_better_row {
  position: relative;
  border: 1px solid #d9d9d9;
  display: flex; gap: 1.5rem; align-items: flex-start;
  padding: clamp(1.5rem, 2.2vw, 2.5rem);
  transition: border-color 0.35s ease;
}
.p_better_row.is-active { border-color: #bfe6cd; }
.p_better_row_icon { flex-shrink: 0; width: 40px; height: 40px; }
.p_better_row_title { margin: 0 0 0.6rem; font-weight: 500; font-size: 1.3125rem; line-height: 1.25; color: #1c1c16; }
.p_better_row_body { margin: 0; font-size: 0.95rem; line-height: 1.6; color: #555; }
.p_better_row_list { margin: 0.9rem 0 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.p_better_row_list li { font-size: 0.9rem; line-height: 1.5; color: #555; }
.p_better_row:not(.is-active) .p_better_row_title { color: #6a6a6a; }
/* green corner dots — shown only on the active row */
.p_better_row_dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background-color: var(--swatch--colorp3); opacity: 0; transition: opacity 0.35s ease; }
.p_better_row.is-active .p_better_row_dot { opacity: 1; }
.p_better_row_dot--tl { top: -3px; left: -3px; }
.p_better_row_dot--tr { top: -3px; right: -3px; }
.p_better_row_dot--bl { bottom: -3px; left: -3px; }
.p_better_row_dot--br { bottom: -3px; right: -3px; }
/* pinned cluster column (travels while the rows scroll) */
.p_better_visual { align-self: stretch; }
.p_better_cluster { position: sticky; top: 7.5rem; border-radius: 10px; overflow: clip; aspect-ratio: 400 / 345; }
.p_better_cluster_img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ── 5. Quotes (light) ── */
.p_quotes { background-color: #fff; color: #1c1c16; }
.p_quotes.u-section { padding-top: 0; }
.p_quotes_top { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.p_quotes_title { margin: 0; font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); line-height: 1.2; letter-spacing: -0.03em; color: #1c1c16; max-width: 26ch; }
.p_quotes_grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.p_quote_card { border: 1px solid #d9d9d9; padding: clamp(1.5rem, 2.5vw, 2rem); display: flex; flex-direction: column; gap: 1.5rem; }
.p_quote_text { margin: 0; font-size: 1rem; line-height: 1.6; color: #1c1c16; }
.p_quote_author { display: flex; flex-direction: column; gap: 0.35rem; }
.p_quote_name { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--swatch--colorp2); }
.p_quote_role { font-size: 0.8125rem; color: #555; }

/* ── 6. Join CTA (dark) ── */
.p_join {
  position: relative; overflow: clip;
  background-color: #002017;
  background-image: radial-gradient(70% 120% at 50% 120%, #0a5e46 0%, #023a29 45%, #002017 100%);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  min-height: 30rem;
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;
}
.p_join_diag { position: absolute; top: 50%; width: clamp(8rem, 16vw, 16rem); height: 32rem; background-color: var(--swatch--colors3); pointer-events: none; }
.p_join_diag--l { left: 0; transform: translate(-52%, -50%) rotate(47.94deg); }
.p_join_diag--r { right: 0; transform: translate(52%, -50%) rotate(-47.94deg); }
.p_join_inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: clamp(2rem, 3vw, 2.5rem); }
.p_join_title { margin: 0; font-weight: 300; font-size: clamp(2.5rem, 1.8rem + 2.6vw, 3.5rem); line-height: 1.1; letter-spacing: -0.03em; color: #fff; max-width: 14ch; }

/* ── Responsive ── */
@media screen and (max-width: 991px) {
  .p_hero_layout { grid-template-columns: 1fr; }
  .p_hero_content { order: -1; padding: 8rem clamp(1.5rem, 5vw, 2.5rem) 3rem; }
  .p_hero_visual { aspect-ratio: 1 / 1; }
  .p_why_grid { grid-template-columns: repeat(2, 1fr); }
  .p_better_layout { grid-template-columns: 1fr; }
  .p_better_cluster { position: static; max-width: 32rem; width: 100%; }
  .p_quotes_grid { grid-template-columns: 1fr; }
}
@media screen and (max-width: 560px) {
  .p_why_grid { grid-template-columns: 1fr; }
  .p_hero_action_label { font-size: 1.0625rem; }
}
