/*
Theme Name: Elementor October
Description: Professional WordPress theme for motorcycle dealership - FULLY COMPATIBLE with Elementor Pro for front page editing
Version: 2.1
Author: Scooterinomotorino Team
Text Domain: elementor-october
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles  */ 
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
/*

.site-header {
  padding: 10px 0 !important;
}

.header-counter {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   justify-content: space-between;
   gap: 20px;
}

.site-branding,
.contact-info {
  max-width: 45%;
}
*/
.site-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.site-title a {
    text-decoration: none;
    color: #e31e24;
}

.contact-info {
    text-align: right;
}

.contact-info h3 {
    color: #CC0000;
    margin-bottom: 5px;
    font-size: 18px;
}

.contact-info p {
    margin: 2px 0;
    font-size: 14px;
}

/* Main Content */
.site-content {
    min-height: 60vh;
    padding: 20px 0;
}

/* Menu Section */
.menu-section {
    margin: 40px 0;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.menu-item {
    position: relative;
}

.menu-item a {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.menu-item:hover a {
    transform: translateY(-5px);
}

.menu-button {
    background: #CC0000;
    color: white;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.menu-button:hover {
    background: #990000;
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.menu-button.cfmoto-btn {
    background: #007BFF !important;
}

.menu-button.cfmoto-btn:hover {
    background: #0056b3 !important;
}

.menu-button.kymco-btn {
    background: #CC0000 !important;
}

.menu-button.kymco-btn:hover {
    background: #990000 !important;
}

.menu-button.used-bikes-btn {
    background: #8B4513 !important;
}

.menu-button.used-bikes-btn:hover {
    background: #654321 !important;
}

.menu-button h2 {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

/* Featured Products */
.featured-products {
    margin: 60px 0;
}

.featured-products h2 {
    text-align: center;
    color: #CC0000;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* Responsive Banner Section */
.banner-section {
    margin: 30px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.banner-item {
    text-align: center;
}

.banner-link {
    display: block;
    text-decoration: none;
}

.banner-image {
    max-width: 100%;
    width: 100%;
    max-height: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.banner-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

/* Mobile responsive - single column */
@media (max-width: 768px) {
    .banner-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card,
.motorcycle-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover,
.motorcycle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.product-card img,
.motorcycle-card img {
    width: 100%;
    height: auto;
    display: block;
}

.motorcycle-card .motorcycle-image {
    position: relative;
    overflow: hidden;
}

.motorcycle-card .motorcycle-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.motorcycle-card:hover .motorcycle-image img {
    transform: scale(1.05);
}

.motorcycle-card .motorcycle-details {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.motorcycle-card .motorcycle-model {
    font-size: 1.4rem;
    font-weight: bold;
    color: #CC0000;
    margin: 0 0 10px 0;
    text-align: center;
}

.motorcycle-card .motorcycle-weekly-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #28a745;
    margin: 0;
    text-align: center;
}

.motorcycle-card[data-in-stock="yes"]::before {
    content: "IN STOCK";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.motorcycle-card[data-in-stock="no"]::before {
    content: "OUT OF STOCK";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

/* Stock Counter */
.stock-counter {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #CC0000;
}

.stock-counter h3 {
    color: #CC0000;
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.stock-counter p {
    margin: 0;
    font-size: 1rem;
    color: #666;
}

/* Page Navigation */
.back-to-home-section {
    margin: 20px 0;
}

.back-to-home-button {
    display: inline-block;
    background: #CC0000;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.back-to-home-button:hover {
    background: #990000;
}

/* Page Title */
.page-title {
    text-align: center;
    color: #CC0000;
    font-size: 2.5rem;
    margin: 30px 0;
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #555;
    text-align: center;
}

/* SSL Indicator */
.ssl-indicator {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Responsive Design - Enhanced Mobile Optimization */
@media (max-width: 768px) {
    /* Compact Mobile Header */
    .header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 10px 15px; /* Reduced padding */
    }
    
    .site-title {
        font-size: 1.5rem; /* Smaller title */
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-info h3 {
        font-size: 16px; /* Smaller contact heading */
        margin-bottom: 3px;
    }
    
    .contact-info p {
        font-size: 12px; /* Smaller contact text */
        margin: 1px 0;
    }
    
    /* Menu Section */
    .menu-section {
        margin: 20px 0; /* Reduced margin */
    }
    
    .menu-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns on mobile */
        gap: 10px;
    }
    
    .menu-button {
        height: 120px; /* Much smaller height */
    }
    
    .menu-button h2 {
        font-size: 1.4rem; /* Smaller text */
    }
    
    /* Featured Products */
    .featured-products {
        margin: 30px 0; /* Reduced margin */
    }
    
    .featured-products h2,
    .page-title {
        font-size: 1.8rem; /* Smaller heading */
        margin-bottom: 20px;
    }
    
    /* Finance Banner */
    .finance-banner-section {
        margin: 15px 0;
        padding: 10px;
    }
    
    /* Products Grid - Optimized for Mobile */
    .products-grid {
        grid-template-columns: 1fr; /* ONE column on mobile for large images */
        gap: 15px;
    }
    
    .category-products {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    /* Product Cards */
    .product-card,
    .motorcycle-card {
        border-radius: 10px;
    }
    
    .category-product-card .product-details {
        padding: 10px;
    }
    
    .category-product-card .product-model {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .category-product-card .product-price {
        font-size: 1rem;
        margin-bottom: 3px;
    }
    
    .category-product-card .product-weekly-price {
        font-size: 0.85rem;
    }
    
    /* Stock Counter */
    .stock-counter {
        margin: 15px 0;
        padding: 10px;
    }
    
    .stock-counter h3 {
        font-size: 1.1rem;
    }
    
    .stock-counter p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    /* Ultra-compact header for small screens */
    .header-content {
        padding: 8px 10px;
        gap: 8px;
    }
    
    .site-title {
        font-size: 1.3rem;
    }
    
    .contact-info h3 {
        font-size: 14px;
    }
    
    .contact-info p {
        font-size: 11px;
    }
    
    /* Menu buttons even smaller */
    .menu-grid {
        grid-template-columns: 1fr; /* Stack vertically on very small screens */
        gap: 8px;
    }
    
    .menu-button {
        height: 100px;
    }
    
    .menu-button h2 {
        font-size: 1.2rem;
    }
    
    /* Products optimized for very small screens */
    .featured-products h2,
    .page-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .products-grid {
        grid-template-columns: 1fr; /* ONE column for large images */
        gap: 10px;
    }
    
    .category-products {
        grid-template-columns: 1fr;
    }
    
    /* Finance banner smaller */
    .finance-banner-section {
        margin: 10px 0;
        padding: 5px;
    }
    
    /* Back button smaller */
    .back-to-home-section {
        margin: 10px 0;
    }
    
    .back-to-home-button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Additional Product Card Styles for Category Pages */
.category-product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.category-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.category-product-card .product-image {
    position: relative;
    overflow: hidden;
}

.category-product-card .product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-product-card:hover .product-image img {
    transform: scale(1.05);
}

.category-product-card .product-details {
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.category-product-card .product-model {
    font-size: 1.1rem;
    font-weight: bold;
    color: #CC0000;
    margin: 0 0 8px 0;
}

.category-product-card .product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.category-product-card .product-weekly-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: #28a745;
    margin: 0;
}

.category-product-card[data-in-stock="yes"]::before {
    content: "IN STOCK";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

.category-product-card[data-in-stock="no"]::before {
    content: "OUT OF STOCK";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

/* No products message styling */
.no-products-message {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
}

.no-products-message h3 {
    color: #CC0000;
    margin-bottom: 15px;
}

.no-products-message p {
    color: #666;
    margin: 10px 0;
    line-height: 1.6;
}

/* Trade-in section styling */
.trade-in-section {
    background: #f5f5f5;
    padding: 30px;
    margin: 40px 0;
    border-radius: 8px;
    text-align: center;
}

.trade-in-section h2 {
    color: #CC0000;
    margin-bottom: 15px;
}

.trade-in-section p {
    margin: 10px 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .trade-in-section {
        padding: 20px;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .trade-in-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .trade-in-section h2 {
        font-size: 1.3rem;
    }
}



/* Logo Styles */
.site-logo .custom-logo {
    max-height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.site-logo .custom-logo:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .site-logo .custom-logo {
        max-height: 60px;
    }
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #CC0000 0%, #990000 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ffcccc;
}

.modal-body {
    padding: 30px;
}

/* Form Styles */
.scooterino-form {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #CC0000;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #CC0000 0%, #990000 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #990000 0%, #660000 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(204, 0, 0, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Mobile Responsive Forms */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Form Validation Styles */
.form-group input:invalid,
.form-group select:invalid {
    border-color: #dc3545;
}

.form-group input:valid,
.form-group select:valid {
    border-color: #28a745;
}

/* Loading State */
.btn:disabled {
    position: relative;
}

.btn:disabled::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

