/* ═══════════════════════════════════════════
   MorabiOnline.com — style.css (v2, multi-page + i18n)
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --cream:    #F5F2EB;
  --paper:    #FDFCF9;
  --ink:      #1C1917;
  --ink2:     #44403C;
  --muted:    #A8A29E;
  --border:   #E7E3DA;
  --gold:     #C9933A;
  --gold-lt:  #F0D9A8;
  --teal:     #0F766E;
  --teal-lt:  #CCFBF1;
  --red:      #C0392B;
  --white:    #FFFFFF;

  --r-sm: 8px; --r-md: 14px; --r-lg: 20px;
  --shadow-sm: 0 1px 4px rgba(28,25,23,.06);
  --shadow-md: 0 4px 20px rgba(28,25,23,.10);
  --shadow-lg: 0 12px 48px rgba(28,25,23,.14);
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }

body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: 'Inter', system-ui, sans-serif; }

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap    { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }
.wrap-sm { max-width: 720px;  margin: 0 auto; padding: 0 2rem; }
.wrap-md { max-width: 860px;  margin: 0 auto; padding: 0 2rem; }

/* ─── HEADER ─── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(253,252,249,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 64px; display: flex; align-items: center;
}
.header-inner {
  width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  font-size: 1.2rem; font-weight: 900; letter-spacing: -0.04em; color: var(--ink);
  display: flex; align-items: center; gap: 0.3rem; flex-shrink: 0;
}
.logo-dot { color: var(--gold); font-size: 1.5rem; line-height: 0; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a {
  font-size: 0.88rem; font-weight: 500; color: var(--ink2);
  transition: color .15s; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }

.header-right { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

/* Language switch */
.lang-switch {
  display: flex; align-items: center; border: 1.5px solid var(--border);
  border-radius: 100px; overflow: hidden; height: 34px;
}
.lang-btn {
  background: transparent; border: none; padding: 0 0.85rem; height: 100%;
  font-size: 0.78rem; font-weight: 700; color: var(--muted);
  transition: all .15s;
}
.lang-btn.active { background: var(--ink); color: var(--white); }

.nav-toggle {
  display: none; background: transparent; border: none;
  font-size: 1.4rem; color: var(--ink); padding: 0.2rem 0.4rem;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.6rem 1.4rem; border-radius: var(--r-sm); border: none;
  font-family: inherit; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: all .18s ease; white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn-ghost { background: transparent; color: var(--ink2); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--cream); border-color: var(--muted); }
.btn-gold { background: var(--gold); color: var(--white); box-shadow: 0 2px 12px rgba(201,147,58,.30); }
.btn-gold:hover { background: #b8832e; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(201,147,58,.38); }
.btn-teal { background: var(--teal); color: var(--white); box-shadow: 0 2px 12px rgba(15,118,110,.22); }
.btn-teal:hover { background: #0c6560; transform: translateY(-1px); }
.btn-outline-gold { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.btn-outline-gold:hover { background: rgba(201,147,58,.07); }
.btn-lg { padding: 0.85rem 2.2rem; font-size: 1rem; border-radius: var(--r-md); }
.btn-full { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: 3.4rem 2rem 3rem; text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(201,147,58,.08) 0%, transparent 65%), var(--paper);
  border-bottom: 1px solid var(--border);
}
.page-hero .section-label { justify-content: center; display: flex; }
.page-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 900;
  letter-spacing: -0.035em; margin-bottom: 0.6rem;
}
.page-hero p { color: var(--ink2); font-weight: 300; max-width: 560px; margin: 0 auto; }

/* ─── HOME HERO ─── */
.hero-section {
  padding: 5.5rem 2rem 4.5rem; text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(201,147,58,.09) 0%, transparent 65%), var(--paper);
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(201,147,58,.12); border: 1px solid rgba(201,147,58,.30);
  color: var(--gold); padding: 0.3rem 1rem; border-radius: 100px;
  font-size: 0.78rem; font-weight: 600; margin-bottom: 2rem; letter-spacing: 0.03em;
}
.hero-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.hero-h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.7rem); font-weight: 900; line-height: 1.18;
  letter-spacing: -0.04em; color: var(--ink); margin-bottom: 1.3rem;
}
.hero-h1 .hl-teal { color: var(--teal); }
.hero-h1 .hl-gold { color: var(--gold); }
.hero-sub { font-size: 1.03rem; color: var(--ink2); font-weight: 300; max-width: 540px; margin: 0 auto 2.6rem; }
.hero-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ─── STATS ─── */
.stats-strip {
  display: flex; justify-content: center; gap: 3.6rem; flex-wrap: wrap;
  padding: 2.6rem 2rem; border-bottom: 1px solid var(--border); background: var(--paper);
}
.stat-block { text-align: center; }
.stat-n { font-size: 2.1rem; font-weight: 900; color: var(--ink); line-height: 1; letter-spacing: -0.04em; }
.stat-n span { color: var(--gold); }
.stat-lbl { font-size: 0.76rem; color: var(--muted); margin-top: 0.3rem; }

/* ─── SECTIONS ─── */
.section-block { padding: 4.6rem 2rem; }
.section-block.bg-paper { background: var(--paper); border-bottom: 1px solid var(--border); }
.section-block.bg-cream { background: var(--cream); border-bottom: 1px solid var(--border); }
.section-block.tight { padding-top: 3rem; }

.section-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.6rem; display: block;
}
.section-title { font-size: clamp(1.6rem, 3.8vw, 2.3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.2; color: var(--ink); margin-bottom: 0.7rem; }
.section-title .hl { color: var(--teal); }
.section-desc { color: var(--muted); font-size: 0.9rem; }

/* ─── HOW IT WORKS ─── */
.how-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; margin-top: 2.6rem;
}
.how-cell { background: var(--paper); padding: 2rem 1.7rem; transition: background .2s; }
.how-cell:hover { background: var(--white); }
.how-step-n {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; background: rgba(201,147,58,.12); border: 1px solid rgba(201,147,58,.25);
  font-size: 0.76rem; font-weight: 800; color: var(--gold); margin-bottom: 0.9rem;
}
.how-cell h3 { font-size: 0.93rem; font-weight: 700; margin-bottom: 0.35rem; }
.how-cell p { font-size: 0.82rem; color: var(--muted); line-height: 1.65; }

/* ─── FEATURES GRID ─── */
.feat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; margin-top: 2.6rem;
}
.feat-cell { background: var(--paper); padding: 1.9rem 1.7rem; transition: background .2s; display: flex; gap: 1.05rem; align-items: flex-start; }
.feat-cell:hover { background: var(--white); }
.feat-ico {
  font-size: 1.3rem; flex-shrink: 0; margin-top: .05rem; width: 42px; height: 42px;
  border-radius: 10px; background: rgba(201,147,58,.1); display: flex; align-items: center; justify-content: center;
}
.feat-cell h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.3rem; }
.feat-cell p { font-size: 0.81rem; color: var(--muted); line-height: 1.65; }

/* ─── ROLE / AUDIENCE CARDS (features page) ─── */
.role-tabs { display: flex; gap: 0.5rem; justify-content: center; margin: 2.6rem 0 2.2rem; flex-wrap: wrap; }
.role-tab {
  padding: 0.55rem 1.3rem; border-radius: 100px; border: 1.5px solid var(--border);
  background: var(--paper); font-size: 0.85rem; font-weight: 600; color: var(--ink2); transition: all .15s;
}
.role-tab.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.role-panel { display: none; }
.role-panel.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }

/* ─── FAQ ─── */
.faq-list { max-width: 760px; margin: 2.6rem auto 0; display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden;
}
.faq-q {
  width: 100%; background: transparent; border: none; text-align: inherit;
  padding: 1.1rem 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: 0.92rem; font-weight: 700; color: var(--ink);
}
.faq-q .plus { font-size: 1.3rem; color: var(--gold); transition: transform .2s; flex-shrink: 0; font-weight: 400; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease;
  font-size: 0.85rem; color: var(--muted); padding: 0 1.4rem;
}
.faq-item.open .faq-a { max-height: 240px; padding: 0 1.4rem 1.2rem; }

/* ─── REGISTER CARDS / FORMS ─── */
.reg-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.6rem; align-items: start; }
.reg-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.reg-card-head { padding: 1.5rem 1.9rem 1.3rem; border-bottom: 1px solid var(--border); }
.reg-card-head.gold-head { background: linear-gradient(135deg, #fdf8ee, #f5edcf); }
.reg-card-head.teal-head { background: linear-gradient(135deg, #f0fdfa, #ccfbf1); }
.reg-tag { display: inline-block; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.7rem; border-radius: 100px; margin-bottom: 0.5rem; }
.gold-tag { background: rgba(201,147,58,.15); color: var(--gold); }
.teal-tag { background: rgba(15,118,110,.12); color: var(--teal); }
.reg-card-head h3 { font-size: 1.18rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.2rem; }
.reg-card-head p { font-size: 0.82rem; color: var(--ink2); font-weight: 300; }
.reg-card-body { padding: 1.7rem 1.9rem; }

.form-group { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 0.65rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font-family: inherit; font-size: 0.86rem; padding: 0.68rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--r-sm); background: var(--cream);
  color: var(--ink); outline: none; transition: border-color .15s, background .15s;
  appearance: none; -webkit-appearance: none;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px rgba(201,147,58,.12);
}
.form-field.teal-focus input:focus, .form-field.teal-focus select:focus, .form-field.teal-focus textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,118,110,.10);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); }
.form-field select { cursor: pointer; }
.form-field textarea { resize: vertical; min-height: 68px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.form-hint { font-size: 0.74rem; color: var(--muted); margin-top: -0.3rem; }

.file-drop {
  border: 1.5px dashed var(--border); border-radius: var(--r-sm); padding: 0.9rem 1rem;
  background: var(--cream); font-size: 0.8rem; color: var(--muted); text-align: center;
  cursor: pointer; transition: border-color .15s;
}
.file-drop:hover { border-color: var(--gold); }
.file-drop input[type=file] { display: none; }

.msg { display: none; margin-top: 0.8rem; padding: 0.65rem 1rem; border-radius: var(--r-sm); font-size: 0.84rem; font-weight: 500; }
.msg.ok  { display: block; background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.msg.err { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ─── SIMPLE CONTACT FORM (contact page) ─── */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; margin-top: 2.6rem; align-items: start; }
.contact-info-card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.8rem; display: flex; flex-direction: column; gap: 1.3rem;
}
.contact-info-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-info-ico {
  width: 38px; height: 38px; border-radius: 9px; background: rgba(201,147,58,.1);
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0;
}
.contact-info-item h4 { font-size: 0.86rem; font-weight: 700; margin-bottom: 0.15rem; }
.contact-info-item p { font-size: 0.8rem; color: var(--muted); }

/* ─── LOGOS / PARTNERS STRIP ─── */
.partners-strip { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
.partner-pill { padding: 0.4rem 1.1rem; border: 1px solid var(--border); border-radius: 100px; font-size: 0.8rem; color: var(--ink2); background: var(--paper); }

/* ─── FOOTER ─── */
.site-footer { border-top: 1px solid var(--border); background: var(--ink); color: rgba(255,255,255,.55); padding: 3rem 2rem 1.6rem; }
.footer-grid {
  max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { font-size: 1.1rem; font-weight: 900; color: var(--white); letter-spacing: -0.03em; margin-bottom: 0.7rem; }
.footer-logo span { color: var(--gold); }
.footer-col p.desc { font-size: 0.82rem; line-height: 1.7; max-width: 260px; }
.footer-col h5 { font-size: 0.78rem; font-weight: 700; color: var(--white); margin-bottom: 0.9rem; letter-spacing: 0.03em; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { font-size: 0.82rem; transition: color .15s; }
.footer-col a:hover { color: var(--gold-lt); }
.footer-bottom {
  max-width: 1080px; margin: 0 auto; padding-top: 1.4rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem;
}
.footer-copy { font-size: 0.78rem; }
.footer-note { font-size: 0.74rem; color: rgba(255,255,255,.32); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .main-nav.mobile-open {
    display: flex; flex-direction: column; position: fixed; top: 64px; right: 0; left: 0;
    background: var(--paper); border-bottom: 1px solid var(--border); padding: 1.2rem 2rem;
    gap: 1rem; box-shadow: var(--shadow-md); z-index: 199;
  }
}
@media (max-width: 640px) {
  .how-grid { grid-template-columns: 1fr; }
  .reg-wrap { grid-template-columns: 1fr; }
  .stats-strip { gap: 2rem; }
  .form-row-2 { grid-template-columns: 1fr; }
  .hero-section, .page-hero { padding-left: 1.2rem; padding-right: 1.2rem; }
  .wrap, .wrap-sm, .wrap-md, .section-block { padding-left: 1.2rem; padding-right: 1.2rem; }
  .header-inner { padding: 0 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
