
/* Yusr Fluent - launch candidate
   Palette: deep navy / teal-green, warm gold CTA, white & soft off-white (Yusr Fluent brand) */
:root {
  --emerald: #15937a;
  --emerald-dark: #0d3149;
  --teal: #12836e;
  --gold: #cfa64f;
  --gold-dark: #a8813a;
  --offwhite: #faf8f4;
  --white: #ffffff;
  --ink: #1f2937;
  --ink-2: #4b5563;
  --hairline: #e7e2da;
  --radius: 14px;
  --font-ltr: 'Inter', system-ui, -apple-system, sans-serif;
  --font-rtl: 'Tajawal', 'Inter', system-ui, sans-serif;
  --shadow: 0 6px 24px rgba(13, 49, 73, 0.10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ltr);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { font-family: var(--font-rtl); }
.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { line-height: 1.25; color: var(--emerald-dark); }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; text-align: center; margin-bottom: 0.75rem; }
h3 { font-size: 1.1rem; font-weight: 700; }
.section-sub { text-align: center; color: var(--ink-2); max-width: 560px; margin: 0 auto 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.6rem; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  font-size: 1rem; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #1c1607; }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-outline { border-color: var(--emerald); color: var(--emerald-dark); background: transparent; }
.btn-outline:hover { background: var(--emerald); color: #fff; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner { display: flex; align-items: center; gap: 1rem; padding: 0.65rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-logo { height: 44px; width: auto; }
.brand-name { font-weight: 800; color: var(--emerald-dark); font-size: 1.05rem; }
.main-nav { display: flex; gap: 1.25rem; margin-inline-start: auto; }
.main-nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--emerald); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; margin-inline-start: auto; }
.main-nav + .header-actions { margin-inline-start: 0; }
.lang-switch { display: flex; border: 1px solid var(--hairline); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  border: 0; background: transparent; padding: 0.35rem 0.7rem; cursor: pointer;
  font-size: 0.82rem; font-weight: 700; color: var(--ink-2);
}
.lang-switch button.active { background: var(--emerald); color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--emerald-dark); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--offwhite) 0%, #ecf3f1 100%); padding: 4rem 0 3.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center; }
.lead { font-size: 1.12rem; color: var(--ink-2); margin: 1.1rem 0 1.6rem; max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.trust-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }
.trust-badges li {
  background: var(--white); border: 1px solid var(--hairline); border-radius: 999px;
  padding: 0.4rem 0.9rem; font-size: 0.85rem; font-weight: 600; color: var(--emerald-dark);
}
.trust-badges li::before { content: "✓ "; color: var(--gold-dark); font-weight: 800; }
.brand-full { color: #d9b64f; font-size: 0.92rem; margin-top: 0.7rem; line-height: 1.6; }
.brand-logo-badge { background: #fff; border-radius: 50%; padding: 3px; }
  border: 2px dashed var(--gold); background: #fffdf5;
}
[dir="rtl"] .trust-badges li::before { content: " ✓"; float: right; margin-inline-start: 0.3em; }
.hero-arch {
  background: linear-gradient(165deg, #0d3149 0%, #10435a 100%); color: #fff; text-align: center;
  border-radius: 180px 180px var(--radius) var(--radius);
  padding: 4.5rem 2rem 3rem; box-shadow: var(--shadow);
}
.hero-ayah { display: block; font-family: var(--font-rtl); font-size: clamp(1.05rem, 5vw, 1.7rem); font-weight: 700; white-space: nowrap; }
.hero-ayah-tr { display: block; margin-top: 1rem; font-size: 0.92rem; color: #e8c96a; }


/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 80; display: flex; align-items: flex-end; gap: 0.6rem; }
.wa-float-btn { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,0.25); transition: transform 0.15s; flex: none; }
.wa-float-btn:hover { transform: scale(1.07); color: #fff; }
.wa-float-msg { display: flex; align-items: center; gap: 0.5rem; background: #fff; border: 1px solid var(--hairline); border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,0.12); padding: 0.55rem 0.8rem; font-size: 0.85rem; font-weight: 600; color: var(--ink); max-width: 240px; }
.wa-float-close { border: none; background: none; font-size: 1.15rem; line-height: 1; cursor: pointer; color: #999; padding: 0 0.1rem; }
.wa-float-close:hover { color: var(--ink); }
@media (max-width: 480px) { .wa-float-msg { max-width: 180px; font-size: 0.8rem; } .wa-float-btn { width: 52px; height: 52px; } }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
section[id], header[id] { scroll-margin-top: 5.5rem; }
.section-alt { background: var(--offwhite); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.step {
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 1.8rem 1.5rem; position: relative; box-shadow: var(--shadow);
}
.section-alt .step { background: var(--white); }
.step-num {
  position: absolute; top: -16px; inset-inline-start: 1.4rem;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: #1c1607; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 0.4rem 0 0.5rem; }
.step p { color: var(--ink-2); font-size: 0.95rem; }

/* Course cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.card {
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; border-top: 4px solid var(--emerald); box-shadow: var(--shadow);
}
.card p { color: var(--ink-2); font-size: 0.93rem; margin-top: 0.5rem; }

/* Pricing */
.pricing-controls { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin: 1.6rem 0 2rem; }
.toggle-group { display: flex; border: 1px solid var(--hairline); border-radius: 999px; overflow: hidden; background: var(--white); }
.toggle { border: 0; background: transparent; padding: 0.55rem 1.1rem; cursor: pointer; font-weight: 700; font-size: 0.88rem; color: var(--ink-2); }
.toggle.active { background: var(--emerald); color: #fff; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.plan {
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 1.7rem 1.4rem; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.plan.featured { border: 2px solid var(--gold); }
.plan-badge { align-self: flex-start; background: var(--gold); color: #1c1607; font-size: 0.72rem; font-weight: 800; padding: 0.2rem 0.7rem; border-radius: 999px; margin-bottom: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; }
.plan-days { font-weight: 800; color: var(--emerald-dark); font-size: 1.05rem; }
.plan-classes { color: var(--ink-2); font-size: 0.85rem; margin-bottom: 0.6rem; }
.plan-price { font-size: 2rem; font-weight: 800; color: var(--ink); }
.plan-price small { font-size: 0.85rem; font-weight: 500; color: var(--ink-2); }
.plan ul { list-style: none; margin: 1rem 0 1.3rem; flex: 1; }
.plan ul li { font-size: 0.9rem; color: var(--ink-2); padding: 0.25rem 0; }
.plan ul li::before { content: "✓ "; color: var(--emerald); font-weight: 800; }
.plan-family { display: inline-block; background: #f4ead0; color: #7a6210; font-size: 0.78rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 999px; margin-bottom: 1rem; }
.pricing-note { text-align: center; color: #8a6d03; font-size: 0.88rem; margin-top: 1.5rem; font-weight: 700; background: #fdf0d5; border: 1px solid #e5cf8f; border-radius: 8px; padding: 0.5rem 1rem; width: fit-content; margin-inline: auto; }
.price-matrix-block { margin: 2rem 0; }
.price-matrix-block h3 { text-align: center; color: var(--emerald-dark); font-size: 1.15rem; margin-bottom: 0.9rem; }
table.price-matrix { width: 100%; max-width: 640px; margin: 0 auto; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
table.price-matrix th, table.price-matrix td { padding: 0.7rem 0.9rem; text-align: center; border-bottom: 1px solid #eee; font-size: 0.98rem; }
table.price-matrix th { background: var(--emerald-dark, #0d3149); color: #fff; font-weight: 700; }
table.price-matrix td:first-child { text-align: left; font-weight: 700; color: var(--emerald-dark); }
table.price-matrix tr:last-child td { border-bottom: none; }
table.price-matrix tr.featured td { background: #fdf6e3; }

/* Why us */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; margin: 2rem 0 3rem; }
.why-item { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.why-item h3::before { content: "★ "; color: var(--gold); }
.why-item p { color: var(--ink-2); font-size: 0.92rem; margin-top: 0.5rem; }

/* Trial form */
.trial-wrap { max-width: 640px; }
.trial-form { background: var(--offwhite); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 2rem; margin-top: 1.5rem; display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.field input, .field select {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--hairline); border-radius: 8px;
  font: inherit; background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.course-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.course-option { cursor: pointer; margin: 0; }
.course-option input { position: absolute; opacity: 0; pointer-events: none; }
.course-option span { display: inline-block; padding: 0.45rem 0.9rem; border: 1px solid var(--hairline); border-radius: 999px; background: #fff; font-size: 0.9rem; font-weight: 500; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.course-option input:checked + span { background: var(--teal); color: #fff; border-color: var(--teal); }
.course-option input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 1px; }

/* FAQ */
.faq-list { max-width: 760px; margin: 2rem auto 0; display: grid; gap: 0.7rem; }
.faq-list details { background: var(--white); border: 1px solid var(--hairline); border-radius: 10px; padding: 1rem 1.25rem; }
.faq-list summary { cursor: pointer; font-weight: 700; color: var(--emerald-dark); }
.faq-list details p { margin-top: 0.6rem; color: var(--ink-2); font-size: 0.95rem; }

/* Footer */
.site-footer { background: var(--emerald-dark); color: #e8f2ee; padding: 3rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.brand-footer .brand-name { color: #fff; }
.footer-col h3 { color: #fff; margin-bottom: 0.8rem; font-size: 1rem; }
.footer-col a { display: block; color: #cfe4dc; text-decoration: none; padding: 0.25rem 0; font-size: 0.93rem; }
.footer-col a:hover { color: var(--gold); }
.footer-col p { font-size: 0.92rem; color: #cfe4dc; margin-top: 0.8rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 2.2rem; padding: 1.1rem 0; font-size: 0.85rem; color: #b9d6cb; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .main-nav {
    display: none; position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; background: var(--white); border-bottom: 1px solid var(--hairline);
    padding: 1rem 1.25rem; gap: 0.9rem;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-actions .btn-gold { display: none; }
  .section { padding: 3rem 0; }
}


/* Blog */
.post-cat { display: inline-block; font-size: 0.78rem; font-weight: 600; color: var(--gold-dark); background: rgba(201,162,39,0.12); padding: 0.2rem 0.7rem; border-radius: 999px; margin-bottom: 0.6rem; }
.post-link { display: inline-block; margin-top: 0.8rem; font-weight: 600; font-size: 0.9rem; color: var(--emerald); }

/* Article reader */
.post-link { background: none; border: none; padding: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 0.9rem; color: var(--emerald); }
.article-overlay { position: fixed; inset: 0; background: rgba(10, 40, 30, 0.55); display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem; z-index: 80; overflow-y: auto; }
.article-overlay[hidden] { display: none; }
.article-panel { background: var(--white); border-radius: var(--radius); max-width: 720px; width: 100%; padding: 2.2rem; position: relative; box-shadow: 0 18px 50px rgba(0,0,0,0.25); }
.article-panel h2 { color: var(--emerald-dark); margin: 1rem 0; line-height: 1.4; }
.article-panel p { color: var(--ink-2); line-height: 1.85; margin-bottom: 1rem; }
.article-close { position: absolute; inset-inline-end: 1rem; top: 1rem; background: var(--offwhite); border: 1px solid var(--hairline); border-radius: 999px; padding: 0.3rem 0.9rem; cursor: pointer; font-weight: 600; color: var(--ink); }
@media (max-width: 640px) { .article-panel { padding: 1.4rem 1.1rem; } }

.lang-switch a { padding: 0.35rem 0.75rem; font-size: 0.85rem; font-weight: 700; text-decoration: none; color: var(--emerald-dark); display: inline-block; }
.lang-switch a.active { background: var(--emerald); color: #fff; }
.more-link { display: inline-block; margin-top: 0.6rem; font-weight: 600; color: var(--emerald); text-decoration: none; }
.more-link:hover { text-decoration: underline; }
.page-hero { padding: 3rem 0 1.5rem; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.8rem; }
.page-hero .lead { max-width: 720px; color: var(--ink-2); font-size: 1.1rem; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; margin-bottom: 0.6rem; font-size: 1.5rem; text-align: start; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.crumbs { font-size: 0.9rem; color: var(--ink-2); margin-bottom: 1rem; }
.crumbs a { color: var(--emerald); text-decoration: none; }
.cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.5rem 0; }
