/* Nunito Sans, găzduit local (fără cereri către Google Fonts) */
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/nunito-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/nunito-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --green: #1d6146;
  --green-700: #154a35;
  --green-50: #e9f3ee;
  --navy: #0f2e4c;
  --navy-900: #17283a;
  --text: #2b3a4a;
  --muted: #64748b;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f5f7f9;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 46, 76, .08);
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-crest { width: 44px; height: 52px; }
.brand-title { font-weight: 800; color: var(--navy); font-size: 19px; line-height: 1.1; }
.brand-sub { font-size: 12.5px; color: var(--muted); }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { font-size: 14px; font-weight: 600; color: var(--text); padding: 30px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.main-nav a:hover { color: var(--green); }
.main-nav a.active { color: var(--navy); font-weight: 800; border-color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.icon-btn { background: none; border: 0; cursor: pointer; color: var(--navy); padding: 6px; display: grid; place-items: center; }
.nav-toggle { display: none; }

.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; border-radius: 999px; padding: 12px 22px; border: 0; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(29, 97, 70, .3); }
.btn-green:hover { background: var(--green-700); }
.btn-white { background: #fff; color: var(--navy); }
.btn-outline { border: 1.5px solid var(--green); color: var(--green); background: #fff; }

.search-bar { display: none; border-top: 1px solid var(--line); padding: 14px 0; background: #fff; }
.search-bar.open { display: block; }
.search-bar input { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.search-results { margin-top: 8px; display: grid; gap: 4px; max-height: 320px; overflow: auto; }
.search-results a { padding: 8px 12px; border-radius: 6px; font-size: 14px; }
.search-results a:hover { background: var(--bg-soft); color: var(--green); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 440px; display: flex; align-items: center; color: #fff; background: linear-gradient(170deg, #0f3a2c 0%, #1d6146 50%, #3b8a68 100%); overflow: hidden; }
.hero-photo { background: #0f3a2c center/cover no-repeat; }
.hero-art, .feature-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(9, 38, 28, .88) 0%, rgba(9, 38, 28, .55) 40%, rgba(9, 38, 28, 0) 68%); }
.hero .container { position: relative; z-index: 2; padding-top: 50px; padding-bottom: 110px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 50px); font-weight: 800; margin: 12px 0 6px; }
.hero h1 span { display: block; font-weight: 400; }
.hero p { max-width: 460px; font-size: 15.5px; margin: 18px 0 26px; }
.hero p strong { display: block; }

/* ---------- Quick links ---------- */
.quick-links { position: relative; z-index: 2; margin-top: -60px; }
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 0; }
.quick-item { text-align: center; padding: 6px 12px; border-right: 1px solid var(--line); transition: transform .2s; }
.quick-item:last-child { border-right: 0; }
.quick-item:hover { transform: translateY(-3px); }
.quick-item .icon { width: 34px; height: 34px; color: var(--green); margin: 0 auto 12px; stroke-width: 1.5; }
.quick-item strong { display: block; color: var(--navy); font-size: 14.5px; }
.quick-item span { font-size: 12.5px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.section-head h2 { font-size: 26px; margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; color: var(--navy); }
.link-arrow:hover { color: var(--green); }
.grid-news { display: grid; grid-template-columns: 1.08fr 1fr; gap: 32px; }

.news-list { display: grid; }
.news-item { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-item:first-child { padding-top: 4px; }
.news-item:last-child { border-bottom: 0; }
.thumb-photo { width: 130px; height: 84px; object-fit: cover; border-radius: 8px; }
.thumb-photo.thumb-lg { width: 100%; height: 150px; border-radius: 0; }
.thumb { width: 130px; height: 84px; border-radius: 8px; display: grid; place-items: center; background: var(--green-50); color: var(--green); }
.thumb .icon { width: 36px; height: 36px; stroke-width: 1.5; }
.thumb-lg { width: 100%; height: 150px; border-radius: 0; }
.thumb-lg .icon { width: 64px; height: 64px; stroke-width: 1.2; }
.thumb-green { background: var(--green-50); color: var(--green); }
.thumb-red { background: #fdecec; color: #b03a3a; }
.thumb-teal { background: #e7f5f8; color: #1f7787; }
.thumb-amber { background: #fdf3df; color: #a06a10; }
.thumb-blue { background: #eaf0fb; color: #2b59a8; }
.thumb-lime { background: #edf6e6; color: #4a7a23; }
.news-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #e8f0fb; color: #2f5fa5; }
.tag-administratie { background: var(--green-50); color: var(--green); }
.tag-fonduri-europene { background: #eaf0fb; color: #2b59a8; }
.tag-sanatate { background: #fdecec; color: #b03a3a; }
.tag-utilitati { background: #e7f5f8; color: #1f7787; }
.tag-licitatii, .tag-informare { background: #fdf3df; color: #a06a10; }
.tag-mediu { background: #edf6e6; color: #4a7a23; }
.news-item h3 { font-size: 15.5px; margin: 6px 0 4px; }
.news-item h3 a:hover { color: var(--green); }
.news-item p { margin: 0; font-size: 13.5px; color: var(--muted); }

.feature-card { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; min-height: 340px; display: flex; align-items: flex-end; background: linear-gradient(180deg, #2a6f8f 0%, #1d6146 100%); }
.feature-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8, 35, 60, 0) 25%, rgba(8, 35, 60, .82) 100%); }
.feature-card > div { position: relative; z-index: 2; padding: 28px; }
.feature-card h2 { color: #fff; font-size: 30px; margin: 8px 0 4px; }
.feature-card h2 span { display: block; font-weight: 400; font-size: 26px; }
.feature-card p { font-size: 14px; max-width: 420px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.stat { text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 18px 8px; background: #fff; }
.stat .icon { width: 28px; height: 28px; color: var(--navy); margin: 0 auto 8px; }
.stat strong { display: block; font-size: 20px; color: var(--navy); font-weight: 800; }
.stat span { font-size: 12px; color: var(--muted); display: block; line-height: 1.4; }

.banner { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; padding: 36px 24px; background: linear-gradient(110deg, #123f2e 0%, #1d6146 55%, #2c7a5a 100%); }
.banner-photo { background: #154a35 right center/cover no-repeat; }
.banner-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 63, 46, .97) 0%, rgba(18, 63, 46, .88) 40%, rgba(18, 63, 46, .1) 75%); }
.banner > div { z-index: 1; }
.banner > .banner-symbols { position: absolute; max-width: none; right: 36px; top: 50%; transform: translateY(-50%); display: flex; gap: 26px; color: #fff; opacity: .2; }
.banner-symbols .icon { width: 84px; height: 84px; stroke-width: 1.1; }
.banner > div { position: relative; max-width: 470px; }
.banner h2 { color: #fff; font-size: 24px; margin: 8px 0; }
.banner p { font-size: 14px; margin: 0 0 20px; }

.about-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.about-left { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: center; }
.villages { display: flex; gap: 12px; align-items: flex-start; background: var(--green-50); color: var(--green); border-radius: 8px; padding: 16px; }
.villages .icon { width: 34px; height: 34px; stroke-width: 1.4; }
.villages li { white-space: nowrap; }
.villages ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 14px; font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.7; }
.about-left h2 { font-size: 22px; margin: 6px 0; }
.about-left p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 0; }
.value { text-align: center; font-size: 13.5px; color: var(--navy); border-right: 1px solid var(--line); padding: 0 10px; }
.value:last-child { border-right: 0; }
.value .icon { width: 36px; height: 36px; color: var(--green); margin: 0 auto 12px; stroke-width: 1.4; }
.small-label { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 800; color: var(--navy); }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; color: #fff; padding: 64px 0 56px; background: linear-gradient(120deg, var(--navy) 0%, #1b4d58 55%, var(--green) 100%); overflow: hidden; }
.page-hero-symbol { position: absolute; right: 7%; top: 50%; transform: translateY(-50%); width: 190px; height: 190px; color: #fff; opacity: .14; stroke-width: 1; }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 40px); margin: 8px 0 0; }
.breadcrumb { font-size: 13px; opacity: .9; }
.breadcrumb a:hover { text-decoration: underline; }
.page-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.sidebar { position: sticky; top: 100px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.sidebar .h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 14px 0 6px; color: var(--muted); }
.sidebar .h4:first-child { margin-top: 0; }
.sidebar a { display: block; font-size: 14px; padding: 6px 10px; border-radius: 6px; }
.sidebar a:hover, .sidebar a.active { background: #fff; color: var(--green); font-weight: 700; }
.prose { font-size: 15.5px; }
.prose p { margin: 0 0 1em; }
.prose h2 { font-size: 24px; margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.person { display: flex; gap: 14px; align-items: center; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green); font-weight: 800; flex: none; }
.person strong { display: block; color: var(--navy); }
.person span { font-size: 13px; color: var(--muted); }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 8px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 12px; }
.list-plain li:last-child { border-bottom: 0; }
.list-plain li span { color: var(--muted); font-size: 13.5px; }

.doc-list { display: grid; gap: 10px; }
.doc { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.doc:hover { border-color: var(--green); box-shadow: var(--shadow); }
.doc .icon { width: 26px; height: 26px; color: var(--green); }
.doc strong { font-size: 14.5px; color: var(--navy); font-weight: 700; flex: 1; }
.doc small { font-size: 12px; color: var(--muted); text-transform: uppercase; }
.doc-group { margin-bottom: 26px; }
.doc-group .h3 { font-size: 17px; }
.empty { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.filter { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; margin-bottom: 16px; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.contact-photo { width: 100%; height: 190px; object-fit: cover; border-radius: 8px; margin-bottom: 16px; }
.news-card > div { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-card .h3, .news-card h3 { font-size: 16.5px; margin: 4px 0; }
.news-card p { font-size: 13.5px; color: var(--muted); margin: 0 0 8px; flex: 1; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; }
.contact-line { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 0; }
.contact-line .icon { width: 22px; height: 22px; color: var(--green); margin-top: 2px; }
.contact-line strong { display: block; color: var(--navy); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { font-size: 13px; font-weight: 700; color: var(--navy); display: grid; gap: 6px; }
.form input, .form select, .form textarea { font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--green-50); border-color: var(--green); }
.map { border: 0; width: 100%; height: 360px; border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c7d1dc; font-size: 13px; position: relative; overflow: hidden; }
.site-footer::after { content: ""; position: absolute; left: 0; bottom: 0; width: 360px; height: 90px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 90'%3E%3Cpath d='M0 80 Q60 20 120 60 T240 50 T360 70' fill='none' stroke='%23ffffff' stroke-opacity='.12' stroke-width='2'/%3E%3Cpath d='M0 90 Q80 40 160 70 T360 80' fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='2'/%3E%3C/svg%3E") no-repeat; pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr 1fr 1.2fr; gap: 28px; padding: 44px 0; }
.footer-grid > div + div { border-left: 1px solid rgba(255, 255, 255, .1); padding-left: 24px; }
.site-footer .h4 { color: #fff; font-size: 13.5px; margin-bottom: 12px; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand strong { color: #fff; font-size: 15px; display: block; }
.footer-links { display: grid; gap: 6px; }
.footer-contact { display: grid; gap: 10px; }
.footer-contact div { display: flex; gap: 10px; align-items: flex-start; }
.socials { display: flex; gap: 10px; }
.socials a { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0; font-size: 12px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.h3 { font-size: 17px; }
.h4 { font-size: 13.5px; }
.search-empty { padding: 8px 12px; color: var(--muted); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #f2b21b; outline-offset: 2px; }
.lead { font-size: 17px; color: var(--navy); background: var(--green-50); border-left: 4px solid var(--green); padding: 16px 20px; border-radius: 6px; }
.faq details { border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; margin-bottom: 10px; background: #fff; }
.faq summary { font-weight: 700; color: var(--navy); cursor: pointer; }
.faq details p { margin: 10px 0 0; }
.updated { font-size: 13px; color: var(--muted); }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { gap: 18px; }
  .header-actions .btn span { display: none; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid > div + div { border-left: 0; padding-left: 0; }
}
@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .main-nav { position: absolute; top: 84px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 24px 16px; border-bottom: 1px solid var(--line); display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header-actions { margin-left: auto; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .quick-item:nth-child(3n) { border-right: 0; }
  .grid-news, .about-row, .page-layout, .contact-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .news-grid, .cards-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .brand-title { font-size: 16px; }
  .header-actions .btn { display: none; }
  .hero { min-height: 400px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-item:nth-child(3n) { border-right: 1px solid var(--line); }
  .quick-item:nth-child(2n) { border-right: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .news-item { grid-template-columns: 100px 1fr; gap: 14px; }
  .news-item .thumb, .news-item .thumb-photo { width: 100px; height: 72px; }
  .banner > .banner-symbols { display: none; }
  .page-hero-symbol { width: 110px; height: 110px; right: -10px; }
  .about-left { grid-template-columns: 1fr; }
  .news-grid, .cards-2, .cards-3, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; gap: 20px; }
  .value { border-right: 0; }
}
