/*
=============================================
--- COMPLETE STYLESHEET FOR LIFTED TRUCKS ---
=============================================
*/

/* --- 1. ROOT VARIABLES & FONT IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&family=Oswald:wght@700&display=swap');

:root {
    --primary-color: #d9531e;
    --secondary-color: #0a0a0a;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --font-family-body: 'Montserrat', sans-serif;
    --font-family-heading: 'Oswald', sans-serif;
}

/* --- 2. BASE & UTILITY STYLES --- */
body {
    font-family: var(--font-family-body);
    color: var(--text-color);
    background: #fff;
    margin: 0;
    line-height: 1.6;
}
h1, h2, h3, h4, .main-nav a, .btn-primary, .btn-secondary, .btn-search-matches, .btn-outline, .btn-outline-white {
    font-family: var(--font-family-heading);
    text-transform: uppercase;
    font-weight: 700;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.content-section {
    padding: 60px 0;
}
.section-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
    color: #000;
}
a {
    color: var(--primary-color);
    text-decoration: none;
}
.btn-outline {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    display: inline-block;
    transition: all 0.2s;
}
.btn-outline:hover {
    background: var(--secondary-color);
    color: #fff;
}
.btn-outline i {
    margin-left: 8px;
    font-size: 0.8em;
}

/* --- 3. HEADER STYLES (DESKTOP) --- */
.desktop-header { display: block; }
.mobile-header { display: none; }
.top-pre-header {
    background-color: #000;
    color: #fff;
    padding: 5px 0;
    font-size: 0.8rem;
    font-family: var(--font-family-heading);
}
.pre-header-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}
.top-pre-header a { color: #fff; }
.main-header-content-wrapper {
    background-color: #0a0a0a;
    border-bottom: 1px solid #333;
    position: relative; /* For the orange line */
    transition: box-shadow 0.3s ease;
}
.main-header-content-wrapper.scrolled {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.main-header-content-wrapper::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}
.main-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.header-left { display: flex; align-items: center; gap: 20px; }
.main-logo { height: 40px; }
.award-logo { height: 35px; }
.header-right { display: flex; align-items: center; gap: 20px; }
.main-nav { display: flex; gap: 25px; }
.main-nav a { color: #fff; font-size: 0.9rem; transition: color 0.2s; }
.main-nav a:hover, .main-nav a.active { color: var(--primary-color); }
.header-actions { display: flex; gap: 15px; }
.header-actions .action-icon { color: #fff; font-size: 1.2rem; }

/* --- 4. HERO SECTION --- */
.hero-section-v2 { position: relative; padding: 60px 0; display: flex; align-items: center; background: url('/assets/images/hero-bg-v2.jpg') no-repeat center center/cover; color: white; }
.hero-bg-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); }
.hero-grid-v2 { position: relative; z-index: 2; display: grid; grid-template-columns: 1.8fr 1fr; gap: 40px; align-items: center; }
.hero-title, .hero-subtitle { font-size: 2.5rem; line-height: 1.1; margin: 0; text-shadow: 1px 1px 5px rgba(0,0,0,0.7); text-align: left; }
.hero-tagline-1, .hero-tagline-2 { text-align: left; font-family: var(--font-family-body); font-weight: 500;}
.hero-search-form-v2 { background-color: rgba(255, 255, 255, 0.9); border-radius: 5px; padding: 15px; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px;}
.hero-search-form-v2 select, .hero-search-form-v2 button { padding: 10px; border: 1px solid #ccc; border-radius: 3px; font-size: 0.9rem; }
.btn-search-matches { background-color: var(--secondary-color); color: white; border: none; }
.hero-content-right .feature-card-journey { min-height: 300px; background-position: top center; }

/* --- 5. SWIPER & BUILT BY BEST --- */
.inspired-section .container { position: relative; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.section-header .section-title { margin-bottom: 0; text-align: left; }
.swiper-navigation { display: flex; gap: 10px; }
.swiper-button-prev, .swiper-button-next { position: static; margin: 0; width: 44px; height: 44px; background-color: #fff; border: 1px solid #ddd; border-radius: 50%; color: var(--secondary-color); transition: all 0.2s; }
.swiper-button-prev:hover, .swiper-button-next:hover { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.swiper-button-prev::after, .swiper-button-next::after { font-size: 1rem; font-weight: 900; }
.vehicle-swiper { width: 100%; height: auto; } .swiper-slide { text-align: center; }
.vehicle-card-small img { max-width: 100%; border: 1px solid #eee; }
.vehicle-card-small h4 { margin: 5px 0; font-size: 1rem; } .vehicle-card-small p { margin: 0; color: #666; font-size: 0.9rem; }
.built-by-best-section { background: var(--light-gray); }
.built-by-best-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.bbb-item img { height: 60px; margin-bottom: 15px; } .bbb-item h3 { font-size: 1.2rem; margin-bottom: 10px; }

/* --- 6. KATY BANNER & LOCATIONS --- */
.katy-banner-section { background: url('/assets/images/katy-bg.jpg') no-repeat center center/cover; color: #fff; padding: 60px 0; text-align: center; }
.katy-banner-section h2 { font-size: 3rem; text-shadow: 2px 2px 8px #000; margin: 0; }
.katy-logo { max-width: 400px; margin: 20px auto; }
.katy-banner-section h3 { font-size: 1.5rem; text-shadow: 2px 2px 8px #000; margin: 0; }
.katy-address { font-size: 2.5rem; color: var(--primary-color); text-shadow: 2px 2px 8px #000; margin-top: 10px; }
.locations-accordion { border: 1px solid #ccc; border-radius: 5px; }
.location-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid #ccc; color: var(--text-color); }
.location-item:last-child { border-bottom: none; }
.location-item:hover { background: var(--light-gray); }

/* --- 7. ORANGE INFO SECTION --- */
.orange-info-section { background: var(--primary-color); color: #fff; }
.orange-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.orange-info-text h3 { font-size: 1.5rem; margin-top: 0; }
.btn-outline-white { border: 2px solid #fff; color: #fff; padding: 10px 20px; display: inline-block; transition: all 0.2s; }
.btn-outline-white:hover { background: #fff; color: var(--primary-color); }

/* --- 8. FOOTER V2 --- */
.site-footer-v2 { background-color: #fff; color: var(--text-color); border-top: 1px solid #ddd; padding-top: 40px; font-size: 0.9rem; }
.footer-v2-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-bottom: 40px; border-bottom: 1px solid #ddd; }
.footer-v2-col h4 { font-size: 1rem; margin-top: 0; margin-bottom: 15px; color: #000; }
.footer-v2-col ul { list-style: none; padding: 0; margin: 0; }
.footer-v2-col ul li { margin-bottom: 8px; }
.footer-v2-col a { color: var(--text-color); } .footer-v2-col a:hover { color: var(--primary-color); }
.footer-v2-bottom-bar { background-color: var(--primary-color); padding: 10px 0; }
.footer-v2-bottom-content { display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 0.8rem; }
.footer-v2-copyright { display: flex; align-items: center; }
.dealer-logo { height: 20px; margin-right: 15px; filter: brightness(0) invert(1); }
.footer-v2-social { display: flex; align-items: center; gap: 15px; }
.footer-v2-social a { color: #fff; font-size: 1.2rem; } .footer-v2-social a:hover { color: var(--secondary-color); }

/* --- 9. MOBILE MENU & RESPONSIVE --- */
.off-canvas-menu { position: fixed; top: 0; left: -300px; width: 280px; height: 100%; background: #0a0a0a; z-index: 2000; transition: left 0.3s ease-in-out; padding-top: 60px; }
.off-canvas-menu.open { left: 0; }
.off-canvas-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1999; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.off-canvas-overlay.open { opacity: 1; visibility: visible; }
.close-menu-btn { position: absolute; top: 15px; right: 20px; background: none; border: none; color: #fff; font-size: 2.5rem; cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a { color: #fff; padding: 15px 25px; text-decoration: none; font-family: var(--font-family-heading); font-size: 1.1rem; border-bottom: 1px solid #333; }
.mobile-nav a:hover { background: var(--primary-color); }

/*
=============================================
--- 9. MOBILE MENU & RESPONSIVE (ENHANCED) ---
=============================================
*/

/* --- Off-canvas Menu Base Styles --- */
.off-canvas-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 80%; /* Ensures it doesn't take up the whole screen on small devices */
    height: 100%;
    background: #0a0a0a;
    z-index: 2000;
    padding-top: 60px;
    transform: translateX(-100%); /* Use transform for smoother GPU-accelerated animation */
    transition: transform 0.3s ease-in-out;
}
.off-canvas-menu.open {
    transform: translateX(0);
}

.off-canvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    cursor: pointer;
}
.off-canvas-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* This class will be added to the <body> via JS to prevent scrolling */
body.no-scroll {
    overflow: hidden;
}

.close-menu-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
}
.mobile-nav a {
    color: #fff;
    padding: 15px 25px;
    text-decoration: none;
    font-family: var(--font-family-heading);
    font-size: 1.1rem;
    border-bottom: 1px solid #333;
    transition: background-color 0.2s;
}
.mobile-nav a:hover {
    background: var(--primary-color);
}

/* --- Main Responsive Breakpoints --- */

@media (max-width: 992px) {
    /* Hide Desktop Header, Show Mobile Header */
    .desktop-header { display: none; }
    .mobile-header {
        display: block;
        background: #0a0a0a;
        color: #fff;
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    .mobile-header-top {
        padding: 15px;
        text-align: center;
        border-bottom: 3px solid var(--primary-color);
    }
    .mobile-logo-link {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }
    .mobile-header-bottom {
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        background: #000;
    }
    .mobile-action-btn {
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
    }

    /* Content adjustments */
    .hero-grid-v2 { grid-template-columns: 1fr; }
    .hero-content-right { display: none; }
    .hero-title, .hero-subtitle, .hero-tagline-1, .hero-tagline-2 { text-align: center; }
    .inspired-grid { grid-template-columns: 1fr 1fr; }
    .built-by-best-grid, .orange-info-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-v2-grid { grid-template-columns: 1fr 1fr; }
    .section-header { flex-direction: column; gap: 20px; }
    .section-header .section-title { text-align: center; }
}

@media (max-width: 768px) {
    .award-logo { display: none; }
    .hero-title, .hero-subtitle { font-size: 2.2rem; }
    .footer-v2-bottom-content { flex-direction: column; gap: 10px; }
}

@media (max-width: 500px) {
    .hero-search-form-v2 { flex-direction: column; }
    .inspired-grid, .footer-v2-grid { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
    /* Hide Desktop Header, Show Mobile Header */
    .desktop-header { display: none; }
    .mobile-header { display: block; background: #0a0a0a; color: #fff; position: sticky; top: 0; z-index: 1000; }
    .mobile-header-top { padding: 15px; text-align: center; border-bottom: 3px solid var(--primary-color); }
    .mobile-logo-link { display: flex; justify-content: center; align-items: center; gap: 20px; }
    .mobile-header-bottom { display: flex; justify-content: space-around; padding: 10px 0; background: #000; }
    .mobile-action-btn { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

    /* Content adjustments */
    .hero-grid-v2 { grid-template-columns: 1fr; }
    .hero-content-right { display: none; }
    .hero-title, .hero-subtitle, .hero-tagline-1, .hero-tagline-2 { text-align: center; }
    .inspired-grid { grid-template-columns: 1fr 1fr; }
    .built-by-best-grid, .orange-info-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-v2-grid { grid-template-columns: 1fr 1fr; }
    .section-header { flex-direction: column; gap: 20px; }
    .section-header .section-title { text-align: center; }
}
@media (max-width: 768px) {
    .award-logo { display: none; }
    .footer-v2-bottom-content { flex-direction: column; gap: 10px; }
}
@media (max-width: 500px) {
    .hero-search-form-v2 { flex-direction: column; }
    .inspired-grid, .footer-v2-grid { grid-template-columns: 1fr; }
}

/* Make the Tawk.to chat window bigger on desktop */
#tawkchat-container iframe {
    width: 450px !important;   /* Default ~320px, increase as needed */
    height: 600px !important;  /* Default ~400px, increase as needed */
    right: 20px !important;    /* Adjust position */
    bottom: 20px !important;   /* Keep spacing from bottom */
    border-radius: 12px !important; /* Rounded corners */
}

/* Make Tawk.to chat full screen on mobile */
@media (max-width: 768px) {
    #tawkchat-container,
    iframe[title="chat widget"],
    #tawkchat-minified-box {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        top: 0 !important;
        border-radius: 0 !important; /* remove rounded corners */
    }
}


/* Full chat screen */
.chat-container {
  width: 100%;
  max-width: 1200px;   /* wider chat on desktop */
  height: 100vh;       /* full height */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: 20px;
}

/* Chat messages area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  font-size: 18px;   /* larger readable text */
  line-height: 1.6;
  padding: 15px;
}

/* Input box */
.chat-input {
  display: flex;
  gap: 10px;
}

.chat-input input {
  flex: 1;
  padding: 14px;
  font-size: 18px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.chat-input button {
  padding: 14px 22px;
  font-size: 18px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.chat-input button:hover {
  background: #0056b3;
}

/* Mobile improvements */
@media (max-width: 768px) {
  .chat-container {
    max-width: 100%;
    height: 100vh;
    border-radius: 0;   /* use full screen */
    padding: 10px;
  }

  .chat-messages {
    font-size: 20px;  /* even bigger on mobile */
    line-height: 1.8;
  }

  .chat-input input,
  .chat-input button {
    font-size: 20px;  /* bigger input text */
    padding: 16px;
  }
}


/* Increase header height */
.main-header {
    padding: 15px 0;       /* more vertical space */
}

/* Make nav icons larger */
.main-nav a {
    font-size: 1.6rem;     /* bigger icons */
    padding: 14px 20px;    /* bigger click area */
}

/* Logo size */
.main-logo {
    max-height: 70px;      /* increase logo height */
}

/* Header container wider */
.main-header .container {
    max-width: 1400px;     /* wider content area */
}

/* Floating WhatsApp Button Left - Enlarged */
#whatsapp-float-left {
    position: fixed;
    bottom: 25px;
    left: 25px; /* left side */
    background-color: var(--whatsapp-orange);
    color: #fff;
    border-radius: 50%;
    width: 80px;   /* increased from 60px */
    height: 80px;  /* increased from 60px */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.8rem; /* increased from 2rem */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#whatsapp-float-left:hover {
    transform: scale(1.15);  /* slightly bigger on hover */
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.header {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap on small screens */
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: var(--header-bg);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    gap: 15px; /* add some spacing between rows when wrapping */
}

/* Make dashboard title take full width on small screens */
.dashboard-title {
    flex: 1 1 300px; /* grow/shrink with min width */
}

/* Header actions stack on smaller screens */
.header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* Optional: make theme switch smaller on mobile */
.theme-switch {
    width: 50px;
    height: 25px;
}

/* Optional: make user info stack vertically on small screens */
@media (max-width: 600px) {
    .user-profile {
        flex-direction: column;
        align-items: flex-start;
    }
    .user-info h4, .user-info p {
        font-size: 0.85rem;
    }
    .user-img {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}