/**
 * KCC Global Styles
 * 
 * Main stylesheet for the KCC dealer site
 * Contains styles for typography, layout, buttons, navigation, and utility classes
 */

/* ========================================
   1. BASE ELEMENTS
   ======================================== */

/* Base HTML elements */
body {
    width: 100%;
    height: 100%;
    font-family: "Inter", serif;
    font-weight: 400;
    font-style: normal;
    color: #333333;
    background-color: #fff;
}

html {
    width: 100%;
    height: 100%;
    overflow-x: hidden!important; 
}

/* Typography - Headings */
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
    font-family: "Barlow Semi Condensed", serif;
    font-weight: 600;
    font-optical-sizing: auto;
    font-style: normal;
    text-transform: uppercase;
}

/* Font Family Classes */
.inter {
    font-family: "Inter", serif !important;
    font-style: normal;
}

.barlow {
    font-family: "Barlow Semi Condensed", serif !important;
    font-optical-sizing: auto;
    font-style: normal;
}

/* Font Size Utilities */
.fs-7 {
    font-size: 0.85rem;
}

/* ========================================
   2. NAVIGATION & MENU
   ======================================== */

/* Menu Container & Transitions */
.menu-container, .menu-container.shrink-menu {
    transition-duration: 0.25s;
}

/* Top Menu Row */
.kcc-menu-top-row {
    background: transparent !important;
    padding-top: .5rem;
    display: flex;
    align-items: center;
    padding-bottom: 0rem; 
}

/* Shrunk Menu Top Row */
.shrink-menu .kcc-menu-top-row {
    background: rgba(255, 255, 255, 0.85) !important;
    padding-top: .6rem;
    padding-bottom: 0;
}

/* Menu Text Elements */
.kcc-menu-top-row .col-auto p {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #1e3266;
    margin-bottom: 0;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    transition-duration: 0.25s;
}

.shrink-menu .kcc-menu-top-row .col-auto p {
    font-size: 0.75rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    transition-duration: 0.25s;
}

.kcc-menu-top-row p a {
    text-decoration: none;
    color: #1e3266;
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: #1e3266 !important;
    font-size: .95rem;
    font-family: "Barlow Semi Condensed", serif;
    font-weight: 600;
    font-style: normal;
    transition-duration: 0.25s;
}

.shrink-menu .navbar-nav .nav-link {
    transition-duration: 0.25s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:active {
    color: #0083cb !important;
}

/* Dropdown Menu Styles */
.dropdown-menu.home {
    background: #fff;
}

li.nav-item.dropdown ul.dropdown-menu li.nav-item a {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.dropdown-item:focus,
.dropdown-item:hover {
    background-color: #fffef8 !important;
    color: black;
}

.dropdown-item:active {
    color: #0083cb !important;
    background-color: #ccc !important;
}

/* Hide default dropdown arrows */
.dropdown-toggle::after {
    display: none;
}

.dropend .dropdown-item::after {
    display: none;
}

.dropdown-menu li {
    position: relative;
}

/* Logo Positioning */
.menu-container a.kcc-logo-place {
    display: none;
}

.menu-container img.kcc-logo {
    position: absolute;
    width: 285px;
    height: 160px;
    top: -1rem;
    left: .25rem;
    transition-duration: 0.25s;
} 

.menu-container.shrink-menu img.kcc-logo {
    width: 264px;
    height: 147px;
    top: -2rem;
    transition-duration: 0.25s;
}

/* Menu Row Spacing */
.menu-container.shrink-menu .kcc-menu-row {
    /* margin-top: -9px;
    height: 78px; */
}

.navbar-nav .dropdown-menu.main-dropdown {
    top: 2rem;
    background: #fff;
    padding-top: 1rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-bottom: 0.5rem;
    border: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    box-shadow: 0 3rem 3rem rgba(0, 0, 0, 0.175);
    transition-duration: 0.25s;
}
   /* Submenu positioning and styling */
    .dropdown-submenu {
        position: relative;
    }
    
    .dropdown-submenu .submenu {
        position: absolute;
        top: 0;
        left: 100%;
        margin-top: 0;
        margin-left: 0;
        min-width: 250px;
        display: none;
    }
    
    .dropdown-submenu:hover .submenu,
    .dropdown-submenu .submenu:hover {
        display: block;
    }
    
    .dropdown-item.dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: between;
    }
    
    .dropdown-item.dropdown-toggle .fa-arrow-right {
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }
    
    .dropdown-submenu:hover .dropdown-toggle .fa-arrow-right {
        transform: rotate(90deg);
    }
    
    /* Mobile submenu handling */
    @media (max-width: 1199px) {
        .dropdown-submenu .submenu {
            position: static;
            display: none !important;
            margin-left: 1rem;
            box-shadow: none;
            border: none;
            background: transparent;
        }
        
        .dropdown-submenu.show .submenu {
            display: block !important;
        }
        
        .dropdown-submenu:hover .submenu {
            display: none !important;
        }
        
        .dropdown-submenu .dropdown-item {
            padding-left: 1.5rem;
        }
    }
    
    /* Desktop hover behavior */
    @media (min-width: 1200px) {
        .dropdown-submenu:hover .submenu {
            display: block !important;
        }
    }
    
/* Offcanvas Body */
.offcanvas-body {    
    background: #FFF;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 9%, rgba(255, 255, 255, 1) 6%);
    height: fit-content;
    transition-duration: 0.25s;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: 50rem; 
}

/* ========================================
   3. BUTTON STYLES
   ======================================== */

/* Base Button Styles */
.btn {
    padding: 0.75rem 1.25rem !important;
    font-size: .95rem !important;
    font-family: "Barlow Semi Condensed", serif;
    font-weight: 500;
    font-style: normal;
    text-transform: uppercase;
    transition-duration: 0.25s;
    border-radius: 50rem;
}

/* Button Size Variations */
.btn.menu-btn {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.85rem !important;
}

.btn.btn-sm {
    padding: 0.75rem 1rem !important;
    font-size: 0.85rem !important;
}

.btn.btn-lg {
    padding: 1rem 1.5rem !important;
    font-size: 1.25rem !important;
}

.btn.btn-xl {
    padding: 1.25rem 1.75rem !important;
    font-size: 1.75rem !important;
}

/* Primary Button */
.btn-primary {
    color: #fff;
    background: #25327c;
    border-color: #25327c;
}

.btn-primary:hover {
    color: #fff;
    background: #2c3c94; /* slightly lighter for hover */
    border-color: #2c3c94;
}

.btn-outline-primary {
    color: #25327c;
    background: transparent;
    border-color: #25327c;
}

.btn-outline-primary:hover {
    color: #fff;
    background: #25327c;
    border-color: #25327c;
}

.btn-outline-primary:active {
    color: #fff;
    background: #25327c !important;
    border-color: #25327c !important;
}

/* Warning Button */
.btn-warning {
    color: #1e3266;
    background: #ffbc00 !important;
    border-color: #ffbc00 !important;
}

.btn-warning:hover {
    color: #1e3266;
    background: #D4A800;
    border-color: #D4A800;
}

.btn-outline-warning {
    color: #fff;
    background: transparent;
    border-color: #ffbc00 ;
}

.btn-outline-warning:hover {
    color: #1e3266;
    background: #f6c600;
    border-color: #f6c600;
}

/* Danger Button */
.btn-danger {
    color: #fff;
    background: #c42727;
    border-color: #c42727;
}

.btn-danger:hover {
    color: #fff;
    background: #b12323;
    border-color: #b12323;
}

.btn-outline-danger {
    color: #c42727;
    background: transparent;
    border-color: #c42727;
}

.btn-outline-danger:hover {
    color: #fff;
    background: #c42727;
    border-color: #c42727;
}

.btn-outline-danger:active {
    color: #fff;
    background: #c42727 !important;
    border-color: #c42727 !important;
}

/* Info Button */
.btn-info {
    color: #fff;
    background: #295fb7;
    border-color: #295fb7;
}

.btn-info:hover {
    color: #fff;
    background: #2354a3; /* slightly darker for hover */
    border-color: #2354a3;
}

.btn-outline-info {
    color: #295fb7;
    background: transparent;
    border-color: #295fb7;
}

.btn-outline-info:hover {
    color: #fff;
    background: #295fb7;
    border-color: #295fb7;
}

.btn-outline-info:active {
    color: #fff;
    background: #295fb7 !important;
    border-color: #295fb7 !important;
}

/* Dark Button */
.btn-dark {
    color: #fff;
    background: #0a102d;
    border-color: #0a102d;
}

.btn-dark:hover {
    color: #fff;
    background: #121a41; /* slightly lighter for hover */
    border-color: #121a41;
}

.btn-outline-dark {
    color: #0a102d;
    background: transparent;
    border-color: #0a102d;
}

.btn-outline-dark:hover {
    color: #fff;
    background: #0a102d;
    border-color: #0a102d;
}

.btn-outline-dark:active {
    color: #fff;
    background: #0a102d !important;
    border-color: #0a102d !important;
}

/* ========================================
   4. COLOR SYSTEM
   ======================================== */

/* Text Colors */
.text-primary {
    color: #25327c !important;
}

.text-primary.dark {
    color: #1e3266 !important;
}

.text-warning {
    color: #ffbc00  !important;
}

.text-info {
    color: #295fb7 !important
}

.text-danger {
    color: #c42727 !important;
}

.text-666 {
    color: #666 !important;
}

.text-platinum {
    color: #dcdcdc;
}

.text-gold {
    color: #ffd700;
}

.text-silver {
    color: #a9a9a9;
}

.text-bronze {
    color: #cd7f32;
}

/* Gradient Text */
.text-info.gradient {
    /* Fallback: Set a background color. */
    background-color: #295fb7;

    /* Create the gradient. */
    background-image: linear-gradient(45deg, #295fb7, #4379d1);

    /* Set the background size and repeat properties. */
    background-size: 100%;
    background-repeat: repeat;

    /* Use the text as a mask for the background. */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
}

/* Background Colors */
.bg-primary {
    background: #25327c !important;
}

.bg-primary.dark {
    background: #003366 !important;
}

.bg-info {
    background: #295fb7 !important
}

.bg-danger {
    background: #c42727 !important;
}

.bg-dark {
    background: #001a30 !important;
}

.bg-grey {
    background: #dedfe0;
}

.bg-gold {
    background: #ffbc00 !important;
}

/* Gradient Backgrounds */
.bg-info.gradient {
    background: #295fb7;
    background: linear-gradient(135deg, #295fb7 10%, #4379d1 80%) !important;
}

/* Border Colors */
.border-primary {
    border-color: #25327c !important
}

.border-warning {
    border-color: #f6c600 !important
}

.border-info {
    border-color: #295fb7 !important
}

.border-danger {
    border-color: #c42727 !important;
}

/* ========================================
   5. FOOTER STYLES
   ======================================== */

footer {
    background: #001a30;
}

/* ========================================
   6. UTILITY STYLES
   ======================================== */

/* Badges and Icons */


/* Coupon Styling */


/* Navigation Pills */
.schedule-nav-pill {
    background-color: #c42727; 
    color: white; 
    height: 100%;
    border-top-right-radius: 50rem; 
    border-bottom-right-radius: 50rem;
}

.call-nav-pill {
    background-color: #1e2f70; 
    color: white;
    height: 100%; 
}

.schedule-nav-pill a {
    padding: 11px 8px;
    font-size: 12px;
}

.call-nav-pill a {
    padding: 11px 8px;
    font-size: 12px;
}

/* Shrink Menu Styling */
.menu-container.shrink-menu .offcanvas-body {
    margin-top: 0rem;
    margin-bottom: 0rem;
    padding-top: 0rem;
    padding-bottom: 0rem;
    transition-duration: 0.25s;
}

/* ========================================
   7. RESPONSIVE STYLES
   ======================================== */

/* Large Desktop (1600px and below) */
@media (max-width: 1599px) {
    /* Navigation text sizing */
    .navbar-light .navbar-nav .nav-link {
        font-size: 0.85rem;
    }
    
    /* Logo sizing for large screens */
    .menu-container img.kcc-logo {
        position: absolute;
        width: 270px;
        height: 135px;
        top: -0.45rem;
        left: .25rem;
        transition-duration: 0.25s;
    } 
    
    .menu-container.shrink-menu img.kcc-logo {
        width: 260px;
        height: 135px;
        top: -1.75rem;
        left: .25rem;
        transition-duration: 0.25s;
    }
    
    /* Navigation button text sizing */
    .phone-text { font-size: 0.9rem; }
    .call-text { font-size: 0.7rem; }
    .schedule-text { font-size: 0.875rem; }
    .heroes-text { font-size: 0.65rem; }
    
    .schedule-nav-pill a {
        padding: 12px 8px;
    }
}

/* Medium Desktop (1400px and below) */
@media (max-width: 1399px) {
    /* Navbar adjustments */
    nav.navbar {
        height: fit-content;
        transition-duration: 0.25s;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .shrink-menu nav.navbar {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        transition-duration: 0.25s;
    }
    
    /* Logo adjustments */
    .menu-container a.kcc-logo-place {
        display: block;
    }
    
    .menu-container a.kcc-logo-place img.kcc-logo {
        width: 200px;
        height: 100px;
        transition-duration: 0.25s;
    }
    
    .menu-container.shrink-menu a.kcc-logo-place img.kcc-logo {
        width: 180px;
        height: 90px;
        transition-duration: 0.25s;
    }
    
    .menu-container a.kcc-xxl-logo-place img.kcc-logo,
    .menu-container.shrink-menu a.kcc-xxl-logo-place img.kcc-logo {
        display: none;
    }
    
    /* Navigation adjustments */
    .nav-fill .nav-item,
    .nav-fill>.nav-link {
        flex: 1 1 auto;
        text-align: left;
    }
    
    .navbar-light .navbar-nav .nav-link {
        font-size: 1.35rem;
        transition-duration: 0.25s;
    }
    
    .btn.menu-btn {
        font-size: 1rem !important;
    }
    
    .rotate-at-mobile {
        transform: rotate(90deg);
    }
    
    /* Navigation button text sizing */
    .phone-text { font-size: 0.8rem; }
    .call-text { font-size: 0.65rem; }
    .schedule-text { font-size: 0.75rem; }
    .heroes-text { font-size: 0.6rem; }
    
    /* Offcanvas and nav pill adjustments */
    .offcanvas-body {    
        background: #FFF;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0) 9%, rgba(255, 255, 255, 1) 6%);
        height: fit-content;
        transition-duration: 0.25s;
        margin-top: 1rem;
        margin-bottom: 1rem;
        border-radius: 0rem; 
    }
    
    .schedule-nav-pill {
        background-color: #c42727; 
        color: white; 
        height: 100%; 
        border-top-right-radius: 0rem; 
        border-bottom-right-radius: 0rem;
    }
}

/* Tablet (992px and below) */
@media (max-width:991px) {
    /* Fixed menu positioning for mobile */
    .menu-container {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1030;
    }
    
    /* Navbar collapse styling */
    .navbar-collapse {
        background-color: #fff !important;
        border-radius: 0.25rem;
        z-index: 1;
    }
    
    .shrink-menu .navbar-collapse {
        background-color: #fff !important;
        border-radius: 0.25rem;
    }
    
    .navbar-light .navbar-nav .nav-link {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .mobile-logo {
        width: 200px;
        height: 100px;
    }
}

/* Small Tablet/Mobile (768px and below) */
@media (max-width:767px) {
    /* Logo sizing for small screens */
    .menu-container a.kcc-logo-place img.kcc-logo {
        width: 180px;
        height: 90px;
        transition-duration: 0.25s;
    }
    
    .menu-container.shrink-menu a.kcc-logo-place img.kcc-logo {
        width: 150px;
        height: 75px;
        transition-duration: 0.25s;
    }
    
    .menu-container.shrink-menu {
        background: rgba(255, 255, 255, 0.85) !important;
    }

  .kcc-hero-intro .container-fluid {
    padding-top: 14rem;
    padding-bottom: 0rem;
    width: 100%;
    max-width: 100%;
}
}

/* Mobile (576px and below) */
@media (max-width:576px) {
    /* Logo sizing for extra small screens */
    .menu-container a.kcc-logo-place img.kcc-logo {
        width: 150px;
        height: 75px;
        transition-duration: 0.25s;
    }
    
    .menu-container.shrink-menu a.kcc-logo-place img.kcc-logo {
        width: 100px;
        height: 50px;
        transition-duration: 0.25s;
    }
}

/* Extra Small Mobile (500px and below) */
@media (max-width:500px) {
    /* Placeholder for future extra small device styles */
}