/* 
* Kaira Motors Gujrat - Custom CSS
* Modern dealership website
*/

/* Global Styles */
:root {
    --primary-color: #d9232d;
    --secondary-color: #333333;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 3px;
    background: var(--primary-color);
}

.text-center .section-title:after {
    left: 50%;
    transform: translateX(-50%);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #b31b24;
}

.btn {
    border-radius: var(--border-radius);
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #b31b24;
    border-color: #b31b24;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-light:hover {
    color: var(--dark-color);
}

img {
    max-width: 100%;
}

/* Header & Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    padding: 0;
}

.logo-img {
    max-height: 60px;
    max-width: 200px;
    object-fit: contain;
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #f8f9fa !important;
    margin: 0 0.5rem;
    position: relative;
    padding: 0.5rem 0;
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
    width: 100%;
}

/* Hero Section with Carousel */
.hero-section {
    position: relative;
    height: auto;
    overflow: hidden;
}

.carousel,
.carousel-inner,
.carousel-item {
    height: auto;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 90vh;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    color: white;
    text-align: left;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    max-width: 600px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    right: auto;
    bottom: auto;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* About Section */
.about-section img {
    transition: var(--transition);
}

.about-section img:hover {
    transform: scale(1.02);
}

.key-info {
    font-size: 1.1rem;
}

/* Brands Section */
.brand-card {
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.brand-card:hover {
    transform: translateY(-10px);
}

.brand-logo {
    height: 80px;
    margin-bottom: 1.5rem;
}

.car-models {
    margin-top: 2rem;
}

.car-model {
    margin-bottom: 1.5rem;
}

.car-model img {
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.car-model img:hover {
    transform: scale(1.05);
}

.car-model h4 {
    margin-bottom: 1rem;
}

/* Services Section */
.service-card {
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
}

/* Testimonials Section */
.testimonial-card {
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-rating {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
}

/* Instagram Section */
.instagram-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.instagram-item img {
    transition: var(--transition);
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.instagram-overlay i {
    color: white;
    font-size: 2rem;
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

/* Contact Section */
.contact-info {
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
}

.contact-text h4 {
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-5px);
    background-color: #b31b24;
    color: white;
}

.google-map {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 4rem 0;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bbbbbb;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer .social-link {
    background-color: white;
    color: var(--dark-color);
}

.footer .social-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer .contact-info p {
    margin-bottom: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content {
        max-width: 500px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section {
        height: auto;
    }
    
    .hero-image {
        max-height: 80vh;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: var(--border-radius);
    }
    
    .service-card, .testimonial-card, .brand-card {
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-image {
        max-height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Deliveries Section */
.deliveries-section {
    background-color: white;
}

.delivery-card {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1rem;
    transition: var(--transition);
    height: 100%;
}

.delivery-card img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    transition: var(--transition);
}

.delivery-card:hover {
    transform: translateY(-5px);
}

.delivery-card:hover img {
    transform: scale(1.05);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-float i {
    margin: 0;
}

/* Responsive adjustments for WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
} 