/* ── Haven · bilingual mental health concept ─────────────────────────
   Palette: soft sage + warm cream. Serif display, sans body.
   No frameworks, no external fonts — loads instantly, works offline.  */

:root {
  --cream: #faf9f6;
  --paper: #ffffff;
  --sage: #4f7d6b;
  --sage-dark: #3a5f50;
  --sage-soft: #e8f0ea;
  --ink: #22352c;
  --muted: #5d6f66;
  --line: #e3e7e1;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(34, 53, 44, 0.07);
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.brand-mark svg { width: 34px; height: 34px; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-size: 0.95rem; color: var(--muted); transition: color 0.15s; white-space: nowrap; }
.nav a:hover { color: var(--sage-dark); }

.nav-cta {
  background: var(--sage); color: #fff !important;
  padding: 8px 16px; border-radius: 999px; font-weight: 600;
}
.nav-cta:hover { background: var(--sage-dark); color: #fff !important; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  border: 1px solid var(--sage); color: var(--sage-dark);
  background: transparent; padding: 6px 14px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background 0.15s;
}
.lang-toggle:hover { background: var(--sage-soft); }

/* hamburger — hidden on desktop */
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: 0.2s; }

/* ── Hero ── */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }

.eyebrow {
  display: inline-block; color: var(--sage-dark); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px;
}

h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.15; margin-bottom: 18px; }

.hero-sub { color: var(--muted); font-size: 1.12rem; max-width: 34em; margin-bottom: 28px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: var(--sage-dark); }
.btn-ghost { border-color: var(--sage); color: var(--sage-dark); background: transparent; }
.btn-ghost:hover { background: var(--sage-soft); }

.trust-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.trust-chips li {
  font-size: 0.85rem; color: var(--sage-dark); background: var(--sage-soft);
  padding: 7px 14px; border-radius: 999px; font-weight: 600;
}

.hero-art svg { width: 100%; height: auto; mix-blend-mode: multiply; }

/* ── Sections ── */
.section { padding: 72px 0; }
.section-tint { background: #f3f6f2; }

.section-title {
  font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin-bottom: 12px; text-align: center;
}
.section-sub { text-align: center; color: var(--muted); max-width: 38em; margin: 0 auto 40px; }

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

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(34, 53, 44, 0.11); }
.card h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }

.about-panel {
  background: var(--paper); border-radius: var(--radius); padding: 34px;
  border: 1px solid var(--line); box-shadow: var(--shadow); position: relative;
}
.about-panel::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px;
  border-radius: var(--radius); background: var(--sage-soft); z-index: -1;
}
.about-label { font-weight: 700; font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 14px; }
.about-panel li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 0.96rem; }
.about-panel li:last-child { border-bottom: 0; }
.about-panel li::before { content: "✓"; color: var(--sage-dark); font-weight: 700; margin-right: 10px; }

.about-copy p { color: var(--muted); margin-bottom: 14px; }
.about-copy .section-title { text-align: left; }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

.step {
  text-align: center; padding: 30px 20px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--sage); color: #fff; font-weight: 700; font-size: 1.2rem; margin-bottom: 14px;
}
.step h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* ── FAQ ── */
details {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; box-shadow: var(--shadow);
}
summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600;
  list-style: none; display: flex; align-items: center; gap: 10px;
}
summary::before { content: "+"; font-weight: 700; color: var(--sage-dark); transition: transform 0.15s; }
details[open] summary::before { transform: rotate(45deg); }
details p { padding: 0 20px 16px; color: var(--muted); }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.contact-grid .section-title { text-align: left; }
.contact-info p { color: var(--muted); margin-bottom: 22px; }

.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.contact-list li span { color: var(--muted); font-size: 0.9rem; }
.contact-list li strong { font-weight: 600; }

.contact-form {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 0.95rem; font-family: var(--font-body);
  background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--sage); outline-offset: -1px; border-color: transparent;
}

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; }
.footer-inner { color: var(--muted); font-size: 0.85rem; text-align: center; }

/* ── RTL rules: flip a few directional bits; grid/flex mirror automatically ── */
[dir="rtl"] .about-panel li::before { margin-right: 0; margin-left: 10px; }
[dir="rtl"] .about-copy .section-title,
[dir="rtl"] .contact-grid .section-title { text-align: right; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 48px 0 40px; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed; top: 68px; right: 0; left: 0;
    flex-direction: column; gap: 6px; align-items: flex-start;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 14px 24px 20px; transform: translateY(-110%); transition: transform 0.2s;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 10px 0; width: 100%; }
  .nav-cta { text-align: center; }
  .menu-toggle { display: block; }
  .section { padding: 52px 0; }
}