/* Progress School landing — single shared stylesheet for AR/FR/EN */
:root {
  --brand-yellow: #FFEE00;
  --brand-yellow-soft: #FFF8C5;
  --brand-yellow-deep: #E5C800;
  --brand-black: #0A0A0A;
  --brand-white: #FFFFFF;
  --ink-700: #2A2A2A;
  --ink-500: #6B6B6B;
  --ink-300: #B0B0B0;
  --ink-200: #E5E5E5;
  --ink-100: #F5F5F5;
  --max-w: 1180px;
  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 6px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Tajawal', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--ink-700);
  background: var(--brand-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body[data-lang="fr"], body[data-lang="en"] {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
@media (max-width: 768px) { .container { padding: 0 16px; } }

/* ═════ Buttons ═════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--r-sm);
  font-weight: 700; font-size: 15px; text-decoration: none;
  border: 2px solid transparent; transition: all 0.15s ease;
  cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: var(--brand-yellow); color: var(--brand-black);
  box-shadow: 0 4px 12px rgba(255,238,0,0.45);
}
.btn-primary:hover {
  background: var(--brand-yellow-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,238,0,0.55);
}
.btn-ghost {
  background: transparent; color: var(--brand-black);
  border-color: var(--brand-black);
}
.btn-ghost:hover { background: var(--brand-black); color: var(--brand-yellow); }
.btn-lg { padding: 16px 28px; font-size: 17px; border-radius: var(--r); }

/* ═════ Header ═════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-200);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--brand-black);
}
.logo { width: 36px; height: 36px; border-radius: 6px; }
.brand-name { font-family: 'Anton', sans-serif; font-size: 22px; letter-spacing: 0.04em; }
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: var(--ink-700); text-decoration: none; font-weight: 500; font-size: 15px;
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--brand-black); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switcher {
  display: flex; gap: 0; font-size: 13px; font-weight: 600;
  border: 1px solid var(--ink-200); border-radius: 999px; overflow: hidden;
}
.lang-switcher a {
  padding: 6px 12px; text-decoration: none; color: var(--ink-500);
  border-inline-end: 1px solid var(--ink-200);
}
.lang-switcher a:last-child { border-inline-end: none; }
.lang-switcher a.active { background: var(--brand-black); color: var(--brand-yellow); }
.btn-cta { padding: 9px 16px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; padding: 4px; }

@media (max-width: 900px) {
  .main-nav {
    display: none; position: absolute; top: 64px; inset-inline-start: 0; inset-inline-end: 0;
    flex-direction: column; background: white; padding: 18px 24px; gap: 14px;
    border-bottom: 1px solid var(--ink-200); box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .lang-switcher a { padding: 4px 9px; font-size: 12px; }
  .btn-cta { display: none; }
}

/* ═════ Hero ═════ */
.hero {
  padding: 70px 0 90px;
  background: linear-gradient(180deg, var(--brand-yellow-soft) 0%, var(--brand-white) 70%);
  position: relative; overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.hero-accent {
  display: block; width: 64px; height: 8px; background: var(--brand-yellow);
  margin-bottom: 22px; border-radius: 4px;
}
.hero-display {
  font-family: 'Anton', 'Tajawal', sans-serif;
  font-size: clamp(40px, 7vw, 78px);
  font-weight: 800; line-height: 0.98;
  letter-spacing: -0.02em; margin: 0 0 20px;
  color: var(--brand-black);
}
.hero-display span { display: block; }
.hero-tag-ar { font-family: 'Tajawal', sans-serif; }
.hero-tag-fr, .hero-tag-en {
  font-size: 0.42em; font-weight: 700; color: var(--ink-500); margin-top: 6px;
  font-family: 'Inter', sans-serif; letter-spacing: 0;
}
.hero-sub {
  font-size: 18px; line-height: 1.6; color: var(--ink-500);
  margin: 0 0 32px; max-width: 540px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-photo {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--ink-200);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: ''; position: absolute; bottom: -20px; inset-inline-end: -20px;
  width: 80px; height: 80px; background: var(--brand-yellow);
  border-radius: var(--r); z-index: -1;
}

@media (max-width: 768px) {
  .hero { padding: 40px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { order: -1; aspect-ratio: 16 / 10; }
}

/* ═════ Section head ═════ */
.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
.section-bar { display: block; width: 8px; height: 32px; background: var(--brand-yellow); border-radius: 2px; }
.section-head h2 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 800; margin: 0; color: var(--brand-black); letter-spacing: -0.01em; }

/* ═════ Audiences ═════ */
.audiences { padding: 64px 0; background: var(--brand-white); }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.audience-card {
  background: var(--ink-100); border: 2px solid transparent;
  border-radius: var(--r); padding: 28px;
  text-decoration: none; color: var(--brand-black);
  transition: all 0.15s ease; display: block;
}
.audience-card:hover {
  background: var(--brand-yellow-soft); border-color: var(--brand-yellow);
  transform: translateY(-2px);
}
.audience-icon { font-size: 36px; margin-bottom: 10px; }
.audience-card h3 { font-size: 22px; margin: 0 0 8px; font-weight: 800; }
.audience-card p { font-size: 14.5px; color: var(--ink-500); margin: 0; line-height: 1.5; }
@media (max-width: 768px) { .audience-grid { grid-template-columns: 1fr; gap: 12px; } .audiences { padding: 48px 0; } }

/* ═════ Why us ═════ */
.why-us { padding: 64px 0; background: var(--ink-100); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-card { background: var(--brand-white); border-radius: var(--r); padding: 24px; text-align: center; transition: transform 0.15s; }
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.why-icon { font-size: 32px; margin-bottom: 10px; }
.why-card h4 { font-size: 16px; margin: 0 0 6px; font-weight: 800; }
.why-card p { font-size: 13.5px; color: var(--ink-500); margin: 0; line-height: 1.5; }
@media (max-width: 768px) { .why-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .why-us { padding: 48px 0; } }

/* ═════ Courses ═════ */
.courses { padding: 64px 0; background: var(--brand-white); }
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course-card {
  background: var(--brand-white); border: 2px solid var(--ink-200);
  border-radius: var(--r); padding: 28px;
  position: relative; transition: all 0.15s ease;
  display: flex; flex-direction: column;
}
.course-card:hover { border-color: var(--brand-yellow); transform: translateY(-2px); box-shadow: var(--shadow); }
.course-card-featured { border-color: var(--brand-yellow); background: var(--brand-yellow-soft); }
.course-badge {
  position: absolute; top: -12px; inset-inline-end: 24px;
  background: var(--brand-black); color: var(--brand-yellow);
  padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 700;
}
.course-card h3 { font-size: 22px; margin: 0 0 16px; font-weight: 800; }
.course-meta { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.course-meta li { padding: 7px 0; font-size: 14.5px; color: var(--ink-700); border-bottom: 1px dashed var(--ink-200); }
.course-meta li:last-child { border-bottom: none; }
@media (max-width: 768px) { .courses-grid { grid-template-columns: 1fr; gap: 14px; } .courses { padding: 48px 0; } }

/* ═════ Schedule (dark) ═════ */
.schedule { padding: 64px 0; background: var(--brand-black); color: var(--brand-white); }
.schedule .section-head h2 { color: var(--brand-white); }
.schedule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.schedule-block { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,238,0,0.2); border-radius: var(--r); padding: 28px; }
.schedule-title { font-size: 20px; font-weight: 800; margin-bottom: 16px; color: var(--brand-yellow); }
.schedule-block ul { list-style: none; padding: 0; margin: 0; }
.schedule-block li { padding: 9px 0; font-size: 15.5px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.schedule-block li:last-child { border-bottom: none; }
@media (max-width: 768px) { .schedule-grid { grid-template-columns: 1fr; } .schedule { padding: 48px 0; } }

/* ═════ Gallery ═════ */
.gallery { padding: 64px 0; background: var(--brand-white); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; gap: 8px; }
.g-tile { display: block; overflow: hidden; border-radius: var(--r-sm); background: var(--ink-200); }
.g-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.g-tile:hover img { transform: scale(1.05); }
.g-big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .g-big { grid-column: span 2; grid-row: span 2; }
  .gallery { padding: 48px 0; }
}

/* ═════ How it works ═════ */
.how-it-works { padding: 64px 0; background: var(--ink-100); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card { background: var(--brand-white); border-radius: var(--r); padding: 28px; text-align: center; }
.step-num {
  width: 48px; height: 48px; background: var(--brand-yellow); color: var(--brand-black);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; margin-bottom: 14px;
  font-family: 'Anton', sans-serif;
}
.step-card h4 { font-size: 18px; margin: 0 0 8px; font-weight: 800; }
.step-card p { font-size: 14px; color: var(--ink-500); margin: 0; line-height: 1.5; }
@media (max-width: 768px) { .steps-grid { grid-template-columns: 1fr; } .how-it-works { padding: 48px 0; } }

/* ═════ FAQ ═════ */
.faq { padding: 64px 0; background: var(--brand-white); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--ink-100); border-radius: var(--r); padding: 18px 22px; transition: all 0.15s; }
.faq-item[open] { background: var(--brand-yellow-soft); }
.faq-item summary {
  font-weight: 700; font-size: 16px; cursor: pointer;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::after { content: '+'; font-size: 24px; font-weight: 300; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 12px 0 0; font-size: 14.5px; color: var(--ink-500); line-height: 1.6; }
@media (max-width: 768px) { .faq { padding: 48px 0; } }

/* ═════ Contact / Locations ═════ */
.contact { padding: 64px 0; background: var(--ink-100); }
.contact-intro { font-size: 18px; color: var(--ink-700); margin-bottom: 28px; }
.locations-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 40px; }
.location-card { background: var(--brand-white); border-radius: var(--r); padding: 28px; border-top: 4px solid var(--brand-yellow); }
.location-card h3 { font-size: 22px; margin: 0 0 8px; font-weight: 800; }
.loc-meta { font-size: 12.5px; color: var(--brand-yellow-deep); font-weight: 700; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.loc-addr { font-size: 16px; color: var(--ink-700); margin: 0; line-height: 1.6; }
.contact-cta { background: var(--brand-black); color: var(--brand-white); border-radius: var(--r); padding: 36px; text-align: center; }
.contact-cta h3 { font-size: 24px; margin: 0 0 20px; color: var(--brand-yellow); }
.contact-channels { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.contact-channel { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: var(--r-sm); background: rgba(255,255,255,0.06); color: var(--brand-white); text-decoration: none; transition: all 0.15s; }
.contact-channel:hover { background: rgba(255,238,0,0.18); }
.contact-channel-primary { background: var(--brand-yellow); color: var(--brand-black); }
.contact-channel-primary:hover { background: var(--brand-yellow-deep); }
.cc-icon { font-size: 22px; }
.cc-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
[dir="rtl"] .cc-text { align-items: flex-end; }
.cc-label { font-weight: 700; font-size: 14px; }
.cc-value { font-size: 12.5px; opacity: 0.78; }
@media (max-width: 768px) { .locations-grid { grid-template-columns: 1fr; } .contact { padding: 48px 0; } }

/* ═════ Footer ═════ */
.site-footer { background: var(--brand-black); color: var(--brand-white); padding: 40px 0 20px; }
.footer-inner { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 40px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 36px; height: 36px; border-radius: 6px; }
.footer-brand small { color: var(--ink-300); font-size: 13px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-300); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--brand-yellow); }
.footer-langs { display: flex; gap: 8px; }
.footer-langs a { color: var(--ink-300); text-decoration: none; font-size: 13px; padding: 4px 10px; border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; }
.footer-langs a.active { color: var(--brand-yellow); border-color: var(--brand-yellow); }
.footer-bottom { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); color: var(--ink-300); font-size: 13px; }
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer-brand, .footer-links, .footer-langs { justify-content: center; }
}

/* ═════ Sticky FAB ═════ */
.fab {
  position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 99;
  display: flex; align-items: center; gap: 8px;
  padding: 14px 22px; background: var(--brand-yellow); color: var(--brand-black);
  border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 15px;
  box-shadow: 0 8px 24px rgba(255,238,0,0.5);
  transition: all 0.15s;
}
.fab:hover { background: var(--brand-yellow-deep); transform: translateY(-2px); }
.fab-icon { font-size: 18px; }
@media (max-width: 768px) {
  .fab { bottom: 16px; inset-inline-end: 16px; padding: 12px 18px; font-size: 14px; }
}

/* ═════ RTL niceties ═════ */
[dir="rtl"] .hero-display, [dir="rtl"] .section-head h2 { text-align: start; }
[dir="rtl"] .hero-photo::after { inset-inline-end: -20px; inset-inline-start: auto; }
