/* =========================================================
   Cabinet de Consiliere Psihologică „Punct de Sprijin"
   Stiluri – paletă calmă (verde sălvie / crem / teal)
   ========================================================= */
:root {
  --cream: #faf7f1;
  --cream-2: #f2ece1;
  --sage: #5c8a72;
  --sage-dark: #3e6b55;
  --ink: #2e4a43;
  --muted: #6b7a75;
  --accent: #d98a6a;
  --card: #ffffff;
  --line: #e4ddd0;
  --shadow: 0 10px 30px rgba(46, 74, 67, 0.08);
  --shadow-sm: 0 4px 14px rgba(46, 74, 67, 0.07);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Lora', Georgia, serif; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { color: var(--ink); }
a { color: var(--sage-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: .5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--sage); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--sage-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--sage); color: var(--sage-dark); }
.btn-block { width: 100%; text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 241, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: .55rem; color: var(--sage); font-weight: 700; }
.logo:hover { text-decoration: none; }
.logo-text { font-family: 'Lora', serif; font-size: 1.2rem; color: var(--ink); }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: .96rem; }
.main-nav a:hover { color: var(--sage-dark); text-decoration: none; }
.main-nav a.active { color: var(--sage-dark); }
.nav-cta {
  background: var(--sage); color: #fff !important; padding: .55rem 1.1rem; border-radius: 50px;
}
.nav-cta:hover { background: var(--sage-dark); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(135deg, rgba(46,74,67,.86), rgba(62,107,85,.78)),
    url('images/hero.jpg') center/cover no-repeat,
    linear-gradient(135deg, #3e6b55, #5c8a72);
}
.hero-content { position: relative; z-index: 1; padding: 6.5rem 24px 5rem; max-width: 820px; }
.hero .eyebrow { color: #cfe3d7; }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero-sub { color: #eef5f0; font-size: 1.12rem; max-width: 640px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

/* ---------- Trust ---------- */
.trust { background: var(--card); border-bottom: 1px solid var(--line); }
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  padding: 3rem 24px;
}
.trust-item { text-align: center; }
.trust-item svg { width: 40px; height: 40px; color: var(--sage); margin-bottom: .7rem; }
.trust-item h3 { margin-bottom: .35rem; }
.trust-item p { color: var(--muted); font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--cream-2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-head .lead { color: var(--muted); font-size: 1.08rem; margin-top: .6rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.two-col .text h2 { margin-bottom: 1rem; }
.two-col .text p { margin-bottom: 1rem; color: var(--ink); }

/* image frame with graceful fallback */
.img-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  position: relative;
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.img-frame img.img-missing { display: none; }
.img-frame::after {
  content: "🌿"; position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; opacity: .55;
}

.values { list-style: none; margin-top: 1rem; }
.values li { position: relative; padding-left: 1.8rem; margin-bottom: .6rem; color: var(--ink); }
.values li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: #fff; background: var(--sage); width: 1.25rem; height: 1.25rem;
  border-radius: 50%; font-size: .75rem; display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; background: #eaf2ec; margin-bottom: 1rem;
}
.card-icon svg { width: 28px; height: 28px; color: var(--sage-dark); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: .6rem; }
.card-target { color: var(--ink) !important; font-size: .9rem !important; font-style: italic; }
.note { text-align: center; margin-top: 2rem; color: var(--muted); font-size: .95rem; }

/* article cards */
.cards .article { display: flex; flex-direction: column; }
.tag {
  align-self: flex-start; background: #f0e6dd; color: var(--accent);
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  padding: .25rem .7rem; border-radius: 50px; margin-bottom: .9rem;
}
.article .read { margin-top: auto; font-weight: 600; color: var(--sage-dark); }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.steps li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.4rem; position: relative; box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--sage); color: #fff; font-family: 'Lora', serif; font-weight: 700; font-size: 1.2rem;
  margin-bottom: 1rem;
}
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--muted); font-size: .94rem; }
.reassure {
  margin-top: 2.2rem; text-align: center; background: #eaf2ec; border-radius: var(--radius);
  padding: 1.2rem 1.5rem; color: var(--ink); font-size: 1rem;
}

/* ---------- FAQ ---------- */
.faq-title { text-align: center; margin: 3.5rem 0 1.5rem; }
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); margin-bottom: .8rem; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 1.1rem 1.3rem; font-size: 1.02rem; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: 'Inter', sans-serif;
}
.faq-icon { color: var(--sage); font-size: 1.4rem; transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { align-items: start; }
.contact-list { list-style: none; margin: 1.4rem 0; }
.contact-list li { margin-bottom: .7rem; }
.privacy-note { color: var(--muted); font-size: .92rem; }
.form-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .98rem; color: var(--ink); background: #fff; transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); }
.field textarea { resize: vertical; }
.field.invalid input, .field.invalid select { border-color: #c0573f; }
.err { color: #c0573f; font-size: .82rem; min-height: 1em; display: block; margin-top: .25rem; }
.form-success {
  margin-top: 1rem; background: #eaf2ec; color: var(--sage-dark); font-weight: 600;
  padding: .9rem 1rem; border-radius: var(--radius-sm); text-align: center;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #dce6e1; padding: 3rem 0 1.5rem; margin-top: 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.6rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { color: #aebeb7; font-size: .92rem; margin-top: .3rem; }
.footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-nav a { color: #dce6e1; font-size: .94rem; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.2rem; }
.footer-bottom p { color: #9fb1aa; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.5rem 24px; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid .text { order: 2; }
}
@media (max-width: 720px) {
  .br-d { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 1rem 24px 1.5rem;
    gap: .2rem; transform: translateY(-150%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: .8rem .2rem; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .nav-cta { text-align: center; margin-top: .5rem; }
}
@media (max-width: 540px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .hero-content { padding: 4.5rem 24px 3.5rem; }
  .footer-inner, .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Pagini de articol ---------- */
.article-hero { background: var(--cream-2); border-bottom: 1px solid var(--line); padding: 3.2rem 0 2.4rem; }
.article-hero .back-link { display: inline-block; margin-bottom: 1rem; font-weight: 600; color: var(--sage-dark); }
.article-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: .7rem 0 .6rem; }
.article-meta { color: var(--muted); font-size: .9rem; }
.article-meta span + span::before { content: "·"; margin: 0 .5rem; }

.prose { max-width: 740px; margin: 3rem auto 1rem; }
.prose > p:first-of-type { font-size: 1.12rem; color: var(--ink); }
.prose p { margin-bottom: 1.1rem; color: var(--ink); }
.prose h2 { margin: 2.2rem 0 .8rem; }
.prose h3 { margin: 1.6rem 0 .5rem; color: var(--sage-dark); }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.4rem; }
.prose li { margin-bottom: .55rem; }
.prose strong { color: var(--ink); }

.disclaimer-note {
  font-size: .92rem; color: var(--muted); font-style: italic;
  border-left: 3px solid var(--sage); background: #f3efe7;
  padding: .9rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 2rem 0;
}
.cta-box {
  background: #eaf2ec; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; margin: 2.5rem 0 1rem; text-align: center;
}
.cta-box h3 { margin-bottom: .5rem; }
.cta-box p { color: var(--muted); margin-bottom: 1.2rem; }
.related { max-width: 740px; margin: 2.5rem auto 0; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.related h3 { margin-bottom: 1rem; }
.related ul { list-style: none; }
.related li { margin-bottom: .6rem; }
.related a { font-weight: 500; }
