/* ============================================================
   ArabicOnlineCourse.com — Design System
   Concept: "Wayfinding" — choosing a course is choosing a route
   to a specific destination (a goal). Signage-inspired structure:
   route lines, directional markers, clear destinations.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Public+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Color */
  --ink:        #16241E;   /* near-black, warm dark green-grey */
  --forest:     #1B4332;   /* primary — deep forest green */
  --forest-dark:#123024;
  --ochre:      #C08829;   /* accent — warm ochre/mustard, not orange */
  --ochre-dark: #9C6E1F;
  --paper:      #FFFFFF;
  --sand:       #F4F2EC;   /* section alternation, warm light grey (not cream-tell) */
  --sage:       #E7ECE6;   /* card/tag backgrounds */
  --line:       #D8D4C8;   /* hairline borders */
  --muted:      #5B6660;

  /* Type */
  --display: 'Fraunces', serif;
  --body: 'Public Sans', sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 62ch; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  line-height: 1;
}
.btn-primary { background: var(--ochre); color: var(--ink); }
.btn-primary:hover { background: var(--ochre-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: #fff; }
.btn-dark { background: var(--forest); color: #fff; }
.btn-dark:hover { background: var(--forest-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: #fff; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.logo .dot { color: var(--ochre); }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--ochre); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

@media (max-width: 880px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; padding: 30px 28px; gap: 22px;
    transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.15rem; }
  .nav-toggle { display: block; }
  .header-cta .btn-hide-mobile { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--forest);
  color: #fff;
  padding: 76px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 120px);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-eyebrow { color: var(--ochre); font-weight: 700; font-size: 0.9rem; margin-bottom: 14px; letter-spacing: 0.02em; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lede { color: rgba(255,255,255,0.82); font-size: 1.2rem; max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* ---------- Route / wayfinding selector ---------- */
.routes {
  padding: 80px 0;
}
.routes-head { max-width: 640px; margin-bottom: 46px; }
.route-list { border-top: 1.5px solid var(--ink); }
.route {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1.5px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s ease;
}
.route:hover { background: var(--sand); }
.route:hover .route-arrow { transform: translateX(6px); border-color: var(--ochre); color: var(--ochre); }
.route-code {
  font-family: var(--display);
  font-size: 1.9rem;
  color: var(--ochre);
  font-weight: 500;
}
.route-body h3 { margin-bottom: 4px; font-size: 1.35rem; }
.route-body p { margin: 0; color: var(--muted); font-size: 0.98rem; max-width: 52ch; }
.route-arrow {
  width: 42px; height: 42px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .route { grid-template-columns: 60px 1fr; }
  .route-arrow { display: none; }
  .route-code { font-size: 1.4rem; }
}

/* ---------- Section helpers ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--sand); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .eyebrow { color: var(--ochre-dark); font-weight: 700; font-size: 0.88rem; margin-bottom: 10px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px; align-items: center; }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.feature {
  border-top: 3px solid var(--forest);
  padding-top: 18px;
}
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* ---------- Provider / trust strip ---------- */
.provider-strip {
  background: var(--ink);
  color: #fff;
  padding: 56px 0;
}
.provider-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.provider-strip .label { color: rgba(255,255,255,0.55); font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; }
.provider-strip h3 { color: #fff; margin-bottom: 6px; }
.provider-strip p { color: rgba(255,255,255,0.7); margin: 0; max-width: 46ch; }

/* ---------- Pricing ---------- */
.pricing-toggle {
  display: inline-flex;
  border: 1.5px solid var(--ink);
  border-radius: 30px;
  padding: 4px;
  margin-bottom: 36px;
}
.pricing-toggle button {
  border: none; background: none; padding: 10px 22px; border-radius: 24px;
  font-family: var(--body); font-weight: 700; font-size: 0.92rem; cursor: pointer; color: var(--ink);
}
.pricing-toggle button.active { background: var(--forest); color: #fff; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  border: 1.5px solid var(--line);
  padding: 30px 24px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.price-card.featured { border-color: var(--forest); border-width: 2px; position: relative; }
.price-card .badge {
  position: absolute; top: -13px; left: 24px;
  background: var(--ochre); color: var(--ink); font-size: 0.75rem; font-weight: 800;
  padding: 4px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.03em;
}
.price-card .freq { font-weight: 700; font-size: 0.88rem; color: var(--muted); margin-bottom: 6px; }
.price-card .amount { font-family: var(--display); font-size: 2.3rem; margin-bottom: 2px; }
.price-card .amount span { font-size: 1rem; font-family: var(--body); color: var(--muted); font-weight: 600; }
.price-card .per { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; flex-grow: 1; }
.price-card li { display: flex; gap: 8px; margin-bottom: 10px; font-size: 0.92rem; }
.price-card li::before { content: '—'; color: var(--ochre-dark); font-weight: 700; flex-shrink: 0; }
.pp-slot { min-height: 45px; margin-bottom: 8px; }
.wa-secondary {
  display: block; text-align: center; font-size: 0.86rem; font-weight: 700;
  color: var(--muted); text-decoration: none; padding: 6px 0;
}
.wa-secondary:hover { color: var(--forest); text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1.5px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--body); font-weight: 700; font-size: 1.04rem; color: var(--ink);
}
.faq-q .plus { font-size: 1.4rem; color: var(--ochre-dark); flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding-bottom: 22px; color: var(--muted); margin: 0; }

/* ---------- Who is this for ---------- */
.who-list { list-style: none; padding: 0; margin: 0; }
.who-list li {
  padding: 16px 0; border-bottom: 1px solid var(--line);
  display: flex; gap: 14px; font-size: 1rem;
}
.who-list li::before { content: '✓'; color: var(--forest); font-weight: 800; flex-shrink: 0; }

/* ---------- Course sub-nav (cross-links) ---------- */
.crosslink-strip { background: var(--sage); padding: 46px 0; }
.crosslink-strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.crosslink-strip p { margin: 0; font-weight: 600; }

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--forest);
  color: #fff;
  padding: 78px 0;
  text-align: center;
}
.final-cta h2 { color: #fff; }
.final-cta .lede { color: rgba(255,255,255,0.82); margin: 0 auto 30px; }
.final-cta .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-family: var(--body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { text-decoration: none; color: rgba(255,255,255,0.7); font-size: 0.94rem; }
.footer-grid a:hover { color: #fff; }
.footer-logo { font-family: var(--display); font-size: 1.3rem; color: #fff; margin-bottom: 12px; display: block; text-decoration: none; }
.footer-grid p { color: rgba(255,255,255,0.6); font-size: 0.92rem; max-width: 36ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.footer-bottom a { color: rgba(255,255,255,0.55); text-decoration: underline; }

/* ---------- Course page hero (secondary, lighter) ---------- */
.course-hero { background: var(--sand); padding: 56px 0 60px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.course-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: start; }
@media (max-width: 900px) { .course-hero-grid { grid-template-columns: 1fr; } }
.meta-chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; }
.chip { border: 1.5px solid var(--line); background: var(--paper); padding: 7px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; }

.side-card {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 28px;
}
.side-card .from { font-size: 0.85rem; color: var(--muted); font-weight: 700; }
.side-card .price-big { font-family: var(--display); font-size: 2.6rem; margin: 4px 0 2px; }
.side-card .price-big span { font-size: 1rem; font-family: var(--body); font-weight: 600; color: var(--muted); }
.side-card ul { list-style: none; padding: 0; margin: 18px 0 22px; }
.side-card li { display: flex; gap: 8px; font-size: 0.92rem; margin-bottom: 9px; }
.side-card li::before { content: '—'; color: var(--ochre-dark); font-weight: 700; }
.side-card .btn { margin-bottom: 10px; }
.trust-note { font-size: 0.82rem; color: var(--muted); text-align: center; margin-top: 12px; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 46px 1fr; gap: 18px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  font-family: var(--display); font-size: 1.4rem; color: var(--ochre-dark);
}
.steps li h3 { font-size: 1.05rem; margin-bottom: 4px; }
.steps li p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.88rem; color: var(--muted); }
