/* ============================================================
   Hamnavard Therapy — Calm modern redesign
   Soft sage, deep forest green, generous whitespace
   ============================================================ */

:root {
  --bg: #eef3ee;
  --bg-soft: #f7f9f7;
  --surface: #ffffff;
  --text: #1a3a32;
  --text-muted: #4a635c;
  --heading: #0f3d34;
  --accent: #1a5c4a;
  --accent-hover: #14463a;
  --sage: #c5d5c8;
  --sage-light: #dce8de;
  --border: #d4e0d6;
  --whatsapp: #25D366;
  --telegram: #0088cc;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 61, 52, 0.06);
  --shadow-sm: 0 2px 8px rgba(15, 61, 52, 0.04);
  --font-fa: "Vazirmatn", system-ui, sans-serif;
  --font-en: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-en);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

html[lang="fa"] body,
body.rtl {
  font-family: var(--font-fa);
  direction: rtl;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }
h1, h2, h3, h4 { color: var(--heading); font-weight: 600; line-height: 1.25; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 68px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav a:hover { color: var(--heading); }

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--heading);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.lang-switch:hover {
  background: var(--sage-light);
  border-color: var(--border);
}

.lang-switch img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--heading);
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--heading);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 34em;
  margin-bottom: 32px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--heading);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 8px 4px;
}

.btn-ghost:hover { border-color: var(--heading); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.btn-whatsapp:hover { filter: brightness(1.05); color: #fff; }

.btn-telegram {
  background: var(--telegram);
  color: #fff;
}

.btn-telegram:hover { filter: brightness(1.08); color: #fff; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--sage-light) 0%, var(--sage) 100%);
  border-radius: 50% 50% 40% 40% / 45% 45% 55% 55%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 55%;
  height: 55%;
  top: 18%;
  border-radius: 50%;
  background: #f0d9b5;
  opacity: 0.85;
}

.hero-card-label {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 40%;
}

.hero-card-label span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--heading);
  opacity: 0.7;
}

.hero-card-label strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--heading);
  margin-top: 6px;
  letter-spacing: 0.08em;
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px;
}

.section-alt {
  background: var(--bg-soft);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section h2 {
  font-size: clamp(1.5rem, 2.8vw, 1.85rem);
  margin-bottom: 16px;
}

.section h3 {
  font-size: 1.15rem;
  margin: 28px 0 12px;
  color: var(--accent);
}

.prose {
  max-width: 720px;
}

.prose p { margin-bottom: 1em; color: var(--text); }
.prose ul { margin: 12px 0 20px; }
.prose li {
  position: relative;
  padding-inline-start: 1.4em;
  margin-bottom: 8px;
  color: var(--text);
}
.prose li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--heading);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 18px;
}

/* ---------- Location grid ---------- */
.locations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.loc-link {
  display: block;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--heading);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.loc-link:hover {
  border-color: var(--accent);
  background: var(--sage-light);
  color: var(--heading);
}

/* ---------- Article / content pages ---------- */
.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 6px; opacity: 0.5; }

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 16px;
  max-width: 18em;
}

.page-hero .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 38em;
  line-height: 1.75;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.article-body h2 {
  font-size: 1.35rem;
  margin: 40px 0 14px;
}

.article-body h3 {
  font-size: 1.1rem;
  margin: 28px 0 10px;
}

.article-body p { margin-bottom: 1em; }
.article-body ul, .article-body ol {
  margin: 12px 0 20px;
  padding-inline-start: 1.4em;
}
.article-body li { margin-bottom: 8px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--heading);
  color: #e8f0ec;
  padding: 56px 24px;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin: 0 auto 28px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 680px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: var(--heading);
}

.faq-item p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--heading);
  color: rgba(255,255,255,0.75);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--max);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 24px 56px;
    gap: 36px;
  }
  .hero-visual { order: -1; }
  .hero-card { max-width: 260px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .nav-desktop { display: none; }
  .mobile-toggle { display: block; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
  }
  .hero h1 { font-size: 2rem; }
  .section { padding: 40px 20px; }
  .page-hero { padding: 32px 20px 24px; }
}

/* Mobile nav open state */
.site-header { position: sticky; }
.header-inner { position: relative; }
.nav { display: flex; }
@media (max-width: 720px) {
  .nav:not(.open) { display: none; }
  .nav.open { display: flex; }
}
