/* ============================================================
   alexandrafodor.ro — paleta „Cerneală & Chihlimbar"
   Fără fonturi externe (fără Google Fonts): site-ul nu trimite
   IP-uri către terți și se încarcă instant.
   ============================================================ */

:root {
  /* Paleta confirmată */
  --bleumarin:        #2C3E5C;
  --bleumarin-inchis: #1E2C42;
  --auriu:            #D9A441;
  --auriu-inchis:     #B9862E;
  --fildes:           #FAF7F0;
  --crem:             #F1ECDF;
  --antracit:         #26282B;

  /* Derivate */
  --linie:      #E2DACA;
  --text-slab:  #5A5F66;
  --alb:        #FFFFFF;
  --umbra:      0 2px 10px rgba(44, 62, 92, .07);
  --umbra-mare: 0 10px 30px rgba(44, 62, 92, .12);

  /* Tipografie */
  --serif: Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --raza:   12px;
  --raza-s: 8px;
  --lat:    1120px;
}

/* ---------- Reset ușor ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* Atributul `hidden` trebuie să învingă orice `display` pus mai jos în fișier
   (altfel un `display:flex` îl anulează și elementul rămâne vizibil). */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--antracit);
  background: var(--fildes);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--bleumarin);
  line-height: 1.22;
  margin: 0 0 .6em;
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }
a { color: var(--bleumarin); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--bleumarin); color: #fff;
  padding: .7rem 1.1rem; border-radius: 0 0 var(--raza-s) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--auriu);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--lat)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2.5rem, 760px); }
.center { text-align: center; }

.section { padding: clamp(3.2rem, 7vw, 5.4rem) 0; }
.section-alt { background: var(--crem); }

.section-intro {
  max-width: 62ch;
  color: var(--text-slab);
  font-size: 1.05rem;
  margin-bottom: 2.2rem;
}
.center .section-intro { margin-inline: auto; }

.section-cta { margin: 2rem 0 0; }
.center .section-cta { margin-top: 1.6rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--auriu-inchis);
  margin-bottom: .9rem;
}

.lead { font-size: 1.1rem; color: #3A3F46; max-width: 62ch; }
.center .lead { margin-inline: auto; }
.muted { color: var(--text-slab); font-weight: 400; }
.note { font-size: .92rem; color: var(--text-slab); }

.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- Butoane ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .12s;
}
.btn:active { transform: translateY(1px); }

.btn-accent  { background: var(--auriu); color: var(--bleumarin-inchis); border-color: var(--auriu); }
.btn-accent:hover  { background: var(--auriu-inchis); border-color: var(--auriu-inchis); color: #fff; }

.btn-primary { background: var(--bleumarin); color: #fff; border-color: var(--bleumarin); }
.btn-primary:hover { background: var(--bleumarin-inchis); border-color: var(--bleumarin-inchis); }

.btn-ghost { background: transparent; color: var(--bleumarin); border-color: var(--bleumarin); }
.btn-ghost:hover { background: var(--bleumarin); color: #fff; }

.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 240, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 74px;
}

/* Deocamdată doar numele scris. Sigla e o decizie amânată — când există un logo,
   se adaugă aici, înaintea lui .logo-text. */
.logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--bleumarin); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-family: var(--serif); font-size: 1.12rem; }
.logo-text small { font-size: .68rem; letter-spacing: .05em; color: var(--text-slab); text-transform: uppercase; }
/* Semnul siglei — mugur din paleta „Cerneală & Chihlimbar". */
.logo-mark { width: 40px; height: 40px; flex: none; display: block; }
@media (max-width: 560px) { .logo-mark { width: 34px; height: 34px; } }


.nav ul { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: .5rem .75rem;
  font-size: .93rem; font-weight: 600;
  text-decoration: none; color: var(--bleumarin);
  border-radius: var(--raza-s);
}
.nav a:hover { background: var(--crem); color: var(--bleumarin-inchis); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--linie);
  border-radius: var(--raza-s); cursor: pointer;
  padding: 11px 10px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--bleumarin);
  border-radius: 2px; margin: 4px 0; transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 380px at 12% -10%, rgba(217, 164, 65, .16), transparent 62%),
    linear-gradient(180deg, var(--fildes) 0%, var(--crem) 100%);
  border-bottom: 1px solid var(--linie);
}
.hero-inner {
  padding: clamp(3rem, 7vw, 5.2rem) 0;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-text { max-width: 620px; }
.hero h1 { margin-bottom: .55em; }
.hero .lead { font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero-foto { margin: 0; }
.hero-foto img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--raza);
  box-shadow: var(--umbra-mare);
}

/* Pagina Resurse și cea de confidențialitate folosesc `.hero-mic`, fără poză.
   Acolo `display: grid` ar transforma fiecare paragraf într-un rând separat, cu
   spațiul mare de mai sus între ele — deci revenim la curgerea normală. */
.hero-mic .hero-inner { display: block; }

/* ---------- Carduri citat ---------- */
.quote-card {
  margin: 0;
  background: var(--alb);
  border-left: 4px solid var(--auriu);
  border-radius: var(--raza-s);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--umbra);
  font-family: var(--serif);
  font-size: 1.03rem;
  color: #34383E;
}
.quote-card::before { content: "„"; color: var(--auriu); font-size: 1.4em; line-height: 0; }
.quote-card::after  { content: "”"; color: var(--auriu); font-size: 1.4em; line-height: 0; }

/* ---------- Carduri servicii ---------- */
.card {
  position: relative;
  background: var(--alb);
  border: 1px solid var(--linie);
  border-radius: var(--raza);
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--umbra);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--umbra-mare); border-color: var(--auriu); }
.card h3 { margin: 0 0 .5rem; }
.card p {
  margin: 0;
  font-size: .93rem;
  line-height: 1.6;
  color: var(--text-slab);
}
.card-num {
  display: block;
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 700;
  color: var(--auriu);
  letter-spacing: .08em;
  margin-bottom: .55rem;
}

/* ---------- Notă evidențiată (apraxie / DTTC) ---------- */
.nota-accent {
  margin-top: 1.6rem;
  background: var(--alb);
  border: 1px solid var(--linie);
  border-left: 4px solid var(--auriu);
  border-radius: var(--raza-s);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--umbra);
}
.nota-accent h3 {
  font-family: var(--serif);
  font-size: 1.08rem;
  margin: 0 0 .4rem;
}
.nota-accent p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--text-slab);
  max-width: 72ch;
}
.nota-accent strong { color: var(--bleumarin); }

/* ---------- Parcursul unei evaluări ---------- */
.parcurs {
  margin-top: 3rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--linie);
}
.parcurs h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 1.8rem;
}

.pasi {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.8rem 1.6rem;
  counter-reset: pas;
}
.pasi li { position: relative; }
.pas-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--auriu);
  color: var(--bleumarin-inchis);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: .8rem;
}
.pasi h4 {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--bleumarin);
  margin: 0 0 .45rem;
  line-height: 1.3;
}
.pasi p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--text-slab);
}

/* Linie subțire care leagă pașii, doar când stau pe un singur rând */
@media (min-width: 1000px) {
  .pasi li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 17px;
    left: 46px;
    right: -1.6rem;
    height: 1px;
    background: var(--linie);
  }
}

/* ---------- Cine sunt ---------- */
.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.6rem; align-items: start; }
.split-text p { max-width: 64ch; }

.timeline {
  list-style: none; margin: 0; padding: 0 0 0 1.6rem;
  border-left: 2px solid var(--linie);
}
.timeline li { position: relative; padding: 0 0 1.7rem .3rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute;
  left: calc(-1.6rem - 7px); top: .45rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--auriu); border: 2px solid var(--fildes);
}
.section-alt .timeline li::before { border-color: var(--crem); }
.tl-year {
  display: block; font-family: var(--serif); font-weight: 700;
  font-size: 1.25rem; color: var(--bleumarin);
}
.tl-text { display: block; color: var(--text-slab); font-size: .96rem; }

/* ---------- Portret (poză „Cine sunt") ---------- */
.portret {
  float: left;
  width: 250px;
  margin: .35rem 1.7rem 1rem 0;
}
.portret img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--raza);
  box-shadow: var(--umbra-mare);
}

/* ---------- Galeria cabinetului ---------- */
.cabinet {
  margin-top: 2.8rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--linie);
  clear: both;
}
.cabinet h3 {
  font-family: var(--sans);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--auriu-inchis);
  margin-bottom: .6rem;
}
.cabinet-intro {
  color: var(--text-slab);
  font-size: .98rem;
  max-width: 60ch;
  margin-bottom: 1.4rem;
}

.cabinet-galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.cabinet-galerie figure { margin: 0; }
.cabinet-galerie img {
  display: block;
  width: 100%;
  /* `height: auto` anulează înălțimea impusă de atributul height="750" din HTML;
     fără ea, `aspect-ratio` de mai jos e ignorat. */
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--raza-s);
  box-shadow: var(--umbra);
}

/* ---------- Acreditări ---------- */
.credentiale {
  margin-top: 2.8rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--linie);
  clear: both;
}
.credentiale h3 {
  font-family: var(--sans);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--auriu-inchis);
  margin-bottom: 1.2rem;
}

.cred-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: .9rem 1.6rem;
}
.cred-list li {
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.45;
}
.cred-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .52em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--auriu);
}
.cred-list strong {
  display: block;
  font-size: .97rem;
  color: var(--bleumarin);
}
.cred-list span {
  font-size: .87rem;
  color: var(--text-slab);
}

.cred-extra { margin-top: 1.8rem; }
.cred-extra summary {
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  color: var(--bleumarin);
  padding: .6rem 0;
  list-style: none;
}
.cred-extra summary::-webkit-details-marker { display: none; }
.cred-extra summary::before {
  content: "+";
  display: inline-block;
  width: 1.35em;
  font-family: var(--serif);
  font-size: 1.15em;
  color: var(--auriu-inchis);
}
.cred-extra[open] summary::before { content: "–"; }
.cred-extra summary:hover { color: var(--auriu-inchis); }

.cred-grup { margin-top: 1.6rem; padding-left: 1.35em; }
.cred-grup:first-of-type { margin-top: .6rem; }
.cred-grup h4 {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  color: var(--bleumarin);
  margin: 0 0 .2rem;
  line-height: 1.35;
}
.cred-grup .cred-ani { padding-left: 0; }

.cred-ani {
  list-style: none;
  margin: .5rem 0 0;
  padding: 0 0 0 1.35em;
}
.cred-ani li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: .3rem 1rem;
  padding: .65rem 0;
  border-top: 1px solid var(--linie);
  font-size: .93rem;
  line-height: 1.5;
}
.cred-an {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--bleumarin);
}

/* ---------- KidlyPro ---------- */
.feature-block {
  display: grid; grid-template-columns: 1.2fr .8fr;
  gap: 2.5rem; align-items: center;
  background: var(--alb);
  border: 1px solid var(--linie);
  border-radius: var(--raza);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--umbra);
}
.feature-block h2 { margin-bottom: .4em; }
/* Captura stă pe un card alb, deci are nevoie de chenar ca să nu se topească în el. */
.feature-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--linie);
  border-radius: var(--raza-s);
  box-shadow: var(--umbra-mare);
}

/* ---------- Carusel de materiale ---------- */
.carusel {
  position: relative;
  margin-top: 2.4rem;
  text-align: left;
}

.carusel-pista {
  list-style: none;
  margin: 0;
  padding: .4rem .2rem 1rem;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  /* `proximity`, nu `mandatory`: când spațiul rămas e mai mic decât un card,
     `mandatory` refuză să se oprească între poziții și ultimul card rămâne
     tăiat, imposibil de adus în întregime pe ecran. */
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  /* Ascunde marginile cardurilor tăiate, ca să se vadă că lista continuă */
  -webkit-overflow-scrolling: touch;
}
.carusel-pista:focus-visible { outline: 3px solid var(--auriu); outline-offset: 4px; }

.carusel-item {
  flex: 0 0 200px;
  scroll-snap-align: start;
}
.carusel-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.carusel-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--raza-s);
  border: 1px solid var(--linie);
  background: var(--alb);
  box-shadow: var(--umbra);
  transition: transform .18s, box-shadow .18s;
}
.carusel-item a:hover img {
  transform: translateY(-3px);
  box-shadow: var(--umbra-mare);
}
.carusel-titlu {
  display: block;
  margin-top: .6rem;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--bleumarin);
}
.carusel-categorie {
  display: block;
  margin-top: .15rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--auriu-inchis);
}

/* Săgeți — ajutor pentru mouse; degetul și tastatura funcționează oricum */
.carusel-nav {
  position: absolute;
  top: calc(50% - 3rem);
  transform: translateY(-50%);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  font-family: var(--sans);
  color: var(--bleumarin);
  background: var(--alb);
  border: 1px solid var(--linie);
  border-radius: 50%;
  box-shadow: var(--umbra-mare);
  cursor: pointer;
  z-index: 2;
  transition: opacity .15s, background-color .15s;
}
.carusel-nav:hover { background: var(--crem); }
.carusel-nav:disabled { opacity: 0; pointer-events: none; }
.carusel-inapoi  { left: -14px; }
.carusel-inainte { right: -14px; }

/* Când toate cardurile încap, săgețile n-au ce face */
.carusel-fara-nav .carusel-nav { display: none; }

@media (max-width: 700px) {
  /* Pe telefon se derulează cu degetul — săgețile ar acoperi cardurile */
  .carusel-nav { display: none; }
  .carusel-item { flex-basis: 160px; }
}

/* ---------- Grup de mentorat ---------- */
.highlight-card {
  background: var(--bleumarin);
  color: #EDF1F7;
  border-radius: var(--raza);
  padding: clamp(1.8rem, 4vw, 2.9rem);
  box-shadow: var(--umbra-mare);
  border-top: 5px solid var(--auriu);
}
.highlight-card h2 { color: #fff; }
.highlight-card p { color: #D8DFEA; }

.badge {
  display: inline-block;
  background: var(--auriu);
  color: var(--bleumarin-inchis);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .32rem .8rem; border-radius: 999px;
  margin-bottom: 1rem;
}

/* ---------- Formular ---------- */
.waitlist-form { margin-top: 1.8rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; color: #EDF1F7; }
.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  font-family: inherit; font-size: 1rem;
  padding: .8rem .95rem;
  border: 2px solid transparent;
  border-radius: var(--raza-s);
  background: #fff; color: var(--antracit);
}
.field input::placeholder { color: #9AA1AA; }
.field input:focus { outline: none; border-color: var(--auriu); }
.field input[aria-invalid="true"] { border-color: #F2A9A0; }

.field-check { display: grid; grid-template-columns: auto 1fr; gap: .65rem; align-items: start; }
.field-check input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--auriu); }
.field-check label { font-weight: 400; font-size: .88rem; line-height: 1.5; color: #C9D3E2; margin: 0; }
.field-check .field-err { grid-column: 1 / -1; }

.field-err { margin: .35rem 0 0; font-size: .85rem; color: #FFC9C2; }

.form-status { margin: 1rem 0 0; font-size: .95rem; min-height: 1.4em; }
.form-status.ok    { color: #BFE6C8; font-weight: 600; }
.form-status.eroare { color: #FFC9C2; font-weight: 600; }

/* ============================================================
   PAGINA RESURSE
   ============================================================ */

.hero-mic .hero-inner { padding: clamp(2.4rem, 5vw, 3.6rem) 0; }
.hero-mic h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }

/* ---------- Filtre ---------- */
.filtre {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.4rem 2.4rem;
  padding-bottom: 1.8rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--linie);
}
.filtru-grup { display: flex; flex-direction: column; gap: .5rem; }
.filtru-eticheta {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--auriu-inchis);
}
.filtru-butoane { display: flex; flex-wrap: wrap; gap: .45rem; }

.filtru-buton {
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 600;
  color: var(--bleumarin);
  background: var(--alb);
  border: 1px solid var(--linie);
  border-radius: 999px;
  padding: .45rem 1rem;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.filtru-buton:hover { border-color: var(--auriu); }
.filtru-buton.activ {
  background: var(--bleumarin);
  border-color: var(--bleumarin);
  color: #fff;
}

.filtru-cautare { flex: 1 1 220px; max-width: 320px; }
.filtru-cautare input {
  font-family: inherit;
  font-size: .95rem;
  width: 100%;
  padding: .55rem .9rem;
  border: 1px solid var(--linie);
  border-radius: var(--raza-s);
  background: var(--alb);
  color: var(--antracit);
}
.filtru-cautare input:focus { outline: none; border-color: var(--auriu); }

/* ---------- Starea listei ---------- */
.lista-stare {
  color: var(--text-slab);
  font-size: 1rem;
  padding: 1.5rem 0;
  margin: 0;
}
.lista-stare-eroare { color: #A2483C; }
.lista-stare-goala { padding: 0; }

/* ---------- Cardurile de material ---------- */
/* `auto-fill`, nu `auto-fit`: cu auto-fit, coloanele goale se strâng, iar un
   singur material s-ar întinde pe toată lățimea paginii. auto-fill păstrează
   coloanele, deci cardul rămâne de mărimea lui indiferent câte materiale sunt. */
.materiale-grid {
  align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.material {
  display: flex;
  flex-direction: column;
  background: var(--alb);
  border: 1px solid var(--linie);
  border-radius: var(--raza);
  overflow: hidden;
  box-shadow: var(--umbra);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.material:hover {
  transform: translateY(-3px);
  box-shadow: var(--umbra-mare);
  border-color: var(--auriu);
}

.material-coperta {
  background: var(--crem);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.material-coperta img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.material-fara-coperta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--auriu);
}

.material-continut {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.3rem 1.4rem 1.4rem;
}
.material-categorie {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--auriu-inchis);
  margin-bottom: .5rem;
}
.material h3 {
  font-size: 1.05rem;
  margin: 0 0 .5rem;
  line-height: 1.3;
}
.material p {
  margin: 0 0 1.2rem;
  font-size: .91rem;
  line-height: 1.55;
  color: var(--text-slab);
}
.material-buton { margin-top: auto; align-self: flex-start; }

/* ---------- Fereastra de descărcare ---------- */
.fereastra {
  width: min(100% - 2rem, 460px);
  border: none;
  border-radius: var(--raza);
  padding: clamp(1.6rem, 4vw, 2.2rem);
  background: var(--bleumarin);
  color: #EDF1F7;
  box-shadow: 0 24px 60px rgba(20, 28, 42, .45);
  border-top: 5px solid var(--auriu);
}
.fereastra::backdrop { background: rgba(20, 28, 42, .62); }
.fereastra h2 { color: #fff; font-size: 1.35rem; margin-bottom: .2em; }
.fereastra .eyebrow { margin-bottom: .5rem; }

.fereastra-inchide-form { margin: 0; }
.fereastra-inchide {
  position: absolute;
  top: .6rem; right: .8rem;
  background: transparent;
  border: none;
  color: #9FB0C8;
  font-size: 1.9rem;
  line-height: 1;
  padding: .2rem .5rem;
  cursor: pointer;
  border-radius: var(--raza-s);
}
.fereastra-inchide:hover { color: #fff; }

.formular-descarcare { margin-top: 1.4rem; }

.field-radio {
  border: none;
  margin: 0 0 1.1rem;
  padding: 0;
}
.field-radio legend {
  font-weight: 600;
  font-size: .92rem;
  color: #EDF1F7;
  padding: 0;
  margin-bottom: .5rem;
}
.field-radio label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-right: 1.4rem;
  font-weight: 400;
  font-size: .95rem;
  color: #D8DFEA;
  cursor: pointer;
}
.field-radio input {
  width: 19px; height: 19px;
  accent-color: var(--auriu);
  margin: 0;
}

.form-status-inchis { min-height: 0; }

.fereastra-gdpr {
  margin: 1.2rem 0 0;
  font-size: .78rem;
  line-height: 1.5;
  color: #9FB0C8;
}
.fereastra-gdpr a { color: var(--auriu); }

/* Câmpul-capcană pentru roboți: invizibil, dar nu prin display:none —
   unii roboți ignoră câmpurile ascunse așa. */
.capcana {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ============================================================
   PAGINA DE CONFIDENȚIALITATE
   ============================================================ */

.politica h2 {
  font-size: 1.32rem;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--linie);
}
.politica h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }

.politica h3 {
  font-family: var(--sans);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--auriu-inchis);
  margin-top: 1.8rem;
  margin-bottom: .7rem;
}

.politica p { max-width: 68ch; }
.politica ul { max-width: 68ch; padding-left: 1.3rem; }
.politica li { margin-bottom: .5rem; line-height: 1.6; }
.politica .lista-nu li { margin-bottom: .7rem; }
.politica code {
  font-size: .9em;
  background: var(--crem);
  padding: .1em .35em;
  border-radius: 4px;
}

.tabel-date {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.4rem;
  background: var(--alb);
  border: 1px solid var(--linie);
  border-radius: var(--raza-s);
  overflow: hidden;
}
.tabel-date th,
.tabel-date td {
  padding: .85rem 1.1rem;
  text-align: left;
  vertical-align: top;
  font-size: .95rem;
  line-height: 1.55;
}
.tabel-date th {
  width: 11rem;
  font-weight: 600;
  color: var(--bleumarin);
  background: var(--fildes);
}
.tabel-date tr + tr th,
.tabel-date tr + tr td { border-top: 1px solid var(--linie); }


@media (max-width: 560px) {
  /* Tabelele cu două coloane devin ilizibile pe telefon */
  .tabel-date th,
  .tabel-date td { display: block; width: auto; }
  .tabel-date th { border-top: 1px solid var(--linie); padding-bottom: .2rem; }
  .tabel-date td { padding-top: .2rem; }
  .tabel-date tr:first-child th { border-top: none; }
  .tabel-date tr + tr td { border-top: none; }
}

/* ---------- Tarife ---------- */
.pricing {
  width: 100%;
  border-collapse: collapse;
  background: var(--alb);
  border: 1px solid var(--linie);
  border-radius: var(--raza);
  overflow: hidden;
  box-shadow: var(--umbra);
}
.pricing th, .pricing td { padding: 1.15rem 1.4rem; text-align: left; }
.pricing tr + tr th, .pricing tr + tr td { border-top: 1px solid var(--linie); }
.pricing th { font-weight: 600; color: var(--bleumarin); }
.pricing td {
  text-align: right; white-space: nowrap;
  font-family: var(--serif); font-size: 1.15rem;
  font-weight: 700; color: var(--auriu-inchis);
}

/* ---------- Contact ---------- */
.contact-grid { margin-bottom: 0; }
.contact-card {
  background: var(--alb);
  border: 1px solid var(--linie);
  border-radius: var(--raza);
  padding: 1.5rem;
  box-shadow: var(--umbra);
}
.contact-card h3 {
  font-family: var(--sans);
  font-size: .74rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--auriu-inchis); margin-bottom: .5rem;
}
.contact-card p { margin: 0; font-size: 1.02rem; }
.contact-card a { color: var(--bleumarin); text-decoration: none; border-bottom: 1px solid var(--auriu); }
.contact-card a:hover { color: var(--auriu-inchis); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bleumarin-inchis);
  color: #B9C4D6;
  padding: 2.8rem 0 2.2rem;
  font-size: .92rem;
}
.footer-inner { text-align: center; }
.footer-brand { font-family: var(--serif); color: #fff; font-size: 1.05rem; margin-bottom: .4rem; }
.footer-meta { margin: 0 0 .35rem; }
.site-footer a { color: var(--auriu); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-copy { margin: 1.2rem 0 0; font-size: .82rem; color: #7F8CA3; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  /* Poza trece sub text — titlul trebuie să rămână primul lucru pe ecran.
     Portret pe toată lățimea ar fi prea înalt, deci o limităm. */
  .hero-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-foto { max-width: 340px; margin-inline: auto; }

  .split, .feature-block { grid-template-columns: 1fr; }
  .feature-visual { order: -1; max-width: 320px; }
  .timeline { margin-top: .5rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--fildes);
    border-bottom: 1px solid var(--linie);
    box-shadow: var(--umbra-mare);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: .6rem 1.25rem 1.1rem; gap: 0; }
  .nav a { padding: .8rem .4rem; border-bottom: 1px solid var(--linie); border-radius: 0; }
  .nav li:last-child a { border-bottom: 0; }
  .header-inner { position: relative; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
}

/* Poza „curge" lângă text doar când mai rămâne loc de rânduri citibile:
   pe ecrane late (peste 1000px) și pe cele sub 860px, unde textul e pe toată
   lățimea. Între cele două, și pe telefon, poza stă deasupra textului. */
@media (min-width: 861px) and (max-width: 999px) {
  .portret { float: none; width: 100%; max-width: 250px; margin: 0 0 1.5rem; }
}

@media (max-width: 560px) {
  .portret {
    float: none;
    width: 100%;
    max-width: 270px;
    margin: 0 auto 1.6rem;
  }
  .cred-ani li { grid-template-columns: 1fr; gap: .15rem; }
  .cred-an { font-size: 1.02rem; }
}

@media (max-width: 430px) {
  /* Pe ecrane înguste subtitlul din siglă s-ar rupe pe două rânduri */
  .logo-text small { display: none; }
  .logo-text strong { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .hero-actions, .waitlist-form, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .section { padding: 1rem 0; }
  .highlight-card { background: #fff; color: #000; border: 1px solid #999; }
  .highlight-card h2, .highlight-card p { color: #000; }
}
