/* =========================================================
   ASTRA MINI — tokenuri de design
   Culorile, fonturile și spațiile se schimbă DOAR aici.
   ========================================================= */
:root {
  --ink: #5c1a28;        /* text principal, titluri, fundaluri de accent (carte, formular, linii pași) */
  --ink-soft: #46596a;   /* text secundar */
  --paper: #f5f8f7;      /* fundal general */
  --white: #ffffff;
  --sage: #8fa89b;       /* accent liniștit (borduri, detalii) */
  --sun: #d9a243;        /* accent principal (butoane, ghid) */
  --sun-dark: #c99a3e;
  --error: #b3261e;
  --success: #2e6b4f;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1120px;
  --narrow: 680px;
  --space: clamp(4rem, 8vw, 7rem);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 1rem; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; font-weight: 500; }
p { margin: 0 0 1rem; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--sun-dark); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: var(--narrow); }
.section { padding: var(--space) 0; }

/* Buton */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--sun);
  border: 0;
  border-radius: var(--radius);
  padding: 0.9rem 1.6rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--sun-dark); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Header */
.site-header { padding: 1.25rem 0; position: relative; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; text-decoration: none; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-nav { display: flex; gap: 1.75rem; font-family: var(--font-display); font-weight: 500; }
.site-nav a { text-decoration: none; color: var(--ink-soft); padding-bottom: 0.2rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--sun-dark); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.nav-toggle-bar { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }
  .site-nav.is-open { max-height: 260px; }
  .site-nav a { padding: 0.9rem 1.5rem; border-bottom: 1px solid #ece7e3; }
}

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 var(--space); }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.lead { font-size: 1.3rem; color: var(--ink-soft); max-width: 34ch; margin-bottom: 2rem; }

/* Ghidul desenat în CSS — elementul memorabil al paginii */
.hero-book { display: flex; justify-content: center; }
.book {
  width: min(280px, 70vw);
  aspect-ratio: 3 / 4;
  background: var(--ink);
  color: var(--white);
  border-radius: 4px 12px 12px 4px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  border-left: 14px solid var(--sun);
  box-shadow: 18px 18px 0 var(--sage);
  transform: rotate(-3deg);
}
.book-title { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1.05; }
.book-sub { margin-top: 1rem; font-size: 1rem; opacity: 0.8; }
.book-author { margin-top: auto; font-family: var(--font-display); color: var(--sun); }

/* Probleme */
.problems { background: var(--white); }

/* Proces */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 1.25rem; }
.steps li::before { content: counter(step); display: block; font-family: var(--font-display); font-weight: 700; font-size: 2.5rem; color: var(--sage); line-height: 1; margin-bottom: 0.75rem; }
.steps p { color: var(--ink-soft); }

/* Despre + testimonial */
.about { background: var(--white); }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.4; }
.testimonial footer { font-family: var(--font-display); color: var(--ink-soft); }

/* Formular */
.signup { background: var(--ink); color: var(--white); }
.signup-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.signup-text p { opacity: 0.85; }
.lead-form { background: var(--white); color: var(--ink); padding: 2rem; border-radius: var(--radius); display: grid; gap: 0.4rem; }
.lead-form > label { font-family: var(--font-display); font-weight: 500; font-size: 1rem; margin-top: 0.6rem; }
.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form textarea {
  font: inherit; font-size: 1rem; padding: 0.75rem;
  border: 2px solid #c9d3d0; border-radius: var(--radius);
  background: var(--white); color: var(--ink);
}
.lead-form textarea { resize: vertical; min-height: 120px; }
.lead-form input:focus, .lead-form textarea:focus { border-color: var(--ink); outline: none; }
.lead-form input[aria-invalid="true"], .lead-form textarea[aria-invalid="true"] { border-color: var(--error); }
.optional { font-weight: 400; color: var(--ink-soft); }
.lead-form > label.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-family: var(--font-body); font-weight: 400; font-size: 0.95rem; line-height: 1.5; margin-top: 1rem; }
.consent input { margin-top: 0.3rem; }
.lead-form .btn { margin-top: 1rem; }
.form-status { margin: 0.5rem 0 0; font-size: 1rem; min-height: 1.5em; }
.form-status.is-error { color: var(--error); }
.form-status.is-success { color: var(--success); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { padding: 2rem 0; font-size: 0.95rem; color: var(--ink-soft); }

/* Mobil */
@media (max-width: 820px) {
  .hero-inner, .signup-inner { grid-template-columns: 1fr; }
  .hero-book { order: -1; margin-bottom: 1rem; }
  .steps { grid-template-columns: 1fr; }
}
