/* ==========================================================================
   Softland Approve 2027 (FINAL UPDATE 011) - Unified Header, Drawer & Footer
   Scoped safely so it renders identically on BOTH Homepage (Master CSS)
   and Inner Pages (Tailwind CSS) without any layout conflict.
   ========================================================================== */

:root {
  --sl-navy-950: #070a12;
  --sl-navy-900: #0b1120;
  --sl-slate-800: #1e293b;
  --sl-gold: #c5a880;
  --sl-amber: #f59e0b;
  --sl-amber-dark: #d97706;
}

/* Sticky Unified Header */
.sl-site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(7, 10, 18, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197, 168, 128, 0.18);
  font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
}

body.admin-bar .sl-site-header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .sl-site-header {
    top: 46px;
  }
}

.sl-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sl-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sl-logo-link {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  padding: 5px 10px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.sl-logo-link img,
.sl-header-brand .custom-logo {
  height: 44px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  display: block;
}

/* Desktop Navigation */
.sl-nav-desktop {
  display: flex;
  align-items: center;
}

.sl-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 26px;
}

.sl-nav-menu li {
  position: relative;
  margin: 0;
  padding: 0;
}

.sl-nav-menu > li > a {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.2px;
  padding: 8px 0;
  display: inline-block;
  transition: color 0.2s ease;
}

.sl-nav-menu > li > a:hover,
.sl-nav-menu > li.current-menu-item > a {
  color: var(--sl-amber);
}

/* Submenu Dropdown */
.sl-nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #0b1120;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 8px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  z-index: 1000;
}

.sl-nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sl-nav-menu .sub-menu li a {
  display: block;
  padding: 8px 16px;
  color: #cbd5e1;
  font-size: 13px;
  text-decoration: none;
}

.sl-nav-menu .sub-menu li a:hover {
  background: rgba(245, 158, 11, 0.1);
  color: var(--sl-amber);
}

/* Header Action Buttons */
.sl-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sl-side-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #0f172a;
  border: 1px solid rgba(197, 168, 128, 0.35);
  color: var(--sl-amber);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sl-side-toggle-btn:hover {
  background: var(--sl-amber);
  color: #070a12;
  border-color: var(--sl-amber);
}

.sl-hotline-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #070a12 !important;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.28);
  transition: transform 0.2s ease;
}

.sl-hotline-btn:hover {
  transform: translateY(-1px);
  color: #070a12 !important;
}

@media (max-width: 1024px) {
  .sl-nav-desktop,
  .sl-hotline-btn {
    display: none;
  }
}

/* Offcanvas Side Menu & Categories Drawer */
.sl-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.sl-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.sl-side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 320px;
  max-width: 88vw;
  background: #0b1120;
  border-right: 1px solid #1e293b;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  color: #e2e8f0;
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

.sl-side-drawer.is-open {
  transform: translateX(0);
}

.sl-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #1e293b;
}

.sl-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #f8fafc;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sl-drawer-close:hover {
  background: var(--sl-amber);
  color: #070a12;
}

.sl-drawer-body {
  padding: 20px;
  flex: 1;
}

.sl-drawer-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--sl-amber);
  margin: 0 0 10px 0;
}

.sl-drawer-list {
  list-style: none;
  margin: 0 0 22px 0;
  padding: 0;
}

.sl-drawer-list li {
  margin-bottom: 6px;
}

.sl-drawer-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sl-drawer-list a:hover {
  border-color: var(--sl-amber);
  color: var(--sl-amber);
  background: rgba(245, 158, 11, 0.08);
}

/* Unified Luxury Footer */
.sl-site-footer {
  background: #070a12;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
  padding: 56px 20px 28px;
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

.sl-footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.sl-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

@media (max-width: 992px) {
  .sl-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .sl-footer-grid {
    grid-template-columns: 1fr;
  }
}

.sl-footer-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #1e293b;
}

.sl-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sl-footer-links li {
  margin-bottom: 8px;
}

.sl-footer-links a {
  color: #94a3b8;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sl-footer-links a:hover {
  color: var(--sl-amber);
}

.sl-footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: #64748b;
}

.sl-social-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.sl-social-row a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0f172a;
  border: 1px solid #1e293b;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sl-social-row a:hover {
  background: var(--sl-amber);
  color: #070a12;
  border-color: var(--sl-amber);
}

/* Bootstrap Grid Safeguard for Homepage Filter Bar Row */
@media (min-width: 992px) {
  .softland-home-page .col-lg-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
  }
  .softland-home-page .col-lg-7 {
    flex: 0 0 auto;
    width: 58.33333333%;
  }
  .softland-home-page .text-lg-end {
    text-align: right !important;
  }
}

