/* ==========================================================================
   S.A.B.IF — Template modern, responsive
   ========================================================================== */

:root {
  --sabif-blue-dark: #002699;
  --sabif-blue: #0362a9;
  --sabif-blue-light: #e8f0fe;
  --sabif-navy: #001845;
  --sabif-red: #e2001a;
  --sabif-orange: #ff8e00;
  --sabif-ink: #1a2233;
  --sabif-muted: #5b6472;
  --sabif-border: #e1e6ef;
  --sabif-bg: #f4f7fb;
  --header-h: 64px;
  --shadow-sm: 0 1px 3px rgba(16, 24, 48, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 24, 48, 0.12);
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body.sabif {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--sabif-ink);
  background: var(--sabif-bg);
  -webkit-font-smoothing: antialiased;
}

.sabif a { color: inherit; }

img { max-width: 100%; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- Top emergency strip ---------------- */
.emergency-strip {
  background: var(--sabif-red);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
}
.emergency-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 20px;
  text-align: center;
}
.emergency-strip strong { font-size: 15px; letter-spacing: .5px; }

/* ---------------- Header (logos + title) ---------------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--sabif-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.site-header .brand-logo { flex: 0 0 auto; display: flex; align-items: center; }
.site-header .brand-logo img { height: 76px; width: auto; display: block; }
.site-header .brand-text {
  flex: 1 1 auto;
  text-align: center;
  min-width: 0;
}
.site-header .brand-text .ministry {
  display: block;
  font-weight: 800;
  letter-spacing: .4px;
  color: var(--sabif-blue-dark);
  font-size: clamp(13px, 1.6vw, 16px);
  text-transform: uppercase;
}
.site-header .brand-text .service-name {
  display: block;
  font-weight: 900;
  color: var(--sabif-blue-dark);
  font-size: clamp(16px, 2.4vw, 24px);
  line-height: 1.25;
  margin-top: 2px;
}
.site-header .brand-text .motto {
  display: block;
  margin-top: 6px;
  font-style: italic;
  color: var(--sabif-blue);
  font-size: clamp(11px, 1.3vw, 14px);
}

/* ---------------- Sticky navigation ---------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: linear-gradient(180deg, var(--sabif-blue) 0%, var(--sabif-blue-dark) 100%);
  box-shadow: var(--shadow-sm);
}
.site-nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav .nav-brand {
  display: none;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
}
.site-nav .nav-brand img { height: 30px; width: auto; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  height: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list li { flex: 0 0 auto; height: 100%; }
.nav-list a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: background .2s, border-color .2s, color .2s;
}
.nav-list a:hover,
.nav-list a:focus-visible {
  background: rgba(255,255,255,.08);
  border-bottom-color: var(--sabif-orange);
}
.nav-list a.active {
  border-bottom-color: var(--sabif-orange);
  color: var(--sabif-orange);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  order: 2;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 32, .45);
  z-index: 999;
}

/* ---------------- Mobile: menu becomes a right-hand drawer ---------------- */
@media (max-width: 880px) {
  .site-header .brand-logo img { height: 52px; }
  .site-header .container { gap: 12px; }

  .site-nav .nav-brand { display: flex; }
  .nav-toggle { display: flex; }

  .nav-list {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: var(--sabif-navy);
    padding: calc(var(--header-h) + 12px) 0 24px;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,.25);
    overflow-y: auto;
  }
  .nav-list.is-open { transform: translateX(0); }
  .nav-list li { height: auto; width: 100%; }
  .nav-list a {
    height: auto;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    border-left: 3px solid transparent;
  }
  .nav-list a:hover, .nav-list a.active {
    border-bottom-color: rgba(255,255,255,.08);
    border-left-color: var(--sabif-orange);
    background: rgba(255,255,255,.06);
  }
  .nav-scrim.is-open { display: block; }
}

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(135deg, var(--sabif-blue-dark) 0%, var(--sabif-blue) 55%, #1478c4 100%);
  color: #fff;
  padding: 48px 0 56px;
}
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(24px, 3.4vw, 38px); line-height: 1.2; margin: 0 0 14px; font-weight: 800; }
.hero p { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,.92); margin: 0 0 22px; max-width: 60ch; }
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .hero-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.hero .hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sabif-orange); color: #1a1200; box-shadow: 0 6px 18px rgba(255,142,0,.35); }
.btn-primary:hover { background: #ffa229; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-ghost { background: #fff; color: var(--sabif-blue-dark); }
.btn-ghost:hover { background: var(--sabif-blue-light); }

/* ---------------- Marquee / announcements ---------------- */
.announce-bar {
  background: #fff3e0;
  border-top: 1px solid #ffdfae;
  border-bottom: 1px solid #ffdfae;
  overflow: hidden;
}
.announce-bar .marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  padding: 10px 0;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.announce-bar a { color: var(--sabif-red); font-weight: 700; text-decoration: none; font-size: 14px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .announce-bar .marquee-track { animation: none; }
}

/* ---------------- Sections / cards ---------------- */
.section { padding: 48px 0; }
.section-title {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  color: var(--sabif-blue-dark);
  margin: 0 0 6px;
}
.section-sub { color: var(--sabif-muted); margin: 0 0 28px; max-width: 70ch; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--sabif-border);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: var(--sabif-ink);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--sabif-blue); }
.card .card-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--sabif-blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.card .card-icon.card-icon-lg { width: 64px; height: 64px; border-radius: 14px; }
.card .card-icon img { max-width: 68%; max-height: 68%; object-fit: contain; }
.card h3 { margin: 0; font-size: 16px; font-weight: 700; }
.card p { margin: 0; font-size: 14px; color: var(--sabif-muted); line-height: 1.55; }

/* ---------------- Breadcrumbs ---------------- */
.breadcrumbs {
  font-size: 13px;
  color: rgba(255,255,255,.85);
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; color: #fff; }
.breadcrumbs span { color: #fff; font-weight: 600; }
.breadcrumbs .crumb-sep { color: rgba(255,255,255,.5); font-weight: 400; }
.page-content .breadcrumbs { color: var(--sabif-muted); margin-bottom: 18px; }
.page-content .breadcrumbs a { color: var(--sabif-blue); }
.page-content .breadcrumbs span { color: var(--sabif-ink); }

/* ---------------- Notice banner ---------------- */
.notice-banner {
  background: #fff3e0;
  border: 1px solid #ffdfae;
  border-left: 5px solid var(--sabif-orange);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.7;
  color: #6b4400;
}
.notice-banner strong.notice-title {
  display: block;
  color: var(--sabif-red);
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ---------------- Directory / file listings ---------------- */
.file-list-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--sabif-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
table.sortable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 480px;
}
table.sortable thead th {
  background: linear-gradient(180deg, var(--sabif-blue) 0%, var(--sabif-blue-dark) 100%);
  color: #fff;
  text-align: left;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}
table.sortable tbody td { padding: 0; border-bottom: 1px solid var(--sabif-border); }
table.sortable tbody tr:last-child td { border-bottom: none; }
table.sortable tbody tr:nth-of-type(odd) { background: #fafbfd; }
table.sortable tbody tr:hover { background: var(--sabif-blue-light); }
table.sortable tbody td a {
  display: block;
  padding: 10px 16px;
  color: var(--sabif-ink);
  text-decoration: none;
}
table.sortable tbody td:first-of-type a::before {
  content: "📄";
  margin-right: 8px;
}
table.sortable tbody tr.dir td:first-of-type a::before {
  content: "📁";
}
table.sortable tbody tr.dir td:first-of-type a {
  font-weight: 700;
  color: var(--sabif-blue-dark);
}
table.sortable tbody td:not(:first-of-type) a { color: var(--sabif-muted); font-size: 13px; }

.alert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.alert-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--sabif-border);
  border-left: 5px solid var(--sabif-red);
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--sabif-ink);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.alert-card:hover { border-color: var(--sabif-red); background: #fff5f5; }
.alert-card img { width: 34px; height: 34px; object-fit: contain; flex: 0 0 auto; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  text-align: center;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 16px;
  border: 1px solid var(--sabif-border);
}
.stat-card .num { font-size: 28px; font-weight: 900; color: var(--sabif-blue-dark); }
.stat-card .label { color: var(--sabif-muted); font-size: 13px; margin-top: 4px; }

.section-alt { background: #fff; border-top: 1px solid var(--sabif-border); border-bottom: 1px solid var(--sabif-border); }

/* ---------------- Tabbed sections ---------------- */
.tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 2px solid var(--sabif-border);
  margin-bottom: 28px;
  padding-bottom: 2px;
}
.tab-btn {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--sabif-muted);
  border-radius: 999px 999px 0 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, background .2s, border-color .2s;
}
.tab-btn:hover { color: var(--sabif-blue-dark); background: var(--sabif-blue-light); }
.tab-btn.active { color: var(--sabif-blue-dark); border-bottom-color: var(--sabif-orange); background: var(--sabif-blue-light); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: tabFade .25s ease; }
@keyframes tabFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.tab-panel h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--sabif-blue-dark);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sabif-border);
}
.tab-panel .panel-block { margin-bottom: 32px; }
.tab-panel .panel-block:last-child { margin-bottom: 0; }

/* ---------------- Person cards ---------------- */
.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.person-grid.person-grid-lead { grid-template-columns: minmax(240px, 320px); margin-bottom: 8px; }
.person-card {
  background: #fff;
  border: 1px solid var(--sabif-border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, border-color .2s;
}
.person-card:hover { box-shadow: var(--shadow-md); border-color: var(--sabif-blue); }
.person-card .avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--sabif-blue-light);
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.person-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.person-card .person-info { min-width: 0; }
.person-card .role { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--sabif-muted); font-weight: 700; margin-bottom: 2px; }
.person-card .name { display: block; font-size: 16px; font-weight: 800; color: var(--sabif-ink); margin-bottom: 10px; }
.person-card .person-links { display: flex; flex-wrap: wrap; gap: 8px; }
.person-card .person-links a {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sabif-blue-dark);
  background: var(--sabif-blue-light);
  padding: 5px 10px;
  border-radius: 999px;
  text-decoration: none;
}
.person-card .person-links a:hover { background: var(--sabif-blue); color: #fff; }

/* ---------------- Document lists ---------------- */
.doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.doc-list li { border: 1px solid var(--sabif-border); border-radius: 10px; }
.doc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--sabif-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.doc-list a::before { content: "📄"; flex: 0 0 auto; }
.doc-list a:hover { background: var(--sabif-blue-light); color: var(--sabif-blue-dark); }

/* ---------------- Station cards (substatii, etc.) ---------------- */
.station-card {
  background: #fff;
  border: 1px solid var(--sabif-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}
.station-card .station-head {
  background: linear-gradient(135deg, var(--sabif-blue) 0%, var(--sabif-blue-dark) 100%);
  color: #fff;
  padding: 16px 22px;
  font-size: 17px;
  font-weight: 800;
}
.station-card .station-body { padding: 22px; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.info-item h4 {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--sabif-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.info-item p { margin: 0; font-size: 14px; color: var(--sabif-ink); line-height: 1.6; }
.info-item p a { color: var(--sabif-blue); text-decoration: none; }
.info-item p a:hover { text-decoration: underline; }
.coverage-list { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--sabif-border); display: flex; flex-direction: column; gap: 6px; }
.coverage-list li { font-size: 14px; color: var(--sabif-ink); }
.coverage-list li::before { content: "📍 "; }
.coverage-list b { color: var(--sabif-blue-dark); }

/* ---------------- Timeline (istoric) ---------------- */
.timeline-intro {
  max-width: 70ch;
  color: var(--sabif-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 32px;
}
.timeline { position: relative; padding-left: 28px; margin: 0 0 40px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--sabif-border);
}
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--sabif-orange);
  box-shadow: 0 0 0 3px var(--sabif-blue-light);
}
.timeline-year {
  display: inline-block;
  font-weight: 800;
  color: #fff;
  background: var(--sabif-blue-dark);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .3px;
  margin-bottom: 8px;
}
.timeline-item h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; color: var(--sabif-ink); }
.timeline-item p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.75; color: var(--sabif-ink); }
.timeline-item p:last-child { margin-bottom: 0; }
.timeline-item ul { margin: 0 0 10px; padding-left: 20px; font-size: 14.5px; line-height: 1.75; color: var(--sabif-ink); }
.timeline-quote {
  border-left: 3px solid var(--sabif-orange);
  padding-left: 14px;
  font-style: italic;
  color: var(--sabif-muted);
  margin: 10px 0;
}
.timeline-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: var(--sabif-blue-light);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--sabif-blue-dark);
  font-weight: 700;
  margin: 4px 8px 4px 0;
}

/* ---------------- Legal document reader (legislatie) ---------------- */
.legal-meta {
  background: var(--sabif-blue-light);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 28px;
  font-size: 13.5px;
  color: var(--sabif-ink);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
}
.legal-meta strong { color: var(--sabif-blue-dark); }
.legal-doc { max-width: 78ch; }
.legal-doc h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--sabif-blue-dark);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sabif-border);
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc h3 { font-size: 16.5px; font-weight: 800; color: var(--sabif-blue-dark); margin: 24px 0 10px; }
.legal-doc h4 { font-size: 14.5px; font-weight: 800; color: var(--sabif-ink); margin: 18px 0 8px; text-transform: uppercase; letter-spacing: .3px; }
.legal-doc h5 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: var(--sabif-blue);
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  margin: 20px 0 10px;
}
.legal-doc p { font-size: 14.5px; line-height: 1.75; color: var(--sabif-ink); margin: 0 0 12px; }
.legal-doc p.legal-lit { margin: 0 0 8px; padding-left: 18px; }
.legal-doc p.legal-note {
  font-size: 12.5px;
  color: var(--sabif-muted);
  font-style: italic;
  background: #fafbfd;
  border-left: 3px solid var(--sabif-border);
  padding: 8px 12px;
  margin: 0 0 14px;
  border-radius: 0 6px 6px 0;
}
.source-box {
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--sabif-navy);
  color: rgba(255,255,255,.85);
  border-radius: var(--radius);
  font-size: 14px;
}
.source-box strong { display: block; color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.source-box a { color: #fff; font-weight: 700; text-decoration: underline; }
.source-box a:hover { color: var(--sabif-orange); }
.no-text-notice {
  background: #fff3e0;
  border: 1px solid #ffdfae;
  border-left: 5px solid var(--sabif-orange);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.7;
  color: #6b4400;
}

/* ---------------- Content pages (generic wrapper) ---------------- */
.page-hero {
  background: linear-gradient(135deg, var(--sabif-blue-dark), var(--sabif-blue));
  color: #fff;
  padding: 34px 0;
}
.page-hero h1 { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.page-hero p { margin: 8px 0 0; color: rgba(255,255,255,.9); }
.page-content { background: #fff; }
.page-content .container { padding-top: 32px; padding-bottom: 48px; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--sabif-navy);
  color: rgba(255,255,255,.82);
  margin-top: auto;
  flex-shrink: 0;
}
.footer-top { padding: 48px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.footer-brand img { height: 54px; width: auto; }
.footer-brand h4 { margin: 0 0 6px; color: #fff; font-size: 16px; }
.footer-brand p { margin: 0; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.65); }

.footer-col h5 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 14px;
}
.footer-col a:hover { color: var(--sabif-orange); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,.8); }
.footer-contact .ico { flex: 0 0 auto; opacity: .85; }

.footer-112 {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 12px 14px;
  text-decoration: none;
  margin-top: 16px;
}
.footer-112 img { width: 46px; height: 46px; border-radius: 10px; flex: 0 0 auto; }
.footer-112 .t1 { color: #fff; font-weight: 800; font-size: 13px; line-height: 1.3; }
.footer-112 .t2 { color: rgba(255,255,255,.65); font-size: 11.5px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 16px 0;
  font-size: 12.5px;
  color: rgba(255,255,255,.55);
}
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.footer-bottom .legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero .hero-media { order: -1; max-height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .site-header .container { flex-wrap: wrap; justify-content: center; text-align: center; }
  .site-header .brand-text { order: 3; flex-basis: 100%; }
}
