/* =========================================================
   Rawdat Al-Ilm — Live Site Stylesheet
   v2 redesign + bilingual support (EN page)
   Imports foundation tokens from colors_and_type.css.
   ========================================================= */

@import url("colors_and_type.css");

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg-warm); color: var(--text); font-family: var(--font-sans); line-height: 1.75; }
img { display: block; max-width: 100%; }
ul, dl { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }

.container { max-width: 1100px; margin: 0 auto; padding-inline: 32px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding-inline: 32px; }
section { padding-block: 112px; }

h1, h2, h3 { font-family: var(--font-serif); color: var(--green); margin: 0; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.5rem); font-weight: 700; line-height: 1.1; letter-spacing: 0.2px; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.35; }

.eyebrow { color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 12px; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.8; }

.bilingual { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.bilingual .ar { font-family: var(--font-arabic); color: var(--gold); font-size: 22px; line-height: 1; direction: rtl; text-align: left; unicode-bidi: isolate; }

.btn-primary {
  display: inline-block; padding: 16px 36px;
  background: var(--gold); color: var(--text);
  font-weight: 600; font-size: 15px; letter-spacing: 0.5px;
  text-decoration: none; border-radius: 4px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.08);
  transition: background-color 0.15s ease;
  border: 0; cursor: pointer; font-family: inherit;
}
.btn-primary:hover { background: var(--gold-deep); }

.scroll-down { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.85); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; margin-top: 28px; }
.scroll-down svg { transition: transform 0.2s ease; }
.scroll-down:hover svg { transform: translateY(2px); }

/* HEADER */
.kit-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--divider); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.kit-header .container { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; gap: 32px; }
.kit-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.kit-logo img { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold); object-fit: cover; }
.kit-logo .lockup { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.kit-logo .lockup .ar { font-family: var(--font-arabic); color: var(--gold); font-size: 14px; direction: rtl; text-align: left; unicode-bidi: isolate; margin-bottom: 4px; }
.kit-logo .lockup .en { font-family: var(--font-serif); font-weight: 700; color: var(--green); font-size: 18px; }
.kit-nav { display: flex; align-items: center; gap: 32px; }
.kit-nav ul { display: flex; gap: 28px; }
.kit-nav a { color: var(--text); text-decoration: none; font-size: 14.5px; transition: color 0.15s; }
.kit-nav a:hover { color: var(--green); }

.lang-switch {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--divider); border-radius: 999px;
  overflow: hidden; font-size: 12px; font-weight: 600; letter-spacing: 0.4px;
  margin-inline-start: 8px;
}
.lang-switch a { padding: 6px 14px; text-decoration: none; color: var(--muted-soft); font-family: var(--font-sans); transition: background-color 0.15s, color 0.15s; display: inline-block; line-height: 1; }
.lang-switch a.active { background: var(--green); color: var(--gold-soft); }
.lang-switch a:not(.active):hover { color: var(--green); background: rgba(31,61,50,0.04); }
.lang-switch a + a { border-inline-start: 1px solid var(--divider); }
.lang-switch a.active + a, .lang-switch a + a.active { border-inline-start-color: var(--green); }
.lang-switch .lang-ar { font-family: var(--font-arabic); font-size: 16px; padding: 4px 14px 6px; }

/* HERO */
.hero {
  position: relative; min-height: 720px;
  background-image:
    linear-gradient(to right, rgba(20,30,24,0.78) 0%, rgba(20,30,24,0.55) 45%, rgba(20,30,24,0.20) 100%),
    url('assets/hero-background.jpg');
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.hero .container { width: 100%; }
.hero .content { max-width: 580px; padding-block: 96px; }
.hero .ar-display { font-family: var(--font-arabic); color: var(--gold-soft); font-size: 32px; line-height: 1; direction: rtl; text-align: left; unicode-bidi: isolate; margin-bottom: 18px; text-shadow: 0 1px 10px rgba(0,0,0,0.6); }
.hero .eyebrow { color: var(--gold-soft); text-shadow: 0 1px 10px rgba(0,0,0,0.85); margin-bottom: 18px; }
.hero h1 { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.5); margin-bottom: 12px; }
.hero h1::after { content: ''; display: block; width: 56px; height: 2px; background: var(--gold); margin-top: 24px; }
.hero .lead { color: rgba(246,243,237,0.92); margin: 24px 0 36px; max-width: 540px; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.hero .actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* GAP */
.gap-section { background: var(--bg-warm); padding-block: 112px; }
.gap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px; margin-top: 56px; }
.gap-item .rule { width: 32px; height: 1px; background: var(--gold); margin-bottom: 18px; }
.gap-item .lead-line { font-family: var(--font-serif); font-weight: 700; color: var(--green); font-size: 22px; margin-bottom: 12px; }
.gap-item p { color: var(--muted); margin: 0; font-size: 15.5px; line-height: 1.75; }

/* PROGRAMS */
.programs-section { background: var(--white); padding-block: 128px; }
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; margin-top: 64px; }
.program { display: flex; flex-direction: column; }
.program svg { width: 36px; height: 36px; display: block; margin-bottom: 14px; }
.program .icon-rule { width: 32px; height: 1px; background: var(--gold); margin-bottom: 18px; }
.program h3 { color: var(--green); margin-bottom: 6px; font-size: 1.25rem; }
.program .ar-name { font-family: var(--font-arabic); color: var(--gold); font-size: 16px; direction: rtl; text-align: left; unicode-bidi: isolate; margin-bottom: 12px; }
.program p { color: var(--muted); margin: 0 0 18px; font-size: 15px; line-height: 1.7; }
.level-stepper { display: flex; align-items: center; gap: 6px; margin-top: auto; }
.level-pill { font-size: 10.5px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted-soft); padding: 4px 10px; border: 1px solid var(--divider); border-radius: 999px; }
.level-pill.active { color: var(--green); border-color: var(--gold); background: rgba(194,161,74,0.06); }
.level-arrow { color: var(--muted-soft); font-size: 11px; }

/* METHODOLOGY */
.methodology { background: var(--bg-warm); padding-block: 128px; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px; margin-top: 64px; }
.method-item { display: flex; flex-direction: column; align-items: flex-start; }
.method-num { font-family: var(--font-serif); font-weight: 600; font-size: 14px; color: var(--gold); letter-spacing: 1.5px; margin-bottom: 24px; }
.method-emblem { margin-bottom: 24px; }
.method-emblem svg { width: 48px; height: 48px; }
.method-item h3 { margin-bottom: 6px; font-size: 1.375rem; }
.method-item .ar { font-family: var(--font-arabic); color: var(--gold); font-size: 16px; direction: rtl; text-align: left; unicode-bidi: isolate; margin-bottom: 14px; }
.method-item p { color: var(--muted); margin: 0; font-size: 15.5px; line-height: 1.75; }

/* INSTRUCTORS */
.instructors-section { background: var(--bg-alt); padding-block: 128px; }
.instructor-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 64px; align-items: center; margin-top: 80px; }
.instructor-row + .instructor-row { margin-top: 96px; }
.instructor-row.reverse { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.instructor-row.reverse .portrait { order: 2; }
.instructor-row.reverse .bio { order: 1; }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.bio .eyebrow { margin-bottom: 14px; }
.bio h3 { font-family: var(--font-serif); font-weight: 700; color: var(--green); font-size: 2rem; line-height: 1.15; margin-bottom: 8px; }
.bio .ar-name { font-family: var(--font-arabic); color: var(--gold); font-size: 22px; direction: rtl; text-align: left; unicode-bidi: isolate; margin-bottom: 18px; }
.bio .gold-rule { width: 48px; height: 2px; background: var(--gold); margin-bottom: 24px; }
.bio p { color: var(--muted); font-size: 16px; line-height: 1.8; margin: 0 0 24px; }
.bio dl.meta { display: grid; grid-template-columns: 110px 1fr; gap: 8px 18px; padding-top: 18px; border-top: 1px solid var(--divider); }
.bio dl.meta dt { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); font-weight: 600; padding-top: 2px; }
.bio dl.meta dd { color: var(--text); font-size: 14.5px; margin: 0; line-height: 1.6; }

/* TESTIMONIALS */
.testimonials-section { background: var(--white); padding-block: 128px; }
.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 56px; align-items: start; }
.testimonials-grid .col { display: flex; flex-direction: column; gap: 56px; }
.tm .qmark { font-family: var(--font-serif); color: var(--gold); font-size: 64px; line-height: 0.9; margin-bottom: 8px; }
.tm .program-tag { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 14px; padding-top: 14px; border-top: 1px solid rgba(194, 161, 74, 0.3); }
.tm p { font-family: var(--font-serif); font-style: italic; color: var(--text); font-size: 18px; line-height: 1.65; margin: 0 0 18px; }
.tm cite { display: block; color: var(--muted); font-size: 14px; font-style: normal; }

/* APPLY */
.apply {
  text-align: center; background: var(--green);
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 28px, rgba(255,255,255,0.018) 28px, rgba(255,255,255,0.018) 29px),
    repeating-linear-gradient(-45deg, transparent, transparent 28px, rgba(255,255,255,0.018) 28px, rgba(255,255,255,0.018) 29px);
  padding-block: 144px; color: #fff;
}
.apply .stepper { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 36px; }
.apply .stepper .step { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; }
.apply .stepper .step .num { font-family: var(--font-serif); display: block; font-size: 16px; color: var(--gold); margin-bottom: 4px; letter-spacing: 0; font-weight: 600; }
.apply .stepper .dash { width: 32px; height: 1px; background: rgba(212,168,67,0.4); }
.apply .ar-h2 { font-family: var(--font-arabic); color: var(--gold-soft); font-size: 28px; direction: rtl; text-align: center; unicode-bidi: isolate; margin-bottom: 12px; }
.apply h2 { color: #fff; }
.apply h2::after { content: ''; display: block; width: 56px; height: 1px; background: var(--gold); margin: 24px auto 0; }
.apply p { color: rgba(255,255,255,0.82); max-width: 540px; margin: 28px auto 36px; font-size: 16.5px; line-height: 1.75; }
.apply .ask { display: block; margin-top: 24px; color: rgba(255,255,255,0.7); font-size: 13.5px; text-decoration: none; letter-spacing: 0.3px; }
.apply .ask:hover { color: var(--gold-soft); text-decoration: underline; }

/* FAQ */
.faq-section { background: var(--bg-warm); padding-block: 128px; }
.faq-list { max-width: 760px; margin-top: 48px; }
.faq-item { border-top: 1px solid var(--divider); padding: 24px 36px 24px 0; cursor: pointer; position: relative; }
.faq-item:first-child { border-top: none; padding-top: 4px; }
.faq-q { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: 19px; color: var(--text); line-height: 1.4; transition: color 0.15s; }
.faq-item.open .faq-q { color: var(--green); }
.faq-chevron { position: absolute; right: 4px; top: 26px; color: var(--gold); transition: transform 0.2s ease; }
.faq-item:first-child .faq-chevron { top: 6px; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { display: none; color: var(--muted); margin-top: 14px; font-size: 15.5px; line-height: 1.75; max-width: 640px; }
.faq-item.open .faq-a { display: block; }

/* FOOTER */
.kit-footer { background: var(--green); color: #fff; padding-block: 64px 32px; }
.kit-footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; align-items: start; }
.kit-footer .brand { display: flex; flex-direction: column; gap: 14px; }
.kit-footer .brand .lockup { display: flex; align-items: center; gap: 12px; }
.kit-footer .brand .lockup img { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold); object-fit: cover; }
.kit-footer .brand .lockup .name-en { font-family: var(--font-serif); font-weight: 700; font-size: 19px; color: #fff; }
.kit-footer .brand .lockup .name-ar { font-family: var(--font-arabic); color: var(--gold-soft); font-size: 14px; direction: rtl; line-height: 1.2; }
.kit-footer .brand p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.7; margin: 0; max-width: 320px; }
.kit-footer h4 { font-family: var(--font-sans); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 16px; font-weight: 600; }
.kit-footer ul { display: flex; flex-direction: column; gap: 10px; }
.kit-footer a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14.5px; transition: color 0.15s; }
.kit-footer a:hover { color: var(--gold-soft); }
.kit-footer .copyright { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(212,168,67,0.25); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.55); }

@media (max-width: 880px) {
  section { padding-block: 80px; }
  .gap-grid, .programs-grid, .method-grid, .testimonials-grid, .kit-footer .grid { grid-template-columns: 1fr; gap: 48px; }
  .instructor-row, .instructor-row.reverse { grid-template-columns: 1fr; gap: 32px; }
  .instructor-row.reverse .portrait { order: 0; } .instructor-row.reverse .bio { order: 0; }
  .hero .content { padding-block: 64px; }
  .kit-nav ul { display: none; }
}
