/**
 * Theme Name: Woking Cars
 * Theme URI: https://wokingcars.co.uk
 * Author: Your Name
 * Author URI: https://yourwebsite.com
 * Description: A professional taxi service theme
 * Version: 1.0.0
 * License: GPL v2 or later
 * Text Domain: wokingcars
 */

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVIGATION STYLES - ALWAYS WHITE BACKGROUND ===== */
.navbar {
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 0; /* REDUCED from 25px to 15px */
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Keep same styles even when scrolled (no change) */
.navbar.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    padding: 15px 0; /* REDUCED from 25px to 15px */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== LOGO STYLES ===== */
.logo {
    max-width: 250px; /* REDUCED from 300px to 250px */
}

.logo img {
    max-height: 60px; /* REDUCED from 80px to 60px */
    width: auto;
}

.logo a {
    font-size: 1.8rem; /* REDUCED from 2.2rem to 1.8rem */
    font-weight: 700;
    color: #333333;
    text-decoration: none;
    text-shadow: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.logo a:hover {
    color: #ffcc00;
}

/* ===== DESKTOP MENU ===== */
.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px; /* REDUCED from 30px to 25px */
}

.menu li {
    position: relative;
}

.menu a {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem; /* REDUCED from 1rem to 0.95rem */
    padding: 8px 0; /* REDUCED from 10px to 8px */
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    text-shadow: none;
}

.menu a:hover {
    color: #ffcc00;
}

/* ===== DROPDOWN MENU ===== */
.menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
}

.menu .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu .sub-menu li {
    width: 100%;
}

.menu .sub-menu a {
    padding: 10px 20px; /* REDUCED from 12px to 10px */
    color: #333;
    font-size: 0.9rem; /* REDUCED from 0.95rem to 0.9rem */
    border-bottom: 1px solid #f0f0f0;
    text-shadow: none;
}

.menu .sub-menu a:hover {
    background: #f8f9fa;
    color: #ffcc00;
    padding-left: 25px;
}

.menu .sub-menu li:last-child a {
    border-bottom: none;
}

/* Dropdown Icon */
.dropdown-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Active Menu Item */
.menu li.current-menu-item > a,
.menu li.current_page_item > a {
    color: #ffcc00;
    font-weight: 600;
}

/* ===== MOBILE MENU TOGGLE ===== */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333333;
    z-index: 1001;
    text-shadow: none;
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: #ffcc00;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
    color: #ffcc00;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
    font-size: 0.9rem;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 992px) {
    .menu {
        gap: 15px; /* REDUCED from 20px to 15px */
    }
    
    .menu a {
        font-size: 0.9rem; /* REDUCED from 0.95rem to 0.9rem */
    }
    
    .logo a {
        font-size: 1.6rem; /* ADDED for medium screens */
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 0; /* ADDED for mobile */
    }
    
    .menu-toggle {
        display: block;
    }

    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 70px 30px 30px; /* REDUCED top padding from 80px to 70px */
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 1000;
    }

    .menu.active {
        right: 0;
    }

    .menu li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .menu a {
        padding: 12px 0; /* REDUCED from 15px to 12px */
        font-size: 1rem; /* REDUCED from 1.1rem to 1rem */
        justify-content: space-between;
        color: #333;
        text-shadow: none;
    }

    /* Mobile Dropdown */
    .menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        padding: 0 0 0 20px;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        width: 100%;
        border-radius: 0;
    }

    .menu .menu-item-has-children.active > .sub-menu {
        max-height: 500px;
        padding: 8px 0 8px 20px; /* REDUCED from 10px to 8px */
    }

    .menu .menu-item-has-children > a .dropdown-icon {
        transition: transform 0.3s ease;
    }

    .menu .menu-item-has-children.active > a .dropdown-icon {
        transform: rotate(180deg);
    }

    .menu .sub-menu a {
        padding: 10px 0; /* REDUCED from 12px to 10px */
        border-bottom: none;
        font-size: 0.95rem; /* REDUCED from 1rem to 0.95rem */
    }

    .menu .sub-menu a:hover {
        background: transparent;
        padding-left: 5px;
    }

    /* Overlay when menu is open */
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    /* Mobile Logo */
    .logo {
        max-width: 200px; /* REDUCED from 250px to 200px */
    }
    
    .logo a {
        font-size: 1.5rem; /* REDUCED from 1.8rem to 1.5rem */
        color: #333333;
        text-shadow: none;
    }
    
    .logo img {
        max-height: 50px; /* REDUCED from 70px to 50px */
    }
}

/* ===== SMALL MOBILE DEVICES ===== */
@media (max-width: 480px) {
    .navbar {
        padding: 10px 0; /* REDUCED from 15px to 10px */
    }
    
    .logo {
        max-width: 160px; /* REDUCED from 200px to 160px */
    }
    
    .logo a {
        font-size: 1.3rem; /* REDUCED from 1.5rem to 1.3rem */
        color: #333333;
        text-shadow: none;
    }
    
    .logo img {
        max-height: 40px; /* REDUCED from 50px to 40px */
    }
    
    .menu a {
        padding: 10px 0; /* ADDED for smaller screens */
        font-size: 0.95rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.pt-20 {
    padding-top: 20px;
}

.pb-20 {
    padding-bottom: 20px;
}


/* whatappp*/ 


/* ===== FLOATING WHATSAPP BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20b859;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
    color: #fff;
}

.whatsapp-float i {
    font-size: 32px;
}

/* Pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Tooltip on hover */
.whatsapp-float::after {
    content: "Chat with us on WhatsApp";
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-float:hover::after {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        line-height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float i {
        font-size: 27px;
    }
    
    .whatsapp-float::after {
        display: none; /* Hide tooltip on mobile */
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 22px;
        line-height: 45px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float i {
        font-size: 24px;
    }
}