/* =========================================================
   EUROTRON FOOTER, CTA & ADDRESS POPUP
   Save as /wp-content/themes/YOUR-THEME/css/ei-footer.css
   (loaded automatically by inc/ei-menu.php, after ei-header.css,
   which provides the colour variables and .ei-wrap / .ei-btn)
   ========================================================= */

/* ---------- Scoped resets ---------- */
.ei-cta, .ei-footer, .ei-popup {
  font-family: var(--ei-font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.ei-cta *, .ei-footer *, .ei-popup *,
.ei-cta *::before, .ei-footer *::before, .ei-popup *::before,
.ei-cta *::after, .ei-footer *::after, .ei-popup *::after { box-sizing: border-box; }
.ei-cta p, .ei-footer p, .ei-popup p { margin: 0; }
.ei-footer ul, .ei-popup ul { list-style: none; margin: 0; padding: 0; }
.ei-footer li, .ei-popup li { margin: 0; padding: 0; }
.ei-cta a, .ei-footer a, .ei-popup a { text-decoration: none; }
.ei-footer img { max-width: 100%; display: block; }
.ei-popup button { font-family: inherit; cursor: pointer; border: 0; background: none; margin: 0; padding: 0; color: inherit; box-shadow: none; }

/* ---------- Buttons ---------- */
.ei-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: var(--ei-radius); font-weight: 600; font-size: 14.5px; line-height: 1; transition: background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.ei-btn--primary, .ei-popup .ei-btn--primary { background: var(--ei-green); color: #fff; }
.ei-btn--primary:hover, .ei-popup .ei-btn--primary:hover { background: var(--ei-green-dark); color: #fff; }
.ei-btn--outline { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.ei-btn--outline:hover { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }

/* ---------- CTA ---------- */
.ei-cta { background: var(--ei-black); color: #a9afac; font-size: 15px; }
.ei-cta .ei-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 52px; padding-bottom: 52px; flex-wrap: wrap; }
.ei-cta__title { color: #fff; font-size: 24px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; margin-bottom: 4px !important; }
.ei-cta__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.ei-footer { background: var(--ei-black); color: #a9afac; font-size: 14.5px; border-top: 1px solid rgba(255,255,255,.08); }
.ei-footer a { color: inherit; }
.ei-footer__main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 48px; padding-top: 56px; padding-bottom: 56px; }
.ei-footer__logo { display: inline-block; margin-bottom: 20px; }
.ei-footer__logo img { height: 46px; width: auto; max-width: 100%; object-fit: contain; }
.ei-footer__brand p { max-width: 340px; margin-bottom: 22px; line-height: 1.7; }
.ei-footer address { font-style: normal; display: flex; gap: 12px; line-height: 1.7; margin: 0; }
.ei-footer address svg.ei-i { color: var(--ei-green); margin-top: 4px; }
.ei-footer__title { color: #fff; font-size: 15px; margin-bottom: 18px !important; font-weight: 700; }
.ei-footer ul { display: grid; gap: 11px; }
.ei-footer ul a { transition: color .2s; }
.ei-footer ul a:hover { color: var(--ei-green); }
.ei-footer__contact li { display: flex; align-items: center; gap: 12px; }
.ei-footer__contact svg.ei-i { color: var(--ei-green); }
.ei-footer__contact a { color: #fff; font-weight: 600; }

.ei-footer .ei-footer__social { display: flex; gap: 8px; margin-top: 22px; }
.ei-footer__social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18); transition: background .2s, box-shadow .2s; }
.ei-footer__social a:hover { background: var(--ei-green); box-shadow: none; color: #fff; }
.ei-footer__social svg.ei-i { width: 17px; height: 17px; }

.ei-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.ei-footer__bottom .ei-wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.ei-footer__legal { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.ei-footer__legal a:hover, .ei-footer__made a:hover { color: #fff; }
.ei-footer__made a { color: #fff; font-weight: 600; }

/* ---------- Address popup ---------- */
.ei-popup { position: fixed; inset: 0; z-index: 100002; background: rgba(13,15,14,.6); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .25s; }
.ei-popup[hidden] { display: none; }
.ei-popup.is-open { opacity: 1; }
.ei-popup__box { background: #fff; width: 100%; max-width: 480px; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(13,15,14,.25); transform: translateY(8px); transition: transform .25s; }
.ei-popup.is-open .ei-popup__box { transform: none; }
.ei-popup__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--ei-line); }
.ei-popup__title { font-size: 18px; font-weight: 700; color: var(--ei-ink); }
.ei-popup__close { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--ei-ink); transition: background .2s; }
.ei-popup__close:hover, .ei-popup__close:focus-visible { background: var(--ei-surface); }
.ei-popup__body { padding: 22px; color: var(--ei-text); font-size: 15px; }
.ei-popup__alert { display: flex; gap: 10px; align-items: flex-start; background: var(--ei-green-tint); color: var(--ei-green-dark); border-radius: 8px; padding: 12px 14px; margin-bottom: 18px !important; font-weight: 500; font-size: 14px; line-height: 1.5; }
.ei-popup__alert svg.ei-i { margin-top: 1px; }
.ei-popup address { font-style: normal; line-height: 1.7; margin: 0 0 18px; color: var(--ei-ink); }
.ei-popup__contact { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--ei-line); margin-bottom: 20px !important; }
.ei-popup__contact li { display: flex; align-items: center; gap: 10px; }
.ei-popup__contact svg.ei-i { color: var(--ei-green); }
.ei-popup__contact a { color: var(--ei-ink); font-weight: 600; }
.ei-popup__contact a:hover { color: var(--ei-green-dark); }
.ei-popup__ok { width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .ei-footer__main { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 620px) {
  .ei-cta .ei-wrap { padding-top: 40px; padding-bottom: 40px; }
  .ei-cta__title { font-size: 20px; }
  .ei-cta__btns, .ei-cta__btns .ei-btn { width: 100%; }
  .ei-footer__main { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; padding-bottom: 44px; }
  .ei-footer__bottom .ei-wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .ei-popup, .ei-popup__box { transition: none; }
}