/* ============================================================
   MyProp.AI — La Datte Dorée | Trilingual (FR/EN/FA) · RTL ready
   ============================================================ */

:root {
  --bg: #f6f7fb;
  --bg-alt: #0e1a2b;
  --surface: #ffffff;
  --text: #1c2333;
  --text-soft: #5a6478;
  --primary: #0e3a5d;
  --primary-light: #16608f;
  --accent: #c9a227;
  --accent-soft: #f3e5b8;
  --border: #e4e8f0;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(14, 26, 43, .08);
  --font: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}

/* تم ویژه سایت آشپزی (data-theme روی body) */
body[data-theme="cuisine"] {
  --bg: #fdf8f2;
  --bg-alt: #2a1b12;
  --primary: #6b3f23;
  --primary-light: #9a5b2e;
  --accent: #c2491f;
  --accent-soft: #f7ddd0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
}
html[lang="fr"] body, html[lang="en"] body { --font: "Vazirmatn", "Segoe UI", "Helvetica Neue", Arial, sans-serif; }

.container { width: min(1120px, 92%); margin-inline: auto; }

/* ---------- هدر ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  background: rgba(14, 26, 43, .92);
  backdrop-filter: blur(8px);
  transition: box-shadow .3s;
}
body[data-theme="cuisine"] .site-header { background: rgba(42, 27, 18, .94); }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.25); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #a87e14);
  color: #10202f; font-weight: 900; font-size: 1.25rem; border-radius: 10px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.05rem; letter-spacing: .5px; }
.brand-text small { color: #c9d4e2; font-size: .72rem; }

.main-nav { display: flex; gap: 1.3rem; align-items: center; }
.main-nav a {
  color: #d7e0ec; text-decoration: none; font-size: .95rem; font-weight: 500;
  padding-block: .3rem; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover { color: #fff; border-color: var(--accent); }

.lang-switch { display: flex; gap: .15rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .12rem; }
.lang-switch a { color: #c9d4e2; font-size: .78rem; font-weight: 700; padding: .1rem .55rem; border-radius: 999px; border: none; }
.lang-switch a:hover { color: #fff; }
.lang-switch a.active { background: var(--accent); color: #10202f; }

.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; font-size: 1.3rem; padding: .2rem .7rem; border-radius: 8px; cursor: pointer; }

/* ---------- قهرمان ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(201,162,39,.25), transparent 60%),
    radial-gradient(700px 380px at 10% 110%, rgba(22,96,143,.35), transparent 60%),
    linear-gradient(160deg, #0e1a2b 0%, #12263d 55%, #0d1730 100%);
  color: #fff; padding: 11rem 0 5rem; text-align: center;
}
body[data-theme="cuisine"] .hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(194,73,31,.3), transparent 60%),
    radial-gradient(700px 380px at 10% 110%, rgba(154,91,46,.35), transparent 60%),
    linear-gradient(160deg, #2a1b12 0%, #3d2717 55%, #241409 100%);
}

.hero-badge {
  display: inline-block; background: rgba(201,162,39,.15); border: 1px solid rgba(201,162,39,.45);
  color: var(--accent-soft); font-size: .8rem; padding: .35rem 1rem; border-radius: 999px; margin-bottom: 1.4rem;
}
.hero-title { font-size: clamp(1.9rem, 4.5vw, 3.1rem); font-weight: 900; margin-bottom: .6rem; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.25rem); color: #cfe0f2; margin-bottom: .8rem; }
.hero-tagline { color: #9fb3cb; font-size: .95rem; margin-bottom: 2rem; }

.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.btn {
  display: inline-block; padding: .7rem 1.6rem; border-radius: 999px; font-weight: 700;
  font-size: .95rem; text-decoration: none; transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #b88a15); color: #10202f; box-shadow: 0 6px 18px rgba(201,162,39,.35); }
.btn-ghost { border: 1px solid rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 760px; margin-inline: auto; }
.stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1rem .5rem; display: flex; flex-direction: column; }
.stat-num { font-size: 1.5rem; font-weight: 900; color: var(--accent); }
.stat-label { font-size: .78rem; color: #b9c8da; }

/* ---------- بخش‌ها ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--surface); }
.section-head { text-align: center; margin-bottom: 2.6rem; }
.section-kicker { display: inline-block; color: var(--primary-light); font-weight: 800; font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: .3rem; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; color: var(--primary); }
.section-desc { color: var(--text-soft); max-width: 640px; margin: .5rem auto 0; }
.block-title { font-size: 1.25rem; font-weight: 800; color: var(--primary); margin: 2.6rem 0 1.2rem; }

/* ---------- کارت‌ها ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.card h3 { color: var(--primary); font-size: 1.15rem; margin-bottom: 1rem; }
.card h4 { color: var(--primary); font-size: 1rem; margin-bottom: .6rem; }
.card p { color: var(--text-soft); font-size: .93rem; }
.card.mini { text-align: center; padding: 1.2rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.cards-narrow { margin-top: 2rem; }

.check-list { list-style: none; }
.check-list li { position: relative; padding-inline-start: 1.6rem; margin-bottom: .6rem; color: var(--text-soft); font-size: .93rem; }
.check-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--accent); font-weight: 900; }

.edu-list { list-style: none; }
.edu-list li { padding-block: .45rem; border-bottom: 1px dashed var(--border); }
.edu-list li:last-child { border-bottom: none; }
.edu-list .edu-degree { display: block; font-weight: 700; color: var(--primary); font-size: .95rem; }
.edu-list li span:last-child { color: var(--text-soft); font-size: .85rem; }

/* ---------- تایم‌لاین ---------- */
.timeline { position: relative; padding-inline-start: 1.6rem; border-inline-start: 2px solid var(--accent); display: grid; gap: 1.2rem; margin-top: .4rem; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; inset-inline-start: calc(-1.6rem - 6px); top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.tl-date { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--primary-light); background: var(--accent-soft); padding: .1rem .7rem; border-radius: 999px; margin-bottom: .2rem; }
.tl-item p { color: var(--text-soft); font-size: .95rem; }

/* ---------- شرکت ---------- */
.company-card { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; max-width: 820px; margin-inline: auto; }
.company-logo { width: 200px; height: 200px; display: grid; place-items: center; text-align: center; background: linear-gradient(150deg, var(--primary) 0%, #14496f 100%); color: #fff; font-weight: 900; font-size: 1.7rem; line-height: 1.5; border-radius: 50%; border: 6px solid var(--accent); }

.info-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.info-table th, .info-table td { padding: .5rem .6rem; text-align: start; border-bottom: 1px dashed var(--border); }
.info-table th { color: var(--primary); font-weight: 700; width: 42%; white-space: nowrap; }
.info-table td { color: var(--text-soft); }

.note { text-align: center; color: var(--text-soft); font-size: .9rem; margin-top: 1.6rem; }

/* ---------- محصول ---------- */
.product-hero { background: linear-gradient(135deg, #10263e, #164a74); border: none; color: #fff; text-align: center; }
.product-hero p { color: #d6e3f2; font-size: 1.05rem; max-width: 760px; margin-inline: auto; }

.card.problem { border-inline-start: 4px solid #c0392b; }
.card.solution { border-inline-start: 4px solid #27ae60; }
.card.gem { border-inline-start: 4px solid var(--accent); background: linear-gradient(160deg, #fffdf5, #fff); }

.product-status { margin-top: 2.4rem; border: 1px dashed var(--primary-light); background: #f2f7fc; }
.product-status p { color: var(--text-soft); font-size: .95rem; }

/* ---------- گالری / عکس ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.gallery-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; display: block; background: linear-gradient(135deg, #eef2f7, #dde5ee); }
.gallery-item figcaption { padding: .8rem 1rem; font-size: .9rem; color: var(--text-soft); text-align: center; }

/* ---------- فرم رزرو ---------- */
.booking-form { max-width: 640px; margin-inline: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: .3rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .85rem; font-weight: 700; color: var(--primary); }
.form-field input, .form-field select, .form-field textarea {
  font-family: inherit; font-size: .95rem; padding: .6rem .8rem;
  border: 1px solid var(--border); border-radius: 8px; background: #fbfcfe; color: var(--text);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.btn-submit { margin-top: 1.2rem; width: 100%; border: none; cursor: pointer; font-family: inherit; }

/* ---------- تماس ---------- */
.contact-card { display: flex; flex-direction: column; align-items: center; gap: .35rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem 1rem; text-align: center; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .15s, border-color .2s; }
.contact-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.contact-icon { font-size: 1.7rem; }
.contact-label { color: var(--text-soft); font-size: .82rem; }
.contact-value { font-weight: 700; color: var(--primary); font-size: .95rem; word-break: break-all; }

/* ---------- فوتر ---------- */
.site-footer { background: var(--bg-alt); color: #9fb3cb; padding: 2rem 0; text-align: center; font-size: .88rem; }
.footer-inner p { margin-bottom: .3rem; }
.footer-slogan { color: var(--accent-soft); font-style: italic; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4, .grid-5, .gallery { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .company-card { grid-template-columns: 1fr; text-align: center; }
  .company-logo { margin-inline: auto; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; gap: 0; background: var(--bg-alt);
    border-top: 1px solid rgba(255,255,255,.12); padding: .5rem 1rem 1rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .7rem .2rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .grid-3, .grid-4, .grid-5, .gallery { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 9rem; }
}
