/* Shared site footer (handover v102).
   Every migrated page uses the same <footer class="wrap" id="site-footer"> markup, but each page
   group loads different stylesheets, so the footer looked different from page to page. This file
   is loaded last on every page and restates the homepage footer's final (cascaded) values from
   style.css, refinements.css, site-logo.css and the homepage's inline styles. The id selector
   outranks the page stylesheets' class rules. padding-bottom is left to each page (it makes room
   for that page's floating buttons). */

#site-footer {
  --ink: #24252a;
  --green: #123f2b;
  --muted: #343e36;
  box-sizing: border-box;
  width: min(1280px, calc(100% - 96px));
  margin: 0 auto;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 18px/1.65 'Manrope', Arial, sans-serif;
  text-align: left;
}
#site-footer *, #site-footer *::before, #site-footer *::after { box-sizing: border-box; }
#site-footer a { color: inherit; text-decoration: none; min-height: 0; }

/* Columns */
#site-footer .footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 44px 0;
  border: 0;
}
#site-footer .footer-top > div { min-width: 0; margin: 0; padding: 0; }
#site-footer .footer-top > div > a:not(.logo) {
  display: block;
  margin: 10px 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
#site-footer .footer-top a { overflow-wrap: anywhere; }
#site-footer .footer-top h3 {
  margin: 10px 0 20px;
  padding: 0;
  font: 400 22px/normal 'DM Serif Display', Georgia, serif;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
}
#site-footer .footer-top .footer-family { margin-top: 28px; }
#site-footer .footer-top p {
  margin: 18px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
#site-footer .footer-top address {
  margin: 18px 0;
  font-style: normal;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}
#site-footer .footer-top .footer-brand address { margin: 0 0 12px; }
#site-footer .footer-top .footer-address-label {
  margin: 24px 0 5px;
  font: 700 15px/1.4 Manrope, sans-serif;
  color: var(--ink);
}

/* Logo (site-logo.css) */
#site-footer .logo {
  display: block !important;
  width: 210px !important;
  height: auto !important;
  aspect-ratio: 400 / 102;
  overflow: visible !important;
  margin: 0;
}
#site-footer .logo img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  transform: none !important;
}

/* Social icons */
#site-footer .footer-social { display: flex; gap: 8px; margin: 0; padding: 0; --social-bg: #f7f6ee; }
#site-footer .footer-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #b5c1ac;
  border-radius: 50%;
  background: var(--social-bg);
  color: var(--green);
}
#site-footer .social-youtube { --brand-color: #ff0033; }
#site-footer .social-instagram { --brand-color: #c13584; --brand-fill: linear-gradient(35deg, #b85d20, #c13584 52%, #7638ab); }
#site-footer .social-facebook { --brand-color: #0866ff; }
#site-footer .footer-social a:is(:focus-visible, :active) {
  --social-bg: var(--brand-color);
  background: var(--brand-fill, var(--social-bg));
  border-color: var(--brand-color);
  color: #fff;
}
@media (hover: hover) {
  #site-footer .footer-social a:hover {
    --social-bg: var(--brand-color);
    background: var(--brand-fill, var(--social-bg));
    border-color: var(--brand-color);
    color: #fff;
  }
}

/* Phone numbers */
#site-footer .footer-phones { display: inline-flex; flex-wrap: nowrap; gap: 0; align-items: center; color: var(--muted); font-size: 16px; }
#site-footer .footer-phones a { display: inline; min-height: 0; padding: 6px 0; margin: 0; font-size: inherit; white-space: nowrap; }
#site-footer .footer-phones a + a {
  border-inline-start: 1px solid #a9bc99;
  margin-inline-start: 0.6em;
  padding-inline-start: 0.6em;
}

/* Bottom bar */
#site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 22px 0;
  border-top: 1px solid #a9bc99;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
#site-footer .footer-ownership { display: grid; gap: 8px; }
#site-footer .footer-policies { display: flex; flex-wrap: wrap; gap: 12px 24px; }
#site-footer .footer-policies a {
  font-size: 14px;
  color: var(--muted);
  text-underline-offset: 4px;
}
#site-footer .footer-policies a::before,
#site-footer .footer-policies a::after { content: none; }

@media (max-width: 1150px) {
  #site-footer { width: calc(100% - 64px); }
}
@media (max-width: 1100px) {
  #site-footer .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #site-footer .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  #site-footer .footer-bottom { flex-wrap: wrap; }
}
@media (max-width: 800px) {
  #site-footer .footer-bottom { align-items: start; }
}
@media (max-width: 650px) {
  #site-footer { width: calc(100% - 40px); }
  #site-footer .footer-top { gap: 30px 22px; }
  #site-footer .footer-top h3 { font-size: 20px; }
  #site-footer .footer-policies { gap: 12px 20px; }
  #site-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 360px) {
  #site-footer .footer-phones { font-size: 15px; }
}

/* Tighter footer spacing (2026-12-02) */
#site-footer .footer-top { padding: 32px 0 26px; row-gap: 24px; }
#site-footer .footer-top h3 { margin: 0 0 10px; }
#site-footer .footer-top > div > a:not(.logo) { margin: 4px 0; }
#site-footer .footer-top .footer-family { margin-top: 18px; }
#site-footer .footer-top p { margin: 10px 0 14px; }
#site-footer .footer-top .footer-address-label { margin: 16px 0 4px; }
#site-footer .footer-top .footer-brand address { margin: 0 0 8px; }
#site-footer .footer-whatsapp, #site-footer .footer-brand > a[href^="mailto:"] { margin: 6px 0 !important; }
#site-footer .footer-bottom { padding: 16px 0; }

/* Compact contact block under "Global headquarters" (2026-12-02) */
#site-footer .footer-top .footer-brand address { line-height: 1.4; margin: 0 0 6px; }
#site-footer .footer-whatsapp, #site-footer .footer-brand > a[href^="mailto:"] { margin: 2px 0 !important; line-height: 1.4 !important; }
#site-footer .footer-phones a { padding: 2px 0; line-height: 1.4; }
#site-footer .footer-top .footer-service-hours { margin: 4px 0 0 !important; line-height: 1.4 !important; }

/* Same small space under the copyright bar on every page (2026-12-02).
   Page stylesheets reserved 70-150px here for their floating buttons. */
#site-footer { padding-bottom: 28px !important; }
/* Keep the policy links clear of the floating Chat / Buy buttons (bottom-right). */
#site-footer .footer-bottom { padding-right: 150px; }
@media (max-width: 900px) {
  #site-footer .footer-bottom { padding-right: 0; }
  #site-footer { padding-bottom: 88px !important; }
}
@media (max-width: 900px) {
  body:has(.portal-buy-dock) #site-footer { padding-bottom: 150px !important; }
}
