/* ==========================================================================
   Comuna Letca Nouă — Site instituțional 2026
   Static HTML/CSS. Paletă: albastru instituțional + auriu accent.
   ========================================================================== */

:root {
  --blue-900: #0b2545;
  --blue-800: #13315c;
  --blue-700: #134074;
  --blue-600: #1b4d8a;
  --blue-500: #2563a8;
  --blue-100: #e7eef7;
  --blue-50:  #f4f8fc;
  --gold:     #c9a227;
  --gold-soft:#f0e3b0;
  --ink:      #1a2330;
  --muted:    #5a6878;
  --line:     #e2e8f0;
  --bg:       #ffffff;
  --bg-soft:  #f6f8fb;
  --green:    #178a4c;
  --radius:   14px;
  --radius-sm:9px;
  --shadow:   0 1px 2px rgba(16,38,72,.06), 0 8px 24px rgba(16,38,72,.06);
  --shadow-lg:0 12px 40px rgba(16,38,72,.14);
  --maxw:     1180px;
  --font:     "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 120px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-600); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--blue-900); }

img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--blue-900);
  color: #c8d6ea;
  font-size: 13.5px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 42px;
  flex-wrap: wrap;
}
.topbar a { color: #dbe6f5; }
.topbar a:hover { color: #fff; }
.topbar .tb-left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar .tb-right { display: flex; gap: 14px; align-items: center; }
.topbar svg { width: 15px; height: 15px; fill: var(--gold); flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand .crest {
  width: 50px; height: 58px; flex: none;
  display: grid; place-items: center;
}
.brand .crest img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand .b-text strong {
  display: block;
  font-size: 20px;
  letter-spacing: .2px;
  color: var(--blue-900);
  line-height: 1.15;
}
.brand .b-text span {
  font-size: 12.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ---------- Nav ---------- */
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 15px;
  color: var(--blue-900);
  border-radius: 9px;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
  background: var(--blue-50);
  color: var(--blue-700);
}
.main-nav .dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 248px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .18s ease;
}
.main-nav li:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 14.5px;
  color: var(--ink);
}
.main-nav .dropdown a:hover { background: var(--blue-50); color: var(--blue-700); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 28px; height: 28px; fill: var(--blue-900); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(11,37,69,.92), rgba(19,64,116,.78)),
    radial-gradient(circle at 80% 20%, rgba(201,162,39,.25), transparent 55%);
  background-color: var(--blue-900);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.hero .container { position: relative; padding: 86px 24px 92px; z-index: 1; }
.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid rgba(201,162,39,.5);
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  margin: 0 0 18px;
  max-width: 16ch;
  font-weight: 800;
  letter-spacing: -.5px;
}
.hero p {
  font-size: 18.5px;
  max-width: 56ch;
  color: #d6e2f1;
  margin: 0 0 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-gold { background: var(--gold); color: #2a2200; }
.btn-gold:hover { background: #d8b32f; color: #2a2200; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-outline { background: #fff; color: var(--blue-700); border-color: var(--line); }
.btn-outline:hover { background: var(--blue-50); }

/* ---------- Quick access cards ---------- */
.quick {
  margin-top: -56px;
  position: relative;
  z-index: 5;
  padding-bottom: 20px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.qcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.qcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); color: inherit; }
.qcard .ic {
  width: 46px; height: 46px;
  border-radius: 11px;
  background: var(--blue-50);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.qcard .ic svg { width: 24px; height: 24px; fill: var(--blue-600); }
.qcard h3 { margin: 0 0 5px; font-size: 17px; color: var(--blue-900); }
.qcard p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */
section { scroll-margin-top: 110px; }
.section { padding: 64px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { margin-bottom: 36px; max-width: 64ch; }
.section-head .kicker {
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 8px 0 10px;
  color: var(--blue-900);
  letter-spacing: -.4px;
}
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

/* ---------- Page banner (interior pages) ---------- */
.pagebanner {
  background: linear-gradient(115deg, var(--blue-900), var(--blue-700));
  color: #fff;
  padding: 54px 0 46px;
  position: relative;
}
.pagebanner .crumb { font-size: 13.5px; color: #b9cbe4; margin-bottom: 12px; }
.pagebanner .crumb a { color: #d8e4f4; }
.pagebanner h1 { margin: 0; font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -.5px; }
.pagebanner p { margin: 12px 0 0; color: #cdddf0; max-width: 60ch; }

/* ---------- Sub navigation (anchor tabs) ---------- */
.subnav {
  position: sticky;
  top: 88px;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(16,38,72,.04);
}
.subnav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 4px; overflow-x: auto;
}
.subnav a {
  display: block;
  padding: 15px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.subnav a:hover { color: var(--blue-700); }

/* ---------- Content layout ---------- */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
.prose h2 { color: var(--blue-900); font-size: 26px; margin: 0 0 14px; letter-spacing: -.3px; }
.prose h3 { color: var(--blue-800); font-size: 19px; margin: 30px 0 10px; }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }

.block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.block > h2:first-child, .block > h3:first-child { margin-top: 0; }

/* ---------- Info / stat grids ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 16px; margin: 22px 0; }
.fact {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.fact .n { font-size: 26px; font-weight: 800; color: var(--blue-700); }
.fact .l { font-size: 13.5px; color: var(--muted); }

/* ---------- People (leadership / councilors) ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 18px; }
.person {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.person .avatar {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto 14px;
  background: linear-gradient(160deg, var(--blue-600), var(--blue-900));
  color: #fff; display: grid; place-items: center;
  font-size: 24px; font-weight: 700; letter-spacing: 1px;
}
.person h4 { margin: 0 0 4px; color: var(--blue-900); font-size: 17px; }
.person .role { color: var(--muted); font-size: 14px; }
.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 3px 10px;
  border-radius: 30px;
  margin-top: 10px;
}
.badge.pnl { background: #fdeaea; color: #b32525; }
.badge.psd { background: #e8f0fb; color: #1b4d8a; }

.council-list { width: 100%; border-collapse: collapse; }
.council-list th, .council-list td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.council-list th { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.council-list tr:hover td { background: var(--blue-50); }

/* ---------- Document list ---------- */
.doclist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.doc {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.doc:hover { border-color: var(--blue-100); box-shadow: var(--shadow); transform: translateX(2px); }
.doc .filetype {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800; letter-spacing: .5px;
  color: #fff;
}
.doc .filetype.pdf { background: #c0392b; }
.doc .filetype.doc { background: #2b5797; }
.doc .filetype.xls { background: #1e7145; }
.doc .meta { flex: 1; min-width: 0; }
.doc .meta .t { font-weight: 600; color: var(--blue-900); display: block; }
.doc .meta .d { font-size: 13px; color: var(--muted); }
.doc .dl {
  flex: none;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--blue-600);
  padding: 8px 14px; border-radius: 8px; background: var(--blue-50);
}
.doc .dl svg { width: 16px; height: 16px; fill: currentColor; }
.doc:hover .dl { background: var(--blue-600); color: #fff; }

/* ---------- Sidebar ---------- */
.sidebar .card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  overflow: hidden;
}
.sidebar .card h3 {
  margin: 0;
  padding: 16px 20px;
  font-size: 15px;
  background: var(--blue-900);
  color: #fff;
  letter-spacing: .3px;
}
.sidebar .card .card-body { padding: 8px 14px 14px; }
.sidebar .mini { list-style: none; margin: 0; padding: 0; }
.sidebar .mini li { border-bottom: 1px solid var(--line); }
.sidebar .mini li:last-child { border-bottom: 0; }
.sidebar .mini a { display: block; padding: 12px 6px; font-size: 14.5px; color: var(--ink); }
.sidebar .mini a:hover { color: var(--blue-700); }
.sidebar .mini .date { display: block; font-size: 12.5px; color: var(--muted); }

.contact-card .row { display: flex; gap: 12px; padding: 11px 6px; align-items: flex-start; font-size: 14.5px; }
.contact-card .row svg { width: 18px; height: 18px; fill: var(--blue-600); flex: none; margin-top: 3px; }

/* ---------- Announcements (home) ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 20px; }
.news {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.news .tag {
  align-self: flex-start;
  font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: var(--gold); background: var(--gold-soft); padding: 4px 11px; border-radius: 30px; margin-bottom: 14px;
}
.news .date { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.news h3 { margin: 0 0 14px; font-size: 17.5px; color: var(--blue-900); line-height: 1.35; flex: 1; }
.news a.more { font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.news a.more svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- CTA strip ---------- */
.cta {
  background: linear-gradient(115deg, var(--blue-800), var(--blue-600));
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta h2 { margin: 0 0 6px; font-size: 26px; }
.cta p { margin: 0; color: #d6e2f1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #aebfd6; margin-top: 70px; }
.footer-top { padding: 56px 0 38px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 16px; letter-spacing: .4px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: #aebfd6; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.footer-brand .crest {
  width: 48px; height: 56px; border-radius: 8px;
  background: #fff; padding: 4px;
  display: grid; place-items: center; margin-bottom: 14px;
}
.footer-brand .crest img { width: 100%; height: 100%; object-fit: contain; display: block; }
.footer-brand p { font-size: 14px; line-height: 1.6; }
.footer-contact .row { display: flex; gap: 10px; margin-bottom: 11px; font-size: 14.5px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; fill: var(--gold); flex: none; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13.5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: none; padding: 10px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 4px 0 4px 14px; min-width: auto;
  }
  .topbar .tb-left { gap: 14px; }
  .quick { margin-top: 28px; }
  .quick-grid { grid-template-columns: 1fr; }
  .cta { padding: 32px 26px; }
  .footer-top { grid-template-columns: 1fr; }
  .doc { flex-wrap: wrap; }
  .doc .dl { margin-left: 62px; }
}
