/* ==========================================================================
   RAFAZ — Design tokens
   ========================================================================== */
:root {
  --ink: #0b0a09;
  --ink-2: #151311;
  --ink-3: #201d19;
  --paper: #ffffff;
  --paper-2: #faf8f4;
  --cream: #f2ede3;
  --line-dark: #2a2723;
  --line-light: #e6e0d4;
  --text: #f6f3ec;
  --text-dim: #a79f8f;
  --text-ink: #17140f;
  --text-ink-dim: #6b6357;
  --gold: #c6a25f;
  --gold-2: #dcb96f;
  --gold-soft: rgba(198, 162, 95, .14);

  --f-display: "Cairo", "Tahoma", sans-serif;
  --f-body: "Tajawal", "Tahoma", sans-serif;

  --container: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-ink);
  font-family: var(--f-body);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 3px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform .35s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform .35s var(--ease);
}

.btn:hover svg {
  transform: translateX(-4px);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--gold-2);
  transform: translateY(-2px);
}

.btn-outline-dark {
  border-color: rgba(246, 243, 236, .35);
  color: var(--text);
}

.btn-outline-dark:hover {
  border-color: var(--text);
  background: rgba(246, 243, 236, .08);
  transform: translateY(-2px);
}

.btn-outline-light {
  border-color: rgba(23, 20, 15, .25);
  color: var(--text-ink);
}

.btn-outline-light:hover {
  border-color: var(--text-ink);
  background: rgba(23, 20, 15, .05);
  transform: translateY(-2px);
}

.btn-ghost-gold {
  background: transparent;
  color: var(--ink);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
}

.link-arrow svg {
  width: 14px;
  height: 14px;
  transition: transform .3s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(-4px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--gold);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background-color .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header.is-scrolled {
  background: rgba(11, 10, 9, .9);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 80px;
  height: 100px;
  flex: none;
  object-fit: contain;
}

.logo-word {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  letter-spacing: .01em;
}

.main-nav {
  display: flex;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
  transition: color .3s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .3s var(--ease);
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--text);
}

.main-nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-toggle {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  border: 1px solid rgba(246, 243, 236, .25);
  border-radius: 3px;
  padding: 6px 12px;
  transition: all .3s var(--ease);
}

.lang-toggle:hover {
  color: var(--text);
  border-color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 70svh;
  display: flex;
  align-items: center;
  background: var(--ink);
  overflow: hidden;
  padding-top: 110px;
}

.hero::before{
  content:"";
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    radial-gradient(60% 55% at 82% 30%, rgba(198,162,95,.10), transparent 60%),
    linear-gradient(180deg, rgba(11,10,9,.25) 0%, rgba(11,10,9,.1) 40%, transparent 70%);
}
.hero-bg{
  position:absolute;
  top: 200px; left:0; bottom:0; right: 53%;
  z-index:0;
  overflow:hidden;
}
.hero-bg img{ width:100%; height:100%; object-fit:cover; display:block; }
.hero .wrap{ position:relative; z-index:2; width:100%; }
.hero-grid{
  padding-bottom: clamp(60px, 9vw, 110px);
}
.hero-copy{ max-width: 620px; }

.hero-kicker {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(40px, 3.6vw, 60px);
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: .02em;
}

.hero-title {
  font-weight: 800;
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
}

.hero-title em {
  font-style: normal;
  color: var(--gold);
}

.hero-desc {
  margin-top: 22px;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--text-dim);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-figure {
  position: relative;
  justify-self: end;
  align-self: end;
  width: 100%;
  max-width: none;
  border: 1px solid rgba(246, 243, 236, .14);
  aspect-ratio: 4/5;
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-figure svg {
  width: 100%;
  height: 100%;
  display: block;
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .05em;
}

.scroll-cue .dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(246, 243, 236, .3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-cue svg {
  width: 13px;
  height: 13px;
  animation: bob 2.2s var(--ease) infinite;
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

/* ==========================================================================
   Intro / partner section
   ========================================================================== */
#about{ position:relative; overflow:hidden; padding: 28px 0; min-height: 250px; display:flex; align-items:center; }
.intro-figure{
  position:absolute; top:0; right:0; bottom:0;
  width: 46%;
  overflow:hidden;
}
.intro-figure img{ width:100%; height:100%; object-fit:cover; display:block; }

.intro-copy{ position:relative; z-index:2; max-width: 460px; margin-right:650px; margin-left:0; }
.intro-copy h2{
  font-size: clamp(29px,3.4vw,32px); font-weight:900; line-height:1.35; color: var(--text-ink);
}
.intro-copy p{
  margin-top:20px; font-size:19px; line-height:1.5; color: var(--text-ink-dim); max-width: 460px;
}
.intro-copy .link-arrow{ margin-top:28px; color: var(--text-ink); }


.section {
  padding: clamp(50px, 10vw, 50px) 0;
}

.section-light {
  background: var(--paper);
  color: var(--text-ink);
}

.section-cream {
  background: var(--paper-2);
  color: var(--text-ink);
}

.section-dark {
  background: var(--ink);
  color: var(--text);
}

.intro-copy .link-arrow {
  margin-top: 28px;
  align-self: flex-end;
  color: var(--text-ink);
}


.intro-figure svg {
  width: 100%;
  height: 100%;
}


/* ==========================================================================
   Why-us cards
   ========================================================================== */
.section-head {
  max-width: 620px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  margin-top: 14px;
}

.section-head p {
  margin-top: 14px;
  font-size: 20px;
  color: var(--text-ink-dim);
  line-height: 1.8;
}

.section-dark .section-head p {
  color: var(--text-dim);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line-light);
  border: 2px solid var(--line-light);
}

.why-card {
  background: var(--paper);
  padding: 34px 26px;
  transition: background-color .35s var(--ease), transform .35s var(--ease);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-card:hover {
  background: var(--paper-2);
  transform: translateY(-4px);
}

.why-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  color: var(--gold);
}

.why-icon svg {
  width: 100%;
  height: 100%;
}

.why-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-ink);
}

.why-card p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-ink-dim);
}

/* ==========================================================================
   Methodology
   ========================================================================== */
.method-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}

.method-list::before {
  content: "";
  position: absolute;
  top: 57px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-light);
  z-index: 1;
}

.method-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding-top: 74px;
}

.method-num {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 34px;
  color: var(--line-light);
  transition: color .4s var(--ease);
}

.method-row:hover .method-num {
  color: var(--gold);
}

.method-dot {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line-light);
  z-index: 2;
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}

.method-row:hover .method-dot {
  border-color: var(--gold);
  background: var(--gold);
}

.method-body {
  margin-top: 22px;
}

.method-body h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-ink);
}

.method-body p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-ink-dim);
}

.method-rule {
  background: var(--line-light);
}

/* ==========================================================================
   Impact stats (dark)
   ========================================================================== */
.impact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(30px, 6vw, 60px);
  align-items: center;
}

.impact-copy .eyebrow {
  margin-bottom: 16px;
}

.impact-copy h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.impact-copy p {
  margin-top: 18px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--text-dim);
  max-width: 420px;
}

.impact-copy .btn {
  margin-top: 30px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: rgba(246, 243, 236, .12);
}

.stat-cell {
  padding: 40px 60px;
  text-align: center;
  background: var(--ink);
}

.stat-num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
  color: var(--gold);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.stat-label {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ==========================================================================
   Sectors
   ========================================================================== */


.sectors-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 70px;
  width: 110%;
}


.sectors-text {
  flex: 0 0 260px;
  order: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.sectors-text .eyebrow {
  margin-bottom: 14px;
}

.sectors-text h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.35;
}

.sectors-text p {
  margin-top: 16px;
  color: var(--text-ink-dim);
  font-size: 15px;
  line-height: 1.8;
  max-width: 320px;
}

.sectors-text .link-arrow {
  margin-top: 22px;
}

.sector-grid {
  flex: 1;
  order: 1;

  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  min-width: 0;
}

.sector-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 360px;

  overflow: hidden;

  display: flex;
  align-items: flex-end;
  justify-content: center;

  text-align: center;
}

.sector-card .bg {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  z-index: 0;
  opacity: .85;

  transition: transform .6s var(--ease);
  object-fit: cover;
}

.sector-card:hover .bg {
  transform: scale(1.08);
}

.sector-card::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 50%;

  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.75),
      rgba(0, 0, 0, 0));

  z-index: 1;
}

.sector-card>div {
  position: relative;
  z-index: 2;

  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 20px 10px 25px;
}

.sector-icon {
  width: 42px;
  height: 42px;

  margin-bottom: 8px;

  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;
}

.sector-icon svg {
  width: 100%;
  height: 100%;
}

.sector-name {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

/* ==========================================================================
   Insights CTA
   ========================================================================== */
.insights {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
}

.insights-figure {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.insights-figure svg {
  width: 100%;
  height: 100%;
}

.insights-copy {
  padding: clamp(40px, 6vw, 80px);
}

.insights-copy .eyebrow {
  margin-bottom: 16px;
}

.insights-copy h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.insights-copy p {
  margin-top: 16px;
  color: var(--text-dim);
  max-width: 420px;
  line-height: 1.85;
  font-size: 15.5px;
}

.insights-copy .btn {
  margin-top: 28px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--text);
  padding-top: clamp(60px, 8vw, 90px);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(246, 243, 236, .1);
}

.footer-brand p {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-dim);
  max-width: 260px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(246, 243, 236, .18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s var(--ease);
}

.footer-social svg {
  width: 15px;
  height: 15px;
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color .3s var(--ease);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-contact li {
  font-size: 14px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
  flex: none;
}

.footer-bottom {
  width: 100%;
  min-height: 60px;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 80vw);
    top: 0;
    height: 100svh;
    background: var(--ink-2);
    padding: 100px 28px 40px;
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    z-index: 90;
  }

  [dir] .main-nav {
    right: 0;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .nav-toggle {
    display: flex;
  }

 .hero-bg{ display:none; }

  .intro-grid {
    grid-template-columns: 1fr;
  }

#about{ display:block; min-height:0; }

.intro-figure{ position:static; width:100%; height:260px; margin-bottom:28px; }

.intro-copy{ max-width:none; margin-right:0; }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-row {
    grid-template-columns: 60px 1px 1fr;
  }

  .method-list {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 50px;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .sectors-layout {
    grid-template-columns: 1fr;
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }

  .insights-figure {
    aspect-ratio: 16/9;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .hero-title {
    white-space: normal;
    font-size: clamp(30px, 8vw, 40px);
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .sector-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    flex: 1;
  }

  .scroll-cue {
    display: none;
  }

  .method-list {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .method-list::before {
    display: none;
  }

  .method-row {
    padding-top: 58px;
  }
}