:root {
  --color-primary: #1a6b3c;
  --color-secondary: #f5a623;
  --color-dark: #1a1a2e;
  --color-light: #f8f9fa;
  --color-text: #2d3748;
  --color-muted: #718096;
  --color-border: #e2e8f0;
  --radius: 8px;
  --shadow-card: 0 8px 22px rgba(26, 26, 46, .08);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--color-text);
  font-family: var(--font-body);
  background: #fff;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, .navbar-brand {
  font-family: var(--font-heading);
}

a {
  color: var(--color-primary);
}

.site-navbar {
  background: #fff;
  box-shadow: 0 1px 0 var(--color-border);
}

.brand-text {
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-text span {
  color: var(--color-secondary);
}

.nav-link {
  color: var(--color-dark);
  font-weight: 600;
}

.btn-donate,
.btn-primary-site {
  background: var(--color-primary);
  color: #fff;
  border: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
}

.btn-donate:hover,
.btn-primary-site:hover {
  background: #12532e;
  color: #fff;
}

.btn-secondary-site {
  background: var(--color-secondary);
  color: #1a1a2e;
  border: 0;
  min-height: 44px;
}

.hero {
  min-height: 72vh;
  display: grid;
  align-items: center;
  color: #fff;
  background: linear-gradient(130deg, var(--color-primary), #0f3e25);
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 43, 28, .86), rgba(11, 43, 28, .58) 48%, rgba(11, 43, 28, .28)),
    linear-gradient(0deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .18));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  max-width: 820px;
}

.hero .lead {
  max-width: 760px;
}

.section-band {
  padding: 72px 0;
}

.section-soft {
  background: #f6faf7;
}

.feature-card,
.project-card,
.info-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  background: #fff;
}

.project-card {
  overflow: hidden;
  height: 100%;
  border-top: 4px solid var(--color-primary);
}

.partner-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.partner-card img {
  max-width: 180px;
  max-height: 72px;
  object-fit: contain;
  margin-bottom: 10px;
}

.project-img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  background: #eaf4ed;
}

.placeholder-img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #eaf4ed, #fff4dd);
  display: grid;
  place-items: center;
  color: var(--color-primary);
  font-size: 2rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

.page-hero {
  background: #f6faf7;
  padding: 56px 0;
}

.about-hero {
  background:
    linear-gradient(135deg, rgba(26, 107, 60, .11), rgba(245, 166, 35, .13)),
    #f6faf7;
}

.about-hero-note {
  border-left: 4px solid var(--color-secondary);
  padding: 18px 0 18px 20px;
  color: var(--color-dark);
}

.about-hero-note strong,
.about-hero-note span {
  display: block;
}

.about-hero-note span {
  margin-top: 6px;
  color: var(--color-muted);
}

.about-intro {
  font-size: 1.05rem;
}

.about-intro h2 {
  margin-top: 0;
  margin-bottom: 14px;
  color: var(--color-dark);
}

.about-intro h2:not(:first-child) {
  margin-top: 34px;
}

.about-intro p {
  line-height: 1.8;
}

.about-fiscal-card {
  border-top: 4px solid var(--color-primary);
}

.about-fiscal-card p:last-child {
  margin-bottom: 0;
}

.about-statement {
  display: grid;
  grid-template-columns: minmax(0, 840px);
  justify-content: center;
  padding: 42px;
  border-radius: var(--radius);
  background: #123923;
  color: #fff;
}

.about-statement h2 {
  color: #fff;
}

.about-statement p {
  color: #e8f3ec;
  font-size: 1.08rem;
  line-height: 1.8;
}

.about-focus-card {
  transition: transform .18s ease, box-shadow .18s ease;
}

.about-focus-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(26, 26, 46, .11);
}

.about-process {
  display: grid;
  gap: 14px;
}

.about-process-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}

.about-process-item span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eaf4ed;
  color: var(--color-primary);
  font-weight: 800;
}

.about-process-item p {
  margin: 0;
  line-height: 1.7;
}

.about-stats {
  padding: 28px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.about-value {
  color: var(--color-dark);
  font-weight: 700;
}

.about-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 34px;
  border-radius: var(--radius);
  background: #f6faf7;
  border: 1px solid var(--color-border);
}

.about-cta p {
  max-width: 720px;
  margin-bottom: 0;
}

.iban-row {
  font-family: Consolas, monospace;
  background: #f8f9fa;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: .75rem;
  word-break: break-word;
}

.site-footer {
  flex-shrink: 0;
  margin-top: 0 !important;
  background: var(--color-dark);
  color: #dfe4ea;
}

.site-footer a {
  color: #fff;
  display: block;
  text-decoration: none;
  margin-bottom: .45rem;
}

.footer-title {
  font-size: 1rem;
  color: #fff;
}

.admin-link {
  opacity: .75;
  margin-top: 1rem;
}

.site-credit {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #dfe4ea;
}

.site-credit a {
  display: inline;
  margin: 0;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(26, 107, 60, .13), transparent 34rem),
    linear-gradient(135deg, #f6f8f3 0%, #eef3f6 48%, #f9f5ea 100%);
}

.admin-app {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(10, 45, 29, .98), rgba(21, 27, 44, .98)),
    var(--color-dark);
  box-shadow: 18px 0 42px rgba(20, 33, 61, .16);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  padding: 8px 8px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.admin-brand:hover {
  color: #fff;
}

.admin-brand-mark {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #1b2a1f;
  background: linear-gradient(135deg, #f8c45c, #fff1c7);
  box-shadow: 0 14px 28px rgba(245, 166, 35, .24);
  font-family: var(--font-heading);
  font-weight: 800;
}

.admin-brand strong,
.admin-brand small,
.admin-user strong,
.admin-user small {
  display: block;
}

.admin-brand small,
.admin-user small {
  opacity: .72;
  font-size: .78rem;
}

.admin-nav {
  display: grid;
  gap: 6px;
  padding: 22px 0;
}

.admin-nav a,
.admin-sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 11px 12px;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.admin-nav a i,
.admin-sidebar-footer a i {
  width: 20px;
  color: rgba(255, 255, 255, .66);
  text-align: center;
}

.admin-nav a:hover,
.admin-sidebar-footer a:hover,
.admin-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.admin-nav a:hover {
  transform: translateX(2px);
}

.admin-nav a.active {
  box-shadow: inset 3px 0 0 var(--color-secondary);
}

.admin-sidebar-footer {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.admin-main {
  min-width: 0;
  padding: 24px;
}

.admin-topbar {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 18px 42px rgba(20, 33, 61, .08);
  backdrop-filter: blur(14px);
}

.admin-topbar h1 {
  margin: 0;
  color: #16251c;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.admin-kicker {
  margin-bottom: 4px;
  color: var(--color-primary);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
}

.admin-user-avatar {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--color-primary);
  font-weight: 800;
}

.admin-content {
  max-width: 1480px;
  margin: 0 auto;
}

.admin-shell .card {
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 42px rgba(20, 33, 61, .08);
}

.admin-shell .card.p-3 {
  padding: 22px !important;
}

.admin-shell .form-control,
.admin-shell .form-select {
  min-height: 46px;
  border-color: #dbe4ea;
  border-radius: 12px;
  background-color: #fbfcfd;
}

.admin-shell textarea.form-control {
  min-height: 120px;
}

.admin-shell .form-control:focus,
.admin-shell .form-select:focus {
  border-color: rgba(26, 107, 60, .48);
  box-shadow: 0 0 0 .25rem rgba(26, 107, 60, .12);
}

.admin-shell .form-label {
  color: #23332a;
  font-weight: 700;
}

.admin-shell .table {
  margin-bottom: 0;
}

.admin-shell .table thead th {
  color: #5f6f7a;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom-color: #e9eef3;
}

.admin-shell .table tbody td {
  padding-top: 1rem;
  padding-bottom: 1rem;
  vertical-align: middle;
}

.admin-shell .btn {
  border-radius: 12px;
  font-weight: 700;
}

.admin-shell .btn-success {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary), #0f5530);
  box-shadow: 0 10px 20px rgba(26, 107, 60, .16);
}

.admin-shell .btn-outline-success {
  color: var(--color-primary);
  border-color: rgba(26, 107, 60, .34);
  background: rgba(255, 255, 255, .62);
}

.admin-shell .btn-outline-success:hover {
  color: #fff;
  background: var(--color-primary);
}

.admin-shell .alert {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(20, 33, 61, .08);
}

.admin-stat-card {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  min-height: 128px;
}

.admin-stat-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  color: var(--color-primary);
  background: linear-gradient(135deg, rgba(26, 107, 60, .12), rgba(245, 166, 35, .18));
  font-size: 1.35rem;
}

.admin-stat-card .h2,
.admin-stat-card .h6 {
  color: #14213d;
  font-family: var(--font-heading);
  font-weight: 800;
}

.admin-login-body {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(9, 49, 30, .9), rgba(20, 33, 61, .82)),
    url("/assets/img/hero/iasi-palatul-culturii.jpg") center / cover;
}

.admin-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-login-card {
  width: min(100%, 460px);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 22px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  backdrop-filter: blur(16px);
}

.admin-login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.admin-login-brand h1 {
  margin: 0;
  color: #14213d;
  font-size: 1.45rem;
}

.admin-login-brand p {
  margin: 0;
  color: var(--color-muted);
  font-weight: 700;
}

.admin-login-card .form-control {
  min-height: 48px;
  border-color: #dbe4ea;
  border-radius: 12px;
}

.admin-login-card .form-label {
  font-weight: 700;
}

.admin-login-card .btn {
  min-height: 48px;
  border-radius: 12px;
  font-weight: 800;
}

@media (max-width: 991.98px) {
  .admin-app {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    padding: 14px;
  }

  .admin-brand {
    padding-bottom: 14px;
  }

  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px 0;
  }

  .admin-sidebar-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }

  .admin-main {
    padding: 16px;
  }

  .admin-topbar {
    position: static;
    align-items: flex-start;
    border-radius: 16px;
  }

  .navbar-collapse {
    padding: 1rem 0;
  }

  .btn-donate {
    width: 100%;
    margin-top: .5rem;
  }

  .about-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .site-credit {
    flex-direction: column;
  }

  .admin-nav,
  .admin-sidebar-footer {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    flex-direction: column;
  }

  .admin-user {
    width: 100%;
  }

  .admin-shell .card.p-3 {
    padding: 16px !important;
  }

  .hero {
    min-height: 68vh;
  }

  .section-band {
    padding: 48px 0;
  }

  .about-statement,
  .about-cta {
    padding: 24px;
  }

  .about-process-item {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 16px;
  }

  .about-process-item span {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}

@media print {
  .site-navbar, .site-footer, .btn, .no-print { display: none !important; }
  body { color: #000; font-size: 12pt; }
}
