/* ===========================================================================
   AL-SAEED ECONOMIC GROUP  —  pages/p-about.css
   ---------------------------------------------------------------------------
   About Us. Shares the design system, but deliberately not the Home page's
   look: Home leads with teal eyebrows on white and photography in framed
   plates. This page runs gold eyebrows on the cream ground, sets its story on
   a vertical rule, and keeps its photography full-bleed and unframed.
   Direction-agnostic: logical properties throughout.
   =========================================================================== */

.page-about{
  --eyebrow-bg:var(--gold-tint);
  --eyebrow-fg:var(--gold-dk);
  --page-bg:var(--cream);
}

/* ---------------------------------------------------------------------------
   INTRO — the group in its own words, beside a full-bleed photograph
   --------------------------------------------------------------------------- */
.intro{background:var(--cream)}
.intro__inner{row-gap:clamp(2.5rem,2rem + 4vw,4.5rem)}
.intro__title{margin:0 0 var(--s-3)}
.intro__title em{font-style:normal;color:var(--gold-dk);display:block}
.intro__text{color:var(--muted);max-width:min(36rem,100%)}
.intro__text + .intro__text{margin-top:var(--s-2)}

/* No frame and no rules here - that treatment belongs to Home. This one is a
   plain full-bleed plate with a soft corner. */
.intro__figure{margin:0;position:relative}
.intro__figure img{
  width:100%;height:100%;object-fit:cover;
  border-radius:var(--r-md);
}
.intro__figure picture{display:block;width:100%;aspect-ratio:4/5}
@media (min-width:62rem){
  .intro__figure picture{aspect-ratio:4/5}
}

/* a small teal marker echoing the group's second brand colour */
.intro__note{
  position:absolute;z-index:2;inset-inline-end:clamp(-1.5rem,-1.2vw,-.5rem);
  bottom:clamp(1.5rem,3vw,2.5rem);
  background:var(--teal);color:var(--white);
  padding:1rem 1.25rem;border-radius:var(--r-sm);
  font-size:var(--fs-sm);font-weight:600;max-width:14rem;line-height:1.45;
  box-shadow:var(--sh-3);
}

/* ---------------------------------------------------------------------------
   STORY — a dated timeline on a single vertical rule
   --------------------------------------------------------------------------- */
.story{background:var(--white)}
.timeline{
  position:relative;display:grid;gap:clamp(2rem,1rem + 3vw,3.5rem);
  padding-inline-start:clamp(1.75rem,1rem + 2vw,3rem);
}
/* the rule itself, running the height of the list */
.timeline::before{
  content:"";position:absolute;top:.5rem;bottom:.5rem;
  inset-inline-start:0;width:.125rem;
  background:linear-gradient(180deg,var(--teal) 0%,var(--gold) 100%);
  border-radius:.0625rem;
}
.milestone{position:relative}
/* the node sits ON the rule, centred over it */
.milestone::before{
  content:"";position:absolute;top:.75rem;
  inset-inline-start:calc(clamp(1.75rem,1rem + 2vw,3rem) * -1 - .375rem);
  width:.875rem;height:.875rem;border-radius:50%;
  background:var(--white);
  box-shadow:0 0 0 .1875rem var(--gold);
  transition:box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.milestone:first-child::before{box-shadow:0 0 0 .1875rem var(--teal)}
.milestone:hover::before{background:var(--gold);box-shadow:0 0 0 .3125rem rgba(196,160,68,.28)}
.milestone__year{
  display:inline-block;font-family:var(--ff-head, inherit);
  font-size:var(--fs-h3);font-weight:700;color:var(--gold-dk);
  line-height:1;margin-bottom:.5rem;
  font-variant-numeric:tabular-nums;direction:ltr;
}
.milestone__title{font-size:var(--fs-h4);margin:0 0 .5rem}
.milestone__text{color:var(--muted);font-size:var(--fs-sm);max-width:52ch;margin:0}

/* ---------------------------------------------------------------------------
   PILLARS — vision, mission, values as three numbered cards
   --------------------------------------------------------------------------- */
.pillars{background:var(--cream)}
.pillar{
  position:relative;background:var(--white);
  border-radius:var(--r-lg);padding:clamp(1.75rem,1.25rem + 1.5vw,2.5rem);
  height:100%;display:flex;flex-direction:column;gap:.875rem;
  box-shadow:var(--sh-1);overflow:hidden;
  transition:transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
/* a colour bar on the leading edge, keyed per card */
.pillar::before{
  content:"";position:absolute;top:0;bottom:0;inset-inline-start:0;
  width:.25rem;background:var(--pillar-key,var(--gold));
  transition:width var(--dur) var(--ease);
}
.pillar:hover{transform:translateY(-.375rem);box-shadow:var(--sh-2)}
.pillar:hover::before{width:.5rem}
.pillar:nth-child(1){--pillar-key:var(--teal)}
.pillar:nth-child(2){--pillar-key:var(--gold)}
.pillar:nth-child(3){--pillar-key:var(--dark-3)}
.pillar__idx{
  font-family:var(--ff-head, inherit);font-size:var(--fs-sm);font-weight:700;
  color:var(--pillar-key,var(--gold));letter-spacing:.14em;
  font-variant-numeric:tabular-nums;direction:ltr;
}
.pillar__title{font-size:var(--fs-h3);margin:0}
.pillar__text{color:var(--muted);font-size:var(--fs-sm);margin:0}
.pillar__list{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:auto;padding-top:.5rem}
.pillar__list li{
  font-size:var(--fs-xs);font-weight:600;color:var(--ink-2);
  background:var(--cream);border-radius:var(--r-pill);
  padding:.4375rem .875rem;
}

/* ---------------------------------------------------------------------------
   GLANCE — the same counters as Home, on this page's own photograph
   --------------------------------------------------------------------------- */
.about-glance{position:relative;overflow:hidden;background:var(--dark)}
.about-glance__bg{position:absolute;inset:0;z-index:0}
.about-glance__bg picture{display:block;width:100%;height:100%}
.about-glance__bg img{width:100%;height:100%;object-fit:cover;object-position:50% 35%}
.about-glance__bg::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(20,17,5,.72) 0%,rgba(20,17,5,.82) 100%);
}
.about-glance__inner{position:relative;z-index:1}

/* ---------------------------------------------------------------------------
   SECTOR LINKS — a compact index, not the Home page's expanding panels
   --------------------------------------------------------------------------- */
.sector-links{background:var(--white)}
/* Six items on an auto-fit grid landed as four then two, leaving a ragged
   second row. Fixed column counts keep it 3 + 3 on desktop and 2 + 2 + 2 on
   a tablet, which reads as a deliberate index. */
.sector-links .grid{grid-template-columns:1fr}
@media (min-width:36rem){
  .sector-links .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:62rem){
  .sector-links .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
.sector-link{
  display:flex;align-items:center;gap:var(--s-2);
  padding:clamp(1.125rem,.9rem + .8vw,1.5rem) clamp(1.25rem,1rem + 1vw,1.75rem);
  border:.0625rem solid var(--line);border-radius:var(--r-md);
  background:var(--white);height:100%;
  transition:border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
             box-shadow var(--dur) var(--ease);
}
.sector-link:hover{
  border-color:var(--gold);transform:translateY(-.25rem);box-shadow:var(--sh-1);
}
.sector-link__idx{
  font-family:var(--ff-head, inherit);font-size:var(--fs-xs);font-weight:700;
  color:var(--gold-dk);letter-spacing:.14em;
  font-variant-numeric:tabular-nums;direction:ltr;flex:0 0 auto;
}
.sector-link__name{font-family:var(--ff-head, inherit);font-weight:600;font-size:var(--fs-lg)}
.sector-link__arrow{
  margin-inline-start:auto;flex:0 0 auto;
  width:1.75rem;height:1.75rem;border-radius:50%;
  display:grid;place-items:center;background:var(--cream);
  transition:background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.sector-link__arrow svg{
  width:.75rem;height:.75rem;fill:none;stroke:var(--gold-dk);
  stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round;
}
[dir="rtl"] .sector-link__arrow svg{transform:scaleX(-1)}
.sector-link:hover .sector-link__arrow{background:var(--gold-btn);transform:rotate(45deg)}
.sector-link:hover .sector-link__arrow svg{stroke:var(--white)}
[dir="rtl"] .sector-link:hover .sector-link__arrow{transform:rotate(-45deg)}
