/* KLIQ shared site footer
 * UI: resources/views/kliq-living/partials/site-footer.blade.php
 * Helpers: app/Helpers/KliqFooterHelper.php
 *
 * Desktop: logo + links row. Tablet/mobile: stacked column — nothing clipped.
 * Sizes are fixed px (−15% from Figma), not vw.
 */

html {
  min-height: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overflow-y: auto;
}

body.frontend-page {
  min-height: 100%;
  overflow-x: visible;
  overflow-y: visible;
}

.bravo_wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.site-footer,
.kliq-site-footer {
  background: #F5F5F5;
  font-family: Inter, system-ui, sans-serif;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  height: auto;
  position: relative;
  z-index: 10;
  clear: both;
  overflow: visible;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Do NOT rely on global .wrap — reset any theme/.wrap padding & max-width */
.site-footer .wrap,
.kliq-site-footer .kliq-footer-wrap,
.site-footer .kliq-footer-wrap {
  width: 100% !important;
  max-width: 1920px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px 32px !important;
  padding: 48px clamp(20px, 5vw, 120px) 64px !important;
  overflow: visible !important;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

.footer-logo-link {
  display: inline-block;
  line-height: 0;
  max-width: 100%;
}

.footer-brand img {
  width: 217px; /* 255 × 0.85 */
  max-width: min(217px, 100%);
  height: auto;
  max-height: 51px;
  display: block;
  margin: 0;
  object-fit: contain;
  object-position: left center;
}

.footer-brand .copy {
  margin: 0;
  color: #727272;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  max-width: 100%;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 20px;
  margin: 0;
  padding: 0;
  flex: 1 1 280px;
  min-width: 0;
  max-width: 100%;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3D3D3D;
  text-decoration: none;
  font-family: Inter, system-ui, sans-serif;
  font-size: 18px; /* slightly under 20 for wrap room */
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0;
  white-space: nowrap;
  transition: opacity .2s;
}

.footer-nav a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3D3D3D;
  flex: 0 0 auto;
}

.footer-nav a:hover {
  opacity: .7;
  color: #3D3D3D;
}

/* Layout pages: hide legacy Bravo footer chrome */
.bravo_wrap .bravo_footer.kliq-footer {
  margin: auto 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.bravo_wrap .bravo_footer.kliq-footer .mailchimp,
.bravo_wrap .bravo_footer.kliq-footer .main-footer,
.bravo_wrap .bravo_footer.kliq-footer .copy-right {
  display: none !important;
}

.bravo_wrap .kliq-site-footer.site-footer {
  background: #F5F5F5 !important;
  font-family: Inter, system-ui, sans-serif;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
}

.bravo_wrap .kliq-site-footer .kliq-footer-wrap {
  max-width: 1920px !important;
  margin: 0 auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px 32px !important;
  padding: 48px clamp(20px, 5vw, 120px) 64px !important;
  overflow: visible !important;
}

.bravo_wrap .kliq-site-footer .footer-brand {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.bravo_wrap .kliq-site-footer .footer-logo-link {
  display: inline-block !important;
  line-height: 0 !important;
  max-width: 100% !important;
}

.bravo_wrap .kliq-site-footer .footer-brand img {
  width: 217px !important;
  max-width: min(217px, 100%) !important;
  height: auto !important;
  max-height: 51px !important;
  display: block !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: left center !important;
}

.bravo_wrap .kliq-site-footer .footer-brand .copy {
  margin: 0 !important;
  color: #727272 !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}

.bravo_wrap .kliq-site-footer .footer-nav {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 1 1 280px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.bravo_wrap .kliq-site-footer .footer-nav a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #3D3D3D !important;
  text-decoration: none !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  transition: opacity .2s !important;
}

.bravo_wrap .kliq-site-footer .footer-nav a::before {
  content: "" !important;
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  background: #3D3D3D !important;
  flex: 0 0 auto !important;
}

.bravo_wrap .kliq-site-footer .footer-nav a:hover {
  opacity: .7 !important;
  color: #3D3D3D !important;
}

/* Laptop / iPad landscape — stack so logo + all links stay on-screen */
@media (max-width: 1280px) {
  .site-footer .wrap,
  .kliq-site-footer .kliq-footer-wrap,
  .site-footer .kliq-footer-wrap,
  .bravo_wrap .kliq-site-footer .kliq-footer-wrap {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 20px !important;
    padding: 40px clamp(20px, 4vw, 48px) max(56px, calc(40px + env(safe-area-inset-bottom, 0px))) !important;
  }

  .footer-brand,
  .bravo_wrap .kliq-site-footer .footer-brand {
    width: 100% !important;
  }

  .footer-brand img,
  .bravo_wrap .kliq-site-footer .footer-brand img {
    width: 180px !important;
    max-width: 180px !important;
    max-height: 42px !important;
  }

  .footer-nav,
  .bravo_wrap .kliq-site-footer .footer-nav {
    flex: none !important;
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 12px 18px !important;
  }

  .footer-nav a,
  .bravo_wrap .kliq-site-footer .footer-nav a {
    font-size: 16px !important;
  }
}

/* Phone / small tablet */
@media (max-width: 767px) {
  .site-footer,
  .kliq-site-footer,
  .bravo_wrap .kliq-site-footer.site-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #F5F5F5 !important;
    overflow: visible !important;
  }

  .site-footer .wrap,
  .kliq-site-footer .kliq-footer-wrap,
  .site-footer .kliq-footer-wrap,
  .bravo_wrap .kliq-site-footer .kliq-footer-wrap {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 28px 20px max(56px, calc(36px + env(safe-area-inset-bottom, 0px))) !important;
    gap: 16px !important;
  }

  .footer-brand img,
  .bravo_wrap .kliq-site-footer .footer-brand img {
    width: 150px !important;
    max-width: 150px !important;
    max-height: 36px !important;
  }

  .footer-brand .copy,
  .bravo_wrap .kliq-site-footer .footer-brand .copy {
    font-size: 13px !important;
  }

  .footer-nav,
  .bravo_wrap .kliq-site-footer .footer-nav {
    width: 100% !important;
    justify-content: flex-start !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .footer-nav a,
  .bravo_wrap .kliq-site-footer .footer-nav a {
    font-size: 14px !important;
    white-space: normal !important;
  }
}

/* Extra scroll room after footer — disabled (caused white gap under footer) */
.page-end-spacer {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* No gap under shared footer */
.bravo_wrap .bravo_footer.kliq-footer {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.bravo_wrap .kliq-site-footer.site-footer {
  margin-bottom: 0 !important;
}
