:root {
  --clr-primary: var(--dynamic-primary, #0070F0);
  --secondary-color: var(--dynamic-secondary, #2EAE4E);
  --sidebar-color: var(--dynamic-sidebar, #001070);
}

/* Hero uses admin theme colors (--dynamic-* from layouts/web/partials/css.blade.php) */
.home-banner-section {
  background-color: var(--dynamic-sidebar, #001070) !important;
  background-image: linear-gradient(
    135deg,
    var(--dynamic-sidebar, #001070) 0%,
    color-mix(in srgb, var(--dynamic-sidebar, #001070) 70%, var(--dynamic-primary, #0070f0)) 42%,
    var(--dynamic-primary, #0070F0) 100%
  ) !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.header-section.home-header {
  background: color-mix(in srgb, var(--dynamic-sidebar, #001070) 92%, transparent) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
  z-index: 1030;
}

.footer-section {
  background-color: var(--dynamic-sidebar, #001070) !important;
  background-image: linear-gradient(
    180deg,
    var(--dynamic-sidebar, #001070) 0%,
    color-mix(in srgb, var(--dynamic-sidebar, #001070) 85%, #000) 100%
  ) !important;
  background-size: cover !important;
  background-position: center !important;
}

.header-section.home-header a.header-logo,
.mobile-menu .header-logo {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
}

.header-section.home-header a.header-logo img,
.mobile-menu .header-logo img,
.header-logo img,
.footer-logo {
  background: transparent !important;
  height: auto !important;
  max-height: 56px !important;
  max-width: min(320px, 62vw) !important;
  width: auto !important;
  object-fit: contain !important;
  object-position: left center !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.btn-outline-danger.submit-btn,
.btn-outline-danger.verify-btn,
.submit-btn.btn-outline-danger {
  --bs-btn-color: #0070F0;
  --bs-btn-border-color: #0070F0;
  --bs-btn-hover-bg: #0070F0;
  --bs-btn-hover-border-color: #0070F0;
  --bs-btn-hover-color: #fff;
  color: #0070F0 !important;
  border-color: #0070F0 !important;
}
.btn-outline-danger.submit-btn:hover,
.btn-outline-danger.verify-btn:hover {
  background: #0070F0 !important;
  color: #fff !important;
}

.service-card img, .banner-scan img { background: transparent !important; }
.pricing-plan-section .card-header,
.plans-list .card-header,
.pos-addon-card > .card-header {
  background: #E8F2FF !important;
}
.footer-section a:hover { color: #0080F0 !important; }

/* Footer social: white circles, theme-primary icons */
.footer-section .footer-social-icons .footer-social-icon {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff !important;
  color: var(--dynamic-primary, #0070f0) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none !important;
}

.footer-section .footer-social-icons .footer-social-icon i {
  font-size: 17px;
  line-height: 1;
  color: inherit !important;
}

.footer-section .footer-social-icons .footer-social-icon:hover,
.footer-section .footer-social-icons .footer-social-icon:focus-visible {
  background: var(--dynamic-primary, #0070f0) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.footer-section .footer-social-icons .footer-social-icon:hover i,
.footer-section .footer-social-icons .footer-social-icon:focus-visible i {
  color: #ffffff !important;
}

.get-app-btn, .custom-primary-btn { background: #0070F0 !important; border-color: #0070F0 !important; }

/* Mobile: Bootstrap cols with only lg breakpoint must stack full-width */
@media (max-width: 991.98px) {
  .row > [class*="col-lg-"]:not([class*="col-md"]):not([class*="col-sm"]):not([class*="col-xl"]) {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  body {
    overflow-x: hidden;
  }

  .home-banner-section {
    padding-top: 90px;
  }

  .home-banner-section .banner-content .demo-btn-group {
    flex-wrap: wrap;
    gap: 16px;
  }

  .banner-scan {
    flex-wrap: wrap;
  }

  .banner-scan p {
    width: auto;
    max-width: none;
    flex: 1 1 140px;
  }

  .slick-slider-section img {
    max-height: 420px !important;
    height: auto !important;
    width: auto !important;
    margin: 0 auto;
  }

  .home-banner-section .container,
  .home-banner-section .row,
  .home-banner-section .banner-content {
    width: 100%;
    max-width: 100%;
  }

  .pricing-plan-section .plan-billing-toggle {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Mobile header: hamburger + logo left, language right */
  .header-section.home-header > .navbar > .container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
  }

  .header-section.home-header .collapse.navbar-collapse {
    display: none !important;
  }

  /* Language dropdown must not be clipped by fixed header */
  .header-section.home-header,
  .header-section.home-header .container,
  .header-section.home-header .navbar,
  .mobile-lang-container,
  .mobile-lang-container .dropdown {
    overflow: visible !important;
  }

  .mobile-lang-container .dropdown-menu {
    min-width: 220px;
    max-height: min(70vh, 400px);
    overflow-y: auto;
    z-index: 2000;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    border-radius: 8px;
  }

  .mobile-lang-container .dropdown-menu.show {
    display: block !important;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 0.5rem 0;
  }

  .header-section .mobile-menu.offcanvas {
    --bs-offcanvas-width: min(320px, 88vw);
    z-index: 1055;
  }

  .mobile-lang-container .language-btn {
    padding: 6px 8px !important;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
