/*
Theme Name: Limousine
Theme URI: https://www.longislandlimorental.com
Author: KK Bhardwaj
Author URI: https://bhardwajwebsolution.com
Description: Professional Long Island Limousine Rental Theme - Custom built for luxury chauffeured transportation services.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: limousine
Tags: custom-menu, custom-logo, elementor, one-column, two-columns, full-width-template
*/

/* ===================================
   Professional Limousine Theme Styles
   Developer: KK Bhardwaj
   =================================== */

/* === Reset & Base === */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #000;
}

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

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }

a {
    color: #dc143c;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff0000;
}

/* === Header === */
.site-header {
    background-color: #000;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding .site-title {
    margin: 0;
    font-size: 1.8rem;
}

.site-branding .site-title a {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.site-branding .site-title a:hover {
    color: #dc143c;
}

/* === Navigation === */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #fff;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.main-navigation a:hover {
    color: #dc143c;
}

/* === Main Content === */
.site-main {
    min-height: 60vh;
    background-color: #000;
    color: #fff;
    padding: 40px 0;
}

.site-main .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* === Elementor Compatibility === */
.elementor-section {
    background-color: transparent;
}

/* === Footer === */
.site-footer {
    background-color: #111;
    color: #999;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 3px solid #dc143c;
}

.footer-content {
    text-align: center;
}

.footer-navigation ul {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-navigation a {
    color: #999;
    font-size: 14px;
}

.footer-navigation a:hover {
    color: #dc143c;
}

.site-info {
    font-size: 14px;
    line-height: 1.8;
}

.site-info p {
    margin: 5px 0;
}

.developer-credit a {
    color: #dc143c;
    font-weight: 600;
}

.developer-credit a:hover {
    color: #ff0000;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #dc143c;
    color: #fff;
    border: 2px solid #dc143c;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: transparent;
    color: #dc143c;
}

/* === Responsive === */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 20px;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-navigation ul {
        flex-direction: column;
        gap: 10px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

/* === Animations === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* === Loading State === */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* =============================================
   GLOBAL MOBILE RESPONSIVE FIXES
   Fix overflow, tables, sidebars on all pages
   ============================================= */

/* Prevent horizontal scroll on all pages */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Make all tables responsive - wrap in scrollable container */
table {
    max-width: 100%;
    border-collapse: collapse;
}

/* Elementor table widget + Table Maker plugin responsive */
.tablepress,
.table-maker,
.elementor-widget-table table,
.wp-block-table table,
.entry-content table,
.site-main table,
.service-detail table,
.location-detail table,
table.limo-table {
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Wrap any table in a scrollable container */
.elementor-widget-table,
.wp-block-table,
.tablepress-table-description + .tablepress-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* Images never exceed container */
img {
    max-width: 100%;
    height: auto;
}

/* Elementor containers respect viewport */
.elementor-section > .elementor-container {
    max-width: 100%;
}

@media (max-width: 1024px) {
    /* Service/Location detail: 2-column to single column */
    .service-content-grid,
    .service-detail-grid,
    .location-content-grid,
    .elementor-section .elementor-container {
        max-width: 100% !important;
    }

    /* Elementor columns stack on tablet */
    .elementor-column.elementor-col-50,
    .elementor-column.elementor-col-33,
    .elementor-column.elementor-col-66 {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    /* Force single column layout for all grid-based pages */
    .service-content-grid,
    .service-detail-grid,
    .location-content-grid {
        display: block !important;
        grid-template-columns: 1fr !important;
    }

    /* Service detail page sidebar - full width on mobile */
    .service-right-sidebar,
    .service-sidebar,
    .location-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 30px;
    }

    /* Service detail left content - full width */
    .service-left-content,
    .service-content,
    .location-left-content,
    .location-content {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Elementor two-column sections collapse */
    .elementor-section .elementor-container {
        flex-wrap: wrap !important;
    }

    .elementor-section .elementor-container > .elementor-column,
    .elementor-section .elementor-container > .elementor-row > .elementor-column {
        width: 100% !important;
        flex-basis: 100% !important;
    }

    /* Tables: ensure they scroll horizontally */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    table td, table th {
        min-width: 80px;
        padding: 8px 10px;
        font-size: 14px;
    }

    /* Hero sections on mobile */
    .service-hero-section,
    .location-hero-section {
        min-height: 250px !important;
    }

    .service-hero-title,
    .location-hero-title {
        font-size: 1.8rem !important;
    }

    /* Form containers */
    .service-sidebar-form,
    .location-sidebar-form,
    .quick-inquiry-form-wrapper {
        max-width: 100% !important;
        padding: 20px !important;
    }

    /* Service description content */
    .service-description-box,
    .location-description-box {
        font-size: 1rem !important;
        line-height: 1.7 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Trust/CTA boxes */
    .service-trust-box,
    .service-sidebar-cta,
    .location-trust-box {
        padding: 20px !important;
    }

    /* CTA buttons stack vertically */
    .service-cta-btn,
    .location-cta-btn {
        width: 100% !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    /* Smaller hero */
    .service-hero-section,
    .location-hero-section {
        min-height: 200px !important;
    }

    .service-hero-title,
    .location-hero-title {
        font-size: 1.4rem !important;
    }

    /* Tighter padding */
    .service-left-content,
    .service-sidebar-form,
    .location-left-content {
        padding: 15px !important;
        border-radius: 10px !important;
    }

    /* Table font smaller */
    table td, table th {
        font-size: 13px;
        padding: 6px 8px;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }
}

/* =============================================
   ELEMENTOR SERVICE DETAIL PAGE OVERRIDES
   Ensure Elementor-built service pages are
   responsive in the sidebar/form area
   ============================================= */

/* Service detail Elementor form in sidebar */
.service-sidebar-form .elementor,
.service-sidebar-form .elementor-inner,
.service-sidebar-form .elementor-section-wrap,
.service-sidebar-form .elementor-section,
.service-sidebar-form .elementor-container,
.service-sidebar-form .elementor-column,
.service-sidebar-form .elementor-widget-wrap,
.service-sidebar-form .elementor-element {
    width: 100% !important;
    max-width: 100% !important;
}

/* Elementor form fields full width in service sidebar */
.service-sidebar-form .elementor-form .elementor-field-group {
    width: 100% !important;
    flex-basis: 100% !important;
}

.service-sidebar-form .elementor-form .elementor-field {
    width: 100% !important;
}

.service-sidebar-form .elementor-form .elementor-button {
    width: 100% !important;
}
