/* ==========================================================================
   AI CONSTRUCTOR — stylesheet principal (v2 — temă întunecată, AI-native)
   Cum editezi culorile: modifică valorile din blocul :root de mai jos.
   Toate culorile sunt preluate din logo-ul AI Constructor (fundal
   negru-spațial + gradient cyan → violet → roz).
   ========================================================================== */

:root {
  /* Fundal & suprafețe (temă întunecată, ca în logo) */
  --void: #05060a;          /* fundalul paginii — identic cu fundalul logo-ului */
  --panel: #0c0e17;         /* carduri, header, formulare */
  --panel-alt: #10121e;     /* secțiuni alternative, ușor mai deschis */
  --panel-hover: #151830;   /* stare hover pe carduri */
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.22);

  /* Text */
  --text-1: #f5f5f8;        /* titluri, text principal — aproape alb, ca stelele din logo */
  --text-2: #a9a7c2;        /* text secundar / paragrafe */
  --text-3: #6f6d89;        /* text terțiar, legende, meta */

  /* Accente — cele 3 culori ale nodurilor din logo */
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --violet-strong: #7c3aed;
  --pink: #ec4899;
  --brand-gradient: linear-gradient(90deg, var(--cyan), var(--violet) 55%, var(--pink));
  --brand-gradient-soft: linear-gradient(135deg, rgba(34,211,238,0.14), rgba(139,92,246,0.14), rgba(236,72,153,0.14));

  /* Tipografie */
  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 6px;
}

/* ---------- Reset de bază ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-2);
  background: var(--void);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-1);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

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

/* ---------- Text cu gradient (semnătura vizuală — folosit cu măsură) ---------- */
.gradient-text {
  background: var(--brand-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-flow 6s ease infinite;
}
@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- Fundal animat "rețea neuronală" — motivul din logo, folosit cu măsură ---------- */
.network-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.network-bg svg { width: 100%; height: 100%; }
.network-bg .glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  max-width: 140%;
  background: radial-gradient(ellipse at center, rgba(139,92,246,0.30), rgba(99,102,241,0.10) 55%, transparent 75%);
  animation: pulse-glow 7s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}
.network-bg .node { animation: node-pulse 3.2s ease-in-out infinite; transform-origin: center; }
.network-bg .n1 { animation-delay: 0s; }
.network-bg .n2 { animation-delay: 0.6s; }
.network-bg .n3 { animation-delay: 1.2s; }
.network-bg .n4 { animation-delay: 1.8s; }
.network-bg .n5 { animation-delay: 2.4s; }
@keyframes node-pulse {
  0%, 100% { opacity: 0.55; r: 3; }
  50% { opacity: 1; r: 4.5; }
}
.network-bg .link { stroke-dasharray: 4 4; animation: link-flow 5s linear infinite; }
@keyframes link-flow { to { stroke-dashoffset: -80; } }

/* ---------- Bara superioară: curs valutar, vreme, comutator de limbă ---------- */
.topbar {
  background: var(--void);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}
.topbar-info {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-2);
}
.topbar-info .tb-item { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar-info .tb-item svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--cyan); }
.topbar-info .tb-item.weather svg { color: var(--pink); }
.topbar-info .tb-value { color: var(--text-1); font-weight: 600; }
.topbar-info .tb-up { color: var(--pink); }
.topbar-info .tb-down { color: var(--cyan); }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px;
  flex-shrink: 0;
}
.lang-switch a {
  border: none;
  background: transparent;
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 16px;
  letter-spacing: 0.02em;
  display: inline-block;
}
.lang-switch a.active {
  background: var(--brand-gradient);
  color: #05060a;
}
@media (max-width: 720px) {
  .topbar-info .tb-item.weather-detail { display: none; }
}
@media (max-width: 560px) {
  .topbar .container { height: auto; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; gap: 8px 16px; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,6,10,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-1);
  letter-spacing: -0.01em;
}
.logo .logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--border-strong), 0 0 22px rgba(139,92,246,0.35);
}
.logo .logo-badge img, .logo .logo-badge video { width: 100%; height: 100%; object-fit: cover; }
.logo-word { display: flex; align-items: baseline; gap: 8px; }
.logo .logo-mark {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* ---------- Tagline alternantă din header (animație text) ---------- */
.logo-tag {
  position: relative;
  display: inline-block;
  width: 235px;
  height: 12px;
  overflow: visible;
  border-left: 1px solid var(--border);
  padding-left: 8px;
  margin-left: 2px;
}
.logo-tag .tag-phrase {
  position: absolute;
  left: 8px;
  top: 0;
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--text-3);
  opacity: 0;
  animation: tag-cycle 7s ease-in-out infinite;
}
.logo-tag .tag-phrase.tag-2 {
  animation-delay: 3.5s;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
@keyframes tag-cycle {
  0%, 4% { opacity: 0; transform: translateY(5px); }
  10%, 42% { opacity: 1; transform: translateY(0); }
  48%, 100% { opacity: 0; transform: translateY(-5px); }
}
@media (max-width: 1180px) and (min-width: 881px) { .logo-tag { display: none; } }
@media (max-width: 460px) { .logo-tag { display: none; } }

/* ---------- Header ---------- */
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text-1);
  border-bottom-color: var(--violet);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--brand-gradient);
  background-size: 200% auto;
  color: #05060a;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(139,92,246,0.35);
}
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 6px 30px rgba(139,92,246,0.55); transform: translateY(-1px); }
.btn-outline, .btn-outline-dark { border-color: var(--border-strong); color: var(--text-1); }
.btn-outline:hover, .btn-outline-dark:hover { background: rgba(255,255,255,0.06); border-color: var(--violet); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-1);
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--text-1);
  padding: 110px 0 96px;
  overflow: hidden;
  background: var(--void);
  border-bottom: 1px solid var(--border);
}
.hero .container { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 22px;
}
.hero-eyebrow .rule { width: 30px; height: 2px; background: var(--brand-gradient); display: inline-block; }
.hero h1 {
  color: var(--text-1);
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  max-width: 17ch;
  margin-bottom: 24px;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 56ch;
  margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  max-width: 780px;
}
.hero-stats .stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--violet);
  font-weight: 700;
}
.hero-stats div:nth-child(1) .stat-num { color: var(--cyan); }
.hero-stats div:nth-child(3) .stat-num { color: var(--pink); }
.hero-stats .stat-label {
  font-size: 0.82rem;
  color: var(--text-3);
}

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, auto); row-gap: 24px; }
}

/* ---------- Semnătura de brand animată (video, folosită o singură dată) ---------- */
.brand-moment {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 40px rgba(139,92,246,0.4);
  z-index: 3;
}
.brand-moment video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .brand-moment { display: none; } }
@media (prefers-reduced-motion: reduce) { .brand-moment video { display: none; } }

/* ---------- Secțiuni generice ---------- */
section { padding: 88px 0; position: relative; }
.section-alt { background: var(--panel-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 10px;
  display: block;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { color: var(--text-2); font-size: 1.05rem; }

/* ---------- Grid beneficii / carduri ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.benefit {
  border: 1px solid var(--border);
  border-top: 2px solid var(--violet);
  background: var(--panel);
  padding: 30px 26px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.benefit:hover { transform: translateY(-3px); background: var(--panel-hover); border-color: var(--border-strong); }
.benefit .icon {
  width: 40px; height: 40px;
  margin-bottom: 16px;
  color: var(--violet);
}
.benefit h3 { font-size: 1.08rem; margin-bottom: 8px; color: var(--text-1); }
.benefit p { color: var(--text-2); font-size: 0.95rem; margin: 0; }

/* ---------- Card serviciu ---------- */
.service-block {
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}
.service-block:first-of-type { padding-top: 0; }
.service-title {
  font-size: 1.5rem;
  margin-bottom: 22px;
  color: var(--cyan);
}
.service-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: stretch;
}
.service-visual {
  aspect-ratio: 4/3;
  background: var(--panel);
  border: 1px solid var(--border);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: var(--violet);
}
.service-visual::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--brand-gradient-soft);
  opacity: 0.6;
}
.service-visual svg { width: 78%; height: 78%; max-width: 230px; position: relative; z-index: 1; }
.service-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.service-body p { color: var(--text-2); max-width: 62ch; font-size: 1.02rem; }
.service-body ul.tick-list { margin-top: 16px; }
@media (max-width: 780px) {
  .service-row { grid-template-columns: 1fr; }
  .service-visual { max-width: 260px; }
  .service-body { height: auto; }
}

.tick-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-2);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 9px; height: 9px;
  border: 1.5px solid var(--cyan);
}

/* ---------- Proces / etape ---------- */
.process { display: flex; flex-direction: column; }
.process-step {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  transition: background 0.15s ease;
}
.process-step:last-child { border-bottom: 1px solid var(--border); }
.process-step:hover { background: rgba(255,255,255,0.02); }
.process-step .step-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.8;
}
.process-step h4 { font-size: 1.05rem; margin-bottom: 4px; color: var(--text-1); }
.process-step p { color: var(--text-2); margin: 0; font-size: 0.95rem; }

/* ---------- Echipe (Despre noi) ---------- */
.team-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.team-tag {
  border: 1px solid var(--border);
  padding: 9px 16px;
  font-size: 0.88rem;
  color: var(--text-2);
  background: var(--panel);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.team-tag:hover { border-color: var(--violet); color: var(--text-1); }

/* ---------- Valori ---------- */
.value-item { padding: 24px 0; border-top: 1px solid var(--border); }
.value-item:last-child { border-bottom: 1px solid var(--border); }
.value-item h3 { font-size: 1.1rem; color: var(--text-1); }
.value-item p { color: var(--text-2); margin: 0; }

/* ---------- Proiecte / portofoliu ---------- */
.project-card {
  background: var(--panel);
  border: 1px solid var(--border);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.project-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.project-thumb {
  aspect-ratio: 16/10;
  background: var(--brand-gradient-soft), var(--panel-alt);
  position: relative;
  display: flex; align-items: flex-end;
  padding: 16px;
  color: var(--text-1);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.project-thumb svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-58%); width: 62%; max-width: 150px; opacity: 0.9; }
.project-thumb span.thumb-label { position: relative; z-index: 1; background: rgba(5,6,10,0.55); padding: 3px 8px; border-radius: 4px; backdrop-filter: blur(2px); }
.project-body { padding: 22px; }
.project-body .tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.project-body h3 { font-size: 1.1rem; margin: 8px 0 6px; color: var(--text-1); }
.project-body p { color: var(--text-2); font-size: 0.92rem; margin: 0; }
.project-meta {
  display: flex; gap: 16px; margin-top: 14px;
  font-size: 0.82rem; color: var(--text-3);
  border-top: 1px solid var(--border); padding-top: 12px;
}

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 36px;
}
.filter-btn {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 9px 16px;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.15s ease;
}
.filter-btn[aria-pressed="true"] {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #05060a;
  font-weight: 700;
}

/* ---------- CTA bandă ---------- */
.cta-band {
  background: var(--panel-alt);
  color: var(--text-1);
  padding: 68px 0;
  position: relative;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-band h2 { color: var(--text-1); font-size: 1.75rem; margin-bottom: 6px; }
.cta-band p { color: var(--text-2); margin: 0; }

/* ---------- Formular contact ---------- */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-1);
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: var(--radius);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-3); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--violet); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.contact-info-item {
  display: flex; gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: 1px solid var(--border); }
.contact-info-item .ci-icon { color: var(--cyan); flex-shrink: 0; width: 22px; }
.contact-info-item h4 { font-size: 0.95rem; margin-bottom: 3px; color: var(--text-1); }
.contact-info-item p { margin: 0; color: var(--text-2); font-size: 0.92rem; }

.map-frame {
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
  width: 100%;
  filter: grayscale(0.3) invert(0.92) contrast(0.9);
}

/* ---------- News / Noutăți ---------- */
.news-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 800px) { .news-split { grid-template-columns: 1fr; } }
.news-panel {
  border: 1px solid var(--border);
  padding: 38px;
  background: var(--panel);
  transition: border-color 0.15s ease;
}
.news-panel:hover { border-color: var(--border-strong); }
.news-panel .panel-eyebrow { color: var(--cyan); font-weight: 700; font-size: 0.82rem; }
.news-panel h2 { font-size: 1.5rem; margin: 10px 0 12px; color: var(--text-1); }
.news-panel p { color: var(--text-2); }

.search-bar {
  display: flex;
  border: 1.5px solid var(--border-strong);
  margin-bottom: 24px;
  background: var(--panel);
}
.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-1);
}
.search-bar input::placeholder { color: var(--text-3); }
.search-bar input:focus { outline: none; }
.search-bar button {
  background: var(--brand-gradient);
  color: #05060a;
  border: none;
  padding: 0 22px;
  font-weight: 700;
}

.normativ-cat { margin-bottom: 8px; }
.normativ-cat summary {
  cursor: pointer;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-1);
  display: flex; align-items: center; justify-content: space-between;
  list-style: none;
}
.normativ-cat summary::-webkit-details-marker { display: none; }
.normativ-cat summary::after { content: "+"; font-size: 1.2rem; color: var(--cyan); }
.normativ-cat[open] summary::after { content: "–"; }
.normativ-list { border: 1px solid var(--border); border-top: none; background: var(--panel-alt); }
.normativ-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-top: 1px solid var(--border);
  font-size: 0.93rem;
}
.normativ-row .nr-code { font-weight: 600; color: var(--text-1); }
.normativ-row .nr-desc { color: var(--text-2); flex: 1; margin: 0 14px; }
.normativ-row a { color: var(--cyan); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.no-results { padding: 20px 18px; color: var(--text-3); font-style: italic; display: none; }

.article-card {
  display: flex; gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.article-card:last-child { border-bottom: 1px solid var(--border); }
.article-date {
  flex-shrink: 0;
  width: 74px;
  font-family: var(--font-display);
  color: var(--pink);
  font-weight: 700;
  font-size: 0.85rem;
  padding-top: 2px;
}
.article-card h3 { font-size: 1.02rem; margin-bottom: 6px; color: var(--text-1); }
.article-card p { color: var(--text-2); font-size: 0.9rem; margin: 0 0 8px; }
.article-source {
  font-size: 0.8rem;
  color: var(--text-2);
  font-weight: 600;
}
.article-source a { color: var(--cyan); }

.source-note {
  border-left: 3px solid var(--violet);
  background: var(--panel);
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--text-2);
  margin-bottom: 32px;
}

/* ---------- Căsuțe logo-uri parteneri ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 900px) { .partner-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }
.partner-box {
  aspect-ratio: 3/2;
  border: 1px dashed var(--border-strong);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  color: var(--text-3);
  font-size: 0.78rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.partner-box:hover { border-color: var(--violet); color: var(--text-2); }
.partner-box img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- Despre - poveste ---------- */
.story-block { max-width: 74ch; }
.story-block p { font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--void);
  color: var(--text-3);
  padding: 64px 0 28px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid h4 {
  color: var(--text-1);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}
.footer-grid ul li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid ul li a:hover { color: var(--violet); }
.footer-logo {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 12px;
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
}

/* ---------- Banner de pagină ---------- */
.page-banner {
  background: var(--void);
  color: var(--text-1);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner .crumb { color: var(--cyan); font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; }
.page-banner h1 { color: var(--text-1); font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 10px; }
.page-banner p { color: var(--text-2); max-width: 60ch; margin: 0; }

/* ---------- Utilitare ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--violet); color: var(--void);
  padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Buton WhatsApp plutitor ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  z-index: 200;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; color: #05060a; }
@media (max-width: 560px) { .whatsapp-float { width: 50px; height: 50px; bottom: 16px; right: 16px; } }

/* ---------- Responsive nav mobil ---------- */
@media (max-width: 880px) {
  .main-nav { position: fixed; inset: 84px 0 0 0; background: var(--void); transform: translateX(100%); transition: transform 0.2s ease; overflow-y: auto; padding: 24px 28px; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .main-nav ul li { width: 100%; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); width: 100%; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .hero-stats { grid-template-columns: repeat(2,auto); }
}

/* ==========================================================================
   Reguli suplimentare pentru telefon (sub 640px / 420px)
   Cum editezi: aceste reguli SUPRASCRIU stilurile de mai sus doar pe ecrane
   înguste — nu trebuie atinse pentru modificări de conținut sau culoare.
   ========================================================================== */
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero { padding: 78px 0 60px; }
  section { padding: 56px 0; }
  .page-banner { padding: 40px 0 34px; }
  .cta-band { padding: 44px 0; }
  .cta-band .container { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .hero-stats { gap: 20px 28px; }
  .section-head { margin-bottom: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .normativ-row { flex-wrap: wrap; row-gap: 6px; }
  .normativ-row .nr-desc { flex-basis: 100%; margin: 2px 0 0; order: 3; }
  .article-card { flex-direction: column; gap: 6px; }
  .article-date { width: auto; }
  .news-panel { padding: 26px 22px; }
  .service-title { font-size: 1.25rem; }
  .search-bar input { padding: 12px 14px; font-size: 0.9rem; }
  .filter-bar .filter-btn { flex: 1 1 auto; text-align: center; }
}
@media (max-width: 420px) {
  .logo-word { font-size: 1.08rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .topbar-info { gap: 12px; }
}

