/* ==========================================================================
   Asociația Humanimals — foaie de stil principală
   Structura:
   1. Tokens (culori, spatiere, tipografie)
   2. Reset & baze
   3. Layout & utilitare
   4. Componente (buton, card, header, footer, etc.)
   5. Sectiuni de pagina
   6. Responsive
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------
   Schimbi paleta site-ului doar din variabilele de mai jos. */
/* Paleta este cea a Asociației Humanimals: galbenul #FED500 și negrul din
   logo. Galbenul functioneaza doar ca fundal (cu text negru) — pe alb are
   contrast 1,35:1, deci pentru text pe fundal deschis exista --accent-ink. */
:root {
  --brand:        #111214;   /* negrul Humanimals */
  --brand-dark:   #000000;
  --brand-light:  #fff4c2;   /* galben pal: chip-uri, iconite, hover */
  --accent:       #fed500;   /* GALBENUL Humanimals */
  --accent-dark:  #e5bf00;   /* galben mai adanc, pentru hover */
  --accent-light: #fff9db;
  --accent-ink:   #7a6100;   /* singura nuanta de galben lizibila ca text pe alb */
  --on-accent:    #000000;   /* text asezat peste galben */

  --ink:          #111214;   /* text principal */
  --ink-soft:     #55575c;   /* text secundar */
  --line:         #e5e5e2;   /* borduri */
  --bg:           #fafaf8;   /* fundal pagina */
  --surface:      #ffffff;   /* fundal card */
  --surface-alt:  #f2f2f0;

  --radius:    18px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(17, 18, 20, .06), 0 2px 8px rgba(17, 18, 20, .05);
  --shadow-md: 0 10px 30px rgba(17, 18, 20, .09);
  --shadow-lg: 0 24px 60px rgba(17, 18, 20, .13);

  --container: 1160px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  --font-sans: "Roboto", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* 2. RESET & BAZE ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
/* Un IBAN sau o adresa de e-mail nu are unde sa se rupa si, pe un ecran de
   320 px, impinge toata pagina in lateral. De aici incolo, se rup. */
body { overflow-wrap: break-word; }
/* Copiii unui grid primesc implicit min-width:auto, adica nu se lasa mai
   ingusti decat continutul lor: de aceea o caseta iese din ecran. */
.grid > *, .stats > *, .form > *, .fieldset > *, .harta-cadru > *,
.contract-layout > *, .media-grid > *, .footer__grid > * { min-width: 0; }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); text-decoration-color: var(--accent); text-decoration-thickness: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  color: var(--ink);
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li + li { margin-top: .35em; }

:focus-visible {
  /* inel galben cu halou inchis, ca sa fie vizibil si pe alb, si pe negru */
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, .35);
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: var(--on-accent); font-weight: 700;
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: var(--on-accent); }

/* 3. LAYOUT & UTILITARE ---------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--surface-alt); }
.section--brand { background: var(--brand); color: #fff; }
.section--brand h2, .section--brand h3 { color: #fff; }
.section--brand a:not(.btn) { color: var(--accent); }  /* butoanele isi pastreaza culorile proprii */

/* Banda galbena — semnatura vizuala a brandului. Text mereu negru. */
.section--accent { background: var(--accent); color: var(--on-accent); }
.section--accent h2, .section--accent h3 { color: var(--on-accent); }
.section--accent .lead { color: rgba(0, 0, 0, .78); }
.section--accent .eyebrow { color: var(--on-accent); }
.section--accent .eyebrow::before { background: var(--on-accent); }
.section--accent .stat__value { color: var(--on-accent); }
.section--accent .stat__label { color: rgba(0, 0, 0, .72); }
.section--accent a:not(.btn) { color: var(--on-accent); }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-center { max-width: 62ch; margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.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;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: .75rem;
}
.eyebrow::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 1.6rem; height: 3px; border-radius: 2px;
  background: var(--accent); margin-right: .6rem; margin-top: -2px;
}
.section--brand .eyebrow, .cta-band .eyebrow { color: var(--accent); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); }
.section--brand .lead { color: rgba(255,255,255,.88); }

/* 4. COMPONENTE ------------------------------------------------------------ */

/* Butoane */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.5rem;
  font: inherit; font-weight: 600; font-size: 1rem;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  cursor: pointer; text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
/* Cele doua butoane ale brandului: galben pe negru si negru pe galben. */
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-dark); color: var(--accent); }
.btn--brand { background: var(--brand); color: var(--accent); }
.btn--brand:hover { background: var(--accent); color: var(--on-accent); }
.btn--ghost { border-color: currentColor; color: var(--brand-dark); background: transparent; }
.btn--ghost:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--light { background: #fff; color: var(--brand-dark); }
.btn--light:hover { background: var(--accent); color: var(--on-accent); }
.btn--sm { padding: .55rem 1.1rem; font-size: .9375rem; }
/* eticheta lunga (o adresa de e-mail) se rupe, nu impinge butonul afara */
.btn { max-width: 100%; text-align: center; overflow-wrap: anywhere; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 248, 243, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 76px;
}
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__text { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.05; }
.logo__text small { display: block; font-family: var(--font-sans); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.logo__img { height: 44px; width: auto; flex: none; max-width: none; }
/* antetul nu are voie sa striveasca sigla cand meniul cere latime */
.site-header .logo { flex: none; }
.site-footer .logo__img { height: 52px; }

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  padding: .5rem .6rem; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 500; color: var(--ink); text-decoration: none;
  /* un element de meniu nu are voie sa se rupa pe doua randuri */
  white-space: nowrap;
}
.nav a:hover { background: var(--brand-light); color: var(--brand-dark); }
.nav a[aria-current="page"] { background: var(--accent); color: var(--on-accent); font-weight: 700; }

.header__actions { display: flex; align-items: center; gap: .6rem; }
.lang-switch { display: inline-flex; gap: .15rem; font-size: .82rem; font-weight: 700; letter-spacing: .04em; }
.lang-switch a { padding: .35rem .45rem; border-radius: 6px; text-decoration: none; color: var(--ink-soft); }
.lang-switch a[aria-current="true"] { background: var(--accent); color: var(--on-accent); }

.lang-switch--mobil { display: none; }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: transform .2s ease, top .2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card > :last-child { margin-bottom: 0; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--brand-light); color: var(--brand-dark);
  margin-bottom: 1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card__media {
  aspect-ratio: 3 / 2; border-radius: var(--radius-sm); margin-bottom: 1.1rem;
  background: linear-gradient(135deg, var(--brand-light), var(--accent-light));
  display: grid; place-items: center; overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__meta { font-size: .85rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.card__cta { margin-top: auto; padding-top: 1rem; font-weight: 700; color: var(--brand-dark); text-decoration: none; }
.card__cta::after { content: " →"; }

/* Statistici */
/* Se asaza singure, cate incap: patru pe desktop, doua pe telefon, fara sa
   fie taiate. Fara latimi fixe in HTML, ca stilul din pagina bate foaia de
   stiluri si nu mai poate fi corectat aici. */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 1.5rem;
}
.stats--fix1 { grid-template-columns: 1fr; }
.stat { text-align: center; }
.stat__value { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; color: var(--brand); line-height: 1; }
.section--brand .stat__value { color: #fff; }
.stat__label { font-size: .9rem; color: var(--ink-soft); margin-top: .4rem; }
.section--brand .stat__label { color: rgba(255,255,255,.85); }

/* Bara de progres campanie */
.progress { margin-block: 1rem; }
.progress__bar { height: 10px; background: #e6e6e2; border-radius: var(--radius-pill); overflow: hidden; }
.progress__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: var(--radius-pill); transition: width 1.2s cubic-bezier(.22,.61,.36,1); }
.progress__meta { display: flex; justify-content: space-between; font-size: .9rem; margin-top: .5rem; color: var(--ink-soft); }
.progress__meta strong { color: var(--ink); }

/* Badge */
.badge {
  display: inline-block; padding: .25rem .7rem; border-radius: var(--radius-pill);
  font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: var(--accent); color: var(--on-accent);
}
.badge--brand { background: var(--brand); color: var(--accent); }

/* Acordeon (FAQ) */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 1.05rem; text-align: left; color: var(--ink);
}
.accordion__btn::after { content: "+"; font-size: 1.5rem; color: var(--brand); flex: none; transition: transform .2s ease; }
.accordion__btn[aria-expanded="true"]::after { transform: rotate(45deg); }
.accordion__panel { display: none; padding-bottom: 1.25rem; color: var(--ink-soft); }
.accordion__panel.is-open { display: block; }
.accordion__panel > :last-child { margin-bottom: 0; }

/* Casete de informatii / donatii */
.info-box {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm); padding: 1.25rem 1.4rem;
}
.info-box--accent { border-left-color: var(--accent); }
.copy-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .5rem; }
.copy-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .95rem; background: var(--surface-alt); padding: .4rem .6rem; border-radius: 6px;
  word-break: break-all;
}
.copy-btn {
  font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
  padding: .35rem .7rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: #fff; color: var(--brand-dark);
}
.copy-btn:hover { background: var(--brand-light); }

/* Formular */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea, .field select {
  font: inherit; padding: .75rem .9rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); }
.field small { color: var(--ink-soft); font-size: .85rem; }
.form-note { font-size: .875rem; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.82); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer h3 { color: #fff; font-size: 1.05rem; font-family: var(--font-sans); font-weight: 700; letter-spacing: .02em; margin-bottom: .9rem; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .logo__text { color: #fff; }
.site-footer .logo__text small { color: rgba(255,255,255,.6); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li + li { margin-top: .5rem; }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.1);
}
.socials a:hover { background: var(--accent); color: var(--on-accent); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.footer__bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .875rem; color: rgba(255,255,255,.6);
}

/* 5. SECTIUNI DE PAGINA ---------------------------------------------------- */

/* Hero */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 15%, rgba(254, 213, 0, .30) 0%, transparent 60%),
    radial-gradient(55% 60% at 10% 90%, rgba(254, 213, 0, .14) 0%, transparent 60%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero__media {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 60%, var(--accent) 145%);
  box-shadow: var(--shadow-lg); display: grid; place-items: center;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Antet pagina interioara */
.page-hero { background: var(--brand); color: #fff; padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: rgba(255,255,255,.88); max-width: 62ch; margin-bottom: 0; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: .75rem; }
.breadcrumb a { color: rgba(255,255,255,.9); }

/* Pe fundal inchis, hover-ul global (galben inchis) ar fi ilizibil:
   pe negru folosim galbenul plin, pe galben folosim negrul. */
.page-hero a:hover,
.cta-band a:hover,
.section--brand a:not(.btn):hover { color: var(--accent); text-decoration-color: currentColor; }
.section--accent a:not(.btn):hover { color: var(--on-accent); text-decoration-color: currentColor; }
/* pe banda galbena, hover-ul galben al butonului alb ar disparea */
.section--accent .btn--light:hover { background: var(--brand-dark); color: var(--accent); }
.section--accent .btn--ghost:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--accent); }

/* Banda CTA */
.cta-band { background: var(--brand-dark); color: #fff; border-radius: var(--radius); padding: clamp(2rem, 4vw, 3rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); }
.cta-band .btn-row { justify-content: center; }

/* Timeline (etape proiect) */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-left: 2.5rem; padding-bottom: 1.75rem; margin: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; border: 3px solid var(--brand);
}
.timeline li.is-done::before { background: var(--accent); }
.timeline h3 { margin-bottom: .25em; font-size: 1.1rem; }
.timeline p { margin-bottom: 0; color: var(--ink-soft); }

/* Generatorul de contract ------------------------------------------------- */
.contract-layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .contract-layout { grid-template-columns: 1fr; } }

.fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.25rem 1.4rem; margin: 0 0 1.25rem; display: grid; gap: 1rem; }
.fieldset legend { padding-inline: .5rem; font-weight: 700; font-size: .95rem; }

.radio-card { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--accent-light); }
.radio-card input { width: auto; margin-top: .25rem; flex: none; }
.radio-card small { display: block; color: var(--ink-soft); font-size: .875rem; margin-top: .15rem; }

.form-note.is-ok { color: var(--brand-dark); font-weight: 600; }
.form-note.is-error { color: #b42318; font-weight: 600; }
.preview-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
/* previzualizarea ramane in dreptul ochilor cat timp se completeaza formularul */
@media (min-width: 901px) { .contract-preview { position: sticky; top: 96px; } }
/* Documentul sta in pagina o singura data: pe ecran e mutat aici, la tiparire
   redevine singurul lucru vizibil. Asa nu exista doua copii care se pot
   desincroniza. */
.doc-scroll { max-height: 78vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-alt); padding: clamp(.75rem, 2vw, 1.5rem); }

.doc-sheet {
  background: #fff; color: #000; max-width: 21cm; margin-inline: auto;
  padding: 2cm 2.2cm; box-shadow: var(--shadow-md);
  font-family: Georgia, "Times New Roman", serif; font-size: 11.5pt; line-height: 1.5;
}
.doc-sheet p { margin: 0 0 .85em; text-align: justify; }
.doc__title { font-size: 15pt; text-align: center; letter-spacing: .04em; margin: 0 0 .3em; font-family: inherit; color: #000; }
.doc__sub { text-align: center; margin-bottom: 1.8em; }
.doc__h { font-size: 11.5pt; font-weight: 700; margin: 1.4em 0 .5em; font-family: inherit; color: #000; letter-spacing: 0; }
.doc__closing { margin-top: 1.6em; }
.doc__signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5em; page-break-inside: avoid; }
.doc__sig-role { font-weight: 700; margin-bottom: 1.2em; }
.doc__sig-name { margin: 0 0 .2em; }
.doc__sig-line { margin-top: 1.6em; padding-top: .3em; border-top: 1px solid #000; font-size: 9pt; color: #444; }
.doc-sheet .fill { color: #666; }
.doc-sheet .fill.is-filled { color: #000; font-weight: 700; }
@media (max-width: 640px) { .doc-sheet { padding: 1.2cm; font-size: 10.5pt; } }

/* Acordul pentru cookies ----------------------------------------------------
   O bara jos, nu o fereastra care acopera pagina: nu se incarca nimic pana
   nu alege omul, deci nu are rost sa-i blocam cititul. */
.cookies {
  position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 46rem; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
}
.cookies__text { margin: 0; flex: 1 1 18rem; font-size: .9rem; }
.cookies__stare { margin: 0; flex: 1 1 100%; font-size: .8rem; color: var(--ink-soft); }
.cookies__butoane { display: flex; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; }
.cookies__link { font-size: .82rem; color: var(--ink-soft); }
/* Un buton care arata a link: e o actiune, nu o navigare, deci ramane buton. */
.ca-link {
  border: 0; background: none; padding: 0; margin: 0;
  font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
@media (max-width: 560px) {
  .cookies { left: .5rem; right: .5rem; bottom: .5rem; padding: .9rem 1rem; }
  .cookies__butoane { width: 100%; }
}

/* Harta terenului -----------------------------------------------------------
   Caroiajul e desenat ca fundal, nu ca elemente: in DOM ajung doar parcelele
   revendicate. Un metru patrat este a zecemia parte din harta, deci pe telefon
   are 3-4 px: prea putin ca sa fie vazut sau atins. De aceea harta ramane
   imaginea de ansamblu, iar recunoasterea fiecarui sustinator se face in lista
   de dedesubt, care functioneaza la orice latime. */
.harta-cadru { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
@media (max-width: 860px) { .harta-cadru { grid-template-columns: 1fr; } }

.harta {
  position: relative; aspect-ratio: 1; width: 100%;
  /* liniile albe impart terenul in parcele de cate 100 mp, peste ilustratia
     terenului; ordinea conteaza, prima e deasupra */
  background-image:
    repeating-linear-gradient(to right, rgba(255,255,255,.22) 0 1px, transparent 1px 10%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.22) 0 1px, transparent 1px 10%),
    url("/assets/img/teren.svg");
  background-size: 100% 100%, 100% 100%, cover;
  background-color: #7d9048;
  border: 3px solid #3f3320;
  border-radius: 6px;
  box-shadow: var(--shadow-md), inset 0 0 40px rgba(20,32,10,.25);
  overflow: hidden;
}

.harta__gol {
  position: absolute; inset: 0; display: grid; place-items: start center; text-align: center;
  padding: 1.4rem 1.2rem; pointer-events: none; z-index: 5;
}
/* display din regula de mai sus bate `[hidden]`, deci il spunem explicit */
.harta__gol[hidden] { display: none; }
.harta__gol p {
  margin: 0; font-family: var(--font-display); font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  color: var(--ink-soft); max-width: 26ch;
  /* fundal, ca textul sa ramana lizibil cand trece un animal pe sub el */
  background: rgba(255,255,255,.82); padding: .7rem 1rem; border-radius: var(--radius-sm);
}

.parcela {
  position: absolute; padding: 0; border: 0; cursor: pointer;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(40,32,10,.55), 0 1px 3px rgba(0,0,0,.35);
  transition: transform .12s ease, background-color .12s ease;
}
.parcela:hover { background: var(--brand); transform: scale(1.35); z-index: 2; }
.parcela:focus-visible { z-index: 3; }
.parcela--companie { background: var(--brand); }
.parcela--companie:hover { background: var(--accent); }
.parcela.is-evidentiat { animation: pulsParcela 1.4s ease-out 2; z-index: 4; }
@keyframes pulsParcela {
  0%, 100% { box-shadow: 0 0 0 0 rgba(254,213,0,0); }
  35% { box-shadow: 0 0 0 8px rgba(254,213,0,.75); }
}
@media (prefers-reduced-motion: reduce) { .parcela.is-evidentiat { animation: none; outline: 3px solid var(--brand); outline-offset: 3px; } }

.harta__legenda { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: .875rem; color: var(--ink-soft); margin-top: 1rem; }
.harta__legenda span { display: inline-flex; align-items: center; gap: .45rem; }
.harta__cheie { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.harta__cheie--liber { background: #7d9048 url("/assets/img/teren.svg") center/300%; border: 1px solid rgba(0,0,0,.3); }
.harta__cheie--pers { background: var(--accent); }
.harta__cheie--comp { background: var(--brand); }

/* Un catel si o pisica se plimba pe teren si cauta un loc unde sa doarma.
   Pot dormi doar pe metrii patrati care au deja un nume: cat timp harta e
   goala, se invart si nu gasesc nimic. Stratul e decorativ, deci aria-hidden
   si pointer-events: none, ca sa nu stea in fata parcelelor. WCAG 2.2.2 cere
   un buton de oprit pentru miscarea care tine mai mult de cinci secunde. */
.harta__joc { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.animal {
  /* pozitia e data doar de transform, deci coltul de plecare e 0,0 */
  position: absolute; left: 0; top: 0;
  width: clamp(40px, 11.5%, 104px);
  /* pozitia vine din harta.js, cadru cu cadru; translate-ul al doilea aseaza
     punctul dat sub labele animalului */
  transform: translate(-50%, -76%);
  will-change: transform;
}
.animal svg { display: block; width: 100%; height: auto; overflow: visible; }
.animal__corp { display: block; }
.animal__pas { display: block; transform-origin: 50% 100%; }
.animal.spre-stanga .animal__corp { transform: scaleX(-1); }
.animal .animal__doarme { display: none; }
.animal.doarme .animal__merge { display: none; }
.animal.doarme .animal__doarme { display: block; }
.cu-miscare .animal.merge .animal__pas { animation: pasiAnimal .44s ease-in-out infinite alternate; }
.lab { transform-box: fill-box; transform-origin: 50% 8%; }
.cu-miscare .animal.merge .lab { animation: labaAnimal .44s ease-in-out infinite alternate; }
.cu-miscare .animal.merge .lab--fund { animation-direction: alternate-reverse; }
/* oprit sa adulmece: labele si legănatul stau, restul ramane viu */
.animal.sta .animal__pas, .animal.sta .lab { animation-play-state: paused; }
@keyframes labaAnimal { from { transform: rotate(-13deg); } to { transform: rotate(13deg); } }
.cu-miscare .animal.doarme .animal__pas { animation: respiraAnimal 3.6s ease-in-out infinite; }
@keyframes pasiAnimal { from { transform: translateY(0); } to { transform: translateY(-8%); } }
@keyframes respiraAnimal { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.animal__z { position: absolute; right: -6%; top: -34%; width: 60%; height: 40%; display: none; }
.animal.doarme .animal__z { display: block; }
.animal__z span {
  position: absolute; bottom: 0; left: 0;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(.7rem, 1.9vw, 1rem);
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); opacity: .9;
}
.cu-miscare .animal__z span { opacity: 0; animation: somnAnimal 2.7s ease-out infinite; }
.animal__z span:nth-child(2) { left: 40%; bottom: 34%; animation-delay: .9s; }
.animal__z span:nth-child(3) { left: 80%; bottom: 68%; animation-delay: 1.8s; }
@keyframes somnAnimal {
  0% { opacity: 0; transform: translateY(4px) scale(.7); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-14px) scale(1.15); }
}

/* Balonul de multumire: apare cat timp animalul doarme pe metrii cuiva
   anume — tot somnul (7-13s), nu doar o clipa, ca sa apuce cineva sa il
   citeasca — si dispare cand animalul se trezeste. */
.animal__multumesc {
  position: absolute; left: 50%; top: -48%; transform: translate(-50%, 0);
  display: none; z-index: 1;
  width: max-content; max-width: min(220px, 60vw);
  text-align: center; white-space: normal;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(.68rem, 1.7vw, .85rem); line-height: 1.25; color: #fff;
  background: rgba(28,42,16,.78); border-radius: 999px; padding: .35em .75em;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.animal.multumeste .animal__multumesc { display: block; }

/* A vrut sa se culce, dar culcusul era luat: un metru patrat, un animal. */
.animal__semn {
  position: absolute; right: -8%; top: -30%; display: none;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(.8rem, 2.1vw, 1.15rem); color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 0 6px rgba(0,0,0,.5);
}
.animal.intreaba .animal__semn { display: block; }
.cu-miscare .animal.intreaba .animal__semn { animation: intrebareAnimal 2.6s ease-out; }
@keyframes intrebareAnimal {
  0% { opacity: 0; transform: translateY(6px) scale(.6); }
  12%, 72% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-7px) scale(1); }
}

.harta__joc-bara { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; margin-top: .75rem; }
.harta__poveste { margin: 0; font-size: .875rem; color: var(--ink-soft); max-width: 60ch; }
.harta__pauza {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; font-size: .8125rem; color: var(--ink-soft);
  text-decoration: underline; text-underline-offset: 3px;
}
.harta__pauza:hover { color: var(--ink); }

/* Cine cere mai putina miscare primeste animalele nemiscate: harta.js nu pune
   .cu-miscare decat daca apasa el „Pornește animalele” de sub harta. */

/* Planul de constructie, peste teren. Ascuns pana il cere cineva: harta e
   despre metrii revendicati, planul e context, nu subiect. */
.harta__plan { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .25s ease; }
.harta.cu-plan .harta__plan { opacity: 1; visibility: visible; }
.zona {
  position: absolute; display: flex; align-items: flex-start; justify-content: flex-start;
  border: 2px dashed rgba(255,255,255,.85); border-radius: 4px;
  background: rgba(17,18,20,.28);
}
.zona--verde { border-style: dotted; background: rgba(17,18,20,.16); }
.zona span {
  margin: .4rem; padding: .25rem .5rem;
  background: rgba(17,18,20,.82); color: #fff; border-radius: 3px;
  font-size: clamp(.62rem, 1.5vw, .8rem); font-weight: 600; line-height: 1.25;
}
.zona small { display: block; font-weight: 400; opacity: .8; }
/* pe telefon, eticheta ar acoperi zona pe care o numeste */
@media (max-width: 620px) {
  .zona span { margin: .25rem; padding: .15rem .35rem; font-size: .6rem; }
  .zona small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .harta__plan { transition: none; } }

/* Cautarea in lista de sustinatori */
.cauta { margin: 1rem 0 .5rem; }
.cauta label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .3rem; }
.cauta input {
  width: 100%; max-width: 22rem; padding: .55rem .75rem;
  font: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
}
.cauta input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.cauta .form-note { margin-top: .4rem; }

/* Lista sustinatorilor: recunoasterea propriu-zisa, lizibila la orice latime. */
.sustinatori { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.sustinatori li { margin: 0; }
.sustinator {
  width: 100%; text-align: left; font: inherit; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: .9rem 1.1rem;
  display: grid; gap: .2rem;
  transition: border-color .15s ease, transform .15s ease;
}
.sustinator:hover { transform: translateX(3px); border-left-color: var(--brand); }
.sustinator--companie { border-left-color: var(--brand); }
.sustinator__nume { font-weight: 700; }
.sustinator__meta { font-size: .85rem; color: var(--ink-soft); }
.sustinator__mesaj { font-style: italic; color: var(--ink-soft); margin-top: .25rem; }

.harta__detaliu { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 1.25rem 1.4rem; margin-top: 1.25rem; }
.harta__detaliu h3 { margin-bottom: .2em; }
.harta__meta { font-size: .875rem; color: var(--ink-soft); margin-bottom: .75rem; }
.harta__mesaj { margin: 0; padding-left: 1rem; border-left: 3px solid var(--line); font-style: italic; color: var(--ink-soft); }

/* Tabel simplu, pentru date comparabile ------------------------------------ */
.table-wrap { overflow-x: auto; }
.tabel { width: 100%; border-collapse: collapse; font-size: .975rem; min-width: 640px; }
.tabel th, .tabel td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabel thead th { background: var(--brand); color: #fff; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.tabel tbody th { font-weight: 700; color: var(--accent-ink); white-space: nowrap; }
.tabel tbody tr:last-child td, .tabel tbody tr:last-child th { border-bottom: 0; }

/* Pachete de parteneriat --------------------------------------------------- */
.pachet { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 2.4vw, 1.75rem); background: var(--surface); display: flex; flex-direction: column; }
.pachet--top { background: var(--brand); color: #fff; border-color: var(--brand); }
.pachet--top h3, .pachet--top .pachet__pret { color: #fff; }
.pachet--top .pachet__cui { color: rgba(255,255,255,.75); }
.pachet--top .checklist li::before { background: var(--accent); color: var(--on-accent); }
.pachet--inkind { background: transparent; border-style: dashed; }
.pachet__cap { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; }
.pachet__locuri { font-size: .8rem; color: var(--ink-soft); text-align: right; }
.pachet--top .pachet__locuri { color: rgba(255,255,255,.7); }
.pachet__pret { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; line-height: 1; margin: 0 0 .25rem; }
.pachet__cui { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
.pachet .checklist { margin-bottom: 0; }
.pachet .checklist li { font-size: .95rem; }

/* Sustinatori (logo-uri partenere) */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: center; }
.partners img { width: 100%; max-width: 190px; margin-inline: auto; opacity: .75; filter: grayscale(1); transition: opacity .2s ease, filter .2s ease; }
.partners img:hover { opacity: 1; filter: none; }
@media (max-width: 640px) { .partners { grid-template-columns: repeat(2, 1fr); } }

/* Galerie foto simpla */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.media-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); }
.media-grid--2 { grid-template-columns: repeat(2, 1fr); }
.media-grid--lipit { grid-template-columns: auto 1fr; align-items: center; }
@media (max-width: 640px) {
  .media-grid, .media-grid--2, .media-grid--lipit { grid-template-columns: 1fr; }
  .media-grid--lipit img { margin-inline: auto; }
}

/* Lista de valori / beneficii */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .65rem; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--brand-light); color: var(--brand-dark);
  font-size: .8rem; font-weight: 700; display: grid; place-items: center;
}

/* Animatie de aparitie.
   Continutul este vizibil implicit; se ascunde doar daca JS este activ si
   il poate dezvalui la scroll (asa nu dispare nimic cand JS nu ruleaza). */
/* Animam doar poziția, nu si opacitatea: o unealta care incarca pagina fara
   sa o deruleze (captura de ecran, verificare automata, cititor de ecran,
   crawler) trebuie sa vada tot textul. Cu opacity: 0 pe secțiunile de mai jos,
   pagina parea aproape goala pentru oricine nu derula. */
.js .reveal { transform: translateY(18px); transition: transform .6s ease; }
.js .reveal.is-visible { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { transform: none; } }

/* 6. RESPONSIVE ------------------------------------------------------------ */
/* Meniul trece pe hamburger mai devreme decat restul aranjamentului: cu opt
   intrari, sigla, comutatorul de limba si butonul de donatie, randul de sus nu
   mai incape sub ~1120px, desi coloanele paginii sunt inca in regula. */
@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 76px 0 auto; z-index: 90;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .75rem var(--gutter) 1.5rem;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { background: none; color: var(--brand-dark); box-shadow: inset 3px 0 0 var(--accent); }
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; aspect-ratio: 16 / 10; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  /* Pe ecrane mici, comutatorul de limbă se mută în meniu, ca antetul să încapă */
  .header__actions .lang-switch { display: none; }
  .nav .lang-switch--mobil { display: flex; padding: .85rem .5rem; }
  .nav .lang-switch--mobil a { border-bottom: 0; padding: .35rem .5rem; }
  .logo__text { font-size: 1.05rem; }
  .logo__mark { width: 34px; height: 34px; }
  .logo__img { height: 34px; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { gap: 1.25rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .header__actions .btn { padding: .55rem 1rem; font-size: .9rem; }
}

/* Print */
@media print {
  .site-header, .site-footer, .nav-toggle, .btn { display: none !important; }
  body { background: #fff; }

  /* Pe paginile cu document tiparibil (generatorul de contract), la tiparire
     ramane doar documentul: formularul, antetul si explicatiile dispar, iar
     foaia iese din containerul ei si umple pagina. */
  .no-print { display: none !important; }
  .contract-layout { display: block; }
  .doc-scroll { max-height: none; overflow: visible; border: 0; padding: 0; background: none; }
  .doc-sheet {
    box-shadow: none; max-width: none; margin: 0; padding: 0;
    font-size: 11pt;
  }
  .doc-sheet .fill { color: #000; }
  .doc__h, .doc__signatures { page-break-after: avoid; }
  p { orphans: 3; widows: 3; }
  @page { size: A4; margin: 2cm 2.2cm; }
}
