@import url('https://googleapis.com');

/* --- STRUCTURAL ROOT RESETS --- */
body, html {
  margin: 0 !important;
  padding: 0 !important;
  background-color: #0d0d0d !important;
  width: 100% !important;
  overflow-x: hidden !important; 
}
.headerbar {
  position: relative !important; 
  display: flex !important; 
  justify-content: space-between !important; 
  align-items: center !important; 
  padding: 0 1.5rem !important;     
  background-image: url('chrome.jpg') !important; 
  background-repeat: no-repeat !important;
  background-size: cover !important;
  height: 95px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  z-index: 100 !important; 
}

.logo {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

.logo img {
  max-height: 139px !important; 
  width: auto !important;
  display: block !important;
}

.header-right-zone {
  display: flex !important;
  align-items: center !important;      
  justify-content: flex-end !important; 
  gap: 30px !important;                
  height: 100% !important;
  flex-grow: 1 !important;              
}

.navbar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  position: relative !important; 
}

.phone-link {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important; 
  gap: 10px !important;            
  font-family: sans-serif !important;
  margin-right: 0 !important;
  transform: translateX(-15vw) !important; /* Locks phone text placement just right of center */
}

.phone-icon {
  width: 25px !important;          
  height: 25px !important;
  color: #52a8e8 !important;       
}

.phone-text {
  color: #72b6eb !important;       
  font-size: 20px !important;      
  font-weight: 800 !important;     
  letter-spacing: 0.5px !important;
}

.hamburger {
  display: flex !important; 
  flex-direction: column !important;
  justify-content: space-between !important;
  width: 30px !important;
  height: 21px !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  z-index: 101 !important;
}

.hamburger .bar {
  height: 3px !important;
  width: 100% !important;
  background-color: #ffffff !important;
  border-radius: 10px !important;
  transition: all 0.3s ease-in-out !important;
}

.hamburger.open .bar:nth-child(1) { transform: translateY(9px) rotate(45deg) !important; }
.hamburger.open .bar:nth-child(2) { opacity: 0 !important; }
.hamburger.open .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg) !important; }

.nav-menu {
  position: absolute !important; 
  top: 70px !important;       
  right: 0 !important;
  left: auto !important;
  width: 400px !important;
  max-width: calc(100vw - 2rem) !important; 
  background: rgba(20, 20, 20, 0.98) !important; 
  backdrop-filter: blur(10px) !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0 !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
  max-height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  transition: max-height 0.3s ease-in-out, visibility 0.3s !important; 
  z-index: 99 !important;
}

.nav-menu a {
  width: 100% !important;
  text-align: center !important;
  padding: 22px 0 !important;
  box-sizing: border-box !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  display: block !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: sans-serif !important;
  font-weight: bold !important;
  font-size: 16px !important;
}

.nav-menu.active {
  max-height: 350px !important; 
  visibility: visible !important;
}

/* ==========================================================================
   GLOBAL BRAND FOOTER CANVAS STYLES
   ========================================================================== */
.site-footer {
  width: 100% !important;
  background-color: #080808 !important;
  border-top: 1px solid #1a1a1a !important;
  padding: 50px 20px 30px 20px !important;
  box-sizing: border-box !important;
  color: #ffffff !important;
  display: block !important;
  clear: both !important;
}

.footer-top-zone {
  max-width: 1100px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 30px !important;
}

.footer-column {
  flex: 1 !important;
  min-width: 250px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #aaaaaa !important;
}

.footer-column p {
  margin: 6px 0 !important;
}

.footer-column.align-left { text-align: left !important; }
.footer-column.align-center { text-align: center !important; }
.footer-column.align-right { text-align: right !important; }

.footer-header {
  font-family: 'Oswald', sans-serif !important;
  font-size: 18px !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  margin: 0 0 12px 0 !important;
  letter-spacing: 0.5px !important;
}

.footer-contact-link {
  color: #72b6eb !important;
  text-decoration: none !important;
  font-weight: bold !important;
}

.footer-logo-box {
  display: inline-block !important;
  max-width: 180px !important;
}

.footer-logo-img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

.footer-divider-line {
  max-width: 1100px !important;
  height: 1px !important;
  background-color: #1a1a1a !important;
  margin: 40px auto 25px auto !important;
}

.footer-bottom-zone {
  max-width: 1100px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.footer-nav-links {
  margin-bottom: 20px !important;
}

.footer-nav-links a {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 13px !important;
  color: #888888 !important;
  text-decoration: none !important;
  font-weight: bold !important;
  transition: color 0.2s !important;
}

.footer-nav-links a:hover {
  color: #ffffff !important;
}

.nav-divider {
  color: #262626 !important;
  padding: 0 8px !important;
}

.footer-copyright-text {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 12px !important;
  color: #555555 !important;
  margin: 0 !important;
}

.credit-link {
  color: #666666 !important;
  text-decoration: none !important;
}

.credit-link:hover {
  color: #ffffff !important;
}

/* ==========================================================================
   HEADER/FOOTER ADAPTIVE SMARTPHONE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
  .headerbar { height: 75px !important; }
  .logo img { max-height: 45px !important; }
  .phone-link { transform: translateX(0) !important; margin-right: 15px !important; }
  .phone-text { font-size: 15px !important; }
  
  .footer-top-zone { flex-direction: column !important; text-align: center !important; gap: 40px !important; }
  .footer-column.align-left, .footer-column.align-right { text-align: center !important; }
}

.logo {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  max-width: 220px !important; 
  overflow: hidden !important;
}

.logo img {
  height: auto !important;
  max-height: 150px !important; /* Forces the huge logo to shrink inside the 95px header */
  width: 100% !important;     
  object-fit: contain !important; /* Completely prevents letter squishing or pixelation stretching */
  display: block !important;
}

@media (max-width: 900px) {
  .demo-split-media-container {
    flex-direction: column !important; /* Forces vertical row stacking on screens */
    gap: 40px !important;
  }
  .demo-media-column {
    width: 100% !important;
    max-width: 100% !important;
    height: 320px !important; /* Shortens the video height grid slightly on small screens */
  }
  .demo-text-column {
    width: 100% !important;
  }
}

/* --- CRUCIAL VISIBILITY FORCED TOGGLE LAYER --- */
.chat-popup {
  position: fixed !important;
  bottom: 95px !important;
  right: 25px !important;
  width: 320px !important;
  background-color: #1a1a1a !important;
  border: 1px solid #2d2d2d !important;
  border-radius: 12px !important;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6) !important;
  overflow: hidden !important;
  
  /* Starting structural layer state: hidden away from view */
  display: none !important;
  flex-direction: column !important;
  z-index: 9999 !important;
}

/* FIXED ACTIVE TRACKER: This forces the panel to display the instant class open injects */
.chat-popup.open {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ==========================================================================
   GLOBAL INTERACTIVE CHAT POPUP LAYOUT CONFIGURATIONS
   ========================================================================== */
/* ==========================================================================
   GLOBAL FIXED INTERACTIVE CHAT POPUP LAYOUT SYSTEM
   ========================================================================== */
.floating-container {
  position: fixed !important;
  bottom: 25px !important;
  right: 25px !important;
  z-index: 10000 !important; /* Pushes button ring above background video filters */
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 15px !important;
}

/* Base Interface Button Resets */
/* ==========================================================================
   GLOBAL FIXED INTERACTIVE CHAT POPUP LAYOUT SYSTEM
   ========================================================================== */
.floating-container {
  position: fixed !important;
  bottom: 25px !important;
  right: 25px !important;
  z-index: 10000 !important; /* Pushes button ring above background video filters */
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 15px !important;
}

/* Base Interface Button Resets */
.chat-btn, .scroll-top-btn {
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.2s ease, opacity 0.3s ease !important;
}

.chat-btn:hover, .scroll-top-btn:hover {
  transform: scale(1.05) !important;
}

.chat-widget {
  position: relative !important;
}

/* Custom Total Trucking Royal Blue Color Theme */
.chat-btn {
  width: 60px !important;
  height: 60px !important;
  background-color: #1a44e5 !important; 
  border-radius: 50% !important;
}

.chat-icon {
  width: 28px !important;
  height: 28px !important;
  fill: #ffffff !important;
}

/* High Contrast Alert Badge */
.notification-badge {
  position: absolute !important;
  top: -2px !important;
  right: -2px !important;
  background-color: #d92323 !important;
  color: #ffffff !important;
  font-family: sans-serif !important;
  font-size: 11px !important;
  font-weight: bold !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #ffffff !important;
}

/* Production Scroll-to-top layout */
.scroll-top-btn {
  width: 42px !important;
  height: 42px !important;
  background-color: #121212 !important;
  border-radius: 4px !important;
  display: flex !important;
}

.arrow-icon {
  width: 24px !important;
  height: 24px !important;
  fill: #ffffff !important;
}

/* Chat Dropdown Window Layout Base Frame */
.chat-popup {
  position: fixed !important; 
  bottom: 105px !important;   
  right: 25px !important;
  width: 290px !important;
  background-color: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  z-index: 9999 !important;
  
  /* FIXED INITIAL STATE: Hidden by default via opacity transformations */
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(15px) !important;
  transition: opacity 0.25s ease, transform 0.25s ease !important;
}

/* ==========================================================================
   THE ACTIONS LOGIC: Triggers visibility when checkbox gets ticked
   ========================================================================== */
#chatToggleState:checked ~ .chat-popup {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

/* When chat box opens, hide the alert notification badge automatically */
#chatToggleState:checked ~ .chat-widget #chatBadge {
  display: none !important;
}

.chat-header {
  background-color: #1a44e5 !important;
  color: #ffffff !important;
  padding: 14px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.chat-header h4 { 
  margin: 0 !important; 
  font-family: sans-serif !important;
  font-size: 16px !important; 
}

#closeChatBtn { 
  background: none !important; 
  border: none !important; 
  color: #ffffff !important; 
  font-size: 26px !important; 
  line-height: 1 !important;
  cursor: pointer !important; 
}

/* Dynamic Lead Form Components */
.chat-body { 
  padding: 15px !important; 
  margin: 0 !important; 
  display: flex !important; 
  flex-direction: column !important; 
  gap: 10px !important; 
}

.chat-body p { 
  margin: 0 0 5px 0 !important; 
  font-family: sans-serif !important;
  font-size: 13px !important; 
  color: #555555 !important; 
  line-height: 1.4 !important; 
}

.chat-input { 
  padding: 8px 12px !important; 
  border: 1px solid #cccccc !important; 
  border-radius: 4px !important; 
  font-family: sans-serif !important;
  font-size: 14px !important; 
  box-sizing: border-box !important; 
  width: 100% !important; 
  color: #121212 !important;
  background-color: #ffffff !important;
}

.chat-textarea { 
  resize: none !important; 
  height: 70px !important; 
}

.chat-submit-btn { 
  background-color: #121212 !important; 
  color: #ffffff !important; 
  border: none !important; 
  padding: 10px !important; 
  border-radius: 4px !important; 
  font-family: sans-serif !important;
  font-weight: bold !important; 
  cursor: pointer !important; 
  transition: background-color 0.2s !important; 
}

.chat-submit-btn:hover { 
  background-color: #333333 !important; 
}

/* Smartphone Stacking Overrides */
@media (max-width: 768px) {
  .floating-container { bottom: 15px !important; right: 15px !important; }
  .chat-popup { right: 15px !important; bottom: 95px !important; width: 280px !important; }
}
