/**
 * About Us sections (page 875): Our Commitment, Our Growth Journey,
 * Nationwide Presence. Core blocks with the classes about-section,
 * about-split, about-lead, about-cards, about-card and about-cta, so editors
 * keep managing the text and images in the block editor.
 *
 * :not(#xpt-about) outranks the theme's .xpt-container / heading rules and
 * the Customizer CSS.
 *
 * Also used on Why XPT Group (page 941).
 *
 * Plain CSS outside the Sass build; loaded by AssetsServiceProvider.
 */

.about-section:not(#xpt-about) {
  --about-ink: #16201d;
  --about-text: #3a4744;
  --about-green: #00ce7c;
  --about-line: #d9dcd6;
  margin: 0 !important;
  padding: clamp(64px, 8vw, 112px) var(--global--container-horizontal-padding, 20px);
}

.about-section:not(#xpt-about) > * {
  max-width: 1440px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ---- Headings: condensed face with the short green rule ---------------- */

.about-section:not(#xpt-about) h2 {
  max-width: 1440px;
  margin-top: 0;
  margin-bottom: clamp(28px, 3.5vw, 44px);
  font-family: "TradeGothicLT-BoldCondTwenty", "TradeGothicLT-Bold", "Arial Narrow", sans-serif;
  font-weight: normal;
  font-size: clamp(36px, 3.6vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
  text-align: left;
  color: var(--about-ink);
}

.about-section:not(#xpt-about) h2::before {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-bottom: 20px;
  background: var(--about-green);
}

/* ---- Heading left, copy right ------------------------------------------ */

.about-section:not(#xpt-about) .about-split {
  gap: 24px clamp(32px, 6vw, 96px);
  margin-top: 0;
  margin-bottom: 0;
}

.about-section:not(#xpt-about) .about-split h2 { margin-bottom: 0; }

.about-section:not(#xpt-about) p {
  max-width: 68ch;
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--about-text);
}

.about-section:not(#xpt-about) .about-lead {
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.5;
  color: var(--about-ink);
}

/* Optional intro under a section heading, and closing text after the cards:
   full container width, aligned with the section's left edge. */
.about-section:not(#xpt-about) > p { max-width: 1440px; }
.about-section:not(#xpt-about) h2 + .about-intro { margin-top: -12px; margin-bottom: clamp(28px, 3.5vw, 40px); }
.about-section:not(#xpt-about) .about-outro { margin-top: clamp(32px, 4vw, 48px); margin-bottom: 0; }

/* ---- Growth journey cards ---------------------------------------------- */

.about-section:not(#xpt-about) .about-cards {
  flex-wrap: wrap !important;
  gap: 20px;
  margin-top: 0;
  margin-bottom: 0;
}

/* 2 x 2 grid; icon on the left, title and text beside it. */
.about-section:not(#xpt-about) .about-cards > .about-card {
  flex: 0 0 calc(50% - 10px) !important;
}

.about-section:not(#xpt-about) .about-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  /* Spacer rows above and below keep the title and text centred on the icon. */
  grid-template-rows: 1fr auto auto 1fr;
  align-content: center;
  column-gap: 32px;
  padding: 36px 36px 34px;
  border-top: 4px solid var(--about-ink);
  background: #fff;
  transition: border-color 0.25s ease;
}

.about-section:not(#xpt-about) .about-card:hover { border-top-color: var(--about-green); }

.about-section:not(#xpt-about) .about-card .wp-block-image {
  grid-row: 1 / -1;
  align-self: center;
  margin: 0;
}



.about-section:not(#xpt-about) .about-card h3 { grid-column: 2; grid-row: 2; }
.about-section:not(#xpt-about) .about-card p { grid-column: 2; grid-row: 3; }

.about-section:not(#xpt-about) .about-card .wp-block-image img {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.about-section:not(#xpt-about) .about-card h3 {
  max-width: none;
  margin: 0 0 10px;
  font-family: "TradeGothicLT-BoldCondTwenty", "TradeGothicLT-Bold", "Arial Narrow", sans-serif;
  font-weight: normal;
  font-size: clamp(22px, 1.7vw, 26px);
  line-height: 1.15;
  letter-spacing: 0;
  text-align: left;
  color: var(--about-ink);
}

.about-section:not(#xpt-about) .about-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  text-align: left;
}

/* ---- Partnership strip -------------------------------------------------- */

.about-section:not(#xpt-about) .about-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between !important;
  gap: 20px 32px;
  margin-top: 32px;
  padding: 28px 32px;
  background: var(--about-ink);
}

.about-section:not(#xpt-about) .about-cta { margin-left: auto; margin-right: auto; }
.about-section:not(#xpt-about) .about-cta > * { max-width: none; margin: 0 !important; }

/* The theme's clearfix pseudo-elements would count as flex items. */
.about-section:not(#xpt-about) .about-cta::before,
.about-section:not(#xpt-about) .about-cta::after { display: none; }

.about-section:not(#xpt-about) .about-cta p {
  margin: 0;
  font-family: "TradeGothicLT-BoldCondTwenty", "TradeGothicLT-Bold", "Arial Narrow", sans-serif;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.2;
  color: #fff;
}

.about-section:not(#xpt-about) .about-cta .wp-block-buttons { margin: 0; }

/* ---- Nationwide presence ------------------------------------------------ */

.about-section:not(#xpt-about) .about-split + .wp-block-shortcode,
.about-section:not(#xpt-about) .about-split + .office-map,
.about-presence:not(#xpt-about) .office-map { margin-top: clamp(32px, 4vw, 56px); }

.about-presence:not(#xpt-about) .office-map__list-title::before { display: none; }

/* ---- Smaller screens ---------------------------------------------------- */

@media (max-width: 1023px) {
  .about-section:not(#xpt-about) .about-card { grid-template-columns: 110px minmax(0, 1fr); column-gap: 24px; padding: 28px; }
  .about-section:not(#xpt-about) .about-card .wp-block-image img { width: 110px; height: 110px; }
}

@media (max-width: 781px) {
  .about-section:not(#xpt-about) .about-cards > .about-card { flex-basis: 100% !important; }
  .about-section:not(#xpt-about) .about-card { grid-template-columns: 1fr; grid-template-rows: auto; }
  .about-section:not(#xpt-about) .about-card :is(.wp-block-image, h3, p) { grid-column: 1; grid-row: auto; }
  .about-section:not(#xpt-about) .about-card .wp-block-image { margin-bottom: 20px; }
  .about-section:not(#xpt-about) .about-cta { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .about-section:not(#xpt-about) .about-card { transition: none; }
}

/* ---- Leadership Team page (page 724) ------------------------------------ */
/* Sections .leader-section (also .about-section), each a .leader-grid of
   .leader-tile groups: photo, name (linked to the profile), role, "View
   profile". The name link is stretched over the whole tile. */

.leader-section:not(#xpt-about) .leader-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 40px) 24px;
}

.leader-section:not(#xpt-about) .leader-grid::before,
.leader-section:not(#xpt-about) .leader-grid::after { display: none; }

.leader-section:not(#xpt-about) .leader-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
}

.leader-section:not(#xpt-about) .leader-tile .wp-block-image {
  margin: 0 0 18px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  background: #0e2622;
}

.leader-section:not(#xpt-about) .leader-tile .wp-block-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.leader-section:not(#xpt-about) .leader-tile h3 {
  max-width: none;
  margin: 0 0 6px;
  font-family: "TradeGothicLT-BoldCondTwenty", "TradeGothicLT-Bold", "Arial Narrow", sans-serif;
  font-weight: normal;
  font-size: clamp(22px, 1.8vw, 27px);
  line-height: 1.15;
  letter-spacing: 0;
  text-align: left;
}

.leader-section:not(#xpt-about) .leader-tile h3 a {
  color: var(--about-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.leader-section:not(#xpt-about) .leader-tile h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.leader-section:not(#xpt-about) .leader-tile h3 a:focus-visible { outline: none; }
.leader-section:not(#xpt-about) .leader-tile h3 a:focus-visible::after {
  outline: 3px solid var(--about-green);
  outline-offset: 4px;
  border-radius: 8px;
}

.leader-section:not(#xpt-about) .leader-tile .leader-tile__role {
  flex: 1;
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.45;
  color: #5f6b67;
}

.leader-section:not(#xpt-about) .leader-tile .leader-tile__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: "TradeGothicLT-Bold", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: #00744b;
}

.leader-section:not(#xpt-about) .leader-tile .leader-tile__more::after {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 11h12.2l-5.6-5.6L12 4l8 8-8 8-1.4-1.4 5.6-5.6H4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 11h12.2l-5.6-5.6L12 4l8 8-8 8-1.4-1.4 5.6-5.6H4z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.25s ease;
}

.leader-section:not(#xpt-about) .leader-tile:hover img { transform: scale(1.03); }
.leader-section:not(#xpt-about) .leader-tile:hover h3 a { color: #00744b; }
.leader-section:not(#xpt-about) .leader-tile:hover .leader-tile__more::after { transform: translateX(4px); }

@media (max-width: 1023px) {
  .leader-section:not(#xpt-about) .leader-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 781px) {
  .leader-section:not(#xpt-about) .leader-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .leader-section:not(#xpt-about) .leader-tile .leader-tile__role { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .leader-section:not(#xpt-about) .leader-tile img,
  .leader-section:not(#xpt-about) .leader-tile .leader-tile__more::after { transition: none; }
}
