/* ============================================================
   VERDAVA ← Stylesheet
   ============================================================ */

/* Fonturile se incarca din css/fonts.css (autogazduite, 22.10.2026). */

:root {
    color-scheme: light only;
  --green-dark:    #1d6b3e;   /* verde intens – bară 100%, badge Finalizat */
  --green-mid:     #2e7d52;   /* verde navbar active underline */
  --green-btn:     #1d6b3e;   /* buton Intranet înlocuit cu nimic */
  --green-pale:    #e8f5ee;   /* verde pal – badge Planificat, bară 0% */
  --green-bar:     #1d6b3e;   /* culoarea fill bara de progres */
  --text-dark:     #1a1a1a;
  --text-body:     #333333;
  --text-muted:    #6b7280;
  --border:        #e5e7eb;
  --bg-address:    #f0f0f0;   /* f3f4f6 */
  --white:         #ffffff;
  --radius:        13px;
  --radius-sm:     8px;
  --nav-height:    64px;
  --page-max:      1140px;
  --page-pad:      2.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { display: block; max-width: 100%; }

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-height);
  background: #ffffff;              /* var(--white) */
  -webkit-backdrop-filter: none;    /* dezactivează orice blur pe iOS */
  backdrop-filter: none;
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 var(--page-pad);
  gap: 2rem;
  /* isolation: isolate;*/
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 38px;
  width: auto;
}

/* spacer spinge nav-links la dreapta */
.nav-spacer { flex: 1; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.15rem;
  align-items: center;
}

.nav-links li a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  text-decoration: none;
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  position: relative;
}

.nav-links li a:hover {
  color: var(--text-dark);
  background: var(--green-pale);
}

.nav-links li a.active {
  color: var(--text-dark);
  font-weight: 600;
}

/* underline verde sub linkul activ – exact ca în design */
.nav-links li a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 1rem);
  height: 2.5px;
  background: var(--green-mid);
  border-radius: 2px;
}

.nav-links li a svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* hamburger – ascuns pe desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: 0.25s;
}

/* ── LAYOUT GENERAL ─────────────────────────────────────────── */
.page-wrap {
  flex: 1;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 3rem var(--page-pad) 2rem;
}

/* ── ADDRESS BAR ────────────────────────────────────────────── */
/* Apare în josul fiecărei pagini, același style peste tot */
.address-bar {
  display: flex;        			/* Activează Flexbox – copiii (icon + text) se aranjează în linie. Alternativă: grid */
  align-items: center;  			/* Centrează elementele pe axa verticală (sus-jos). Opțiuni: flex-start | flex-end | stretch */
  justify-content: center; 			/* Centrează elementele pe axa orizontală (stânga-dreapta). Opțiuni: flex-start | flex-end | space-between */
  gap: 0.65rem;         			/* Spațiul dintre icon și text. Mărești valoarea = mai mult spațiu între ele */
  background: var(--bg-address); 	/* Culoarea de fundal – valoarea vine din variabila CSS --bg-address definită în :root */
  border-radius: var(--radius);  	/* Colțuri rotunjite – valoarea vine din variabila --radius. 0 = colțuri drepte, 50% = oval */
  padding: 1rem 1.5rem; 			/* Spațiu interior: 1rem sus/jos, 1.5rem stânga/dreapta. */
  margin-top: 3rem;     			/* Spațiul dintre caseta de adresă și elementul de deasupra ei. */
  color: var(--text-muted); 		/* Culoarea textului – valoarea vine din variabila --text-muted (gri discret) */
  font-size: 0.9rem;    			/* Mărimea textului. 1rem = mărimea de bază a paginii (de obicei 16px). 0.9rem ≈ 14.4px */
  font-style: italic;   			/* Textul apare înclinat. Alternativă: normal (drept) */
  max-width: var(--page-max); 		/* Același max-width ca .page-wrap */
  width: 100%;                		/* Ocupă tot spațiul disponibil până la max-width */
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;      			/* permite textului să treacă pe rândul următor */
  text-align: center;   			/* centrează textul când se rupe pe mai multe rânduri */
  line-height: 1.3;
}
.address-bar svg { color: var(--text-muted); flex-shrink: 0; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.site-footer .footer-links { margin-top: 0.35rem; }
.site-footer a { color: inherit; text-decoration: underline; }

/* Nota GDPR de sub formularul de contact (art. 13 – informare stratificată) */
.form-privacy {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 1rem;
}
.form-privacy a { color: inherit; }

/* ════════════════════════════════════════════════════════════
   PAGE: INDEX (homepage)
   ════════════════════════════════════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding-top: 1rem;
}

.hero-text h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(1.8rem, 2.6vw, 2.75rem);
  font-weight: 900;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.hero-text p {
  font-size: 0.97rem;
  color: var(--text-body);
  line-height: 1.6;
  max-width: 460px;
  text-align: justify;
}

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-pale);
  border: 1px solid var(--border);
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ════════════════════════════════════════════════════════════
   PAGE: ABOUT
   ════════════════════════════════════════════════════════════ */
.about-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  padding: 0;           /* ← adaugă */
  border: 0;            /* ← adaugă */
  display: block;       /* ← adaugă */
}

.about-body {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.page-card {
  padding: 2rem 1.25rem;
  background: var(--white);
}

.about-body p {
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--text-body);
  /* max-width: 860px; */
  margin-bottom: 1.35rem;
  text-align: justify;
}
.about-body .team-name  { font-size: 0.9rem;  line-height: 1.3; margin-bottom: 0.85rem; text-align: center; }
.about-body .team-label { font-size: 0.75rem; line-height: 1.3; margin-bottom: 0.2rem;  text-align: center; }
.about-body .team-value { font-size: 0.78rem; line-height: 1.3; margin-bottom: 0.75rem; text-align: center; }

.about-signature {
  font-size: 0.87rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ════════════════════════════════════════════════════════════
   PAGE: PROJECTS
   ════════════════════════════════════════════════════════════ */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible; /* hidden/visible */
  background: var(--white);
  transition: box-shadow 0.2s;
  align-items: start;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.project-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.20);
  transform: translateY(-2px);
}

/* ── Coloana stângă: imagine + badge + progres ── */
.project-img-col {
  position: relative;
  background: var(--green-pale);
  min-height: 260px;
  max-height: 320px;
  overflow: hidden;
  border-radius: var(--radius) 0 0 var(--radius); /* rotunjește doar colțurile stânga */
}

.project-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Badge stare ──────────────────────────────────
   Pentru a schimba starea unui proiect:
   1. Găsește elementul  <span class="badge" data-status="...">
   2. Schimbă data-status la una din valorile:
        planificat   →  verde pal  (#e8f5ee)
        in-derulare  →  alb        (#ffffff)
        finalizat    →  verde intens (#1d6b3e, text alb)
   3. Modifică și textul din interiorul span-ului
─────────────────────────────────────────────────── */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  line-height: 1.3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.badge[data-status="planificat"] {
  background: var(--green-pale);   /* verde pal – ca bara la 0% */
  color: var(--green-dark);
  border-color: #b6ddc5;
}

.badge[data-status="in-derulare"] {
  background: var(--white);        /* alb */
  color: var(--text-dark);
  border-color: var(--border);
}

.badge[data-status="finalizat"] {
  background: var(--green-dark);   /* verde intens – ca bara la 100% */
  color: var(--white);
  border-color: var(--green-dark);
}

/* ── Bară progres ─────────────────────────────────
   Setează atributul style="--pct: 25" pe .progress-wrap
   Valoarea poate fi orice număr între 0 și 100.
   Bara goală (0%) are aceeași culoare de umplere
   ca badge-ul „Planificat" (verde pal).
   Bara plină (100%) are culoarea badge-ului „Finalizat"
   (verde intens). Tranzitia de culoare e automată via CSS.
─────────────────────────────────────────────────── */
.progress-wrap {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(255,255,255,1); /* 0 = invizibil, 1 = complet opac */
  border-radius: 99px;   /* rotunjește întreaga bară */
  padding: 0.45rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  opacity: 0.8; /* ← adaugă: 0 = invizibil, 1 = complet opac */
}

.progress-track {
  flex: 1;
  height: 6px;
  background: #d1fae5;   /* verde pal – starea 0% */
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--green-dark);   /* verde intens – starea 100% */
  /* lățimea se setează inline: style="width: 25%" */
}

.progress-label {
  font-weight: 600;
  color: var(--text-dark);
  min-width: 2.8rem;
  text-align: right;
}

/* ── Coloana dreaptă: text proiect ── */
.project-body {
  padding: 1.75rem 2rem;
}

.project-body h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.project-body p {
  font-size: 0.91rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 0.65rem;
  text-align: justify; 
}

.project-body .proj-section-title {
  font-size: 0.91rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
  margin: 1rem 0 0.35rem;
}

.project-body ul {
  padding-left: 1.2rem;
  margin-bottom: 0.65rem;
}

.project-body ul li {
  font-size: 0.91rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 0.3rem;
  text-align: justify; 
}

/* ════════════════════════════════════════════════════════════
   PAGE: TEAM
   ════════════════════════════════════════════════════════════ */
.team-body {
  border: 0px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.team-page-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.team-page-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  margin-top: 0;
  padding-top: 1rem;
  line-height: 1.7;
  display: block;
  width: 100%;
  overflow: hidden;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
}

.team-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.1rem 1.2rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;    /* ← adaugă – centrează tot conținutul orizontal */
  text-align: center;     /* ← adaugă – centrează și textul */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.team-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.20);
  transform: translateY(-2px);
}

.team-avatar-wrap {
  width: 180px;
  height: 180px;
  min-width: 180px;
  min-height: 180px;
  border-radius: 50%;
  overflow: hidden;        /* taie tot ce depășește cercul */
  margin-bottom: 1rem;
  flex-shrink: 0;      /* împiedică flexbox să micșoreze containerul */
  /*border: 2px solid var(--border);*/
}

.team-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* umple cercul păstrând proporțiile */
  object-position: center top; /* "top" prinde fața, nu mijlocul corpului */
  display: block;
}

.team-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.team-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.team-value {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  word-break: break-all;
  line-height: 1.3;
}

/* ════════════════════════════════════════════════════════════
   PAGE: CONTACT
   ════════════════════════════════════════════════════════════ */
.contact-outer {
  display: flex;
  justify-content: center;
}

.contact-card {
  width: 100%;
  max-width: var(--page-max);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2.25rem;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

.contact-intro {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-body);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: #f9fafb;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green-mid);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* email field cu icon */
.input-icon-wrap {
  position: relative;
}
.input-icon-wrap svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.input-icon-wrap input {
  padding-left: 2.4rem;
}

.contact-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.8rem 1.5rem;
  background: var(--green-dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.btn-submit:hover { background: var(--green-mid); }
.btn-submit:disabled { opacity: 0.7; cursor: default; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero-image { max-width: 520px; }
  .project-card { grid-template-columns: 1fr; }
  .project-img-col { min-height: 220px; }
  .project-img-col img { height: 220px; object-fit: cover; }
}

@media (max-width: 700px) {
  :root { --page-pad: 1.25rem; }
  
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1.5px solid var(--border);
    padding: 0.75rem 1rem;
    gap: 0.2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 199;
  }
  
  .nav-links.open { display: flex; }
  .nav-links li a { justify-content: flex-start; width: 100%; border-radius: 6px; }
  .nav-links li a.active::after { display: none; }

  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .address-bar { flex-direction: column; text-align: center; gap: 0.4rem; }
  .contact-card { padding: 1.75rem 1.1rem; }
  
  .page-wrap {
    padding-top: 2.5rem;   /* ← mărește distanța față de navbar pe ecrane mici */
  }

  .about-title {
    font-size: 1.3rem;   /* micșorează titlul ca să încapă pe ecrane înguste */
    padding-top: 0.5rem;   /* adaugă spațiu suplimentar deasupra titlului */
  }
  
  .team-page-title {
    font-size: 1.3rem;   /* micșorează titlul ca să încapă pe ecrane înguste */
    padding-top: 0.5rem;   /* adaugă spațiu suplimentar deasupra titlului */ 
  }

  .contact-card h1 { font-size: 1.3rem; padding-top: 0.5rem; }
}

@media (max-width: 420px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ── MESAJE FORMULAR CONTACT ────────────────────────────────── */
.form-mesaj {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.form-mesaj--succes {
  background: #e8f5ee;
  color: #1d6b3e;
  border: 1px solid #a7d8ba;
}

.form-mesaj--eroare {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

/* ── CÂMPURI FORMULAR CU EROARE ─────────────────────────────── */
.form-group input.eroare,
.form-group textarea.eroare {
  border-color: #b91c1c;
}

/* Tranziție lină la apariția/dispariția bordurii de eroare */
.form-group input,
.form-group textarea {
  transition: border-color 0.2s;
}
/* ── LIMBI: comutator în bara de navigare și rândul REScoop.eu ─ adăugat 27.10.2026 ── */
.nav-links li.lang-item { margin-left: 0.6rem; }
.lang-list {
  display: flex;
  list-style: none;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links .lang-list a,
.lang-list .lang-current {
  display: inline-block;
  padding: 0.3rem 0.45rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border-radius: 6px;
  text-decoration: none;
}
.nav-links .lang-list a:hover { color: var(--text-dark); background: var(--green-pale); }
.lang-list .lang-current { color: var(--text-dark); font-weight: 600; background: var(--green-pale); }
.nav-links .lang-list a.active::after { display: none; }

.hero-network { margin-top: 1rem; font-size: 0.92rem; color: var(--text-muted); }
.hero-network a { color: var(--green-dark); }

@media (max-width: 700px) {
  .nav-links li.lang-item {
    margin: 0.35rem 0 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    width: 100%;
  }
  .lang-list { flex-wrap: wrap; gap: 0.25rem; justify-content: center; }
  .nav-links .lang-list a { width: auto; }
}
