/* ════════════════════════════════════════════════════════════
   AB43 FOOTER — Ultra-Premium v2.0
   ARTBuilding | EMPIREX Tech
   Author: Ilisia Raul Codruț
   ════════════════════════════════════════════════════════════ */

/* ── Information page footer border ── */
.information-information footer,
.information footer {
  margin-top: 0;
  border-top: solid 1px #56ad56d4;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap');

/* ── RESET ── */
.ab43-ft-services *, .ab43-ft-main *, .ab43-ft-bottom * {
  box-sizing: border-box;
}

/* ── CSS VARIABLES ── */
.ab43-ft-services,
.ab43-ft-main,
.ab43-ft-bottom {
  --ft-blue:      #0a2144;
  --ft-blue-mid:  #0e2d5c;
  --ft-green:     #56ad56;
  --ft-green-dk:  #3d8f3d;
  --ft-white:     #ffffff;
  --ft-muted:     rgba(255,255,255,0.58);
  --ft-border:    rgba(255,255,255,0.10);
  --ft-tr:        0.22s ease;
}

/* ══════════════════════════════════════════════════════════
   1. SERVICES BAR
   ══════════════════════════════════════════════════════════ */
.ab43-ft-services {
  background: var(--ft-blue-mid);
  border-top: 3px solid var(--ft-green);
  padding: 0;
  width: 100%;
}
.ab43-ft-services-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: stretch;
  min-height: 80px;
}
.ab43-ft-svc {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 13px;
  padding: 14px 20px;
  border-right: 1px solid var(--ft-border);
  transition: background var(--ft-tr);
  cursor: default;
}
.ab43-ft-svc:last-child { border-right: none; }
.ab43-ft-svc:hover { background: rgba(255,255,255,0.05); }

.ab43-ft-svc-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: rgba(86,173,86,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--ft-green);
  transition: background var(--ft-tr), transform var(--ft-tr), color var(--ft-tr);
}
.ab43-ft-svc:hover .ab43-ft-svc-icon {
  background: var(--ft-green);
  color: #fff;
  transform: scale(1.08);
}
.ab43-ft-svc-title {
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ft-white);
  line-height: 1.2;
  display: block;
  margin-bottom: 2px;
}
.ab43-ft-svc-sub {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--ft-muted);
  line-height: 1.3;
  display: block;
}

/* ══════════════════════════════════════════════════════════
   2. MAIN FOOTER BODY
   ══════════════════════════════════════════════════════════ */
.ab43-ft-main {
  position: relative;
  background-color: var(--ft-blue);
  background-image: url('/image/footer-art.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 52px 0 40px;
  width: 100%;
  overflow: hidden;
}
/* Dark overlay */
.ab43-ft-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(10, 33, 68, 0.97) 0%,
    rgba(10, 33, 68, 0.90) 55%,
    rgba(10, 33, 68, 0.82) 100%);
  z-index: 0;
}
.ab43-ft-main-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr;
  gap: 36px 28px;
  align-items: start;
}

/* ── About column ── */
.ab43-ft-about-logo {
  display: inline-block;
  margin-bottom: 16px;
  text-decoration: none;
}
.ab43-ft-about-logo img {
  height: 50px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.ab43-ft-about-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ft-muted);
  line-height: 1.7;
  margin: 0 0 18px;
}
.ab43-ft-cert {
  display: inline-block;
  margin-bottom: 18px;
}
.ab43-ft-cert img {
  height: 48px;
  width: auto;
  border-radius: 6px;
  opacity: 0.8;
  transition: opacity var(--ft-tr);
}
.ab43-ft-cert:hover img { opacity: 1; }

.ab43-ft-address {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.ab43-ft-address li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  text-align: left;
  margin-bottom: 9px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: var(--ft-muted);
  line-height: 1.5;
}
.ab43-ft-address li i {
  color: var(--ft-green);
  font-size: 13px;
  margin-top: 3px;
  flex-shrink: 0;
}
.ab43-ft-address a {
  color: var(--ft-muted);
  text-decoration: none;
  transition: color var(--ft-tr);
}
.ab43-ft-address a:hover { color: var(--ft-white); }

/* Social icons */
.ab43-ft-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ab43-ft-socials a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--ft-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  text-decoration: none;
  transition: background var(--ft-tr), color var(--ft-tr), transform var(--ft-tr);
}
.ab43-ft-socials a:hover {
  background: var(--ft-green);
  color: #fff;
  transform: translateY(-2px);
  border-color: var(--ft-green);
}

/* ── Link columns ── */
.ab43-ft-col-title {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--ft-white);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ft-green);
  display: inline-block;
}
.ab43-ft-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ab43-ft-links li { margin-bottom: 8px; }
.ab43-ft-links a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ft-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0;
  transition: color var(--ft-tr), padding-left var(--ft-tr);
  padding-left: 0;
}
.ab43-ft-links a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 2px;
  background: var(--ft-green);
  border-radius: 2px;
  margin-right: 0;
  transition: width var(--ft-tr), margin-right var(--ft-tr);
  flex-shrink: 0;
  vertical-align: middle;
}
.ab43-ft-links a:hover {
  color: var(--ft-white);
  padding-left: 4px;
}
.ab43-ft-links a:hover::before {
  width: 8px;
  margin-right: 6px;
}

/* ── Brand column ── */
.ab43-ft-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.ab43-ft-brand-logo {
  max-width: 150px;
  width: 100%;
  border-radius: 8px;
  opacity: 0.90;
  transition: opacity var(--ft-tr);
}
.ab43-ft-brand-logo:hover { opacity: 1; }
.ab43-ft-blog-link {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ft-green);
  text-decoration: none;
  display: block;
  transition: color var(--ft-tr), transform var(--ft-tr);
}
.ab43-ft-blog-link:hover { color: #7fd47f; transform: translateY(-1px); }
.ab43-ft-daikin-badge {
  max-width: 140px;
  width: 100%;
  border-radius: 0;
  opacity: 0.82;
  transition: opacity var(--ft-tr), transform var(--ft-tr);
  display: block;
  height: auto;
  object-fit: contain;
}
.ab43-ft-daikin-badge:hover { opacity: 1; transform: scale(1.03); }

/* ══════════════════════════════════════════════════════════
   3. BOTTOM COPYRIGHT BAR
   ══════════════════════════════════════════════════════════ */
.ab43-ft-bottom {
  background: #060f22;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 28px 0;
  width: 100%;
}
.ab43-ft-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.ab43-ft-bottom-layout {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px 36px;
  align-items: center;
}
.ab43-ft-olivia {
  background: white;
  padding: 3px;
  border-radius: 15px;
}
.ab43-ft-olivia a { display: block; text-decoration: none; }
.ab43-ft-olivia img {
  height: 60px;
  width: auto;
  opacity: 0.80;
  transition: opacity var(--ft-tr);
  display: block;
  object-fit: contain;
}
.ab43-ft-olivia img:hover { opacity: 1; }

.ab43-ft-bottom-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
.ab43-ft-copy {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  color: rgba(255,255,255,0.45);
  margin: 0;
  line-height: 1.5;
}
.ab43-ft-copy-links a {
  color: rgba(255,255,255,0.40);
  text-decoration: none;
  font-size: 11.5px;
  margin: 0 4px;
  transition: color var(--ft-tr);
}
.ab43-ft-copy-links a:hover { color: var(--ft-green); }

/* Flags */
.ab43-ft-flags {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.ab43-ft-flags a { display: inline-block; text-decoration: none; }
.ab43-ft-flags a img {
  height: 16px;
  width: auto;
  border-radius: 2px;
  opacity: 0.65;
  display: block;
  transition: opacity var(--ft-tr), transform var(--ft-tr);
}
.ab43-ft-flags a:hover img { opacity: 1; transform: scale(1.15); }

/* Payment logos */
.ab43-ft-logos {
  display: flex;
  align-items: center;
  background: white;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  padding: 4px;
  border-radius: 5px;
}
.ab43-ft-logos img {
  height: 26px;
  width: auto;
  opacity: 1;
  border-radius: 4px;
  transition: opacity var(--ft-tr);
  display: block;
  object-fit: contain;
}
.ab43-ft-logos img:hover { opacity: 1; }

/* Badge logos (ANPC etc) */
.ab43-ft-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}
.ab43-ft-badges a { display: inline-block; text-decoration: none; }
.ab43-ft-badges a img {
  height: 36px;
  width: auto;
  opacity: 0.68;
  border-radius: 4px;
  transition: opacity var(--ft-tr), transform var(--ft-tr);
  display: block;
}
.ab43-ft-badges a:hover img { opacity: 1; transform: translateY(-2px); }

/* ══════════════════════════════════════════════════════════
   4. RESPONSIVE
   ══════════════════════════════════════════════════════════ */

/* 1200px */
@media (max-width: 1200px) {
  .ab43-ft-main-inner {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px 20px;
  }
  .ab43-ft-brand { grid-column: 4; }
}

/* 992px – TABLET */
@media (max-width: 992px) {
  /* Services bar: 2 per row, 5th centered */
  .ab43-ft-services-inner {
    flex-wrap: wrap;
    padding: 0 20px;
  }
  .ab43-ft-svc {
    flex: 0 0 50%;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    border-right: none;
    border-bottom: 1px solid var(--ft-border);
    border-left: none;
    padding: 12px 14px;
    justify-content: flex-start;
  }
  /* odd items get right border (divider between col 1 and col 2) */
  .ab43-ft-svc:nth-child(odd) {
    border-right: 1px solid var(--ft-border);
  }
  /* rows 1+2 get bottom border; rows 4+5 (last row) don't */
  .ab43-ft-svc:nth-child(4),
  .ab43-ft-svc:nth-child(5) { border-bottom: none; }
  /* 5th item: full width, left-aligned (consistent cu celelalte) */
  .ab43-ft-svc:nth-child(5) {
    flex: 0 0 100%;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    border-right: none;
    border-left: none;
    border-top: 1px solid var(--ft-border);
    justify-content: flex-start;
    padding-left: 14px;
  }

  .ab43-ft-main-inner {
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0 20px;
    gap: 28px 20px;
  }
  .ab43-ft-about {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    align-items: start;
  }
  .ab43-ft-about-logo { grid-column: 1; }
  .ab43-ft-about-text { grid-column: 2; }
  .ab43-ft-cert       { grid-column: 1; }
  .ab43-ft-address    { grid-column: 2; }
  .ab43-ft-socials    { grid-column: 1 / -1; }
  .ab43-ft-brand { grid-column: 3; }
}

/* 768px – MOBILE */
@media (max-width: 768px) {
  .ab43-ft-svc {
    flex: 0 0 100%;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    border-right: none !important;
    border-bottom: 1px solid var(--ft-border);
    padding: 10px 16px;
    justify-content: flex-start;
  }
  .ab43-ft-svc:last-child { border-bottom: none; }

  .ab43-ft-main { padding: 36px 0 28px; }
  .ab43-ft-main-inner {
    grid-template-columns: 1fr 1fr;
    padding: 0 16px;
    gap: 24px 16px;
  }
  .ab43-ft-about {
    grid-column: 1 / -1;
    display: block;
  }
  .ab43-ft-brand {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .ab43-ft-bottom-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }
  .ab43-ft-olivia { display: flex; justify-content: center; }
  .ab43-ft-olivia img { height: 48px; }
  .ab43-ft-bottom-inner { padding: 0 16px; }
}

/* 480px – SMALL MOBILE */
@media (max-width: 480px) {
  .ab43-ft-services-inner { padding: 0 12px; }
  .ab43-ft-main-inner {
    padding: 0 16px;
  }
  .ab43-ft-brand { flex-direction: column; align-items: center; }
  .ab43-ft-logos img { height: 20px; }
  .ab43-ft-badges a img { height: 28px; }
  .ab43-ft-bottom-inner { padding: 0 12px; }
  .ab43-ft-bottom { padding: 20px 0; }
}

/* 342px – EXTRA SMALL MOBILE */
@media (max-width: 342px) {
  .ab43-ft-main-inner {
    grid-template-columns: 1fr;
  }
}

/* ── MFOOT: nu acoperi footer-ul, centrat sub 470px ── */
/* Adaugă spațiu jos la footer bottom ca să nu fie acoperit de mfoot */
@media (max-width: 769px) {
  .ab43-ft-bottom {
    padding-bottom: 72px; /* δ = height mfoot (52px) + 20px buffer */
  }
}

/* Sub 470px: centralizează contentul din mfoot */
@media (max-width: 470px) {
  .ab43-mfoot {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
  }
  .ab43-mf-half {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .ab43-mf-half a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 13px;
    font-weight: 600;
  }
}

/* ══════════════════════════════════════════════════════════
   5. OVERRIDE old theme footer — ascunde footer-bottom vechi
   ══════════════════════════════════════════════════════════ */
.footer-container .footer-bottom {
  display: none !important;
}
.footer-container .footer-main {
  display: none !important;
}
