/* ==========================================================================
   SBIC — about.css (Modern Redesign)
   Pure CSS — no frameworks. Uses CSS logical properties throughout so the
   layout mirrors correctly in both LTR (default) and RTL without duplicating
   any rules.
   ========================================================================== */

:root {
  --color-primary: #0F2027;
  --color-primary-light: #1E3C72;
  --color-accent: #C5A059;
  --color-accent-light: #D4AF37;

  --color-bg-page: #FFFFFF;
  --color-bg-soft: #F7F8FA;
  --color-text-main: #26333D;
  --color-text-muted: #64748B;
  --color-border: #E7EAEE;

  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 30px rgba(15, 32, 39, 0.08);
  --shadow-hover: 0 20px 45px rgba(15, 32, 39, 0.16);

  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;

  --font-main: 'Segoe UI', 'Tajawal', Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--color-text-main);
  background-color: var(--color-bg-page);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

.section-inner {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

h1, h2, h3 {
  color: var(--color-primary);
  font-weight: 800;
  line-height: 1.3;
}

h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-block: 0.5rem var(--space-lg); }
h3 { font-size: 1.3rem; margin-block-end: var(--space-sm); }

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-accent-light);
}
.eyebrow--dark { color: var(--color-accent); }

/* ==========================================================================
   Hero Section — gradient + image background, centered fade-in text
   ========================================================================== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 32, 39, 0.88) 0%,
    rgba(30, 60, 114, 0.72) 55%,
    rgba(15, 32, 39, 0.9) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  padding-inline: 1.5rem;
  animation: fadeInUp 1s ease both;
}

.hero__content h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-block: 0.75rem 1rem;
}

.hero__content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
}

.hero .eyebrow {
  color: var(--color-accent-light);
}

/* زر تبديل اللغة — عائم فوق الهيرو، بأعلى الجهة "النهائية" منطقياً
   (يمين في LTR، يسار في RTL تلقائياً بدون كود إضافي) */
.lang-switch {
  position: absolute;
  top: 1.5rem;
  inset-inline-end: 1.5rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 0.4em 1.1em;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.lang-switch:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Who We Are — Split Layout (CSS Grid, auto-mirrors for RTL)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: center;
  max-width: 1180px;
  margin-inline: auto;
  padding: var(--space-2xl) 1.5rem;
}

.split__text p {
  color: var(--color-text-muted);
  margin-block-end: var(--space-md);
  font-size: 1.02rem;
}

.split__visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ==========================================================================
   Vision & Mission — two elevated panel cards
   ========================================================================== */
.vision-mission { padding-block: var(--space-xl) var(--space-2xl); }

.cards-row {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.panel-card {
  flex: 1 1 320px;
  background-color: var(--color-bg-page);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.panel-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.panel-card__icon {
  font-size: 2.2rem;
  display: inline-block;
  margin-block-end: var(--space-sm);
}
.panel-card p { color: var(--color-text-muted); }

/* ==========================================================================
   Values / Goals — Responsive 3-Column Card Grid with hover scale
   ========================================================================== */
.values, .goals { padding-block: var(--space-2xl); }
.values { background-color: var(--color-bg-soft); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-block-start: var(--space-lg);
}

.value-card {
  background-color: var(--color-bg-page);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.value-card:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}

.value-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-bg-soft);
  font-size: 1.1rem;
  margin-block-end: var(--space-sm);
}

.value-card p {
  color: var(--color-text-main);
  font-size: 0.98rem;
}

/* ==========================================================================
   Motto Banner
   ========================================================================== */
.motto {
  background-color: var(--color-primary);
  padding-block: var(--space-xl);
  text-align: center;
}
.motto blockquote {
  color: var(--color-accent-light);
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  font-weight: 700;
  max-width: 800px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ==========================================================================
   Why Choose Us — intro text + compact chip grid
   ========================================================================== */
.why-us { padding-block: var(--space-2xl); background-color: var(--color-bg-soft); }

.why-us__intro {
  color: var(--color-text-muted);
  max-width: 780px;
  font-size: 1.05rem;
  margin-block-end: var(--space-lg);
}

.cards-grid--compact {
  grid-template-columns: repeat(3, 1fr);
}

.chip {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: var(--color-bg-page);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.chip:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-soft);
  border-color: var(--color-accent);
}
.chip__check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split__visual { order: -1; } /* image appears above text on tablets/mobile */
  .cards-grid,
  .cards-grid--compact {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  :root {
    --space-2xl: 3.5rem;
    --space-xl: 2.25rem;
  }
  .cards-row { flex-direction: column; }
  .cards-grid,
  .cards-grid--compact {
    grid-template-columns: 1fr;
  }
}