/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Arabic: zero out letter-spacing so connected script renders correctly */
html[lang="ar"] * { letter-spacing: 0 !important; }

:root {
  --charcoal: #1e1e1e;
  --charcoal-mid: #2a2a2a;
  --charcoal-light: #3a3a3a;
  --offwhite: #f5f0ea;
  --offwhite-mid: #ede8e0;
  --gold: #c9a96e;
  --gold-light: #d4b98a;
  --text-dark: #1e1e1e;
  --text-light: #f5f0ea;
  --text-muted: #8a8a8a;
  --text-muted-light: #b0a899;

  --font: 'Cairo', sans-serif;
  --radius: 4px;
  --radius-lg: 12px;
  --transition: 0.25s ease;

  --section-pad: 100px 0;
  --container-width: 1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--charcoal);
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

/* ============================================
   CONTAINER
   ============================================ */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-headline {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 48px;
  color: var(--offwhite);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--charcoal);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-secondary:hover {
  background: var(--gold);
  color: var(--charcoal);
  transform: translateY(-1px);
}

.btn-nav {
  background: transparent;
  color: var(--offwhite);
  border: 1px solid rgba(245, 240, 234, 0.25);
  padding: 10px 22px;
  font-size: 0.85rem;
}
.btn-nav:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-large { padding: 18px 36px; font-size: 1rem; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  background: rgba(30, 30, 30, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition);
}

.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--offwhite);
  letter-spacing: 0.02em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  background: transparent;
  border: 1px solid rgba(245,240,234,0.2);
  color: var(--text-muted-light);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.lang-toggle:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 50%, rgba(201,169,110,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--offwhite);
  margin-bottom: 24px;
}

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

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted-light);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  max-height: 620px;
}

.hero-image img {
  object-position: top center;
}

/* RTL: text left, image right — already correct with grid order */
/* LTR: text left, image right — swap grid order */
html[lang="en"] .hero-inner {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 960px) {
  html[lang="en"] .hero-inner {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PROBLEM
   ============================================ */
.problem {
  padding: var(--section-pad);
  background: var(--charcoal-mid);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-bottom: 48px;
}

.problem-card {
  background: var(--charcoal);
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: background var(--transition);
}
.problem-card:hover { background: var(--charcoal-light); }

.problem-icon {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.5;
  min-width: 36px;
  line-height: 1;
  padding-top: 2px;
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--text-muted-light);
  line-height: 1.7;
}

.problem-conclusion {
  background: var(--charcoal-light);
  border-right: 3px solid var(--gold);
  padding: 24px 28px;
  color: var(--offwhite-mid);
  font-size: 0.95rem;
  line-height: 1.8;
  border-radius: 0 var(--radius) var(--radius) 0;
}

html[lang="en"] .problem-conclusion {
  border-right: none;
  border-left: 3px solid var(--gold);
  border-radius: var(--radius) 0 0 var(--radius);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: var(--section-pad);
  background: var(--charcoal);
}

.about-inner {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 80px;
  align-items: start;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  position: sticky;
  top: 88px;
}
.about-image img { object-position: top center; }

.about-text .section-headline {
  margin-bottom: 24px;
}

.about-bio p {
  color: var(--text-muted-light);
  font-size: 0.97rem;
  line-height: 1.9;
  margin-bottom: 20px;
}
.about-bio p:last-child { margin-bottom: 0; }

.hidden { display: none; }

/* ============================================
   PILLARS
   ============================================ */
.pillars {
  padding: var(--section-pad);
  background: var(--charcoal-mid);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.pillar-card {
  background: var(--charcoal);
  padding: 36px 28px;
  transition: background var(--transition);
}
.pillar-card:hover { background: var(--charcoal-light); }

.pillar-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

.pillar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--offwhite);
  margin-bottom: 10px;
}

.pillar-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================
   OFFERS
   ============================================ */
.offers {
  padding: var(--section-pad);
  background: var(--charcoal);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 48px;
}

.offer-card {
  background: var(--charcoal-mid);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 2px solid transparent;
  transition: border-color var(--transition);
}
.offer-card:hover { border-color: var(--gold); }

.offer-learn-more {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  text-align: center;
}

.offer-card--featured {
  background: var(--charcoal-light);
  border-top: 2px solid var(--gold);
}

.offer-phase {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.offer-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--offwhite);
  line-height: 1.1;
}

.offer-desc {
  font-size: 0.9rem;
  color: var(--text-muted-light);
  line-height: 1.75;
}

.offer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
  margin-top: auto;
}

.offer-list li {
  font-size: 0.875rem;
  color: var(--text-muted-light);
  padding-right: 16px;
  position: relative;
  line-height: 1.5;
}

.offer-list li::before {
  content: '·';
  position: absolute;
  right: 0;
  color: var(--gold);
  opacity: 0.6;
}

html[lang="en"] .offer-list li {
  padding-right: 0;
  padding-left: 16px;
}

html[lang="en"] .offer-list li::before {
  right: auto;
  left: 0;
}

.offer-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 16px;
}

.offers-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.offers-cta-lead {
  font-size: 1rem;
  color: var(--text-muted-light);
  line-height: 1.7;
  max-width: 480px;
}

.offers-cta-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -0.25rem;
}

/* ============================================
   CASE STUDIES
   ============================================ */
.cases {
  padding: var(--section-pad);
  background: var(--charcoal-mid);
}

.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.case-card {
  background: var(--charcoal);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-top: 2px solid transparent;
  transition: border-color var(--transition);
}
.case-card:hover { border-top-color: var(--gold); }

.case-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.case-top h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--offwhite);
  line-height: 1.3;
  margin-bottom: 10px;
}

.case-context {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.case-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.case-col {
  padding: 20px;
}

.case-col--before {
  background: rgba(255,255,255,0.03);
}

.case-col--after {
  background: rgba(201,169,110,0.06);
}

.case-col-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.case-col--before .case-col-label { color: var(--text-muted); }
.case-col--after .case-col-label { color: var(--gold); }

.case-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-col ul li {
  font-size: 0.82rem;
  color: var(--text-muted-light);
  line-height: 1.5;
  padding-right: 12px;
  position: relative;
}
.case-col ul li::before {
  content: '·';
  position: absolute;
  right: 0;
  color: var(--text-muted);
}
html[lang="en"] .case-col ul li {
  padding-right: 0;
  padding-left: 12px;
}
html[lang="en"] .case-col ul li::before {
  right: auto;
  left: 0;
}

.case-col--after ul li { color: var(--offwhite-mid); }
.case-col--after ul li::before { color: var(--gold); opacity: 0.6; }

.case-metrics {
  display: flex;
  gap: 1.5rem;
}

.case-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.case-metric-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.case-metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.case-result {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(201,169,110,0.08);
  border-right: 3px solid var(--gold);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
html[lang="en"] .case-result {
  border-right: none;
  border-left: 3px solid var(--gold);
  border-radius: var(--radius) 0 0 var(--radius);
}

.case-result-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.case-result-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--offwhite);
  line-height: 1.4;
}

/* ============================================
   WHO THIS IS FOR
   ============================================ */
.for-who {
  padding: var(--section-pad);
  background: var(--charcoal);
}

.for-who-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: center;
}

.for-who-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
}
.for-who-image img { object-position: top center; }

.for-who-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 40px;
}

.for-who-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.97rem;
  color: var(--text-muted-light);
  line-height: 1.7;
}

.check {
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   FINAL CTA
   ============================================ */
.cta-section {
  padding: var(--section-pad);
  background: var(--charcoal-mid);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.cta-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.cta-image img { object-position: top center; }

.cta-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 900;
  color: var(--offwhite);
  line-height: 1.25;
  margin-bottom: 20px;
}

.cta-text p {
  font-size: 0.97rem;
  color: var(--text-muted-light);
  line-height: 1.8;
  margin-bottom: 32px;
}

.cta-note {
  margin-top: 16px !important;
  margin-bottom: 0 !important;
  font-size: 0.82rem !important;
  color: var(--text-muted) !important;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 24px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--offwhite);
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ============================================
   RTL / LTR LAYOUT ADJUSTMENTS
   ============================================ */
html[dir="rtl"] .hero-inner {
  direction: rtl;
}

html[dir="ltr"] .hero-inner {
  direction: ltr;
}

html[dir="rtl"] .about-inner {
  direction: rtl;
}

html[dir="rtl"] .for-who-inner {
  direction: rtl;
}

html[dir="rtl"] .cta-inner {
  direction: rtl;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 960px) {
  :root { --section-pad: 72px 0; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-image {
    max-height: 520px;
    aspect-ratio: 3/4;
    order: -1;
  }
  .hero-sub { max-width: 100%; }

  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-image { position: static; aspect-ratio: 3/4; max-height: 480px; }

  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .offers-grid { grid-template-columns: 1fr; gap: 2px; }
  .cases-grid { grid-template-columns: 1fr; }

  .for-who-inner { grid-template-columns: 1fr; gap: 40px; }
  .for-who-image { max-height: 440px; aspect-ratio: 3/4; }

  .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .cta-image { max-height: 440px; aspect-ratio: 3/4; }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 640px) {
  :root { --section-pad: 56px 0; }

  .nav-inner { height: 60px; }
  .btn-nav { display: none; }

  .hero { padding: 90px 20px 60px; }
  .hero-headline { font-size: 1.9rem; }

  .problem-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }

  .offers-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }

  .section-headline { font-size: 1.6rem; }
  .cta-text h2 { font-size: 1.5rem; }
}
