/*
  Al Rabba — Internal Page UX Refinement
  09 Aug 2026
  Keeps the homepage visual composition intact while making every inner page
  faster to scan, less oversized, and more comfortable on desktop/mobile.
*/

/* ---------- Compact inner-page heroes ---------- */
.page-hero {
  height: clamp(370px, 43svh, 500px);
  min-height: 370px;
}
.page-hero__copy {
  width: min(820px, 68vw);
  bottom: clamp(42px, 6vh, 68px);
}
.page-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(46px, 4.7vw, 76px);
  line-height: .98;
  letter-spacing: -.052em;
}
.page-hero__copy .kicker {
  margin-bottom: 16px;
}
.page-hero__copy p {
  max-width: 620px;
  font-size: 13px;
  line-height: 1.65;
}
.page-hero>.breadcrumbs {
  top: calc(var(--header) + 25px);
}
.page-hero__line {
  height: 46px;
}
.page-hero__line span {
  height: 22px;
}

/* Keep imagery present, but quieter so the title is the first focus. */
.page-hero__wash {
  background: linear-gradient(90deg,#f7f8f5fa 0%,#f7f8f5dc 38%,#f7f8f552 70%,#f7f8f500 100%);
}
[dir=rtl] .page-hero__wash {
  background: linear-gradient(270deg,#f7f8f5fa 0%,#f7f8f5dc 38%,#f7f8f552 70%,#f7f8f500 100%);
}

/* ---------- Contact / legal / article headers ---------- */
.contact-hero {
  padding-top: calc(var(--header) + 54px);
  padding-bottom: 62px;
}
.contact-hero h1 {
  max-width: 920px;
  font-size: clamp(48px, 5vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
}
.contact-hero p {
  max-width: 760px;
  margin-top: 24px;
  line-height: 1.7;
}

.legal-page {
  min-height: auto;
  padding-top: calc(var(--header) + 62px);
  padding-bottom: 90px;
}
.legal-page__head {
  padding-bottom: 38px;
}
.legal-page h1 {
  font-size: clamp(46px, 5vw, 76px);
  line-height: .98;
  letter-spacing: -.055em;
}
.legal-page__body {
  padding-top: 38px;
}

.news-article__head {
  padding-top: calc(var(--header) + 40px);
  padding-bottom: 64px;
}
.news-article__head>time {
  margin: 38px 0 18px;
}
.news-article__head h1 {
  max-width: 1080px;
  font-size: clamp(44px, 4.8vw, 76px);
  line-height: 1;
  letter-spacing: -.052em;
}
.news-article__head>p {
  max-width: 760px;
  margin-top: 26px;
  font-size: 16px;
  line-height: 1.7;
}
.news-article__media {
  padding-top: 68px;
  padding-bottom: 68px;
}
.news-article__media>div {
  min-height: 560px;
}
.news-article__layout {
  gap: 7%;
  padding-top: 86px;
  padding-bottom: 100px;
}
.news-article__body p {
  font-size: 18px;
  line-height: 1.82;
}
.news-article__body p:first-child {
  font-size: 25px;
  line-height: 1.58;
}

/* Careers uses a self-contained stylesheet in its HTML. Override it here. */
.cr-hero {
  padding-top: calc(var(--header) + 48px) !important;
  padding-bottom: 56px !important;
}
.cr-hero h1 {
  font-size: clamp(46px, 5vw, 76px) !important;
  line-height: .99 !important;
}

/* ---------- More efficient section rhythm on inner pages ---------- */
.business-categories,
.energy-intro,
.product-section,
.capabilities-section,
.compliance-section,
.partner-section,
.team-page,
.venture-leadership,
.news-index,
.contact-layout {
  padding-top: clamp(78px, 7vw, 104px);
  padding-bottom: clamp(78px, 7vw, 104px);
}

.business-category + .business-category {
  margin-top: 90px;
}
.business-row-card {
  min-height: 500px;
}
.business-row-card__copy {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* Titles remain premium, but no longer consume most of a screen. */
.business-categories .section-title,
.product-section .section-title,
.capabilities-section .section-title,
.compliance-section .section-title,
.partner-section .section-title,
.team-page .section-title,
.venture-leadership .section-title,
.news-index .section-title {
  margin-bottom: 52px;
}
.business-categories .section-title h2,
.product-section .section-title h2,
.capabilities-section .section-title h2,
.compliance-section .section-title h2,
.partner-section .section-title h2,
.team-page .section-title h2,
.venture-leadership .section-title h2,
.news-index .section-title h2 {
  font-size: clamp(42px, 4.3vw, 68px);
}

/* News cards: quicker scan, clearer hierarchy. */
.news-card__copy {
  min-height: 290px;
}
.news-card h2 {
  font-size: clamp(27px, 2.2vw, 36px);
  line-height: 1.08;
}

/* Contact content should feel direct rather than ceremonial. */
.contact-layout {
  gap: 8%;
}
.contact-details {
  gap: 38px;
}
.contact-details h2 {
  font-size: 36px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .page-hero {
    height: 410px;
    min-height: 410px;
  }
  .page-hero__copy {
    width: min(760px, 76vw);
  }
  .news-article__media>div {
    min-height: 500px;
  }
}

@media (max-width: 900px) {
  .page-hero {
    height: 390px;
    min-height: 390px;
  }
  .page-hero__copy {
    width: calc(100% - 48px);
    bottom: 40px;
  }
  .page-hero h1 {
    font-size: clamp(42px, 7.5vw, 62px);
  }
  .news-article__media>div {
    min-height: 420px;
  }
  .news-article__layout {
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 82px;
  }
}

@media (max-width: 700px) {
  .page-hero {
    height: 350px;
    min-height: 350px;
  }
  .page-hero>.breadcrumbs {
    top: calc(var(--header) + 18px);
  }
  .page-hero__copy {
    width: calc(100% - 48px);
    bottom: 32px;
  }
  .page-hero__copy .kicker {
    margin-bottom: 11px;
  }
  .page-hero h1 {
    margin-bottom: 13px;
    font-size: clamp(36px, 10vw, 50px);
    line-height: 1;
  }
  .page-hero__copy p {
    font-size: 11px;
    line-height: 1.5;
  }
  .page-hero__line {
    display: none;
  }

  .contact-hero,
  .news-article__head,
  .legal-page,
  .cr-hero {
    padding-top: calc(var(--header) + 38px) !important;
  }
  .contact-hero,
  .news-article__head,
  .cr-hero {
    padding-bottom: 48px !important;
  }
  .contact-hero h1,
  .news-article__head h1,
  .legal-page h1,
  .cr-hero h1 {
    font-size: clamp(38px, 11vw, 52px) !important;
  }
  .news-article__head>time {
    margin-top: 28px;
  }
  .news-article__head>p {
    margin-top: 20px;
    font-size: 14px;
  }
  .news-article__media {
    padding-top: 36px;
    padding-bottom: 36px;
  }
  .news-article__media>div {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .news-article__layout {
    padding-top: 58px;
    padding-bottom: 70px;
  }
  .news-article__body p,
  .news-article__body p:first-child {
    font-size: 17px;
    line-height: 1.75;
  }

  .business-categories,
  .energy-intro,
  .product-section,
  .capabilities-section,
  .compliance-section,
  .partner-section,
  .team-page,
  .venture-leadership,
  .news-index,
  .contact-layout {
    padding-top: 68px;
    padding-bottom: 68px;
  }
  .business-category + .business-category {
    margin-top: 72px;
  }
  .business-categories .section-title,
  .product-section .section-title,
  .capabilities-section .section-title,
  .compliance-section .section-title,
  .partner-section .section-title,
  .team-page .section-title,
  .venture-leadership .section-title,
  .news-index .section-title {
    margin-bottom: 38px;
  }
}


/* === Businesses compact portfolio UX (client-navigation safe) === */
/* Al Rabba — Businesses page compact portfolio UX
   Scope: /businesses/ only. Other site pages are untouched. */

.business-categories {
  padding-top: clamp(58px, 5vw, 78px) !important;
  padding-bottom: clamp(70px, 6vw, 92px) !important;
}

.business-category { position: relative; }

.business-category + .business-category {
  margin-top: clamp(64px, 6vw, 92px) !important;
  padding-top: clamp(56px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.business-category__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  gap: 28px 70px;
  align-items: end;
  margin-bottom: 30px;
}

.business-category__head .kicker {
  grid-column: 1 / -1;
  margin: 0 0 -10px;
  font-size: 9px;
  letter-spacing: .18em;
}

.business-category__head h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(34px, 3.35vw, 52px);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 300;
}

.business-category__head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

/* Compact portfolio grid: three businesses per row on desktop. */
.business-row-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.business-row-card,
.business-row-card--reverse {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0;
  min-height: 0 !important;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(16, 34, 49, .11);
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(16, 34, 49, .055);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.business-row-card:hover {
  transform: translateY(-5px);
  border-color: rgba(62, 132, 155, .38);
  box-shadow: 0 22px 48px rgba(16, 34, 49, .11);
}

/* Every card image uses the same 16:9 frame and a pre-sized WebP image.
   This avoids stretching, odd crops and inconsistent logo proportions. */
.business-row-card__visual,
.business-row-card--reverse .business-row-card__visual {
  order: 0 !important;
  width: 100%;
  min-height: 0 !important;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 0 !important;
  position: relative;
  overflow: hidden;
  background: #eef3f3;
}

.business-row-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(16,34,49,0) 60%, rgba(16,34,49,.10) 100%);
}

.business-row-card__visual img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 50% 50% !important;
  border-radius: 0 !important;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}

.business-row-card:hover .business-row-card__visual img { transform: scale(1.022); }

.business-row-card__copy,
.business-row-card--reverse .business-row-card__copy {
  order: 1 !important;
  display: flex !important;
  flex-direction: column;
  flex: 1;
  min-height: 0 !important;
  padding: 21px 22px 22px !important;
  gap: 18px;
}

.business-row-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.business-row-card__meta span {
  color: var(--copper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.business-row-card__meta small {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 76%;
  padding: 5px 9px;
  border: 1px solid rgba(16,34,49,.10);
  border-radius: 999px;
  color: #647784;
  background: #f7f8f5;
  font-size: 8px;
  line-height: 1.25;
  letter-spacing: .055em;
  text-transform: uppercase;
  text-align: right;
}

.business-row-card__division {
  display: block;
  margin-bottom: 8px;
  color: var(--sea);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.business-row-card__copy h3 {
  margin: 0;
  font-size: clamp(25px, 2.1vw, 34px) !important;
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 400;
}

.business-row-card__copy p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.68;
}

.business-row-card__copy .text-link {
  margin-top: auto;
  align-self: flex-start;
  padding-bottom: 6px;
  border-bottom-color: rgba(16,34,49,.38);
  font-size: 11px;
  letter-spacing: .01em;
}

.business-row-card__copy .text-link i { font-size: 14px; }

/* The final Development section contains one project; keep its card the same
   width as the rest of the portfolio instead of stretching it full width. */
.business-category:last-of-type .business-row-list {
  grid-template-columns: minmax(0, calc((100% - 36px) / 3));
}

/* Give the lead energy business a subtle priority without changing card size. */
.business-category:first-of-type .business-row-card:first-child {
  border-color: rgba(62,132,155,.28);
  box-shadow: 0 14px 38px rgba(16,34,49,.075);
}

.business-categories + .contact-cta {
  min-height: 250px;
  padding-top: 62px;
  padding-bottom: 62px;
}
.business-categories + .contact-cta h2 {
  max-width: 760px;
  font-size: clamp(38px, 4.2vw, 64px);
}
.business-categories + .contact-cta .round-arrow {
  width: 72px;
  height: 72px;
  font-size: 23px;
}

@media (max-width: 1050px) {
  .business-row-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .business-category:last-of-type .business-row-list {
    grid-template-columns: minmax(0, calc((100% - 18px) / 2));
  }
  .business-category__head { gap: 22px 40px; }
}

@media (max-width: 760px) {
  .business-categories {
    padding-top: 50px !important;
    padding-bottom: 62px !important;
  }
  .business-category + .business-category {
    margin-top: 56px !important;
    padding-top: 48px;
  }
  .business-category__head {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-bottom: 23px;
  }
  .business-category__head .kicker {
    grid-column: auto;
    margin: 0 0 2px;
  }
  .business-category__head h2 { font-size: 38px; }
  .business-category__head p {
    max-width: 560px;
    font-size: 12.5px;
  }
  .business-row-list,
  .business-category:last-of-type .business-row-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .business-row-card,
  .business-row-card--reverse { border-radius: 14px !important; }
  .business-row-card__visual,
  .business-row-card--reverse .business-row-card__visual { aspect-ratio: 16 / 9; }
  .business-row-card__copy,
  .business-row-card--reverse .business-row-card__copy {
    padding: 19px 19px 20px !important;
    gap: 15px;
  }
  .business-row-card__copy h3 { font-size: 29px !important; }
  .business-row-card__copy p {
    font-size: 12px;
    line-height: 1.62;
  }
  .business-categories + .contact-cta {
    min-height: 220px;
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

@media (max-width: 420px) {
  .business-row-card__meta { align-items: flex-start; }
  .business-row-card__meta small {
    max-width: 72%;
    font-size: 7.5px;
  }
}

