/* ==========================================================================
   Mokinkis footer v2 — deep navy, the cream logo on top, gold section labels,
   contacts first, the information links in two columns, payment methods on a
   white plate. Content still comes from the WordPress footer widgets; this
   file only restyles them. Its width rules live in header-v2.css.
   ========================================================================== */

body #main-footer {
  background-color: #111a28 !important;
  color: rgba(243, 236, 225, .82);
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- layout ---------- */
body #main-footer #footer-widgets {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 8px 56px;
  padding: 52px 0 34px !important;
}
body #main-footer #footer-widgets::after { display: none; }
body #main-footer #footer-widgets::before {
  content: "";
  grid-column: 1 / -1;
  order: -1;
  display: block;
  height: 38px;
  margin-bottom: 30px;
  background: url("../img/brand/logo-cream.png") left center / auto 100% no-repeat;
}
body #main-footer #footer-widgets .footer-widget {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}
body #main-footer #footer-widgets .footer-widget:empty { display: none; }
/* contacts and opening hours first, company details second, links last */
body #main-footer #footer-widgets .footer-widget:nth-child(1) { order: 2; }
body #main-footer #footer-widgets .footer-widget:nth-child(2) { order: 1; }
body #main-footer #footer-widgets .footer-widget:nth-child(3) { order: 3; }
body #main-footer #footer-widgets .footer-widget .et_pb_widget { margin-bottom: 26px !important; }
body #main-footer #footer-widgets .fwidget.widget_block:not(:has(*)) { display: none; }
body #main-footer #footer-widgets .footer-widget { text-align: left; } /* footer.css centres the first column on phones */

/* ---------- type ---------- */
body #main-footer .footer-widget h4.title {
  margin: 0 0 12px;
  padding: 0;
  font: 700 12px/1.3 Montserrat, Helvetica, Arial, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #c39d63 !important;
}
body #main-footer .footer-widget,
body #main-footer .footer-widget .textwidget,
body #main-footer .footer-widget .textwidget p,
body #main-footer .footer-widget li {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
  color: rgba(243, 236, 225, .82);
}
body #main-footer #footer-widgets .footer-widget .textwidget p { padding-bottom: 0; }
body #main-footer .footer-widget a,
body #main-footer #footer-widgets .footer-widget li a {
  color: #f3ece1 !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}
body #main-footer .footer-widget a:hover,
body #main-footer #footer-widgets .footer-widget li a:hover { color: #c39d63 !important; opacity: 1; }

/* ---------- information links: two columns, no arrows or shifts ---------- */
body #main-footer #footer-widgets .widget_nav_menu ul.menu { columns: 2; column-gap: 32px; }
body #main-footer #footer-widgets .footer-widget .widget_nav_menu li {
  display: block;
  padding: 0 0 9px;
  margin: 0;
  border: 0;
  line-height: 1.45;
  break-inside: avoid;
}
body #main-footer #footer-widgets .footer-widget .widget_nav_menu li a:before { display: none; }
body #main-footer #footer-widgets .footer-widget .widget_nav_menu li a:hover,
body #main-footer #footer-widgets .footer-widget .widget_nav_menu li a:focus,
body #main-footer #footer-widgets .footer-widget .widget_nav_menu li.current-menu-item a {
  padding-left: 0 !important;
  font-weight: 500;
}
body #main-footer #footer-widgets .footer-widget .widget_nav_menu li.current-menu-item a { color: #c39d63 !important; }

/* ---------- payment methods ---------- */
body #main-footer .widget_media_image a { display: inline-block; pointer-events: none; }
body #main-footer .widget_media_image img {
  display: block;
  width: 100%;
  max-width: 300px !important;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
}

/* ---------- bottom bar ---------- */
body #main-footer #footer-bottom {
  padding: 14px 0;
  background-color: #0b111b !important;
  border-top: 1px solid rgba(243, 236, 225, .08);
}
body #main-footer #footer-bottom .et-social-icons { float: right; }
body #main-footer #footer-bottom .et-social-icon { margin: 0 0 0 8px !important; }
body #main-footer #footer-bottom .et-social-icon a {
  width: 36px;
  height: 36px;
  line-height: 36px;
  font-size: 15px;
  text-align: center;
  color: #f3ece1;
  border: 1px solid rgba(243, 236, 225, .25) !important;
  border-radius: 50%;
}
body #main-footer #footer-bottom .et-social-icon a:hover { border-color: #c39d63 !important; color: #c39d63; }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
  body #main-footer #footer-widgets { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 32px; padding: 40px 0 20px !important; }
  body #main-footer #footer-widgets .footer-widget:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body #main-footer #footer-widgets { grid-template-columns: minmax(0, 1fr); }
  body #main-footer #footer-widgets::before { height: 32px; margin-bottom: 22px; }
  body #main-footer #footer-bottom .et-social-icons { float: none; display: flex; justify-content: flex-start; }
  body #main-footer #footer-bottom .et-social-icon { margin: 0 8px 0 0 !important; }
}
