/* style.css */

/* General Styles */
:root {
    --primary-color: #1a3e5c; /* Dark Blue from logo */
    --accent-color: #207a7e; /* Teal from logo */
    --light-bg-color: #f0f0f0;
    --white-color: #ffffff;
    --text-color: #333333;
    --light-text-color: #666666;
    --shadow-light: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 16px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    /* New gradient colors for CTA */
    --cta-gradient-start: #007bff; /* A blue */
    --cta-gradient-end: #28a745;   /* A green */
}

body {
    font-family: 'Inter', sans-serif; /* Using Inter font, fallback to sans-serif */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: 700;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }
p { margin-bottom: 1em; }

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 80px 20px;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
    box-shadow: var(--shadow-light);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* CTA Section specific styles */
.cta-section {
    background: linear-gradient(to right, var(--cta-gradient-start), var(--cta-gradient-end));
    color: var(--white-color); /* Ensures text inside this section is white */
}

.cta-section h2 {
    color: var(--white-color); /* Override h2 color for this section */
    font-size: 2.8em; /* Match image font size */
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.cta-btn-primary {
    /* Updated gradient to match image */
    background: linear-gradient(to right, #4c81ef, #207a7e); /* Blue to teal gradient for primary CTA */
    color: white;
    padding: 15px 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
    border-radius: 8px;
    transition: all 0.3s ease; /* Transition for all properties */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    border: none; /* Ensure no default border */
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.cta-btn-secondary {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7); /* Slightly transparent white border */
    color: white;
    padding: 15px 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.cta-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15); /* Slight white tint on hover */
    border-color: var(--white-color); /* Solid white border on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.cta-btn-secondary i {
    margin-right: 8px;
}

.cta-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cta-btn-secondary i {
    margin-right: 8px;
}


/* Header and Navigation */
.header {
    background-color: var(--white-color);
    box-shadow: var(--shadow-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 100px;
    height: 100px; /* Adjust logo size */
    margin-right: 5px;
    border-radius: 4px; /* Slightly rounded logo corners */
}

.logo span {
    color: var(--primary-color);
    font-size: 1.8em;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1em;
    padding: 5px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
    left: 0;
    background: var(--accent-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background-color: var(--primary-color);
    margin-bottom: 4px;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh; /* Responsive height */
    min-height: 500px;
    background: url('banner-1300x800.jpg') no-repeat center center/cover; /* Updated background image */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay for readability */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    animation: fadeInScale 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--white-color);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* About Section */
.about-section {
    background-color: var(--light-bg-color);
    text-align: center;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.about-text, .about-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.about-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

/* Features Section */
.features-section {
    background-color: var(--white-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: var(--light-bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-item .icon {
    font-size: 3em;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

/* Badge List for Luxury Vehicles */
.badge-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.badge-list li {
    background-color: #e6f4f0;
    color: #1a9676;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.7em;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}


/* Fleet Section (Common styles for Our Fleet page) */
.fleet-section {
    background-color: var(--light-bg-color);
}

.fleet-category {
    margin-bottom: 60px;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.fleet-category h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    color: var(--primary-color);
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.car-item {
    background-color: var(--light-bg-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.car-item img {
    max-width: 100%;
    height: 180px; /* Consistent image height */
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.car-item h3 {
    font-size: 1.5em;
    color: var(--primary-color);
}

.car-item p {
    color: var(--light-text-color);
    font-size: 0.95em;
}

/* Contact Section (Common styles for Contact page) */
.contact-section {
    background-color: var(--white-color);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
    justify-content: center;
}

.contact-form-wrapper, .contact-details-wrapper {
    flex: 1;
    min-width: 300px;
    background-color: var(--light-bg-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(32, 122, 126, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: var(--light-text-color);
}

.contact-details p i {
    font-size: 1.5em;
    color: var(--accent-color);
    margin-right: 15px;
    width: 30px; /* Fixed width for icons */
    text-align: center;
}

.map-container {
    width: 100%;
    height: 400px;
    background-color: #e9e9e9;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-top: 40px;
    box-shadow: var(--shadow-light);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9em;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.footer-column h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.footer-column p,
.footer-column ul {
    color: rgba(255, 255, 255, 0.8);
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--white-color);
}

.social-links {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white-color);
    font-size: 1.5em;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}


/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: var(--shadow-light);
        position: absolute;
        top: 80px; /* Height of header */
        left: 0;
        padding: 20px 0;
        text-align: center;
    }


    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    .about-content, .contact-container {
        flex-direction: column;
    }

    .about-text, .about-image, .contact-form-wrapper, .contact-details-wrapper {
        max-width: 100%;
        min-width: unset;
    }

    .features-grid, .car-grid {
        grid-template-columns: 1fr;
    }

    .section-padding {
        padding: 50px 20px;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        text-align: center;
        width: 100%;
        min-width: unset;
    }

    .social-links {
        justify-content: center;
    }

    .logo span {
        font-size: 1.2em;
    }

    .logo img {
        height: 100px;
        margin-right: 0px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.3em; }

    .btn {
        padding: 12px 25px;
        font-size: 0.9em;
    }

    .hero {
        min-height: 400px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .section-padding {
        padding: 30px 15px;
    }
}


.footer-link {
    color: #fff;
}

.footer-link:hover {
    color: #fff;
}