
/* KARADAĞ BALI 2.4.1 - HARD RESPONSIVE / FOOTER FIX */
html, body {
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}
*, *::before, *::after { box-sizing: border-box !important; }

img, svg, video, iframe {
  max-width: 100% !important;
}
img { height: auto; }

@media (max-width: 767px) {
  /* Kill desktop-width wrappers on mobile */
  .site, #page, .page, .site-content, main, header, footer,
  .container, .wrapper, .inner, .section, .row,
  .site-header, .header, .header-inner, .nav, nav,
  .hero, .hero-inner, .hero-content, .content-area,
  .site-footer, .footer, .footer-inner {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
  }

  /* HEADER: force visible logo + menu */
  .site-header, header, .header {
    position: relative !important;
    overflow: visible !important;
    z-index: 9999 !important;
  }

  .site-header .header-inner,
  header .header-inner,
  .site-header .container,
  header .container,
  .site-header .wrapper,
  header .wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 10px 12px !important;
    margin: 0 !important;
  }

  .site-branding,
  .site-logo,
  .logo,
  .logo-wrap,
  .custom-logo-link {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: calc(100% - 54px) !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  .site-branding img,
  .site-logo img,
  .logo img,
  .logo-wrap img,
  .custom-logo,
  .custom-logo-link img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 64px !important;
    object-fit: contain !important;
  }

  .menu-toggle,
  .mobile-menu-toggle,
  .mobile-toggle,
  .hamburger,
  button[aria-label*="menu" i] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    margin: 0 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 10000 !important;
  }

  /* Desktop navigation must not force width on phones */
  .main-navigation,
  .primary-menu,
  nav ul.menu,
  .nav-menu {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Hero */
  .hero, .hero-image, .banner, .cover {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }
  .hero img, .hero-image img, .banner img, .cover img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* FOOTER MOBILE: one column */
  .site-footer .footer-grid,
  .site-footer .footer-columns,
  .site-footer .footer-inner,
  footer .footer-grid,
  footer .footer-columns,
  footer .footer-inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 24px !important;
  }
}

@media (min-width: 768px) {
  /* FOOTER DESKTOP: hard 4-column horizontal layout */
  .site-footer .footer-grid,
  .site-footer .footer-columns,
  .site-footer .footer-inner,
  footer .footer-grid,
  footer .footer-columns,
  footer .footer-inner {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: auto !important;
    grid-auto-flow: row !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 30px !important;
  }

  .site-footer .footer-col,
  footer .footer-col,
  .footer-column,
  .site-footer .footer-widget {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    grid-column: auto !important;
    grid-row: 1 !important;
  }

  .site-footer .footer-col:nth-child(1),
  footer .footer-col:nth-child(1) { grid-column: 1 !important; }
  .site-footer .footer-col:nth-child(2),
  footer .footer-col:nth-child(2) { grid-column: 2 !important; }
  .site-footer .footer-col:nth-child(3),
  footer .footer-col:nth-child(3) { grid-column: 3 !important; }
  .site-footer .footer-col:nth-child(4),
  footer .footer-col:nth-child(4) { grid-column: 4 !important; }

  /* Prevent content inside each footer column from becoming a vertical column layout */
  .site-footer .footer-col > *,
  footer .footer-col > * {
    max-width: 100% !important;
  }
}

/* 2.4.2 footer-main fallback */
@media (min-width:768px){
.site-footer .footer-main{display:flex!important;flex-direction:row!important;width:100%!important;max-width:100%!important;gap:0!important}
.site-footer .footer-main>.footer-brand-panel{flex:1.15 1 0!important;grid-column:auto!important;grid-row:auto!important}
.site-footer .footer-main>.footer-info{flex:1 1 0!important;grid-column:auto!important;grid-row:auto!important}
}
@media (max-width:767px){
.site-footer .footer-main{display:flex!important;flex-direction:column!important;width:100%!important}
.site-footer .footer-main>.footer-brand-panel,.site-footer .footer-main>.footer-info{width:100%!important;min-width:100%!important;flex:0 0 auto!important;grid-column:auto!important;grid-row:auto!important}
}
