/* ============================================================
   کلینیک ترک اعتیاد شاداب — Shared Design System
   Healing-green palette · RTL · Vazirmatn
   ============================================================ */

@font-face { font-display: swap; }

:root {
  /* ---- Color: healing green ---- */
  --bg:          #f1f6f3;
  --bg-warm:     #f7f4ec;
  --surface:     #ffffff;
  --mint-50:     #eaf4ef;
  --mint-100:    #d8ece1;
  --green-200:   #a7d8c1;
  --green-400:   #45b088;
  --green-500:   #2a9069;
  --green-600:   #1f7a5c;   /* primary */
  --green-700:   #15604a;
  --green-800:   #0f4836;
  --green-900:   #0b3527;   /* deep / footer */
  --ink:         #122019;
  --text:        #2b3a33;
  --muted:       #5d6f67;
  --line:        #e0ece6;
  --line-strong: #caddd2;
  --amber:       #e0a047;   /* warm accent / stars */
  --amber-soft:  #f6e9d2;
  --whatsapp:    #1faf53;

  /* ---- Typography ---- */
  --font: "Vazirmatn", ui-sans-serif, system-ui, "Segoe UI", Tahoma, sans-serif;

  /* ---- Radius ---- */
  --r-xs: 8px;
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 38px;
  --pill: 999px;

  /* ---- Shadow (green-tinted) ---- */
  --sh-xs: 0 1px 2px rgba(11,53,39,.06);
  --sh-sm: 0 2px 8px rgba(11,53,39,.07), 0 1px 2px rgba(11,53,39,.05);
  --sh-md: 0 12px 30px rgba(11,53,39,.09);
  --sh-lg: 0 26px 60px rgba(11,53,39,.14);

  /* ---- Layout ---- */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 17.5px;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0 0 .5em; font-weight: 800; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 900; line-height: 1.18; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p  { margin: 0 0 1.1em; text-wrap: pretty; }
a  { color: var(--green-600); text-decoration: none; transition: color .18s; }
a:hover { color: var(--green-800); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; color: var(--ink); }

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 110px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 700; color: var(--green-600);
  background: var(--mint-50); border: 1px solid var(--mint-100);
  padding: 7px 16px; border-radius: var(--pill); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-size: 1.02rem; font-weight: 700;
  padding: 14px 26px; border-radius: var(--pill); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: 0 10px 24px rgba(31,122,92,.28); }
.btn-primary:hover { background: var(--green-700); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(31,122,92,.34); }
.btn-wa { background: var(--whatsapp); color: #fff; box-shadow: 0 10px 24px rgba(31,175,83,.26); }
.btn-wa:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.04); }
.btn-ghost { background: var(--surface); color: var(--green-700); border-color: var(--line-strong); box-shadow: var(--sh-xs); }
.btn-ghost:hover { color: var(--green-800); border-color: var(--green-400); transform: translateY(-2px); }
.btn-lg { padding: 17px 32px; font-size: 1.08rem; }

/* ---- Chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); font-weight: 600; font-size: .92rem;
  padding: 8px 15px; border-radius: var(--pill); box-shadow: var(--sh-xs);
}
.chip svg { width: 15px; height: 15px; color: var(--green-500); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand .mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; white-space: nowrap; }
.brand-text b { font-size: 1.1rem; font-weight: 800; color: var(--ink); }
.brand-text span { font-size: .76rem; color: var(--muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--text); font-weight: 600; font-size: .98rem;
  padding: 9px 15px; border-radius: var(--pill); transition: background .18s, color .18s;
}
.nav-links a:hover { background: var(--mint-50); color: var(--green-700); }
.nav-links a.active { color: var(--green-700); background: var(--mint-50); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800;
  color: var(--green-700); font-size: 1.02rem; direction: ltr;
}
.nav-phone svg { width: 18px; height: 18px; }
.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--line); width: 46px; height: 46px; border-radius: 14px; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--green-900); color: #cfe3da; padding-block: 64px 28px; margin-top: 40px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer a { color: #cfe3da; }
.site-footer a:hover { color: #fff; }
.footer-brand .mark { width: 48px; height: 48px; margin-bottom: 14px; }
.footer-brand p { color: #9fc0b3; font-size: .95rem; }
.footer-links li { margin-bottom: 11px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start; font-size: .95rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--green-200); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .86rem; color: #84a89a; }

/* ============================================================
   FLOATING ACTIONS (mobile call / whatsapp)
   ============================================================ */
.float-actions { position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 60; display: none; flex-direction: column; gap: 12px; }
.fab { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-lg); color: #fff; }
.fab svg { width: 26px; height: 26px; }
.fab-call { background: var(--green-600); }
.fab-wa { background: var(--whatsapp); }

/* ============================================================
   GENERIC CARD / GRID
   ============================================================ */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px; box-shadow: var(--sh-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--mint-100); }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.icon-badge {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--mint-50); color: var(--green-600); margin-bottom: 18px;
}
.icon-badge svg { width: 28px; height: 28px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .nav-links, .nav-cta .nav-phone, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav.open + .mobile-menu { display: block; }
  .float-actions { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Mobile menu */
.mobile-menu { display: none; background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px var(--gutter) 22px; }
.mobile-menu a { display: block; padding: 13px 8px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { width: 100%; margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
