/*
    RENT-A-CAR :: ENHANCED UI STYLESHEET V2.3 (Final)
*/

/* === 1. ROOT VARIABLES & GLOBAL RESET === */
:root {
    --primary-color: #D32F2F;
    --primary-hover: #B71C1C;
    --whatsapp-color: #25D366;
    --dark-color: #1a1a1a;
    --footer-bg: #111111;
    --body-bg: #FFFFFF;
    --section-bg: #F8F9FA;
    --text-color: #212529;
    --light-text: #6C757D;
    --border-color: #E9ECEF;
    --border-radius: 12px;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    color: var(--text-color);
    background-color: var(--body-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}


/* === 2. LAYOUT & TYPOGRAPHY === */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.content-section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 650px;
    margin: 0 auto;
}

.bg-light { background-color: var(--section-bg); }
.bg-dark { background-color: var(--dark-color); color: #fff; }
.bg-dark .section-header p { color: rgba(255, 255, 255, 0.7); }

h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--dark-color);
}
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }


/* === 3. MODERN HEADER & NAVIGATION === */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark-color);
    text-decoration: none;
}
.logo span { color: var(--primary-color); }

.main-nav a {
    margin: 0 1.25rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color var(--transition-speed) ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.main-nav a:hover, .main-nav a:focus {
    color: var(--primary-color);
}

.main-nav a:hover::after, .main-nav a.active-link::after {
    width: 100%;
}

.main-nav a.active-link {
    color: var(--primary-color);
    font-weight: 600;
}


/* --- Mobile Navigation --- */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 2px;
    background-color: var(--dark-color);
    transition: background-color 0.15s ease-in-out;
}
.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background-color: var(--dark-color);
    transition: transform 0.3s ease-in-out;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }


/* --- Active Mobile Menu State --- */
.mobile-nav-toggle.active .hamburger {
    background-color: transparent;
}
.mobile-nav-toggle.active .hamburger::before {
    transform: rotate(45deg) translate(5px, 6px);
}
.mobile-nav-toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* === 4. SHARED COMPONENTS === */
.icon-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #fff;
    font-size: 1.75rem;
    transition: transform var(--transition-speed) ease;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 0.8rem 1.75rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all var(--transition-speed) ease;
}
.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* === 5. PAGE SECTIONS === */
.hero-section {
    color: white;
    text-align: center;
    padding: 9rem 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/hero-background.jpg') no-repeat center center/cover;
}
.page-header {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 4rem 0;
}
.hero-content h1, .page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.page-header h1 { font-size: 3rem; }
.hero-content p, .page-header p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}
.page-header p { font-size: 1.1rem; }
.description-section .section-header {
    margin-bottom: 0;
}
.description-section .section-header p {
    max-width: 800px;
}
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}
.car-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.car-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}
.car-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.car-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.car-card h3 {
    margin-top: 0;
    font-size: 1.4rem;
}
.car-card p {
    color: var(--light-text);
    margin-bottom: 1rem;
}
.car-card .price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.25rem 0;
    flex-grow: 1;
}
.car-card .price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--light-text);
}
.services-grid, .steps-container, .features-grid, .core-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    text-align: center;
}
.service-item h3, .step h3, .feature-item h4, .feature-box h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.service-item:hover .icon-circle, .step:hover .icon-circle, .feature-item:hover .icon-circle {
    transform: scale(1.1);
}
.feature-item {
    background: var(--section-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}
.bg-dark .feature-item {
    background: rgba(255,255,255, 0.05);
    border: none;
}
.feature-box {
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: #fff;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}
.feature-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem 2rem;
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-icon {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: transform var(--transition-speed) ease;
}
.faq-answer {
    padding-bottom: 1.5rem;
    color: var(--light-text);
    line-height: 1.8;
}
.faq-item[open] .faq-question {
    color: var(--primary-color);
}
.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

/* === 6. FOOTER === */
.site-footer {
    background-color: var(--footer-bg);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    padding-bottom: 3rem;
}
.footer-column h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.footer-column p {
    line-height: 1.8;
}
.footer-column ul {
    list-style: none;
    padding: 0;
}
.footer-column ul li {
    margin-bottom: 0.75rem;
}
.footer-column ul a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}
.footer-column ul a:hover {
    color: #fff;
}
.contact-list i {
    margin-right: 10px;
    width: 20px;
    color: var(--primary-color);
}
.social-icons {
    display: flex;
    gap: 1rem;
}
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color var(--transition-speed) ease;
}
.social-icons a:hover {
    background-color: var(--primary-color);
}
.footer-bottom-bar {
    background-color: var(--dark-color);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}
.footer-bottom-bar .powered-by {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}
.footer-bottom-bar .powered-by a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}
.footer-bottom-bar .powered-by a:hover {
    color: #fff;
}

/* === 7. OTHER PAGES === */
.contact-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.contact-details {
    background: var(--section-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 550px;
    border: 1px solid var(--border-color);
}
.contact-details h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}
.contact-details p {
    color: var(--light-text);
    margin-bottom: 2rem;
}
.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}
.contact-info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
    margin-right: 1rem;
}
.about-us-content {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--light-text);
}
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}
.mission-vision-item {
    text-align: center;
}
.mission-vision-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.mission-vision-item p {
    color: var(--light-text);
}
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    text-align: center;
}
.offer-item {
    background: var(--section-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}
.offer-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
}
.offer-item i {
    margin-right: 0.75rem;
    color: var(--primary-color);
}
.offer-item p {
    color: var(--light-text);
    font-size: 0.95rem;
    margin-top: 0.75rem;
}
.services-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}
.service-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}
.service-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.service-card-description {
    color: var(--light-text);
}
.filter-section {
    padding: 2.5rem 0;
    background-color: var(--section-bg);
    border-bottom: 1px solid var(--border-color);
}
.filter-bar {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.filter-group label {
    font-weight: 500;
}
.filter-group select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    cursor: pointer;
}
.car-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-top: 1rem;
}
.car-card-details span {
    color: var(--light-text);
    font-size: 0.9rem;
}
.car-card-details span i {
    margin-right: 0.4rem;
    color: var(--primary-color);
}
.no-results-message {
    text-align: center;
    padding: 4rem 0;
}
.no-results-message h3 {
    font-size: 1.75rem;
}
.no-results-message p {
    color: var(--light-text);
}

/* === 8. WHATSAPP BUTTONS === */
.btn-whatsapp {
    background-color: var(--whatsapp-color);
    display: block;
    margin-top: auto;
}
.btn-whatsapp:hover {
    background-color: #1EBE59;
}
.btn-whatsapp i {
    margin-right: 0.5rem;
}
.floating-whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform var(--transition-speed) ease;
}
.floating-whatsapp-btn:hover {
    transform: scale(1.1);
}

/* === 9. TESTIMONIALS === */
.testimonial-section {
    padding-bottom: 0;
}
.testimonial-scroller {
    width: 100%;
    overflow: hidden;
    padding: 3rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}
.testimonial-track {
    display: flex;
    width: calc((350px + 2rem) * 6);
    animation: scroll 40s linear infinite;
}
.testimonial-scroller:hover .testimonial-track {
    animation-play-state: paused;
}
@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc((350px + 2rem) * -3));
    }
}
.testimonial-card {
    flex-shrink: 0;
    width: 350px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 0 1rem;
    box-shadow: var(--shadow-soft);
}
.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.testimonial-header h4 {
    margin: 0;
}
.stars {
    color: #FFC107;
}
.testimonial-card p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* === 10. RESPONSIVENESS === */
@media (max-width: 992px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}
@media (max-width: 768px) {
    body {
        font-size: 95%;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .hero-content h1, .page-header h1 {
        font-size: 2.5rem;
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        display: flex;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    .main-nav.active {
        transform: translateX(0);
    }
    .main-nav a {
        font-size: 1.5rem;
        margin: 1.5rem 0;
    }
    .mobile-nav-toggle {
        display: block;
    }
}
/* === 14. UPDATED PRICE GROUP STYLES === */
.price-group {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: 1.25rem;
}
.price-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-color);
}
.price-label {
    font-size: 0.9rem;
    color: var(--light-text);
    font-weight: 500;
}
.price-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}
/* === 14. FLOATING PHONE BUTTON === */

.floating-phone-btn {
    position: fixed;
    bottom: 25px;
    left: 25px; /* Position on the left */
    width: 60px;
    height: 60px;
    background-color: var(--primary-color); /* Use the main theme color */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem; /* Slightly smaller icon than WhatsApp */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform var(--transition-speed) ease;
    text-decoration: none;
}

.floating-phone-btn:hover {
    transform: scale(1.1);
    color: #fff;
}
/* === 15. FLEET OPTIONS PAGE === */

.fleet-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.option-card {
    display: block;
    text-decoration: none;
    background-color: var(--section-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.option-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.option-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.option-card h3 {
    font-size: 1.75rem;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.option-card p {
    color: var(--light-text);
    line-height: 1.8;
}

/* Responsiveness for options page */
@media (max-width: 768px) {
    .fleet-options-grid {
        grid-template-columns: 1fr;
    }
}
.hero-buttons {
    margin-top: 20px;
}

.hero-buttons .btn {
    padding: 12px 30px;
    margin-right: 10px;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.hero-buttons .btn-primary {
    background-color: #007bff;
    color: white;
}

.hero-buttons .btn-primary:hover {
    background-color: #0056b3;
}

.hero-buttons .btn-secondary {
    background-color: #28a745;
    color: white;
}

.hero-buttons .btn-secondary:hover {
    background-color: #218838;
}
