:root {
  --navy: #173B5E;
  --navy-dark: #102a44;
  --teal: #2A9D8F;
  --gold: #E9B44C;
  --bg: #FFFFFF;
  --bg-alt: #F5F7F9;
  --text: #22313f;
  --muted: #6b7a89;
  --radius: 10px;
  --line: #e3e8ee;
  --shadow: 0 1px 2px rgba(23, 59, 94, 0.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: var(--gold); color: var(--navy-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); line-height: 1.65; }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; color: var(--navy); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.8rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--teal); text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; color: #37475a; }

/* Butoane */
.btn { display: inline-block; padding: 0.75rem 1.4rem; border-radius: 6px; font-weight: 600; font-family: 'Inter', sans-serif; font-size: 0.95rem; border: 2px solid transparent; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.btn:hover { filter: brightness(0.94); }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,0.55); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; filter: none; }
.icon { width: 1em; height: 1em; vertical-align: -0.14em; flex-shrink: 0; }

/* Bara de sus */
.topbar { background: var(--navy-dark); color: #b9cbdc; font-size: 0.82rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.35rem 16px; flex-wrap: wrap; }
.topbar a { color: #cfdded; margin-right: 1rem; }
.topbar a:hover { color: var(--gold); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 0.2rem; flex-wrap: wrap; }
.topbar .lang-btn { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: #fff; padding: 0.2rem 0.7rem; font-size: 0.78rem; }
.topbar .lang-menu { right: 0; }
.lang-mobile { display: none; }

/* Antet */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.55rem 16px; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--navy); }
.brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: 'Montserrat'; font-size: 1.25rem; letter-spacing: 0.03em; }
.brand-text small { font-size: 0.68rem; color: var(--muted); max-width: 270px; }
.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav a { color: var(--navy); font-weight: 500; font-size: 0.95rem; padding: 0.3rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav a.active, .main-nav a:hover { border-bottom-color: var(--gold); }
.main-nav a.nav-cta { border-bottom: none; padding: 0.55rem 1.1rem; white-space: nowrap; }
.main-nav a.nav-help { margin-left: 0.4rem; }
.main-nav a.btn-teal { color: #fff; }
.main-nav a.btn-gold { color: var(--navy-dark); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { background: var(--navy); color: #fff; padding: 5rem 0 5.5rem; }
.hero-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 1.2rem; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.hero p { color: #d7e3ee; font-size: 1.1rem; }
.eyebrow { display: block; color: var(--gold); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1.1rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-logo { text-align: center; }
.hero-logo img { width: min(280px, 70%); border-radius: 50%; border: 8px solid rgba(255,255,255,0.08); }

/* Cifre */
.stats-band { background: var(--teal); color: #fff; padding: 2.6rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; }
.stat { padding: 0.4rem 2rem; border-left: 1px solid rgba(255,255,255,0.28); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-value { display: block; font-family: 'Montserrat'; font-weight: 800; font-size: 3rem; line-height: 1.1; }
.stat-label { display: block; font-weight: 600; font-size: 1.02rem; margin-top: 0.2rem; }
.stat-desc { display: block; font-size: 0.88rem; color: rgba(255,255,255,0.85); margin-top: 0.4rem; }

/* Secțiuni */
.section { padding: 4rem 0; }
.section.alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; margin-top: 1.6rem; }
.card { background: #fff; border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line); transition: border-color 0.15s; }
.card-link:hover { border-color: var(--teal); }
.card-link:hover h3 { color: var(--teal); }
.card.topic h3::before { content: ''; display: block; width: 28px; height: 3px; background: var(--teal); margin-bottom: 0.9rem; }
.cards-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .cards-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-grid.four { grid-template-columns: 1fr; } }
.card-link { color: var(--text); display: flex; flex-direction: column; }
.card-img { border-radius: 10px; margin-bottom: 0.9rem; height: 170px; object-fit: cover; width: 100%; }
.more { color: var(--teal); font-weight: 600; margin-top: auto; }
.cta-band { background: var(--navy); color: #fff; padding: 4rem 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d7e3ee; }

/* Pagini interioare */
.page-head { background: var(--navy); color: #fff; padding: 3.2rem 0; }
.page-head h1 { color: #fff; }
.page-head p { color: #cfdded; margin: 0.4rem 0 0; }
.activity { background: #fff; border-radius: var(--radius); padding: 1.8rem 2rem; border: 1px solid var(--line); margin-bottom: 1.4rem; }
.activity ul { margin: 0.6rem 0 0 1.2rem; }
.activity li { margin-bottom: 0.25rem; }
.steps { margin: 1rem 0 1.5rem 1.2rem; }
.steps li { margin-bottom: 0.8rem; padding-left: 0.4rem; }
.callout { background: #fdf6e7; border-left: 3px solid var(--gold); padding: 1rem 1.3rem; border-radius: 0 6px 6px 0; margin: 1.5rem 0; }
.callout.success { background: #e9f7f2; border-left-color: var(--teal); }
.callout.error { background: #fdecec; border-left-color: #d64545; }
.president { background: #fff; border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line); border-left: 3px solid var(--gold); }
.president footer { color: var(--muted); margin-top: 0.5rem; }
.check-list { margin: 0.6rem 0 1.4rem 1.4rem; }
.check-list li { margin-bottom: 0.4rem; }
.project-img { border-radius: var(--radius); margin-bottom: 1.4rem; }
.meta-row { display: flex; gap: 1.4rem; flex-wrap: wrap; color: var(--muted); margin-bottom: 1.6rem; font-size: 0.95rem; }
.meta-row span { display: inline-flex; align-items: center; gap: 0.45rem; }
.testimonial p { font-style: italic; }
.partner-logo { max-height: 80px; margin-bottom: 0.8rem; object-fit: contain; }

/* Animații la derulare (high-tech, discrete) */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Banda „dreptul la educație” */
.edu-band { background: var(--navy-dark); color: #fff; padding: 4.5rem 0; }
.edu-band h2 { color: #fff; }
.edu-band p { color: #d7e3ee; }
.edu-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: center; }
.edu-stat { border-left: 3px solid var(--gold); padding: 0.6rem 0 0.6rem 1.8rem; color: #d7e3ee; }
.edu-number { display: block; font-family: 'Montserrat'; font-weight: 800; font-size: 4rem; line-height: 1.05; color: var(--gold); }

/* Pagina Donează */
.donate-head { background: var(--navy); }
.iban-box { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem; margin-top: 0.6rem; }
.iban-box p { margin-bottom: 0.4rem; }
.iban { font-family: 'SF Mono', Menlo, monospace; letter-spacing: 0.04em; }

/* Antet la derulare */
.site-header.scrolled { box-shadow: 0 4px 16px rgba(23,59,94,0.08); }

.social-card { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.social-icon { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; color: #fff; margin-bottom: 0.4rem; }
.social-icon svg { width: 22px; height: 22px; }
.social-card .soc { margin-top: 0.5rem; }

/* Selector de limbă */
.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--bg-alt); border: 1px solid #d6dfe8; border-radius: 6px; padding: 0.3rem 0.7rem; font: inherit; font-weight: 600; font-size: 0.82rem; color: var(--navy); cursor: pointer; }
.lang-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(23,59,94,0.12); padding: 0.35rem; min-width: 140px; z-index: 60; }
.lang-switch.open .lang-menu { display: block; }
.lang-menu a { display: block; padding: 0.45rem 0.8rem; border-radius: 5px; color: var(--navy); font-size: 0.9rem; border-bottom: none !important; }
.lang-menu a:hover { background: var(--bg-alt); }
.lang-menu a.active { background: var(--navy); color: #fff; }

/* Banda „Cere ajutor” */
.help-band { background: var(--teal); color: #fff; padding: 3.5rem 0; }
.help-band h2 { color: #fff; }
.help-band p { color: #e2f4f1; max-width: 640px; margin-left: auto; margin-right: auto; }
.help-band .btn-teal { background: #fff; color: #14766b; }
.help-head { background: var(--navy); }
.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }
.urgent-check { display: flex; align-items: center; gap: 0.5rem; }
.urgent-check input { width: auto !important; margin: 0 !important; accent-color: #d64545; }
.form select { display: block; width: 100%; margin-top: 0.3rem; padding: 0.65rem 0.8rem; border: 1px solid #cfd8e2; border-radius: 6px; font: inherit; background: #fff; }

/* Formular voluntariat */
.panel-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; margin-top: 1.5rem; }
.areas-box { border: 1px solid #cfd8e2; border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1rem; }
.areas-box legend { font-weight: 600; color: var(--navy); font-size: 0.92rem; padding: 0 0.4rem; }
.areas-box label.check { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; margin-bottom: 0; }
.areas-box input[type="checkbox"] { width: auto; margin: 0; accent-color: var(--teal); }
@media (max-width: 700px) { .areas-box { grid-template-columns: 1fr; } }

/* Rubrici noutăți */
.filter-tabs { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.filter-tabs a { padding: 0.45rem 1.1rem; border-radius: 6px; border: 1px solid #cfd8e2; color: var(--navy); font-weight: 600; font-size: 0.9rem; }
.filter-tabs a.active, .filter-tabs a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.card-meta { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.6rem; }
.cat-badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.cat-stire { background: #e3f1ff; color: #1b5a94; }
.cat-articol { background: #e9f7f2; color: #1d6a5f; }
.cat-anunt { background: #fdf6e7; color: #a97c17; }
.cat-on-dark { margin-bottom: 0.7rem; }
.article-body p { font-size: 1.04rem; }

/* Resurse */
.resource-list { display: flex; flex-direction: column; gap: 0.9rem; }
.resource { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.4rem; color: var(--text); }
.resource:hover { border-color: var(--teal); }
.resource-icon { display: inline-flex; color: var(--teal); }
.resource-icon svg { width: 28px; height: 28px; }
.resource .more { margin-left: auto; white-space: nowrap; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; }
.contact-list p { margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.6rem; }
.contact-list .icon { color: var(--teal); }
.form label { display: block; font-weight: 600; margin-bottom: 0.9rem; font-size: 0.92rem; color: var(--navy); }
.form input, .form textarea { display: block; width: 100%; margin-top: 0.3rem; padding: 0.65rem 0.8rem; border: 1px solid #cfd8e2; border-radius: 6px; font: inherit; background: #fff; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--teal); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.social-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.soc { padding: 0.45rem 1rem; border-radius: 6px; color: #fff; font-weight: 600; font-size: 0.85rem; }
.soc-wa { background: #25D366; }
.soc-fb { background: #1877F2; }
.soc-tt { background: #121212; }
.soc-tg { background: #229ED9; }
.soc-ig { background: #C13584; }

/* Subsol */
.site-footer { background: var(--navy-dark); color: #cfdded; padding-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; padding-bottom: 2.5rem; }
.site-footer h4 { color: #fff; margin-bottom: 0.8rem; }
.site-footer a { display: block; color: #cfdded; margin-bottom: 0.4rem; }
.footer-contact a, .footer-contact span { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.45rem; }
.site-footer a:hover { color: var(--gold); }
.brand-footer { color: #fff; margin-bottom: 0.8rem; }
.brand-footer img { width: 44px; height: 44px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1rem 0; font-size: 0.85rem; color: #8fa3b8; }
.site-footer .social-row a { display: inline-block; margin-bottom: 0; }

/* Butoane rapide + chat */
.quick-contact { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.quick-links { display: flex; flex-direction: column; gap: 10px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: 0.2s; }
.quick-contact.open .quick-links { opacity: 1; pointer-events: auto; transform: none; }
.qc { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; border: none; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.qc svg { width: 26px; height: 26px; }
.qc-main { width: 60px; height: 60px; background: var(--teal); }
.qc-main svg { width: 30px; height: 30px; }
.qc-wa { background: #25D366; } .qc-tg { background: #229ED9; } .qc-fb { background: #1877F2; } .qc-tt { background: #121212; }

.chat-window[hidden] { display: none; }
.chat-window { position: fixed; right: 18px; bottom: 92px; z-index: 95; width: min(370px, calc(100vw - 32px)); height: 480px; max-height: calc(100vh - 130px); background: #fff; border-radius: 12px; box-shadow: 0 16px 48px rgba(0,0,0,0.3); display: flex; flex-direction: column; overflow: hidden; }
.chat-head { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 0.7rem; padding: 0.8rem 1rem; }
.chat-head img { width: 38px; height: 38px; border-radius: 50%; }
.chat-head small { display: block; color: #b9cbdc; font-size: 0.75rem; }
.chat-head button { margin-left: auto; background: none; border: none; color: #fff; font-size: 1.1rem; cursor: pointer; }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; background: var(--bg-alt); display: flex; flex-direction: column; gap: 0.6rem; }
.chat-msg { max-width: 85%; padding: 0.6rem 0.9rem; border-radius: 14px; font-size: 0.92rem; white-space: pre-wrap; }
.chat-msg.bot, .chat-msg.admin { background: #fff; border: 1px solid #e2eaf1; align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.admin { border-color: var(--gold); background: #fdf6e7; }
.chat-msg.admin::before { content: 'Echipa AISM'; display: block; font-size: 0.7rem; font-weight: 700; color: #a97c17; }
.chat-msg.user { background: var(--teal); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-input { display: flex; gap: 0.5rem; padding: 0.7rem; background: #fff; border-top: 1px solid #e8eef4; }
.chat-input input { flex: 1; border: 1.5px solid #d6dfe8; border-radius: 999px; padding: 0.55rem 1rem; font: inherit; }
.chat-input input:focus { outline: none; border-color: var(--teal); }
.chat-input .btn { padding: 0.5rem 1.1rem; }

/* Ecrane medii: meniul rămâne pe un singur rând */
@media (max-width: 1440px) and (min-width: 901px) {
  .brand-text small { display: none; }
  .main-nav { gap: 1rem; }
  .main-nav a { font-size: 0.9rem; }
  .main-nav a.nav-cta { padding: 0.5rem 0.9rem; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .main-nav { gap: 0.75rem; }
  .main-nav a { font-size: 0.85rem; }
}

/* Mobil */
@media (max-width: 900px) {
  .topbar { display: none; }
  .lang-mobile { display: block; }
  .lang-menu { position: static; box-shadow: none; border: 1px solid #e2eaf1; margin-top: 6px; }
  .lang-switch.open .lang-menu { display: flex; flex-wrap: wrap; gap: 4px; }
  .edu-inner { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding: 0.4rem 0; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem 16px 1.4rem; box-shadow: 0 12px 24px rgba(23,59,94,0.15); }
  body.nav-open .main-nav { display: flex; }
  .hero { padding: 3rem 0 3.5rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-logo { display: none; }
  .main-nav a.nav-help { margin-left: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
}
