/* ============ Pas cu Pas — un proiect Warhial ============ */
/* Temă caldă și calmă. Deschisă implicit; [data-theme="dark"] comută pe întunecat. */
:root {
  --bg: #f6f2ea;
  --surface: #fffdf9;
  --surface-2: #efe8dc;
  --text: #403a32;
  --heading: #2c2721;
  --muted: #837a6c;
  --line: #e5dccd;
  --accent: #5f8a72;         /* verde salvie — calm, reî-nnoire */
  --accent-2: #7ba98d;
  --accent-soft: #e7efe8;
  --warn-bg: #fdf6e6;
  --warn-line: #e8d9a8;
  --header-bg: rgba(246, 242, 234, 0.85);
  --radius: 16px;
  --shadow: 0 4px 18px rgba(64, 58, 50, 0.07);
  --shadow-lg: 0 16px 40px rgba(64, 58, 50, 0.12);
}
:root[data-theme="dark"] {
  --bg: #211e1a;
  --surface: #2a2621;
  --surface-2: #322d27;
  --text: #ddd5c8;
  --heading: #f2ece0;
  --muted: #a79d8d;
  --line: #3a352e;
  --accent: #7bab8e;
  --accent-2: #9cc4a9;
  --accent-soft: #2c352e;
  --warn-bg: #322b1c;
  --warn-line: #5a4d2c;
  --header-bg: rgba(33, 30, 26, 0.85);
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 1.06rem;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
  display: flex; flex-direction: column; min-height: 100vh;
}
h1, h2, h3 { font-family: "Lora", Georgia, serif; line-height: 1.25; color: var(--heading); font-weight: 600; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(95, 138, 114, 0.4); }
a:hover { text-decoration-color: var(--accent); }
p { margin-bottom: 1em; }
strong { color: var(--heading); }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(760px, 92%); margin: 0 auto; }
.container-wide { width: min(1060px, 92%); margin: 0 auto; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; gap: 12px; height: 66px; }
.brand {
  font-family: "Lora", serif; font-weight: 600; font-size: 1.25rem;
  color: var(--heading); text-decoration: none; margin-right: auto;
  display: inline-flex; align-items: center; gap: 9px;
}
.brand .mark {
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 0.9rem;
}
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  display: block; padding: 7px 12px; border-radius: 9px;
  color: var(--text); font-size: 0.95rem; text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.active { background: var(--surface-2); color: var(--heading); }
.ctl { display: inline-flex; align-items: center; gap: 6px; }
.lang-select, .theme-toggle {
  border: 1px solid var(--line); background: var(--surface); color: var(--heading);
  border-radius: 999px; cursor: pointer; font: inherit; transition: border-color 0.2s;
}
.lang-select { appearance: none; -webkit-appearance: none; padding: 6px 12px; font-size: 0.8rem; font-weight: 600; }
.theme-toggle { width: 36px; height: 36px; display: grid; place-items: center; font-size: 0.95rem; }
.lang-select:hover, .theme-toggle:hover { border-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--heading); margin: 5px 0; border-radius: 2px; }

/* ============ Selector de țară ============ */
.country-switch {
  display: inline-flex; background: var(--surface-2); border-radius: 999px;
  padding: 4px; gap: 4px; border: 1px solid var(--line);
}
.country-switch button {
  border: 0; background: none; cursor: pointer; font: inherit; font-weight: 600;
  font-size: 0.92rem; padding: 7px 18px; border-radius: 999px; color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.country-switch button.on { background: var(--accent); color: #fff; }
/* blocuri specifice tarii */
body[data-country="ro"] [data-country="md"], body[data-country="md"] [data-country="ro"] { display: none; }

/* ============ Hero acasă ============ */
.hero { padding: 72px 0 40px; text-align: center; position: relative; }
.hero .container { animation: rise 0.6s ease both; }
.hero .lead-eyebrow { color: var(--accent); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 18px; }
.hero p.intro { font-size: 1.18rem; color: var(--muted); max-width: 34rem; margin: 0 auto 26px; }
.hero-country { display: flex; justify-content: center; margin-bottom: 8px; }

/* ============ Timeline (cărarea) ============ */
.path { padding: 24px 0 64px; }
.path-intro { text-align: center; max-width: 40rem; margin: 0 auto 44px; }
.path-intro h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 10px; }
.path-intro p { color: var(--muted); }
.steps { position: relative; max-width: 640px; margin: 0 auto; padding-left: 8px; }
.steps::before {
  content: ""; position: absolute; left: 26px; top: 12px; bottom: 40px; width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2)); opacity: 0.4;
}
.step {
  position: relative; display: block; text-decoration: none; color: inherit;
  padding: 22px 24px 22px 72px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.step:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.step .num {
  position: absolute; left: 14px; top: 22px; width: 40px; height: 40px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-family: "Lora", serif; font-weight: 600; font-size: 1.1rem;
  border: 2px solid var(--surface);
}
.step .when { font-size: 0.8rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.step h3 { font-size: 1.2rem; margin: 4px 0 6px; }
.step p { color: var(--muted); font-size: 0.96rem; margin: 0; }
.step .go { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-top: 10px; display: inline-block; }

/* ============ Pagini de ghid ============ */
.page-hero { padding: 54px 0 8px; }
.page-hero .container { animation: rise 0.5s ease both; }
.breadcrumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.page-hero .when-badge {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  font-weight: 600; font-size: 0.82rem; padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 12px; }
.page-hero .subtitle { color: var(--muted); font-size: 1.1rem; }

.content { padding: 30px 0 40px; }
.content h2 { font-size: 1.45rem; margin: 40px 0 14px; }
.content h3 { font-size: 1.15rem; margin: 26px 0 8px; }
.content ul, .content ol { margin: 0 0 1.2em 1.3em; }
.content li { margin-bottom: 9px; }

/* checklist bifabil */
.checklist { list-style: none; margin: 18px 0; padding: 0; }
.checklist li {
  position: relative; padding: 12px 12px 12px 44px; margin-bottom: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.checklist li::before {
  content: ""; position: absolute; left: 14px; top: 15px; width: 18px; height: 18px;
  border: 2px solid var(--accent); border-radius: 5px;
}

/* casete: acte necesare / unde / atenție */
.box { border-radius: var(--radius); padding: 20px 22px; margin: 22px 0; border: 1px solid var(--line); background: var(--surface); }
.box h3 { margin: 0 0 8px; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.box.where { background: var(--accent-soft); border-color: transparent; }
.box.docs { }
.box.note { background: var(--warn-bg); border-color: var(--warn-line); }
.box.note .disclaimer-ico { font-size: 1.1rem; }
.box ul { margin: 6px 0 0 1.2em; }
.box li { margin-bottom: 5px; }

/* diferență RO / MD inline */
.jur {
  display: block; border-left: 3px solid var(--accent); padding: 6px 0 6px 14px; margin: 10px 0;
  background: var(--accent-soft); border-radius: 0 8px 8px 0;
}
.jur b { color: var(--accent); }

/* găsește lângă tine (hartă) */
.find-near { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 28px 0; }
.find-near .fn-head h3 { font-size: 1.1rem; margin: 0 0 4px; }
.find-near .fn-head p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.fn-form { display: flex; gap: 8px; margin: 14px 0 2px; flex-wrap: wrap; }
.fn-form input {
  flex: 1 1 220px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--bg); color: var(--text);
}
.fn-form input:focus { outline: none; border-color: var(--accent); }
.fn-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.fn-buttons a {
  font-size: 0.88rem; padding: 8px 15px; border-radius: 999px; text-decoration: none;
  background: var(--accent-soft); color: var(--accent); font-weight: 600; border: 1px solid transparent;
  transition: border-color 0.2s;
}
.fn-buttons a:hover { border-color: var(--accent); }
.fn-buttons a.primary { background: var(--accent); color: #fff; }
.fn-map { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: 12px; margin-top: 4px; background: var(--surface-2); }
.fn-note { font-size: 0.82rem; color: var(--muted); margin: 12px 0 0; }
.fn-note a { color: var(--accent); }

/* buton */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 13px 26px; border-radius: 12px; font-weight: 600; font-size: 1rem;
  background: var(--accent); color: #fff; border: 0; cursor: pointer;
  transition: transform 0.2s, background 0.2s; box-shadow: var(--shadow);
}
.btn:hover { transform: translateY(-2px); background: var(--accent-2); }
.btn-ghost { background: var(--surface); color: var(--heading); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* navigare între pași */
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.step-nav a { flex: 1 1 45%; }

/* FAQ */
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 0 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 30px 18px 0; position: relative;
  font-family: "Lora", serif; font-weight: 600; color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.3rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* CTA calm */
.reassure {
  background: var(--accent-soft); border-radius: var(--radius); padding: 32px;
  text-align: center; margin: 40px 0;
}
.reassure p { color: var(--text); max-width: 34rem; margin: 0 auto; }

/* ============ Footer ============ */
.site-footer { margin-top: auto; background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { padding: 44px 0 30px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-inner h4 { font-family: "Lora", serif; font-size: 1rem; margin-bottom: 12px; color: var(--heading); }
.footer-inner ul { list-style: none; }
.footer-inner li { margin-bottom: 8px; }
.footer-inner a { color: var(--muted); font-size: 0.94rem; text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }
.footer-brand p { color: var(--muted); font-size: 0.94rem; max-width: 26rem; }
.footer-note { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); padding: 18px 0; text-align: center; }

/* pagina checklist */
.print-bar { display: flex; gap: 12px; margin: 6px 0 30px; flex-wrap: wrap; }
.phase { margin-bottom: 30px; }
.phase h2 { font-size: 1.2rem; border-bottom: 2px solid var(--accent-soft); padding-bottom: 8px; margin: 0 0 12px; }
.check-item { display: flex; gap: 13px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.check-item:last-child { border-bottom: 0; }
.check-item input { width: 21px; height: 21px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.check-item label { cursor: pointer; line-height: 1.5; }

@media print {
  .site-header, .site-footer, .print-bar, .cookie-banner, .country-switch, .breadcrumb, .find-near { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .page-hero { padding: 0 0 6px; }
  .page-hero .when-badge { display: none; }
  .content { padding: 8px 0 0; }
  .container { width: 100%; }
  h1, h2, h3 { color: #000; }
  a { color: #000; text-decoration: none; }
  .phase h2 { border-color: #000; }
  .check-item { border-bottom: 1px dashed #999; break-inside: avoid; }
  .check-item input { -webkit-appearance: none; appearance: none; border: 1.5px solid #000; border-radius: 3px; }
  .box.note { background: #fff; border: 1px solid #999; }
}

/* banner cookie-uri */
.cookie-banner {
  position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px; max-width: 700px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 18px 22px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; animation: rise 0.4s ease both;
}
.cookie-banner p { margin: 0; font-size: 0.9rem; color: var(--muted); flex: 1 1 300px; }
.cookie-banner .cc-actions { display: flex; gap: 10px; }
.cookie-banner .btn { padding: 9px 18px; font-size: 0.9rem; }

/* lang note (pagini doar RO) */
.lang-note {
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 12px;
  padding: 12px 18px; font-size: 0.92rem; color: var(--muted); margin-bottom: 24px;
}

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px; gap: 4px;
    box-shadow: var(--shadow-lg); display: none;
  }
  .nav-links.open { display: flex; }
  .step-nav a { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .hero .container, .page-hero .container, .cookie-banner { animation: none; } }
