/*
Theme Name: MaxiCab Melbourne Theme
Theme URI: https://maxicab.au
Author: MaxiCab Melbourne
Author URI: https://maxicab.au
Description: Professional, SEO-optimized theme for MaxiCab Melbourne - Premium maxi cab and group transportation services in Melbourne. Fully compatible with Elementor page builder.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maxicab-theme
Tags: elementor, one-column, custom-colors, custom-menu, custom-logo, featured-images, full-site-editing, block-patterns, rtl-language-support, threaded-comments, translation-ready

MaxiCab Melbourne - Your trusted partner for maxi cab services, airport transfers, and group transportation across Melbourne.
*/

/* ==========================================================================
   CSS Variables & Root Styles
   ========================================================================== */
:root {
    --primary-color: #1a5f7a;
    --primary-dark: #134b61;
    --secondary-color: #ffc107;
    --accent-color: #28a745;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0;
    color: var(--text-color);
}

h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.75rem; margin-bottom: 1rem; }
h4 { font-size: 1.5rem; margin-bottom: 0.875rem; }
h5 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h6 { font-size: 1rem; margin-bottom: 0.625rem; }

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 0 20px;
}

/* Ensure container width on desktop */
@media (min-width: 992px) {
    .container {
        max-width: 1200px !important;
        width: 100%;
    }
}

.site-content {
    min-height: calc(100vh - 200px);
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.875rem;
}

.top-bar a {
    color: var(--white);
}

.top-bar a:hover {
    color: var(--secondary-color);
}

.header-main {
    padding: 15px 0;
}

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

.site-logo img,
.custom-logo {
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.custom-logo-link {
    display: inline-block;
    max-width: 100%;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo .site-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.site-logo .site-tagline {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

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

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 10px 18px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    background: var(--primary-color);
    color: var(--white);
}

/* Dropdown */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-radius: var(--border-radius);
    flex-direction: column;
    z-index: 100;
}

.main-navigation li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu a {
    padding: 12px 20px;
    border-radius: 0;
}

.main-navigation .sub-menu li:first-child a {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.main-navigation .sub-menu li:last-child a {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Header CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.header-phone svg {
    width: 20px;
    height: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-color);
}

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 80px 20px 20px;
        transition: var(--transition);
        z-index: 999;
        overflow-y: auto;
    }

    .main-navigation.active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
    }
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.site-footer {
    background: var(--bg-dark);
    color: #ccc;
    padding-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-widget h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 15px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget a {
    color: #ccc;
}

.footer-widget a:hover {
    color: var(--secondary-color);
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact-info svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--bg-dark);
}

@media (max-width: 991px) {
    .footer-widgets {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   Elementor Compatibility
   ========================================================================== */
.elementor-page .site-content {
    padding: 0;
}

.elementor-kit-primary-color {
    color: var(--primary-color);
}

.elementor-kit-secondary-color {
    color: var(--secondary-color);
}

/* Elementor Widgets Custom Styles */
.elementor-widget-heading .elementor-heading-title {
    font-family: var(--font-primary);
}

.elementor-widget-button .elementor-button {
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

/* ==========================================================================
   Booking Form Styles
   ========================================================================== */
.booking-form {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.booking-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

.booking-form .submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* ==========================================================================
   Service Cards
   ========================================================================== */
.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-card-image {
    height: 200px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.service-card-content {
    padding: 25px;
}

.service-card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.service-card-text {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* ==========================================================================
   Fleet Cards
   ========================================================================== */
.fleet-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.fleet-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.fleet-card-image {
    margin-bottom: 20px;
}

.fleet-card-image img {
    max-width: 100%;
    height: auto;
}

.fleet-card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.fleet-card-capacity {
    display: inline-block;
    background: var(--bg-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary-color);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.testimonial-stars {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-light);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.testimonial-author-name {
    font-weight: 600;
    margin: 0;
}

.testimonial-author-role {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

/* ==========================================================================
   FAQ Styles
   ========================================================================== */
.faq-item {
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: var(--bg-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-question:hover {
    background: #eee;
}

.faq-answer {
    padding: 20px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.section-padding {
    padding: 80px 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); color: var(--white); }
.bg-primary { background-color: var(--primary-color); color: var(--white); }

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .section-padding {
        padding: 50px 0;
    }

    .header-cta {
        display: none;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}
