/* Auto Bozga - light theme + nuanțe de roșu */

:root{
  --red: #dc3545;
  --red-2: #b02a37;
  --text: #1f2937;
  --muted: #6b7280;
  --bg-soft: #fff5f6;
  --card: #ffffff;
  --border: rgba(0,0,0,.08);
}

html{ scroll-behavior: smooth; }
body{ color: var(--text); background: #fff; }

/* Topbar - elemente obligatorii FSE+ / Guvern / ASSOC */
.topbar{
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}
.topbar .topbar-text{
  color: #334155;
  max-width: 520px;
  line-height: 1.25rem;
}
.nowrap{ white-space: nowrap; }

.brand-img{
  display:block;
  height: 44px;
  width: auto;
  object-fit: contain;
}
.brand-img.gov{ height: 44px; }
.brand-img.rural{ height: 40px; }
.brand-img.assoc{ height: 36px; }

/* Navbar */
.navbar-shadow{ box-shadow: 0 6px 20px rgba(0,0,0,.04); }
.nav-link{ color: #111827; }
.nav-link:hover{ color: var(--red); }

/* Hero */
.hero{
  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.98)),
              radial-gradient(60% 120% at 0% 0%, rgba(220,53,69,.10), rgba(255,255,255,0));
  border-bottom: 1px solid var(--border);
}
.hero-badge{
  border-radius: 999px;
}
.hero-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}
.hero-card-inner{ padding: 22px; }

/* Sections */
.bg-soft{ background: var(--bg-soft); }

.card-soft{
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-soft:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0,0,0,.08);
  border-color: rgba(220,53,69,.35);
}

.icon-bubble{
  width: 46px; height: 46px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(220,53,69,.10);
  font-size: 22px;
}

/* Callout / tiles */
.callout{
  border-left: 4px solid var(--red);
  padding: 12px 14px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.info-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.info-tile{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}

/* Form helper */
.form-toast{
  display:none;
  border: 1px solid rgba(25,135,84,.25);
  background: rgba(25,135,84,.06);
  color: #0f5132;
  padding: 10px 12px;
  border-radius: 12px;
}
.divider{ height:1px; background: var(--border); }

/* Footer */
.footer{
  background: #0b1220;
  color: rgba(255,255,255,.90);
}
.footer .text-muted{ color: rgba(255,255,255,.70) !important; }
.footer-link{
  color: rgba(255,255,255,.85);
  text-decoration: none;
}
.footer-link:hover{ color: #fff; text-decoration: underline; }

/* Reveal animation */
.reveal{
  opacity: 0;
  transform: translateY(14px);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease, transform .6s ease;
}

/* Responsive */
@media (max-width: 576px){
  .brand-img{ height: 34px; }
  .topbar .topbar-text{ max-width: 100%; }
  .info-grid{ grid-template-columns: 1fr; }
}
/* ===== TOPBAR: logo-uri mici + antet compact ===== */

/* bara de sus mai joasă */
.topbar{
  padding: 4px 0 !important;
  line-height: 1.2;
}

/* micșorează toate logo-urile din topbar (cele 3) */
.topbar img{
  height: 30px !important;     /* ← micșorează aici */
  width: auto !important;
  max-width: 140px !important; /* nu lasă logo-urile să se lățească prea mult */
  object-fit: contain;
}

/* dacă logo-urile sunt într-un div flex, nu le lăsa să se împacheteze */
.topbar .d-flex{
  flex-wrap: nowrap !important;
}

/* textul din topbar mai mic, să încapă */
.topbar .topbar-text,
.topbar .small{
  font-size: 11px !important;
  line-height: 1.2 !important;
}

/* opțional: micșorează gap-ul dintre logo-uri */
.topbar .gap-3{ gap: 8px !important; }
.topbar .gap-2{ gap: 6px !important; }

/* ===== MOBILE: și mai mic + dacă e îngust, permite aranjare pe 2 rânduri ===== */
@media (max-width: 576px){
  .topbar img{
    height: 24px !important;
    max-width: 120px !important;
  }

  /* pe mobil, dacă nu încape, lasă să se rupă elegant */
  .topbar .d-flex{
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .topbar .topbar-text,
  .topbar .small{
    font-size: 11px !important;
    text-align: center !important;
  }
}
/* Logo navbar – variantă mică și curată */
.navbar-logo{
  height: 45px;          /* mărime echilibrată desktop */
  width: auto;
  object-fit: contain;
  transition: height 0.2s ease;
}

/* Navbar mai aerisit */
.navbar{
  padding-top: 6px;
  padding-bottom: 6px;
}

/* Mobile */
@media (max-width: 768px){
  .navbar-logo{
    height: 28px;        /* mic și discret pe mobil */
  }
}
