/* ==========================================================================
   FLEETMORES — SASSY HOME-3 COMPONENTS STYLING
   Header, Footer, Demo Modal, Sticky CTA, Navigation, UI Elements
   ========================================================================== */

/* ==========================================================================
   FLEETMORES — HEADER & NAVBAR (Sassy Home-3 Style)
   ========================================================================== */

.fm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  height: 76px;
  display: flex;
  align-items: center;
}

.fm-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 30px rgba(0, 37, 233, 0.06);
  border-bottom-color: rgba(0, 37, 233, 0.12);
  height: 70px;
}

.fm-header .container-fm {
  width: 100%;
}

.header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 16px !important;
  flex-wrap: nowrap !important;
}

/* Brand Group: Logo + Subtle TruckBill Sub-Badge */
.header-brand-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  cursor: pointer;
}

.header-brand-group .brand-logo-img {
  height: 28px !important;
  width: auto !important;
  max-width: 180px !important;
  display: block !important;
}

.header-brand-divider {
  width: 1px !important;
  height: 22px !important;
  background-color: #E2E8F0 !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.header-product-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
  background: #F3F6FE !important;
  border: 1px solid #DCE4FD !important;
  font-family: var(--font-heading) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  color: #0025E9 !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.header-product-badge img {
  height: 13px !important;
  width: auto !important;
  max-height: 13px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Desktop Navigation (Center Aligned, Perfectly Spaced) */
.fm-header nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-grow: 1 !important;
}

.nav-desktop-links {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  list-style: none !important;
  margin: 0 !important; /* CRITICAL: Override Bootstrap ul */
  padding: 0 !important; /* CRITICAL: Override Bootstrap ul */
  flex-wrap: nowrap !important;
}

.nav-desktop-links li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: inline-flex !important;
  align-items: center !important;
}

.nav-desktop-links a {
  display: inline-flex !important;
  align-items: center !important;
  font-family: var(--font-heading) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  text-decoration: none !important;
  padding: 8px 14px !important;
  border-radius: 9999px !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  border: 1px solid transparent !important;
}

.nav-desktop-links a:hover {
  color: #0025E9 !important;
  background-color: #F3F6FE !important;
}

.nav-desktop-links a.active {
  color: #0025E9 !important;
  background-color: #F3F6FE !important;
  border-color: #DCE4FD !important;
  font-weight: 700 !important;
}

/* Right Desktop CTA */
.nav-desktop-cta {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-desktop-cta .btn-sassy {
  padding: 10px 22px !important;
  font-size: 0.88rem !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

/* Hamburger Button */
.hamburger-toggle {
  display: none !important;
  background: none !important;
  border: 1.5px solid #E2E8F0 !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  flex-direction: column !important;
  gap: 5px !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}

.hamburger-toggle:hover {
  background-color: #F3F6FE !important;
  border-color: #0025E9 !important;
}

.hamburger-line {
  width: 20px !important;
  height: 2px !important;
  background-color: #000000 !important;
  border-radius: 2px !important;
  transition: all 0.25s ease !important;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .fm-header nav,
  .nav-desktop-links,
  .nav-desktop-cta {
    display: none !important;
  }

  .hamburger-toggle {
    display: flex !important;
  }

  .fm-header {
    height: 68px !important;
  }
}


/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 1050;
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 28px;
  transition: right 0.35s var(--ease-sassy);
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--fm-tertiary);
  color: var(--fm-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  background: var(--fm-primary);
  color: #FFFFFF;
}

/* Footer (Sassy Deep Black & Cobalt) */
.fm-footer {
  background-color: var(--fm-dark-section);
  color: var(--fm-dark-text);
  padding-top: clamp(4.5rem, 7vw, 6.5rem);
  padding-bottom: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: 4rem;
}

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

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

.footer-brand-col p {
  color: var(--fm-dark-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-top: 1.25rem;
  max-width: 340px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  color: var(--fm-dark-text-muted);
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-links-list a:hover {
  color: #FFFFFF;
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--fm-dark-text-muted);
}

.footer-bottom a {
  color: var(--fm-dark-text-muted);
}

.footer-bottom a:hover {
  color: #FFFFFF;
}

/* Demo Modal (High Conversion) */
.demo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 9, 14, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.demo-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.demo-modal-card {
  background: #FFFFFF;
  border-radius: 26px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--fm-border-color);
  overflow: hidden;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s var(--ease-sassy);
}

.demo-modal-overlay.open .demo-modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--fm-border-color);
  position: relative;
  background: #F9FBFF;
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--fm-muted-text);
  background: #FFFFFF;
  border: 1px solid var(--fm-border-color);
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--fm-secondary);
  color: #FFFFFF;
}

.modal-body {
  padding: 28px 32px 32px;
}

.form-group-fm {
  margin-bottom: 18px;
}

.form-label-fm {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fm-heading-color);
  margin-bottom: 6px;
}

.form-input-fm,
.form-select-fm {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--fm-border-color);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--fm-heading-color);
  background: #FFFFFF;
  transition: all 0.2s ease;
  outline: none;
}

.form-input-fm:focus,
.form-select-fm:focus {
  border-color: var(--fm-primary);
  box-shadow: 0 0 0 3px rgba(0, 37, 233, 0.12);
}

/* Mobile Sticky Bottom CTA */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--fm-border-color);
  z-index: 990;
  display: none;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: block;
  }
}
