/* ─── landing.css — pagina publica Home (Fundatia iStoma) ──────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue-darkest:  #061628;
  --blue-dark:     #0B2D5E;
  --blue-mid:      #0F2244;
  --blue-core:     #185FA5;
  --blue-bright:   #378ADD;
  --blue-light:    #85B7EB;
  --blue-pale:     #B5D4F4;
  --blue-ghost:    #E6F1FB;

  --green-dark:    #0F6E56;
  --green-mid:     #1D9E75;
  --green-bright:  #5DCAA5;
  --green-pale:    #D5F5E3;

  --text-on-dark:  #E6F1FB;
  --text-muted:    #B5D4F4;
  --text-dim:      rgba(181, 212, 244, 0.55);

  --surface:       #ffffff;
  --surface-alt:   #f5f7fa;
  --text-primary:  #0B2D5E;
  --text-secondary:#4a5568;
  --border:        rgba(11, 45, 94, 0.1);

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'DM Sans', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; }
img { display: block; max-width: 100%; }


/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────────── */
.section-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 40px;
}


/* ─── NAVIGATION ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue-darkest);
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(55, 138, 221, 0.15);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 4px 24px rgba(6, 22, 40, 0.6);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* Logo compus (mar + text) pe acelasi rand. Folosit in nav si footer. Fara umbra. */
.brand-logo { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.brand-logo-mar  { height: 40px; width: auto; display: block; flex-shrink: 0; }
.brand-logo-text { height: 46px; width: auto; display: block; flex-shrink: 0; position: relative; top: 5px; margin-left: -20px; }

/* Logo unic (imaginea completa intr-un singur fisier). Inaltime fixa peste tot. */
.brand-logo-full { height: 55px; width: auto; display: block; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--blue-bright);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--text-on-dark);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--blue-bright);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-cta:hover {
  background: #2979c8;
  transform: translateY(-1px);
}

/* Hamburger — ascuns pe desktop, apare pe mobil (vezi media query 900px). */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: rgba(55, 138, 221, 0.12);
  border: 1px solid rgba(133, 183, 235, 0.25);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Animatie in X cand meniul e deschis. */
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Panoul mobil — coboara de sub bara de navigatie. Implicit ascuns peste tot
   (si pe desktop). Devine vizibil DOAR pe mobil cand primeste clasa .open. */
.nav-mobile {
  display: none;
  position: sticky;
  top: 64px;
  z-index: 99;
  background: var(--blue-darkest);
  border-bottom: 1px solid rgba(55, 138, 221, 0.15);
  padding: 8px 16px 16px;
  flex-direction: column;
  gap: 2px;
  animation: navMobileDown 0.25s ease both;
}

@keyframes navMobileDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-mobile-link {
  font-size: 15px;
  color: var(--text-muted);
  padding: 13px 12px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid rgba(55, 138, 221, 0.1);
  transition: background var(--transition), color var(--transition);
}

.nav-mobile-link:hover {
  background: rgba(55, 138, 221, 0.12);
  color: var(--text-on-dark);
}

.nav-mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  background: var(--blue-bright);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav-mobile-cta i { font-size: 19px; }

.nav-mobile-cta:hover { background: #2979c8; }


/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  background: var(--blue-dark);
  padding: 80px 48px 0;
  position: relative;
  overflow: hidden;
}

.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-bg-circle.c1 {
  width: 480px;
  height: 480px;
  top: -160px;
  right: -100px;
  background: radial-gradient(circle, rgba(24, 95, 165, 0.45) 0%, transparent 70%);
}

.hero-bg-circle.c2 {
  width: 300px;
  height: 300px;
  bottom: 60px;
  left: 30%;
  background: radial-gradient(circle, rgba(15, 110, 86, 0.3) 0%, transparent 70%);
}

.hero-bg-circle.c3 {
  width: 200px;
  height: 200px;
  top: 40px;
  left: -60px;
  background: radial-gradient(circle, rgba(55, 138, 221, 0.2) 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(55, 138, 221, 0.15);
  border: 1px solid rgba(133, 183, 235, 0.3);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: var(--blue-pale);
  margin-bottom: 28px;
  animation: fadeSlideDown 0.6s ease both;
}

.hero-badge .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--text-on-dark);
  margin-bottom: 20px;
  letter-spacing: -1px;
  animation: fadeSlideDown 0.6s 0.1s ease both;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue-bright);
}

.hero p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 40px;
  animation: fadeSlideDown 0.6s 0.2s ease both;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeSlideDown 0.6s 0.3s ease both;
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-visual {
  position: absolute;
  right: 48px;
  bottom: 40px;
  width: 340px;
  z-index: 1;
  animation: fadeSlideRight 0.8s 0.4s ease both;
}

@keyframes fadeSlideRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(133, 183, 235, 0.2);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(8px);
}

.hero-card-title {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-card-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-bright);
}

.hero-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-stat {
  background: rgba(11, 45, 94, 0.6);
  border: 1px solid rgba(55, 138, 221, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
}

.hero-stat-num {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-on-dark);
  display: block;
  margin-bottom: 2px;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-dim);
}

.hero-progress {
  margin-top: 16px;
  background: rgba(11, 45, 94, 0.6);
  border: 1px solid rgba(55, 138, 221, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
}

.hero-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.hero-progress-bar {
  height: 4px;
  background: rgba(55, 138, 221, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.hero-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-bright), var(--green-bright));
  border-radius: 2px;
  width: 0;
  transition: width 1.2s 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ─── STATS BAR ──────────────────────────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 3px solid var(--blue-bright);
}

.stat-box {
  padding: 28px 32px;
  background: var(--blue-mid);
  border-right: 1px solid rgba(55, 138, 221, 0.15);
  transition: background var(--transition);
}

.stat-box:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--text-on-dark);
  display: block;
  margin-bottom: 4px;
  transform-origin: left center;
  transition: transform var(--transition);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  transform-origin: left center;
  transition: transform var(--transition);
}

/* La hover marim usor textul (num + label), nu tot box-ul. */
.stat-box:hover .stat-num { transform: scale(1.08); }
.stat-box:hover .stat-label { transform: scale(1.04); }


/* ─── SECTIONS ───────────────────────────────────────────────────────────── */
.section {
  padding: 72px 48px;
}

.section-alt {
  background: var(--surface-alt);
}


/* ─── HOW IT WORKS ───────────────────────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.how-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(11, 45, 94, 0.1);
}

.how-num {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--blue-ghost);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-core);
  margin-bottom: 18px;
}

.how-card h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.how-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.how-card .connector {
  position: absolute;
  top: 48px;
  right: -8px;
  width: 16px;
  height: 2px;
  background: var(--border);
  z-index: 1;
}


/* ─── SEGMENTS ───────────────────────────────────────────────────────────── */
.segment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.seg-card {
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition);
}

.seg-card:hover {
  transform: translateY(-4px);
}

.seg-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  opacity: 0.15;
}

.seg-card.blue {
  background: var(--blue-dark);
}

.seg-card.blue::before {
  background: var(--blue-bright);
}

.seg-card.mid {
  background: var(--blue-core);
}

.seg-card.mid::before {
  background: var(--blue-pale);
}

.seg-card.teal {
  background: var(--green-dark);
}

.seg-card.teal::before {
  background: var(--green-bright);
}

.seg-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: #fff;
  position: relative;
  z-index: 1;
}

.seg-card h3 {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.seg-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.seg-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.08);
  transition: background var(--transition), gap var(--transition);
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.seg-cta:hover {
  background: rgba(255, 255, 255, 0.16);
  gap: 12px;
}


/* ─── ELIGIBILITATE ──────────────────────────────────────────────────────── */
.eligibil-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.elig-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: border-color var(--transition), transform var(--transition);
}

.elig-item:hover {
  border-color: var(--blue-bright);
  transform: translateX(3px);
}

.elig-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--blue-ghost);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  color: var(--blue-core);
  transition: background var(--transition);
}

.elig-item:hover .elig-icon {
  background: var(--blue-pale);
}

.elig-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}


/* ─── MECANISME ──────────────────────────────────────────────────────────── */
.mecanism-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.mec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  transition: box-shadow var(--transition);
}

.mec-card:hover {
  box-shadow: 0 8px 32px rgba(11, 45, 94, 0.1);
}

.mec-badge {
  display: inline-block;
  background: var(--blue-ghost);
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.mec-badge.green {
  background: var(--green-pale);
  color: var(--green-dark);
}

.mec-card h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.mec-card > p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.mec-highlight {
  background: var(--surface-alt);
  border-left: 3px solid var(--blue-bright);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.mec-highlight.green {
  border-left-color: var(--green-mid);
}

.mec-highlight strong {
  color: var(--text-primary);
}

.mec-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  opacity: 0.8;
}

.mec-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  transition: filter var(--transition), transform var(--transition);
}

.mec-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.mec-btn.blue {
  background: var(--blue-dark);
  color: var(--text-on-dark);
}

.mec-btn.green {
  background: var(--green-dark);
  color: #fff;
}

.mec-btn i {
  font-size: 18px;
}

/* Lista de pasi (inlocuieste butonul in cardul D177). Numerotare in cerc albastru. */
.mec-steps {
  list-style: none;
  counter-reset: mec-step;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mec-steps li {
  counter-increment: mec-step;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 500;
}
.mec-steps li::before {
  content: counter(mec-step);
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-ghost);
  color: var(--blue-core);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ─── CLINICI PARTENERE ──────────────────────────────────────────────────── */
.partner-section {
  background: var(--blue-dark);
  padding: 72px 48px;
}

.partner-section .section-tag {
  color: var(--green-bright);
}

.partner-section .section-title {
  color: var(--text-on-dark);
}

.partner-section .section-sub {
  color: var(--text-muted);
}

.clinic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.clinic-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(133, 183, 235, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: background var(--transition), border-color var(--transition);
}

.clinic-card:hover {
  background: rgba(55, 138, 221, 0.1);
  border-color: rgba(133, 183, 235, 0.4);
}

.clinic-card.empty {
  border-style: dashed;
  opacity: 0.45;
  cursor: pointer;
}

.clinic-card.empty:hover {
  opacity: 0.7;
}

.clinic-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(55, 138, 221, 0.2);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--blue-light);
}

.clinic-card.empty .clinic-logo {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(133, 183, 235, 0.35);
}

.clinic-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-on-dark);
  margin-bottom: 6px;
}

.clinic-card.empty .clinic-name {
  color: rgba(230, 241, 251, 0.4);
}

.clinic-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--green-bright);
}

.clinic-badge::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-bright);
}

.clinic-card.empty .clinic-badge {
  color: rgba(93, 202, 165, 0.4);
}

.clinic-card.empty .clinic-badge::before {
  background: rgba(93, 202, 165, 0.4);
}


/* ─── TRANSPARENTA ───────────────────────────────────────────────────────── */
.trans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.trans-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}

.trans-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--blue-core);
  display: block;
  margin-bottom: 6px;
}

.trans-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.trans-note {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 20px;
  opacity: 0.7;
}


/* ─── CTA FINAL ──────────────────────────────────────────────────────────── */
.cta-final {
  background: var(--blue-dark);
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(55, 138, 221, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-final h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--text-on-dark);
  margin-bottom: 14px;
  position: relative;
}

.cta-final h2 em {
  font-style: italic;
  color: var(--blue-bright);
}

.cta-final p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto 36px;
  position: relative;
}

.cta-final-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}


/* ─── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  transition: filter var(--transition), transform var(--transition);
  cursor: pointer;
  border: none;
}

.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--blue-bright);
  color: #fff;
}

.btn-green {
  background: var(--green-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid rgba(133, 183, 235, 0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255, 0.06);
  filter: none;
}

.btn i {
  font-size: 18px;
}


/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
.footer {
  background: var(--blue-darkest);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(55, 138, 221, 0.12);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-brand-img {
  height: 44px;
  width: auto;
  display: block;
}

.footer-info {
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.55;
  font-style: normal; /* scos din inline */
}

.footer-info a:hover { text-decoration: underline; }

/* Link-uri juridice in footer (Termeni / Confidentialitate / Cookies / Setari cookies). */
.footer-legal {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid rgba(55, 138, 221, 0.12);
}
.footer-legal a,
.footer-legal-link {
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.75;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: opacity var(--transition), color var(--transition);
}
.footer-legal a:hover,
.footer-legal-link:hover {
  opacity: 1;
  color: var(--blue-light);
  text-decoration: underline;
}


/* ─── SCROLL ANIMATIONS ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */

/* Sub 1080px cardul decorativ nu mai incape langa text (text max-width 660px +
   card absolut la dreapta se suprapun). Il scoatem din pozitionarea absoluta si
   il punem in flux, sub butoanele hero, ca sa ramana vizibil fara suprapunere. */
@media (max-width: 1080px) {
  .hero-inner { max-width: 100%; }
  .hero-visual {
    position: static;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 420px;
    margin-top: 8px;
    padding-bottom: 56px;
    animation: none;
  }
}

/* Tableta si laptop mic: ascundem meniul, gridurile pe o coloana */
@media (max-width: 900px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  /* butonul Cont ramane vizibil cand link-urile dispar */
  .nav-cta { flex-shrink: 0; }
  /* hamburgerul apare cand link-urile din header dispar */
  .nav-burger { display: flex; }
  /* panoul mobil devine vizibil doar cand e deschis (clasa .open din JS) */
  .nav-mobile.open { display: flex; }

  .hero { padding: 56px 24px 0; }
  .hero h1 { font-size: 36px; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-box { border-right: none; border-bottom: 1px solid rgba(55, 138, 221, 0.15); }

  .section { padding: 48px 24px; }
  .section-sub { max-width: 100%; }

  .how-grid,
  .segment-grid,
  .eligibil-grid,
  .mecanism-grid,
  .clinic-grid,
  .trans-grid { grid-template-columns: 1fr; }

  .partner-section { padding: 48px 24px; }
  .cta-final { padding: 56px 24px; }
  .footer { padding: 24px; flex-direction: column; align-items: flex-start; }
}

/* Telefon: titluri mai mici, statistici pe o coloana, butoane intinse */
@media (max-width: 560px) {
  .nav { padding: 0 16px; }
  .nav-logo-img { height: 34px; }
  /* Pe telefon pastram doar logo + hamburger; "Cont" e oricum in meniul mobil. */
  .nav-cta { display: none; }

  .hero { padding: 40px 16px 0; }
  .hero h1 { font-size: 28px; line-height: 1.15; }
  .hero p { font-size: 15px; }
  .hero-badge { font-size: 11.5px; }

  /* butoanele hero ocupa toata latimea, unul sub altul */
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-ctas .btn { justify-content: center; }

  .stats-bar { grid-template-columns: 1fr; }
  .stat-box { padding: 20px 24px; }

  .section { padding: 40px 16px; }
  .section-title { font-size: 23px; }

  .partner-section { padding: 40px 16px; }

  /* clinicile devin grid de 2 ca sa nu fie prea inalt */
  .clinic-grid { grid-template-columns: 1fr 1fr; }

  .mec-card { padding: 28px 22px; }

  .cta-final { padding: 48px 16px; }
  .cta-final h2 { font-size: 28px; }
  .cta-final-btns { flex-direction: column; align-items: stretch; }
  .cta-final-btns .btn { justify-content: center; }

  .footer { padding: 20px 16px; }
  .footer-info { font-size: 12px; line-height: 1.8; }
}
