/*
 * Footer in stilul old.igm.gov.md (blocuri create de import/create_footer_blocks.php).
 * Coloanele sunt blocuri cu clasa igm-footer-col; restul blocurilor din regiune (licenta, steag) ocupa tot randul.
 * Iconitele sunt masti SVG (.igm-fi--*), deci preiau culoarea textului.
 */
footer:has(.igm-footer-col) {
  --igm-footer-bg: color-mix(in srgb, var(--bs-primary, #0f4b91) 22%, #000);
  --igm-footer-title: color-mix(in srgb, var(--bs-primary, #0f4b91) 35%, #8cc4ff);
  --igm-footer-text: rgba(255, 255, 255, .92);
  background: var(--igm-footer-bg);
  color: var(--igm-footer-text);
}

.region-footer:has(> .igm-footer-col) {
  display: grid;
  grid-template-columns: minmax(11rem, .85fr) 1fr 1.15fr 1.15fr 1.05fr;
  column-gap: 2rem;
  padding-top: 2.5rem;
}

.region-footer:has(> .igm-footer-col) > * {
  min-width: 0;
}

.region-footer:has(> .igm-footer-col) > :not(.igm-footer-col) {
  grid-column: 1 / -1;
}

.igm-footer-col {
  padding-bottom: 2rem;
  font-size: .85rem;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: break-word;
}

.igm-footer-col a {
  color: var(--igm-footer-text);
  text-decoration: none;
}

.igm-footer-col a:hover,
.igm-footer-col a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.igm-footer-col a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.igm-footer-col p {
  margin: 0 0 1rem;
}

.igm-footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.igm-footer__title {
  margin: 0 0 1.25rem;
  color: var(--igm-footer-title);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.igm-footer__sub {
  margin: 1.25rem 0 .35rem;
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
}

.igm-footer__title + .igm-footer__sub {
  margin-top: 0;
}

.igm-footer__links li + li {
  margin-top: .85rem;
}

.igm-footer-col .igm-footer__contact {
  margin-bottom: 1rem;
}

.igm-footer__contact li {
  position: relative;
  padding-left: 1.5rem;
}

.igm-footer__contact li + li {
  margin-top: .45rem;
}

.igm-fi::before {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: var(--igm-fi) center / contain no-repeat;
  mask: var(--igm-fi) center / contain no-repeat;
}

.igm-footer__contact .igm-fi::before {
  position: absolute;
  top: .2em;
  left: 0;
  width: .9rem;
  height: .9rem;
}

/* Coloana 1: logo, retele, link-uri subliniate. */
.igm-footer__logo img {
  display: block;
  width: 64px;
  height: auto;
  margin-bottom: 1.5rem;
}

.igm-footer-col .igm-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.igm-footer__social a {
  display: block;
  line-height: 0;
  opacity: .85;
  transition: opacity .2s, transform .2s;
}

.igm-footer__social a:hover,
.igm-footer__social a:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
}

.igm-footer__social .igm-fi::before {
  width: 1.25rem;
  height: 1.25rem;
}

.igm-footer-col--brand .igm-footer__links a {
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* Blocul cu licenta si STISC, pe fundal inchis. */
footer:has(.igm-footer-col) .footer-info {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

footer:has(.igm-footer-col) .footer-info.site-branding > a {
  display: none; /* logo-ul e deja in prima coloana */
}

footer:has(.igm-footer-col) .footer-info p,
footer:has(.igm-footer-col) .footer-info a {
  color: rgba(255, 255, 255, .7);
}

footer:has(.igm-footer-col) .footer-info a:hover {
  color: #fff;
}

@media (max-width: 1199px) {
  .region-footer:has(> .igm-footer-col) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .region-footer:has(> .igm-footer-col) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.25rem;
  }
  .igm-footer-col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 479px) {
  .region-footer:has(> .igm-footer-col) {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media print {
  footer:has(.igm-footer-col) { background: none; color: #000; }
  .igm-footer-col a { color: #000; }
  .igm-footer__social, .igm-footer__logo { display: none; }
}

/* Iconite (Bootstrap Icons, MIT) */
.igm-fi--phone { --igm-fi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.885.511a1.745 1.745 0 0 1 2.61.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.68.68 0 0 0 .178.643l2.457 2.457a.68.68 0 0 0 .644.178l2.189-.547a1.75 1.75 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.6 18.6 0 0 1-7.01-4.42 18.6 18.6 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877z'/%3E%3C/svg%3E"); }
.igm-fi--mobile { --igm-fi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zm6 11a1 1 0 1 0-2 0 1 1 0 0 0 2 0'/%3E%3C/svg%3E"); }
.igm-fi--pin { --igm-fi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 16s6-5.686 6-10A6 6 0 0 0 2 6c0 4.314 6 10 6 10m0-7a3 3 0 1 1 0-6 3 3 0 0 1 0 6'/%3E%3C/svg%3E"); }
.igm-fi--mail { --igm-fi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414zM0 4.697v7.104l5.803-3.558zM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586zm3.436-.586L16 11.801V4.697z'/%3E%3C/svg%3E"); }
.igm-fi--facebook { --igm-fi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951'/%3E%3C/svg%3E"); }
.igm-fi--youtube { --igm-fi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8.051 1.999h.089c.822.003 4.987.033 6.11.335a2.01 2.01 0 0 1 1.415 1.42c.101.38.172.883.22 1.402l.01.104.022.26.008.104c.065.914.073 1.77.074 1.957v.075c-.001.194-.01 1.108-.082 2.06l-.008.105-.009.104c-.05.572-.124 1.14-.235 1.558a2.01 2.01 0 0 1-1.415 1.42c-1.16.312-5.569.334-6.18.335h-.142c-.309 0-1.587-.006-2.927-.052l-.17-.006-.087-.004-.171-.007-.171-.007c-1.11-.049-2.167-.128-2.654-.26a2.01 2.01 0 0 1-1.415-1.419c-.111-.417-.185-.986-.235-1.558L.09 9.82l-.008-.104A31 31 0 0 1 0 7.68v-.123c.002-.215.01-.958.064-1.778l.007-.103.003-.052.008-.104.022-.26.01-.104c.048-.519.119-1.023.22-1.402a2.01 2.01 0 0 1 1.415-1.42c.487-.13 1.544-.21 2.654-.26l.17-.007.172-.006.086-.003.171-.007A100 100 0 0 1 7.858 2zM6.4 5.209v4.818l4.157-2.408z'/%3E%3C/svg%3E"); }
.igm-fi--instagram { --igm-fi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.9 3.9 0 0 0-1.417.923A3.9 3.9 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.9 3.9 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.9 3.9 0 0 0-.923-1.417A3.9 3.9 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599s.453.546.598.92c.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.5 2.5 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.5 2.5 0 0 1-.92-.598 2.5 2.5 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233s.008-2.388.046-3.231c.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92s.546-.453.92-.598c.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92m-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217m0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334'/%3E%3C/svg%3E"); }
.igm-fi--telegram { --igm-fi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M8.287 5.906q-1.168.486-4.666 2.01-.567.225-.595.442c-.03.243.275.339.69.47l.175.055c.408.133.958.288 1.243.294q.39.01.868-.32 3.269-2.206 3.374-2.23c.05-.012.12-.026.166.016s.042.12.037.141c-.03.129-1.227 1.241-1.846 1.817-.193.18-.33.307-.358.336a8 8 0 0 1-.188.186c-.38.366-.664.64.015 1.088.327.216.589.393.85.571.284.194.568.387.936.629q.14.092.27.187c.331.236.63.448.997.414.214-.02.435-.22.547-.82.265-1.417.786-4.486.906-5.751a1.4 1.4 0 0 0-.013-.315.34.34 0 0 0-.114-.217.53.53 0 0 0-.31-.093c-.3.005-.763.166-2.984 1.09'/%3E%3C/svg%3E"); }
.igm-fi--map { --igm-fi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M15.817.113A.5.5 0 0 1 16 .5v14a.5.5 0 0 1-.402.49l-5 1a.5.5 0 0 1-.196 0L5.5 15.01l-4.902.98A.5.5 0 0 1 0 15.5v-14a.5.5 0 0 1 .402-.49l5-1a.5.5 0 0 1 .196 0L10.5.99l4.902-.98a.5.5 0 0 1 .415.103M10 1.91l-4-.8v12.98l4 .8zm1 12.98 4-.8V1.11l-4 .8zm-6-.8V1.11l-4 .8v12.98z'/%3E%3C/svg%3E"); }
