/* Extends main.css and home.css (steps, cta-final, social). Loaded after
   both, on about.php only. */

/* Consistent height across every internal page: ~50vh on mobile scaling up
   to 76vh on desktop. min-height (not a fixed height) so a page with more
   breadcrumb/title/description content is never clipped — it just grows. */
.hero--page { min-height: 50vh; padding-top: calc(var(--header-h) + 48px); padding-bottom: 56px; }
.hero--page .hero__content { max-width: 640px; }
.hero--page .hero__description { margin-bottom: 0; }

/* Mobile only: at default type sizes the content needs more room than the
   ~50vh target allows, so trim heading/description sizes and the spacing
   around them just enough to fit. Desktop and tablet typography, and the
   spacing between elements, are untouched above this breakpoint. */
@media (max-width: 767.98px) {
  .hero--page { padding-top: calc(var(--header-h) + 24px); padding-bottom: 40px; }
  .hero--page .breadcrumb { margin-bottom: 12px; }
  .hero--page h1 { font-size: 2rem; margin-bottom: 8px; }
  .hero--page .hero__description { font-size: 0.9375rem; }
}

@media (min-width: 768px) {
  .hero--page { min-height: 64vh; }
}

@media (min-width: 992px) {
  .hero--page { min-height: 76vh; }
  .hero--page .hero__inner { grid-template-columns: 1fr; }
}

.split { display: grid; gap: 48px; align-items: center; }

.split__media { border-radius: var(--r-xl); overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.split__text h2 { margin-bottom: 24px; }
.split__text p { margin-bottom: 20px; }
.split__text p:last-of-type { margin-bottom: 0; }

@media (min-width: 992px) {
  .split { grid-template-columns: 1.05fr 0.95fr; gap: 80px; }
  .split--media-right .split__media { order: 2; }
  .split--media-left .split__media,
  .split--media-left .offplan__media { order: -1; }
  .split__media img { aspect-ratio: 4 / 3.4; }

  /* RTL: grid auto-placement follows the container's inline direction, so
     the same order value lands in the mirrored column. Swap it back so
     "media-right"/"media-left" keep naming a fixed visual side. */
  [dir="rtl"] .split--media-right .split__media { order: -1; }
  [dir="rtl"] .split--media-left .split__media,
  [dir="rtl"] .split--media-left .offplan__media { order: 2; }
}

/* Mobile only: center this section-intro text block (label, heading,
   paragraphs). The split's own image and any card content elsewhere
   are untouched. */
@media (max-width: 767.98px) {
  .split__text { text-align: center; }
}

/* Icon-above-label row, deliberately not a card grid — a subtle bordered
   strip (matching the .facts pattern in main.css) rather than a boxed
   component, per the "avoid large white card boxes" brief. */
.company-facts {
  padding-block: 48px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.company-facts__row {
  display: grid; gap: 32px; grid-template-columns: 1fr;
  text-align: center;
}
.company-facts__item {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.company-facts__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg-section-alt); color: var(--navy);
}
.company-facts__label { font-size: 0.9375rem; font-weight: 700; color: var(--navy); }

@media (min-width: 600px) { .company-facts__row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .company-facts__row { grid-template-columns: repeat(4, 1fr); } }

/* Two standalone cards, each with its own border/shadow and a colored accent
   bar distinguishing Mission from Vision — same grid (stacked on mobile, two
   columns on desktop) as the previous fused-panel treatment. */
.direction-panel {
  display: grid; gap: 24px;
}
.direction-panel__block {
  position: relative; background: var(--white); padding: 40px 36px 36px;
  border: 1px solid var(--border-light); border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft); overflow: hidden;
}
.direction-panel__accent {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.direction-panel__block--mission .direction-panel__accent { background: var(--navy); }
.direction-panel__block--vision .direction-panel__accent { background: var(--gold); }
.direction-panel__block h3 { font-size: 1.25rem; margin-bottom: 14px; }
.direction-panel__block p { font-size: 1rem; color: var(--text-main); }
.direction-panel__block .eyebrow { margin-bottom: 12px; }

@media (min-width: 768px) { .direction-panel { grid-template-columns: repeat(2, 1fr); } }

.choose__grid { display: grid; gap: 48px; }

.choose__intro p { margin-bottom: 24px; }
.choose__intro .btn { margin-top: 8px; }

/* Mobile only: center this section's intro text (label, heading, paragraph,
   CTA). The numbered .choose__list beside it is list-based content and is
   left untouched, matching every other card/grid on the site. */
@media (max-width: 767.98px) {
  .choose__intro { text-align: center; }
}

.choose__list { counter-reset: choose; }
.choose__list li {
  counter-increment: choose;
  display: flex; align-items: flex-start; gap: 24px;
  padding-block: 22px; border-top: 1px solid var(--border-light);
}
.choose__list li:last-child { border-bottom: 1px solid var(--border-light); }
.choose__list li::before {
  content: "0" counter(choose);
  font-size: 0.875rem; font-weight: 800; letter-spacing: 0.1em;
  color: var(--navy); line-height: 1.9; flex-shrink: 0;
}
.choose__list h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.choose__list p { font-size: 0.9375rem; color: var(--text-muted); }

@media (min-width: 992px) {
  .choose__grid { grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; }
}

.team__grid { display: grid; gap: 32px; }

/* Intro copy lives as the grid's first item so it can sit alongside the
   cards on wide screens instead of leaving them stranded in a narrow column. */
.team__grid .section-head { margin-bottom: 0; }

.team-card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.team-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.team-card__media {
  position: relative; aspect-ratio: 4 / 5.87; overflow: hidden;
  background: linear-gradient(180deg, var(--bg-section-alt) 0%, #e9ecf1 100%);
}
.team-card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  display: block;
}

.team-card__body { display: flex; flex-direction: column; flex: 1; padding: 28px 28px 32px; }
.team-card__name { font-size: 1.25rem; margin-bottom: 4px; }
.team-card__role {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 16px;
}
.team-card__bio { font-size: 0.9375rem; color: var(--text-muted); }

/* Tablet: intro spans the full row, the two cards share the row below. */
@media (min-width: 700px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .team__grid .section-head { grid-column: 1 / -1; }
}

/* Desktop: balanced three-column row — intro, card, card. Default grid
   stretch keeps tops aligned and makes both cards match the row's height,
   so a longer bio doesn't leave the two cards uneven. */
@media (min-width: 992px) {
  .team__grid { grid-template-columns: repeat(3, 1fr); }
  .team__grid .section-head { grid-column: auto; }
}

