﻿
@keyframes flashing-border {
    0% {
        border-color: var(--text-white);
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
    }

    100% {
        border-color: var(--accent-blue);
        box-shadow: 0 0 15px rgba(0, 114, 206, 0.9);
    }
}

.carousel-inner img {
    max-height: 500px; /* Use max-height instead of fixed height */
    width: 100%; /* Ensure full width */
    object-fit: contain; /* Show full image without cropping */
    border-radius: 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 82, 165, 0.6);
    border-radius: 50%;
    padding: 10px;
}

    .carousel-control-prev-icon:hover,
    .carousel-control-next-icon:hover {
        background-color: var(--accent-blue);
    }

/* Responsive adjustments for small screens */
@media (max-width: 768px) {
    .carousel-inner img {
        max-height: 300px; /* Reduced max-height for tablets */
        border-radius: 8px;
        object-fit: contain; /* Ensure no cropping */
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 8px;
        width: 30px;
        height: 30px;
    }

    .carousel-item img {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .carousel-inner img {
        max-height: 500px; /* Further reduced for mobile */
        border-radius: 6px;
        object-fit: contain; /* Ensure no cropping */
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 6px;
        width: 24px;
        height: 24px;
    }

    .carousel-item img {
        padding: 0.5rem;
    }
}

/* What We Offer Section */
.offer-card {
    background: var(--text-white);
    padding: 20px;
    border-radius: 10px;
    border-left: 2px solid var(--accent-blue);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards stretch to match tallest */
    justify-content: space-between; /* Distribute content evenly */
}

    .offer-card:hover {
        transform: translateY(-5px);
        box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }

    /* Icon Styling */
    .offer-card i {
        font-size: 2.5rem;
        color: var(--accent-blue);
        margin-bottom: 15px;
        display: inline-block;
        transition: all 0.3s ease-in-out;
    }

    /* Icon Animation on Hover */
    .offer-card:hover i {
        transform: scale(1.2) translateY(-5px);
        color: var(--primary-dark);
    }

    .offer-card h4 {
        font-weight: bold;
        color: var(--primary-dark);
        margin-bottom: 10px;
    }

    .offer-card p {
        font-size: 0.95rem;
        color: var(--text-medium);
        flex-grow: 1; /* Allow paragraph to take available space */
        margin-bottom: 15px;
    }

/* Know More Button Styling */
.KnowMoreBtn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--accent-blue);
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

    .KnowMoreBtn :hover {
        background-color: var(--accent-orange) !important;
    }

/* About Us Section Styling */
.about-section {
    background-color: #f8f8f8;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.about-text {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Image Styling */
.about-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Button Styling */
.about-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-blue);
    color: var(--text-white);
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s linear;
}

    .about-btn:hover {
        background-color: var(--primary-dark);
    }
/* Hero Section */
.hero {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .hero::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('/img/productImgs/bakery.webp') no-repeat center center/cover;
        opacity: 0.8;
        z-index: -1;
    }

    .hero .container {
        z-index: 3;
        color: var(--text-white);
    }

    .hero .content {
        margin-top: 20px;
    }

        .hero .content .icon-box {
            text-align: center;
            border-radius: 10px;
            border: 1px solid var(--accent-orange);
            box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
            padding: 20px;
            width: 100%;
            transition: all 0.3s ease-in-out;
            height: 100%; /* Ensure equal height for all boxes */
        }

            .hero .content .icon-box:hover {
                transform: translateY(-5px);
            }

            .hero .content .icon-box i {
                font-size: 40px;
                color: var(--accent-blue);
                transition: transform 0.3s ease-in-out;
            }

            .hero .content .icon-box:hover i {
                transform: rotate(360deg);
            }

            .hero .content .icon-box h4 {
                font-size: 18px;
                font-weight: 700;
                margin: 10px 0 15px 0;
                color: var(--primary-dark);
            }

            .hero .content .icon-box p {
                font-size: 14px;
                color: rgba(0, 82, 165, 0.8);
            }

    /* Ensure equal width for icon boxes */
    .hero .row.gy-4 > .col-md-2-4 {
        flex: 0 0 20%; /* Equal width for 5 columns */
        max-width: 20%;
    }

.text-title {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 3rem;
    position: relative;
}

    .text-title::after {
        content: '';
        width: 100px;
        height: 4px;
        background: var(--accent-orange);
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
    }

/* How It Works Section */
.how-it-works {
    padding: 10px 0;
    background: var(--background);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

    .how-it-works .container {
        max-width: 1200px;
    }


.timeline {
    position: relative;
}

/* Large Screens: Horizontal Row */
@media (min-width: 992px) {
    .timeline {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .step-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin: 0;
    }

    .step-number {
        width: 30px;
        height: 30px;
        line-height: 30px;
        border-radius: 50%;
        background: var(--accent-blue);
        color: var(--text-white);
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        margin-bottom: 10px;
        transition: background 0.3s ease;
    }

    .step-box:hover .step-number {
        background: var(--accent-orange);
    }

    .step-content {
        background: var(--text-white);
        padding: 15px;
        border-top: 4px solid var(--accent-blue);
        border-radius: 8px;
        width: 100%;
        text-align: center;
        transition: transform 0.3s ease, border-color 0.3s ease;
    }

    .step-box:hover .step-content {
        transform: scale(1.03);
        border-color: var(--accent-orange);
    }

    .step-content i {
        font-size: 24px;
        color: var(--accent-blue);
        margin-bottom: 8px;
        display: block;
    }

    .step-content h4 {
        font-size: 14px;
        font-weight: 600;
        color: var(--primary-dark);
        margin-bottom: 5px;
        text-transform: uppercase;
    }

    .step-content p {
        font-size: 12px;
        color: var(--text-medium);
        line-height: 1.3;
        margin: 0;
    }
}

/* Small Screens: Vertical Roadmap */
@media (max-width: 991px) {
    .timeline {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .step-box {
        display: flex;
        align-items: center;
        width: 100%;
        max-width: 320px;
        margin: 20px 0;
        position: relative;
    }

        .step-box:nth-child(odd) {
            flex-direction: row;
            justify-content: flex-start;
        }

        .step-box:nth-child(even) {
            flex-direction: row-reverse;
            justify-content: flex-end;
        }

    .step-number {
        width: 30px;
        height: 30px;
        line-height: 30px;
        border-radius: 50%;
        background: var(--accent-blue);
        color: var(--text-white);
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        margin: 0 15px;
        transition: background 0.3s ease;
    }

    .step-box:hover .step-number {
        background: var(--accent-orange);
    }

    .step-content {
        background: var(--text-white);
        padding: 15px;
        border-left: 4px solid var(--accent-blue);
        border-radius: 0 8px 8px 0;
        width: 100%;
        transition: transform 0.3s ease, border-color 0.3s ease;
    }

    .step-box:nth-child(even) .step-content {
        border-left: none;
        border-right: 4px solid var(--accent-blue);
        border-radius: 8px 0 0 8px;
    }

    .step-box:hover .step-content {
        transform: scale(1.02);
        border-color: var(--accent-orange);
    }

    .step-content i {
        font-size: 24px;
        color: var(--accent-blue);
        margin-bottom: 8px;
        display: block;
    }

    .step-content h4 {
        font-size: 14px;
        font-weight: 600;
        color: var(--primary-dark);
        margin-bottom: 5px;
        text-transform: uppercase;
    }

    .step-content p {
        font-size: 12px;
        color: var(--text-medium);
        line-height: 1.3;
        margin: 0;
    }

    .step-content .highlight {
        color: var(--accent-orange);
        font-weight: 600;
    }

    .step-box:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 20px;
        background: var(--accent-blue);
        z-index: 1;
    }

    .step-box:not(:last-child)::before {
        content: '\f282';
        font-family: 'bootstrap-icons';
        position: absolute;
        top: calc(100% + 20px);
        left: 50%;
        transform: translateX(-50%);
        font-size: 12px;
        color: var(--accent-blue);
        z-index: 1;
    }
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    .how-it-works h2 {
        font-size: 1.25rem;
    }

    .step-box {
        max-width: 280px;
    }

    .step-content {
        padding: 12px;
    }

        .step-content i {
            font-size: 20px;
        }

        .step-content h4 {
            font-size: 13px;
        }

        .step-content p {
            font-size: 11px;
        }

    .step-number {
        width: 26px;
        height: 26px;
        line-height: 26px;
        font-size: 12px;
        margin: 0 10px;
    }

    .step-box:not(:last-child)::after {
        height: 15px;
    }

    .step-box:not(:last-child)::before {
        top: calc(100% + 15px);
        font-size: 10px;
    }
}

/* Dealership Section */
.dealership {
    padding: 50px 0;
    background: var(--background);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

    .dealership .container {
        max-width: 1200px;
    }

    .dealership h2 {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--primary-dark);
        text-transform: uppercase;
        letter-spacing: 1px;
        position: relative;
        margin-bottom: 40px;
    }

        .dealership h2::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            width: 50px;
            height: 2px;
            background: var(--accent-orange);
        }

.dealership-text {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-medium);
    line-height: 1.5;
    margin-bottom: 30px;
}


.cta-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-blue);
    color: var(--text-white);
    text-decoration: none;
    font-size: 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: scale(1); /* Ensure initial scale is defined */

}

    .cta-btn:hover {
        background-color: var(--accent-orange);
        animation: bounce 0.4s ease-in-out ;
    }

@keyframes bounce {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.08); /* Peak of the bounce, slightly oversized */
    }

    60% {
        transform: scale(0.95); /* Slight undershoot for elasticity */
    }

    80% {
        transform: scale(1.05); /* Small rebound */
    }

    100% {
        transform: scale(1); /* Settle back to original size */
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .dealership h2 {
        font-size: 1.35rem;
    }

    .dealership-text {
        font-size: 0.95rem;
    }

    .cta-btn {
        padding: 10px 25px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .dealership h2 {
        font-size: 1.25rem;
    }

    .dealership-text {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .cta-btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
}

.testimonials-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.slider-container {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    width: 100%;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.testimonial-card {
    flex: 0 0 33.333%;
    padding: 1.5rem;
    background: var(--text-white);
    border-radius: 12px;
    border: 1px solid var(--accent-orange);
    margin: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

    .testimonial-card:hover {
        transform: translateY(-10px);
    }

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-dark);
}

.testimonial-location {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    background: var(--accent-blue);
    color: var(--text-white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

    .slider-btn:hover {
        background: var(--accent-orange);
    }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--primary-light);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .dot.active {
        background: var(--accent-orange);
    }

@media (max-width: 768px) {
    .slider-container {
        padding: 2rem 0;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .slider {
        display: flex;
        align-items: center;
    }

    .testimonial-card {
        flex: 0 0 calc(100% - 20px); /* Full width minus margins */
        margin: 0 10px; /* Center card with margins */
        max-width: calc(100% - 20px); /* Ensure card fits viewport */
    }

    .testimonials-heading {
        font-size: 2rem;
    }
}
