/* ===========================================================================
   AL-SAEED ECONOMIC GROUP  —  pages/p-sectors.css
   ---------------------------------------------------------------------------
   Business Sectors. The fifth distinct visual key:
     Home        teal filled eyebrow, expanding six-panel strip
     About       gold filled eyebrow, timeline on one rule
     Chairman    gold-on-dark eyebrow, letter on the dark ground
     Leadership  outlined eyebrow, portrait grid with no card boxes
     Sectors     NO pill at all - a rule-and-label eyebrow - and six
                 alternating full-width rows, each carrying a ghost numeral.

   The Home page already shows the six sectors as an expanding strip, so this
   page deliberately does not repeat that: one substantial row per sector,
   image and copy swapping sides down the page.
   Direction-agnostic: logical properties and grid line numbers, both of which
   follow the writing direction, so nothing needs mirroring by hand.
   =========================================================================== */

.page-sectors{
  --eyebrow-fg:var(--teal-dp);
  --page-bg:var(--white);
}

/* The fifth eyebrow treatment: a short rule, then the label. No pill, no
   fill, no border. */
.page-sectors .eyebrow{
  background:none;box-shadow:none;border:0;
  padding:0;border-radius:0;gap:.75rem;
  color:var(--eyebrow-fg);
}
.page-sectors .eyebrow::before{
  content:"";flex:0 0 auto;
  width:clamp(1.5rem,1rem + 1.5vw,2.25rem);height:.125rem;
  background:currentColor;
}
.page-sectors .eyebrow--onDark{color:var(--gold-lt)}

/* ---------------------------------------------------------------------------
   OVERVIEW
   --------------------------------------------------------------------------- */
.overview{background:var(--white)}
.overview__text{color:var(--muted);font-size:var(--fs-lg);max-width:min(44rem,100%)}
.overview__figures{
  display:grid;gap:var(--s-3) var(--gutter);
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin-top:clamp(2rem,1.5rem + 2vw,3rem);
}
@media (min-width:48rem){
  .overview__figures{grid-template-columns:repeat(4,minmax(0,1fr))}
}
.figure-cell{
  padding-inline-start:var(--s-2);
  border-inline-start:.1875rem solid var(--line);
}
.figure-cell b{
  display:block;font-family:var(--ff-head, inherit);font-weight:700;
  font-size:clamp(1.75rem,1.3rem + 1.8vw,2.5rem);line-height:1.05;
  color:var(--ink);font-variant-numeric:tabular-nums;direction:ltr;
}
.figure-cell span{display:block;font-size:var(--fs-sm);color:var(--muted);margin-top:.25rem}

/* ---------------------------------------------------------------------------
   SECTOR ROWS
   --------------------------------------------------------------------------- */
.sector-rows{background:var(--white)}
.sector-row{
  display:grid;gap:clamp(1.75rem,1.2rem + 2.5vw,3.5rem) var(--gutter);
  grid-template-columns:1fr;
  padding-block:clamp(2.5rem,2rem + 3vw,4.5rem);
}
.sector-row + .sector-row{border-top:.0625rem solid var(--line)}

.sector-row__media{position:relative;margin:0}
/* 4/3, the same frame the sector detail panels use - both pages show the same
   six photographs, and four of the six are natively 4/3. The focal point comes
   in per row as --focus, shared with sector-details, for the two that are not:
   Construction is a 2.19 panorama, Industrial an 0.81 portrait. */
.sector-row__media picture{display:block;width:100%;aspect-ratio:4/3}
.sector-row__media img{
  width:100%;height:100%;object-fit:cover;object-position:var(--focus, 50% 50%);
  border-radius:var(--r-md);
  transition:transform var(--dur-slow) var(--ease);
}
.sector-row:hover .sector-row__media img{transform:scale(1.03)}
/* the media box clips its own zoom rather than the section, so a hover can
   never widen the page */
.sector-row__media{overflow:hidden;border-radius:var(--r-md)}

.sector-row__body{position:relative;display:flex;flex-direction:column;gap:var(--s-2)}
/* Oversized outlined numeral, sitting behind the copy and above the eyebrow.
   No `direction:ltr` here: it would re-establish an LTR inline axis on this
   element, which flips `inset-inline-start` back to the physical left and
   parked the numeral on the wrong edge of the row in the Arabic and Kurdish
   editions. A run of bare digits is already laid out left-to-right by the
   bidi algorithm, so the declaration bought nothing and cost the mirroring. */
.sector-row__ghost{
  position:absolute;z-index:0;pointer-events:none;user-select:none;
  top:calc(var(--s-6) * -1);inset-inline-start:-.25rem;
  font-family:var(--ff-head, inherit);font-weight:700;
  font-size:clamp(5rem,3rem + 8vw,9rem);line-height:.8;
  color:transparent;
  -webkit-text-stroke:.09375rem rgba(20,17,5,.10);
}
.sector-row__inner{position:relative;z-index:1;display:flex;flex-direction:column;gap:var(--s-2)}
.sector-row__name{font-size:var(--fs-h2);margin:0}
.sector-row__text{color:var(--muted);margin:0;max-width:46ch}

/* companies known to sit in this sector, from the crests in the PDF */
.sector-row__firms{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.25rem}
.sector-row__firms li{
  font-size:var(--fs-xs);font-weight:600;color:var(--ink-2);
  background:var(--cream);border:.0625rem solid var(--line);
  border-radius:var(--r-pill);padding:.4375rem .875rem;
}
.sector-row__cta{margin-top:var(--s-2)}

@media (min-width:62rem){
  .sector-row{grid-template-columns:repeat(2,minmax(0,1fr));align-items:center}
  /* Grid line numbers run along the inline axis, so 1 is the leading column
     in LTR and the trailing one in RTL - the alternation mirrors itself. */
  .sector-row__media{grid-column:1}
  .sector-row__body{grid-column:2}
  .sector-row--flip .sector-row__media{grid-column:2}
  .sector-row--flip .sector-row__body{grid-column:1}
}
