/* Self-hosted fonts — latin + latin-ext (română), font-display: swap */

/* Noto Sans 400/600/700 share the same variable woff2 files */
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/notosans-latinext.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: 'Noto Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/notosans-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;
}

@font-face {
  font-family: 'Overlock SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/overlocksc-latinext.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: 'Overlock SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/overlocksc-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;
}

@font-face {
  font-family: 'Rhodium Libre';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/rhodiumlibre-latinext.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: 'Rhodium Libre';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/rhodiumlibre-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 {
  --blue: #b91c1c;
  --blue-hover: #991b1b;
  --blue-soft: #dc2626;
  --blue-muted: rgba(185, 28, 28, 0.08);
  --accent: #ea580c;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --line: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;
  --footer: #171717;
  --footer-muted: #a2a2a2;
  --max: 1140px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(80, 15, 15, 0.08);
  --font-body: 'Rhodium Libre', Georgia, serif;
  --font-display: 'Overlock SC', 'Rhodium Libre', Georgia, serif;
  --font-ui: 'Noto Sans', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.56;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(69, 107, 247, 0.12), transparent 60%),
    radial-gradient(900px 360px at 100% 0%, rgba(3, 69, 191, 0.08), transparent 55%),
    var(--white);
  min-height: 100vh;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--blue-hover);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  line-height: 1.25;
  color: var(--ink);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
}

h2 {
  font-family: var(--font-ui);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
}

h3 {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-main {
  min-height: 50vh;
}

.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-soft) 100%);
  color: var(--white);
  padding: 2.25rem 0 2rem;
  margin-bottom: 2rem;
}

.page-hero h1 {
  color: var(--white);
  margin: 0;
}

.page-hero p {
  margin: 0.6rem 0 0;
  opacity: 0.92;
  max-width: 46rem;
}

.page-section {
  padding: 0 0 3.5rem;
}

.prose {
  font-size: 1.02rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.doc-list a {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(3, 69, 191, 0.03);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.doc-list a:hover {
  border-color: color-mix(in srgb, var(--blue) 35%, white);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  color: var(--blue);
}

.doc-list .doc-icon {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  background: var(--blue-muted);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.doc-list .doc-title {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.45;
}

.doc-years {
  display: grid;
  gap: 2rem;
}

.doc-year h2 {
  margin-bottom: 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid color-mix(in srgb, var(--blue) 35%, white);
  color: var(--blue);
}

.info-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}

.info-panel ul {
  margin: 0;
  padding-left: 1.2rem;
}

.info-panel li + li {
  margin-top: 0.4rem;
}

.media-frame {
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
}

.media-frame img {
  width: 100%;
}

.news-grid {
  display: grid;
  gap: 1rem;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.news-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.news-card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
}

.news-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.gallery a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery a:hover img {
  transform: scale(1.04);
}

.sectii-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.sectie-card {
  display: block;
  padding: 1.35rem 1.4rem;
  background: linear-gradient(180deg, #fff, #f8f9ff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.sectie-card:hover {
  border-color: color-mix(in srgb, var(--blue) 40%, white);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--ink);
}

.sectie-card h3 {
  color: var(--blue);
  margin-bottom: 0.45rem;
}

.sectie-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.92rem;
  border: 0;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  background: var(--blue-hover);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 1px solid color-mix(in srgb, var(--blue) 35%, white);
}

.btn-ghost:hover {
  background: var(--blue-muted);
  color: var(--blue);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 600;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 0.85rem 1.1rem;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--blue);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item p {
  margin: 0.75rem 0 0.25rem;
  color: var(--ink-soft);
}

.muted {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Header / topbar / footer / page extras */

.topbar {
  background: #333;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.82rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.4rem;
  padding-block: 0.35rem;
}

.social,
.contact-inline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.social a,
.contact-inline a {
  color: #fff;
  opacity: 0.95;
}

.social a:hover,
.contact-inline a:hover {
  opacity: 1;
  color: #fff;
}

.contact-inline .address {
  opacity: 0.9;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 1101px) {
  .site-header {
    backdrop-filter: blur(10px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}

.logo img,
.logo picture {
  height: 64px;
  width: auto;
}

.logo picture {
  display: block;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle > .nav-toggle-bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.nav-root {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-row {
  display: flex;
  align-items: center;
}

.nav-caret {
  display: inline-block;
  margin-left: 0.28rem;
  font-size: 0.7em;
  line-height: 1;
  vertical-align: middle;
  opacity: 0.75;
  transform: translateY(-1px);
}

.nav-item:hover > .nav-row .nav-caret,
.nav-item.active > .nav-row .nav-caret {
  color: var(--blue);
  opacity: 1;
}

.nav-chevron {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0.4rem 0.55rem;
  font-size: 0.85rem;
}

.nav-link,
.submenu-link {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.65rem 0.7rem;
  display: inline-flex;
  align-items: center;
  text-align: left;
}

.submenu-link.has-caret {
  width: 100%;
  justify-content: space-between;
  gap: 0.5rem;
}

.nav-item.active > .nav-row > .nav-link,
.nav-row > .nav-link:hover,
.nav-item:hover > .nav-row > .nav-link {
  color: var(--blue);
}

.submenu {
  position: absolute;
  top: calc(100% - 0.15rem);
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 0.45rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
  z-index: 20;
}

.submenu > li {
  position: relative;
}

.submenu-row {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.submenu-row > .submenu-link {
  flex: 1;
}

.submenu.nested {
  top: 0;
  left: calc(100% + 0.35rem);
  right: auto;
  transform: translateX(4px);
  z-index: 30;
}

.submenu.nested.deep {
  z-index: 40;
}

.nav-item:hover > .submenu,
.nav-item:focus-within > .submenu,
.submenu li:hover > .submenu,
.submenu li:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.submenu-link {
  border-radius: 8px;
  width: 100%;
  font-weight: 500;
  font-size: 0.86rem;
  line-height: 1.35;
}

.submenu-link:hover,
.submenu li.active > .submenu-link {
  background: var(--blue-muted);
  color: var(--blue);
}

.site-footer {
  background: var(--footer);
  color: #fff;
  margin-top: 3rem;
  padding: 2rem 0;
  font-family: var(--font-ui);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  max-width: 40rem;
}

.footer-brand img {
  height: 42px;
  width: auto;
  border-radius: 4px;
  background: #fff;
}

.footer-brand strong {
  display: block;
  margin-bottom: 0.35rem;
}

.footer-brand p {
  margin: 0;
  color: var(--footer-muted);
  font-size: 0.9rem;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-end;
  font-size: 0.9rem;
}

.footer-meta a {
  color: var(--footer-muted);
}

.footer-meta a:hover {
  color: #fff;
}

.footer-meta span {
  color: #fff;
  margin-top: 0.4rem;
}

/* Home */
.home-banner {
  padding: 1.75rem 0 0.5rem;
}

.banner-img,
.home-banner picture {
  width: 100%;
  display: block;
}

.banner-img {
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding-top: 1.5rem;
}

.intro-media img {
  width: 100%;
  aspect-ratio: 710 / 515;
  object-fit: cover;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.section-lead {
  margin-top: -0.35rem;
  margin-bottom: 1.25rem;
  color: var(--ink-soft);
}

.narrow {
  max-width: 760px;
}

.narrow-sm {
  max-width: 640px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

.cis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.cis-thumb {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: var(--bg);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.cis-thumb:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.cis-thumb:hover img {
  transform: scale(1.02);
}

.cis-thumb img {
  width: 100%;
  display: block;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.organigrama {
  margin-top: 1.75rem;
}

.organigrama img {
  width: 100%;
}

/* News list */
.news-list {
  display: grid;
  gap: 1.15rem;
}

.news-teaser {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.25rem;
  align-items: stretch;
  padding: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.news-teaser:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--blue) 30%, white);
  color: inherit;
}

.news-teaser__media {
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  min-height: 150px;
}

.news-teaser__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.news-teaser__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.25rem 0.35rem 0.25rem 0;
}

.news-teaser__body h2 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.news-teaser__body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-teaser__more {
  margin-top: 0.7rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
}

/* Article */
.article {
  max-width: 860px;
}

.back {
  margin-bottom: 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.cover {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  cursor: pointer;
}

.cover img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.article-body p {
  font-size: 1.05rem;
}

.article-gallery {
  margin-top: 2.25rem;
}

.article-gallery h2 {
  margin-bottom: 0.9rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* Lightbox */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.lb-overlay[hidden] {
  display: none !important;
}

body.lb-open {
  overflow: hidden;
}

.lb-overlay__img {
  max-width: min(86vw, 1100px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.lb-overlay__close,
.lb-overlay__nav {
  position: absolute;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
}

.lb-overlay__close {
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.75rem;
}

.lb-overlay__close:hover,
.lb-overlay__nav:hover {
  background: rgba(255, 255, 255, 0.35);
}

.lb-overlay__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  font-size: 1.8rem;
}

.lb-overlay__nav[hidden] {
  display: none !important;
}

.lb-overlay__prev {
  left: 1rem;
}

.lb-overlay__next {
  right: 1rem;
}

.lb-overlay__counter {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  pointer-events: none;
}

.lb-overlay__counter[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 260;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
  }

  .nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(3) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(100vw - 2.5rem, 360px);
    height: 100dvh;
    max-height: 100vh;
    background: #fff;
    border-left: 1px solid var(--line);
    padding: 5rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(105%);
    transition: transform 0.25s ease;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: var(--shadow);
    z-index: 250;
  }

  .site-nav.open {
    transform: none;
  }

  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }

  body.nav-open .site-header {
    z-index: 300;
  }

  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 25, 45, 0.45);
    z-index: 290;
  }

  .nav-root {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .nav-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
  }

  .nav-row .nav-caret {
    display: none;
  }

  .nav-row .nav-link,
  .nav-link {
    flex: 1;
    cursor: pointer;
    min-height: 44px;
    padding: 0.85rem 0.75rem;
    font-size: 1rem;
  }

  span.nav-link {
    display: inline-flex;
    align-items: center;
    width: 100%;
  }

  .nav-row,
  .submenu-row {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(185, 28, 28, 0.12);
  }

  .submenu-row .submenu-link {
    pointer-events: none;
  }

  .submenu-row .nav-chevron {
    pointer-events: none;
  }

  .nav-row .nav-chevron {
    pointer-events: none;
  }

  .nav-row {
    width: 100%;
    border-radius: 8px;
  }

  .nav-row:hover {
    background: var(--blue-muted);
  }

  .submenu,
  .submenu.nested,
  .submenu.nested.deep {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0.15rem 0 0.35rem 0.65rem;
    display: none;
    min-width: 0;
  }

  .nav-item.open > .submenu,
  .submenu li.open > .submenu {
    display: block;
  }

  .submenu-row .nav-chevron {
    display: inline-flex;
    align-items: center;
  }

  .submenu-link {
    min-height: 44px;
    padding: 0.75rem 0.65rem;
    font-size: 0.95rem;
  }

  .contact-inline .address {
    display: none;
  }

  .mobile-112 {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .intro-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .intro-media {
    max-width: 280px;
    margin-inline: auto;
  }
}

@media (max-width: 800px) {
  .cis-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 750px) {
  .news-teaser {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .news-teaser__media img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 700px) {
  .footer-meta {
    align-items: flex-start;
  }

  .lb-overlay__nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.4rem;
  }

  .lb-overlay__prev {
    left: 0.4rem;
  }

  .lb-overlay__next {
    right: 0.4rem;
  }

  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .leader-card.is-wide {
    grid-column: auto;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
    overflow-x: hidden;
  }

  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  .topbar {
    font-size: 0.78rem;
  }

  .topbar-inner {
    gap: 0.55rem;
    min-height: 2.1rem;
    padding-block: 0.3rem;
  }

  .contact-inline {
    gap: 0.55rem;
  }

  .contact-inline li:nth-child(3) {
    display: none; /* email – economisește spațiu */
  }

  .header-inner {
    min-height: 4.25rem;
    gap: 0.65rem;
  }

  .logo img,
  .logo picture {
    height: 52px;
  }

  .page-hero {
    padding: 1.5rem 0 1.35rem;
    margin-bottom: 1.35rem;
  }

  .page-hero h1 {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
    line-height: 1.25;
  }

  .page-section {
    padding-block: 1.5rem;
  }

  .home-banner {
    min-height: min(58vw, 300px);
  }

  .home-banner .banner-copy {
    padding: 1.75rem 1rem;
  }

  .home-banner h1 {
    font-size: clamp(1.35rem, 7vw, 2rem);
    line-height: 1.2;
  }

  .home-banner .banner-lead {
    font-size: 0.95rem;
    margin-top: 0.55rem;
  }

  .intro-grid {
    gap: 1.25rem;
    padding-top: 0.75rem;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .actions .btn,
  .actions .cta-112 {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .cta-112 {
    min-height: 48px;
    justify-content: center;
    touch-action: manipulation;
  }

  .btn {
    min-height: 44px;
    touch-action: manipulation;
  }

  .faq-item,
  .accordion details {
    padding: 0.35rem 0.85rem;
  }

  .faq-item summary,
  .accordion summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0.65rem 0;
    font-size: 0.98rem;
    line-height: 1.35;
    touch-action: manipulation;
  }

  .faq-item summary::after {
    margin-left: 0.75rem;
    flex-shrink: 0;
  }

  .substatii-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .substatie-card {
    padding: 1rem 1.1rem;
  }

  .sectii-grid {
    grid-template-columns: 1fr;
  }

  .map-wrap iframe {
    min-height: 280px;
  }

  .doc-list a,
  .file-list a {
    min-height: 44px;
    padding-block: 0.65rem;
  }

  .site-footer {
    padding: 1.5rem 0 calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.1rem;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .contact-inline li:nth-child(2) {
    display: none; /* telefon dispecerat – rămâne 112 */
  }

  .home-banner {
    min-height: 240px;
  }

  .leader-name {
    font-size: 1.25rem;
  }

  .leader-role {
    font-size: 0.95rem;
  }
}

/* Floating 112 pe mobil */
.mobile-112 {
  display: none;
  position: fixed;
  right: max(0.85rem, env(safe-area-inset-right));
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  z-index: 280;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  min-height: 3.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: #b91c1c;
  color: #fff !important;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(185, 28, 28, 0.45);
  touch-action: manipulation;
  text-decoration: none;
}

.mobile-112:hover,
.mobile-112:focus-visible {
  background: #991b1b;
  color: #fff !important;
}

body.nav-open .mobile-112 {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 640px) {
  .home-banner {
    min-height: 260px;
  }
}


/* SAJ Giurgiu — brand overrides */
.emergency-link {
  font-weight: 800;
  color: #fecaca !important;
}

.home-banner {
  position: relative;
  min-height: min(52vw, 420px);
  display: grid;
  place-items: center;
  background: #1f2937;
  color: #fff;
  text-align: center;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
}

.home-banner > picture,
.home-banner-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-banner-media {
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(185, 28, 28, 0.45));
}

.home-banner .banner-copy {
  position: relative;
  z-index: 2;
  padding: 2.5rem 1rem;
  max-width: 48rem;
}

.home-banner h1 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: clamp(1.6rem, 4.5vw, 2.75rem);
  font-weight: 800;
  color: #fb923c;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.home-banner .banner-lead {
  margin: 0.75rem auto 0;
  color: #fff;
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 36rem;
}

.logo img,
.logo picture {
  height: 64px;
  width: auto;
}

.substatii-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.substatie-card {
  display: block;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.substatie-card:hover {
  border-color: color-mix(in srgb, var(--blue) 40%, white);
  box-shadow: var(--shadow);
}

.substatie-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-ui);
  color: var(--blue);
}

.footer-emergency {
  margin: 0.35rem 0 0;
}

.footer-emergency a {
  color: #fecaca;
  font-weight: 700;
}

.cta-112 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  background: #b91c1c;
  color: #fff !important;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-weight: 700;
}

.cta-112:hover {
  background: #991b1b;
}

.accordion details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  background: #fff;
}

.accordion summary {
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--blue);
}

/* Conducere – layout ca pe Joomla original */
.leadership-section {
  padding-top: 1.5rem;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.leader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 170px;
  padding: 1.75rem 1.25rem 1.35rem;
  border-radius: 28px;
  border: 0;
  box-shadow: none;
}

.leader-card.is-wide {
  grid-column: 1 / -1;
  min-height: 160px;
}

.leader-card.tone-blue {
  background: #c9e4f8;
}

.leader-card.tone-green {
  background: #cfe9d4;
}

.leader-card.tone-peach {
  background: #f7d9c4;
}

.leader-name {
  margin: 0;
  font-family: var(--font-ui);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  color: #1f2937;
  line-height: 1.25;
}

.leader-role {
  margin: 0.45rem 0 0;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 500;
  color: #374151;
}
