/* =========================================================
   Fadeed Holding — main stylesheet
   White, with the Fadeed Holding blue as the identity colour.
   Clean, classical and restrained: still surfaces, fine rules,
   serif display type, very little motion.
   Shared by the English (ltr) and Arabic (rtl) pages.
   ========================================================= */

:root {
  --ink: #111111;          /* near-black, for body type and rules */
  --paper: #ffffff;        /* page background */
  --paper-2: #f2f4f8;      /* faint blue-grey, for alternating bands */
  --muted: #5f5f5f;        /* supporting text */
  --accent: #3a4f7e;       /* Fadeed Holding blue, sampled from the logo; used sparingly */
  --accent-deep: #2e3f66;
  --on-accent: #f3f1ea;
  --line: rgba(0, 0, 0, 0.12);
  --line-strong: rgba(0, 0, 0, 0.55);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tracking: 0.2em;       /* letter-spacing for small capitals */

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --header-h: 88px;
}

/* Arabic: Calibri throughout, as requested. Calibri ships with Windows
   and Microsoft Office; elsewhere it falls back to IBM Plex Sans Arabic
   (loaded from Google Fonts). Arabic script must never be letter-spaced
   or upper-cased. */
[dir="rtl"] {
  --serif: Calibri, "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --sans: Calibri, "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --tracking: 0;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[dir="rtl"] body { font-weight: 400; font-size: 17px; line-height: 1.9; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.55em;
}
/* Sizes kept in proportion to the logo in the header */
h1 { font-size: clamp(2.1rem, 3.8vw, 3.3rem); color: var(--accent); }
h2 { font-size: clamp(1.65rem, 2.5vw, 2.25rem); color: var(--accent); }
h3 { font-size: clamp(1.2rem, 1.45vw, 1.4rem); font-weight: 500; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.45; font-weight: 400; }
[dir="rtl"] h3 { font-weight: 700; }
p  { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Small capitals label */
.eyebrow {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
[dir="rtl"] .eyebrow { font-size: 0.9rem; }

/* Ornament: a fine rule with a small diamond at its centre */
.ornament {
  position: relative;
  display: block;
  width: 96px;
  height: 9px;
  margin: 0 0 1.8rem;
}
.ornament::before {
  content: "";
  position: absolute;
  inset: 4px 0 auto 0;
  height: 1px;
  background: var(--ink);
  opacity: 0.45;
}
.ornament::after {
  content: "";
  position: absolute;
  top: 1px;
  left: calc(50% - 3.5px);
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ---------- Links & buttons ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.5s var(--ease);
}
[dir="rtl"] .link-arrow { letter-spacing: 0; font-size: 0.92rem; }
.link-arrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: width 0.5s var(--ease);
}
.link-arrow:hover { border-color: var(--accent); color: var(--accent); }
.link-arrow:hover::after { width: 34px; }

.btn {
  display: inline-block;
  padding: 1rem 2.4rem;
  border: 1px solid var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  background: var(--paper);
  color: var(--ink);
  border-top: 3px solid var(--accent);   /* a thin band of the identity colour */
  transition: box-shadow 0.6s var(--ease);
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--line); }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo { display: block; flex-shrink: 0; }
.logo img { height: 46px; width: auto; }
.footer-logo img { height: 56px; }

/* Header lockup: the Fadeed Holding mark beside the name
   (FADEED on the English page, فديد on the Arabic) and the
   "holding ◆ القابضة" line beneath it. Cut from the stacked logo. */
.lockup { display: flex; align-items: center; gap: 12px; }
.logo .lockup-mark { height: 48px; width: auto; }
.lockup-text { display: flex; flex-direction: column; gap: 5px; width: 124px; }
.logo .lockup-name,
.logo .lockup-sub { width: 100%; height: auto; }
.footer-logo img { height: 108px; }

.main-nav ul { display: flex; gap: 2.4rem; }
.main-nav a {
  position: relative;
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 0.4rem 0;
}
[dir="rtl"] .main-nav a { letter-spacing: 0; font-size: 0.98rem; }
.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.main-nav a:hover::after { opacity: 1; }

.header-tools { display: flex; align-items: center; gap: 1.4rem; }
.lang {
  font-size: 0.92rem;
  padding-inline-start: 1.4rem;
  border-inline-start: 1px solid var(--line-strong);
  opacity: 0.85;
  transition: opacity 0.4s var(--ease);
}
.lang:hover { opacity: 1; }
.lang[lang="en"] { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; }

.menu-toggle {
  display: none;
  width: 34px; height: 34px;
  background: none; border: 0; padding: 0;
  cursor: pointer;
  color: inherit;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 5px; right: 5px;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-toggle span:first-child { top: 13px; }
.menu-toggle span:last-child  { top: 21px; }
.menu-open .menu-toggle span:first-child { top: 17px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child  { top: 17px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--paper);
  overflow: hidden;
}
/* A fine double frame, as on an engraved certificate */
.hero-frame {
  position: absolute;
  inset: calc(var(--header-h) + 8px) clamp(14px, 3vw, 40px) clamp(14px, 3vw, 40px);
  border: 1px solid var(--accent);
  pointer-events: none;
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--line);
}
.hero-content {
  position: relative;
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-content h1 { max-width: 16ch; }
.hero-sub {
  max-width: 50ch;
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2.8rem;
}
/* The mark alone above the heading (enlarged 15%, then a further 20%) */
.hero-mark { width: clamp(77px, 8.3vw, 104px); height: auto; margin: 0 auto 2.2rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(84px, 11vw, 150px) 0; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head.row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.section-head.row h2 { margin-bottom: 0; }

.cards-3,
.cards-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.4vw, 48px);
}
.cards-2 { grid-template-columns: repeat(2, 1fr); gap: clamp(36px, 6vw, 96px); }

/* What we do */
.service-card {
  padding-top: 2.4rem;
  border-top: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  transition: border-color 0.5s var(--ease);
}
.service-card:hover { border-color: var(--accent); }
.card-index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
[dir="rtl"] .card-index { font-style: normal; }
.service-card p { color: var(--muted); flex: 1; margin-bottom: 2rem; }
.service-card .link-arrow { align-self: flex-start; }

/* Principles */
/* The one solid band of colour on the page */
.band {
  background: var(--accent);
  color: var(--on-accent);
  padding: clamp(68px, 8vw, 110px) 0;
}
.principles {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;   /* as many equal columns as there are principles */
  gap: 2.5rem;
}
.principle {
  padding-inline-start: 1.8rem;
  border-inline-start: 1px solid rgba(243, 241, 234, 0.45);
}
.principle-word {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  line-height: 1.2;
  margin-bottom: 0.7rem;
}
.principle p { color: rgba(243, 241, 234, 0.78); margin: 0; max-width: 30ch; }

/* About */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.split-reverse .split-visual { order: 2; }
.split-visual {
  aspect-ratio: 4 / 5;
  background: var(--paper);
  display: grid;
  place-items: center;
  position: relative;
}
.split-visual::before,
.split-visual::after {
  content: "";
  position: absolute;
  border: 1px solid var(--line-strong);
}
.split-visual::before { inset: 0; }
.split-visual::after  { inset: 7px; border-color: var(--line); }
.visual-logo { width: 66%; height: auto; }
.visual-logo.holding { width: auto; height: 58%; max-width: 70%; object-fit: contain; }
.split-text p { color: var(--muted); max-width: 52ch; }
.split-text .link-arrow { margin-top: 1rem; }

/* Fadeed Investment's two areas of focus */
.focus-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2.2rem 0 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.focus-list div {
  padding-inline-start: 1.4rem;
  border-inline-start: 1px solid var(--accent);
}
.focus-list dt {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  line-height: 1.2;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
[dir="rtl"] .focus-list dt { line-height: 1.5; font-weight: 700; }
.focus-list dd { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* Key dates, set like an engraved register */
.milestones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2.4rem 0 2.2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.milestones div {
  padding-inline-start: 1.4rem;
  border-inline-start: 1px solid var(--accent);
}
.milestones dt {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.5vw, 2.3rem);
  line-height: 1.1;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
[dir="rtl"] .milestones dt { line-height: 1.4; }
.milestones dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Insights: typographic entries, no imagery */
.insight-card {
  display: flex;
  flex-direction: column;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
  transition: border-color 0.5s var(--ease);
}
.insight-card:hover { border-color: var(--accent); }
.insight-meta {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
[dir="rtl"] .insight-meta { font-size: 0.88rem; }
.insight-card h3 { flex: 1; margin-bottom: 1.8rem; }
.insight-card .link-arrow { align-self: flex-start; }

/* Careers */
.careers { padding: clamp(90px, 12vw, 160px) 0; }
.careers-inner { max-width: 760px; }
.careers p { color: var(--muted); max-width: 50ch; margin-bottom: 2.4rem; }

/* Contact */
.contact { text-align: center; border-top: 1px solid var(--line); }
.contact-inner {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact .ornament { margin-inline: auto; }
.contact p { color: var(--muted); margin-bottom: 2.4rem; }
.contact h2 { margin-bottom: 1.6rem; }

/* ---------- Footer ---------- */
/* The footer carries the identity colour, with the white logo */
.site-footer {
  background: var(--accent-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 80px 0 36px;
  font-size: 0.92rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  justify-content: end;
  gap: 2rem;
}
.site-footer h4 {
  margin: 0 0 1.2rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--white, #ffffff);
}
[dir="rtl"] .site-footer h4 { font-size: 0.95rem; font-weight: 700; }
.site-footer li + li { margin-top: 0.6rem; }
.site-footer a { transition: color 0.4s var(--ease); }
.site-footer a:hover { color: #ffffff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 30px;
  font-size: 0.82rem;
}
.footer-bottom p { margin: 0; }
.back-top { letter-spacing: var(--tracking); text-transform: uppercase; font-size: 0.72rem; }
[dir="rtl"] .back-top { font-size: 0.86rem; }

/* ---------- Gentle fade on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root { --header-h: 72px; }

  .menu-toggle { display: block; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: 2.5rem var(--gutter);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a {
    display: block;
    padding: 1.1rem 0;
    font-family: var(--serif);
    font-size: 1.45rem;
    letter-spacing: 0;
  }
  .main-nav a::after { display: none; }

  .menu-open .main-nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }

  .cards-3, .cards-2 { grid-template-columns: 1fr; gap: 56px; }
  .split-reverse .split-visual { order: 0; }
  .principles { grid-auto-flow: row; }
  .split { grid-template-columns: 1fr; }
  .split-visual { aspect-ratio: 16 / 10; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { justify-content: start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .logo .lockup-mark { height: 38px; }
  .lockup { gap: 9px; }
  .lockup-text { width: 98px; gap: 4px; }
  .footer-logo img { height: 96px; }
  .focus-list { grid-template-columns: 1fr; }
  .header-tools { gap: 1rem; }
  .lang { padding-inline-start: 1rem; }
  .hero-content { padding-inline: calc(var(--gutter) + 22px); }
}
