/* General Styling */
:root {
    --primary-color: #e44d26; /* Example: A reddish-orange from the design */
    --secondary-color: #2c3e50; /* Example: A dark blue/grey for text/backgrounds */
    --text-color: #333;
    --light-grey: #f4f4f4;
    --dark-grey: #555;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

ul {
    list-style: none;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #c73c1f; /* Slightly darker primary */
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block; /* For the "Learn More" buttons */
    margin-top: 20px;
}

.btn-secondary:hover {
    background-color: #1a2733; /* Slightly darker secondary */
}

.btn-book-now {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

.btn-book-now:hover {
    background-color: #c73c1f;
}

/* Header */
.main-header {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--white);
    color: var(--secondary-color);
    padding: 10px 0;
    font-size: 0.9em;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.top-bar .contact-info span {
    margin-right: 20px;
}

.top-bar .contact-info i {
    margin-right: 5px;
    color: var(--primary-color);
}

.top-bar .social-media a {
    color: var(--white);
    margin-left: 15px;
    transition: color 0.3s ease;
}

.top-bar .social-media a:hover {
    color: var(--primary-color);
}

.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--secondary-color);
}

.logo .okinawa {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
  
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none; /* Hidden by default for desktop */
    font-size: 1.5em;
    cursor: pointer;
    color: white;
}

/* Carousel Hero Section */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height for desktop */
    overflow: hidden; /* Hide overflowing slides */
}

.carousel-inner {
    display: flex; /* Arrange slides in a row */
    height: 100%; /* Ensure inner container takes full height */
    transition: transform 0.7s ease-in-out; /* Smooth sliding animation */
}

/* Each slide */
.hero-section {

    flex: 0 0 100%; /* Each slide takes full width, no shrinking/growing */
    min-width: 100%; /* Ensure it always takes 100% */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: var(--white);
    text-align: center;
    padding: 150px 20px;
    position: relative;
    display: flex; /* Use flexbox for content centering */
    align-items: center;
    justify-content: center;
    box-sizing: border-box; /* Include padding in width/height */
    height: 100%; /* Ensure slide takes full height of carousel-inner */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay for readability */
    z-index: 1; /* Keep overlay above background image */
}

.hero-content {
    position: relative; /* Bring content above overlay */
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.3em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* Carousel Controls (Arrows) */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    font-size: 1.5em;
    z-index: 3; /* Above slides and overlay */
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

/* Carousel Pagination (Dots) */
.carousel-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.carousel-pagination .dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-pagination .dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* About Us Section */
.about-us-section {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 80px 0px;
    flex-wrap: wrap; /* Allow wrapping */
}

.about-image {
    flex: 1;
    padding: 10px;
    /* Minimum width for the image */
}

.about-image img {
  
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-content {
    flex: 1.5;
    min-width: 300px; /* Minimum width for content */
}

.about-content h2 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.about-content h3 {
    font-size: 2.2em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--dark-grey);
}

/* Our Services Section */
.our-services-section {
    background-color: var(--light-grey);
    padding: 80px 0;
    text-align: center;
}

.our-services-section h2 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.our-services-section h3 {
    font-size: 2.2em;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-item h4 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.service-item p {
    color: var(--dark-grey);
}
.service-item .button {
    padding: 2px;
}
/* Stats Section */
.stats-section {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.stats-section .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    flex: 1;
    min-width: 180px;
}

.stat-item i {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-item h3 {
    font-size: 3em;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
}

/* Pricing Sections (Car Washing & Upholstery) */
.pricing-section {
    padding: 80px 0;
    text-align: center;
}

.pricing-section h3 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.pricing-section h2 {
    font-size: 2.2em;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.plan-card {
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: left;
    position: relative; /* For image positioning */
    overflow: hidden; /* To contain the image if it goes outside */
}

.plan-card h4 {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.plan-card .price {
    font-size: 2.5em;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 20px;
}

.plan-card ul {
    margin-bottom: 20px;
}

.plan-card ul li {
    margin-bottom: 10px;
    color: var(--dark-grey);
    display: flex;
    align-items: center;
}

.plan-card ul li i {
    color: green; /* Checkmark color */
    margin-right: 10px;
}

.plan-card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-top: 20px; /* Space between text and image */
    display: block; /* Remove extra space below image */
}

/* Special styling for the wide ultimate package card */
.car-washing-plan .plan-card.wide {
    grid-column: span 2; /* Spans two columns */
    max-width: 630px; /* Adjust as needed for alignment */
    margin: 0 auto; /* Center the wide card */
}

/* Our Address Section */
.our-address-section {
    display: flex;
    gap: 40px;
    padding: 80px 0;
    flex-wrap: wrap;
    align-items: flex-start;
}

.address-content {
    flex: 1;
    min-width: 300px;
}

.address-content h2 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.address-content h3 {
    font-size: 2.2em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.address-content p {
    margin-bottom: 15px;
    color: var(--dark-grey);
    display: flex;
    align-items: flex-start;
}

.address-content p i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.2em;
}

.address-map {
    flex: 1.5;
    min-width: 300px;
    background-color: var(--light-grey); /* Placeholder for map background */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.address-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

/* Testimonials Section Styling (ensure these are present from previous responses) */
.testimonials-section {
    background-color: var(--light-grey);
    padding: 80px 0;
    text-align: center;
}

.testimonials-section h2 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.testimonials-section h3 {
    font-size: 2.2em;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

/* NEW: Testimonials Slider Wrapper */
.testimonials-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden; /* This hides cards that are off-screen */
    margin: 0 auto;
    padding: 0 40px; /* Space for arrows */
    box-sizing: border-box;
}

/* MODIFIED: Testimonials Grid */
.testimonials-grid {
    display: flex; /* Arrange cards in a row */
    transition: transform 0.7s ease-in-out; /* Smooth sliding animation */
    /* Remove grid properties if you're using flexbox for sliding */
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    gap: 30px; /* Space between cards */
    padding-bottom: 20px; /* Optional: for visual spacing */
}

/* MODIFIED: Testimonial Card (ensure these are present) */
.testimonial-card {
    flex: 0 0 calc(33.333% - 20px); /* Show 3 cards: (100% / 3) - (gap * 2 / 3) */
    min-width: 300px; /* Minimum width for each card */
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: left;
    position: relative;
    box-sizing: border-box; /* Crucial for flex-basis calculation */
}

.testimonial-card .quote {
    font-size: 1.1em;
    font-style: italic;
    color: var(--dark-grey);
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-card .quote::before {
    content: "“";
    font-size: 3em;
    color: var(--primary-color);
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.2;
    line-height: 1;
}

.testimonial-card .author {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.1em;
}

/* NEW: Slider Arrows (Re-using some carousel-control styles) */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    color: var(--white);
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    font-size: 1.5em;
    z-index: 3;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-arrow.testimonials-prev {
    left: 0px; /* Position relative to testimonials-slider-wrapper */
}

.slider-arrow.testimonials-next {
    right: 0px; /* Position relative to testimonials-slider-wrapper */
}

/* NEW: Pagination Dots (Re-using some carousel-pagination styles) */
.slider-dots.testimonials-dots {
    margin-top: 30px; /* Space between slider and dots */
    display: flex;
    justify-content: center;
    gap: 10px;
}

.slider-dots.testimonials-dots .dot {
    width: 12px;
    height: 12px;
    background-color: #ccc; /* Inactive dot color */
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-dots.testimonials-dots .dot.active {
    background-color: var(--primary-color); /* Active dot color */
    transform: scale(1.2);
}


/* Responsive adjustments for testimonials slider */
@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 15px); /* Show 2 cards: (100% / 2) - (gap / 2) */
    }

    .testimonials-slider-wrapper {
        padding: 0 20px; /* Less space for arrows on medium screens */
    }

    .slider-arrow.testimonials-prev {
        left: -5px; /* Adjust if arrows are too far left */
    }
    .slider-arrow.testimonials-next {
        right: -5px; /* Adjust if arrows are too far right */
    }
}

@media (max-width: 767px) {
    .testimonial-card {
        flex: 0 0 100%; /* Show 1 card */
    }
    .testimonials-slider-wrapper {
        padding: 0 10px; /* Less space for arrows on small screens */
    }
    .slider-arrow {
        font-size: 1.2em;
        padding: 10px 7px;
    }
    .slider-arrow.testimonials-prev {
        left: 0px;
    }
    .slider-arrow.testimonials-next {
        right: 0px;
    }
}


/* Footer */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-column p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: flex-start;
}

.footer-column p i {
    margin-right: 10px;
    color: var(--white);
    font-size: 1.1em;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.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(--primary-color);
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.back-to-top {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease;
}

.back-to-top:hover {
    background-color: #c73c1f;
}

/* Responsive Design */

/* Medium devices (tablets, 768px and up, up to 1024px) */
@media (max-width: 1024px) {
    .nav-links {
        gap: 20px;
    }

    /* Adjust hero content for medium screens */
    .hero-content h1 {
        font-size: 2.8em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    /* Make carousel height dynamic for medium screens */
    .hero-carousel {
        height: 500px;
    }

    .carousel-control {
        padding: 10px 8px; /* Slightly smaller controls */
        font-size: 1.2em;
        width: 45px;
        height: 45px;
    }

    .about-us-section,
    .our-address-section {
        flex-direction: column; /* Stack columns vertically */
        text-align: center;
    }

    .about-image,
    .about-content,
    .address-content,
    .address-map {
        min-width: unset; /* Reset min-width */
        width: 100%; /* Take full width */
    }

    .about-image img {
        margin: 0 auto; /* Center image */
    }

    .stats-section .container {
        justify-content: center; /* Center stats items */
        gap: 20px; /* Reduce gap */
    }

    .stat-item {
        flex-basis: 45%; /* Two items per row */
    }

    .car-washing-plan .plan-card.wide {
        grid-column: span 1; /* Go back to single column on smaller screens */
        max-width: unset;
    }
}

/* Small devices (phones, up to 767px) */
@media (max-width: 767px) {
    .top-bar .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .top-bar .contact-info span {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .top-bar .social-media {
        width: 100%;
        text-align: left;
    }

    .navbar .container {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none; /* Hide by default */
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        position: absolute;
        top: 100%; /* Below the navbar */
        left: 0;
        padding: 20px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .hamburger {
        display: block; /* Show hamburger icon */
    }

    .navbar .btn-primary {
        display: none; /* Hide "Get Appointment" button on small screens */
    }

    /* Adjust hero carousel for small screens */
    .hero-carousel {
        height: 400px; /* Further reduce height for mobile */
    }

    .hero-content h1 {
        font-size: 2.2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .carousel-control {
        font-size: 1.2em;
        width: 35px;
        height: 35px;
        padding: 8px;
    }
    .carousel-control.prev {
        left: 10px;
    }
    .carousel-control.next {
        right: 10px;
    }

    /* Font sizes for main headings */
    .about-content h3,
    .our-services-section h3,
    .pricing-section h2,
    .our-address-section h3,
    .testimonials-section h3 {
        font-size: 1.8em;
    }

    /* Single column for grids */
    .services-grid,
    .plan-grid,
    .testimonials-grid,
    .footer-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }

    .stat-item {
        flex-basis: 100%; /* Each stat item takes full width */
    }

    .footer-column {
        text-align: center;
    }

    .footer-column p, .footer-column ul li {
        justify-content: center; /* Center text in footer columns */
    }

    .social-icons {
        text-align: center;
    }

    .social-icons a {
        margin: 0 10px;
    }
}

/* Extra small devices (less than 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-carousel {
        height: 300px; /* Even smaller height for extra small screens */
    }

    .hero-content h1 {
        font-size: 1.8em;
    }

    .hero-content p {
        font-size: 0.9em;
    }

    .carousel-control {
        width: 30px;
        height: 30px;
        padding: 5px;
        font-size: 1em;
    }

    .plan-card h4 {
        font-size: 1.5em;
    }

    .plan-card .price {
        font-size: 2em;
    }

    .service-item i {
        font-size: 2.5em;
    }

    .stat-item i {
        font-size: 3em;
    }

    .stat-item h3 {
        font-size: 2.5em;
    }
}
/* Ensure the logo within top-bar is always visible */
.top-bar .logo .okinawa{
    display: grid; /* Make sure it's not hidden by its parent on small screens */
}

/* Hide other elements within the top-bar on small screens */
@media (max-width: 767px) { /* Adjust breakpoint as needed for "small screens" */
    .top-bar .contact-info,
    .top-bar .social-media, /* If you have a separate social-media div in top-bar */
    .top-bar span:not(:has(.logo)) /* Target span elements that are not wrapping the logo */
     {
        display: none;
    }

    

/* Show top-bar content for screens wider than a certain breakpoint (e.g., 768px for tablets/desktops) */
@media (min-width: 768px) {
    .top-bar {
        display: flex; /* Or 'flex' if it's a flex container */
        background-color: var(--white);
        color: var(--secondary-color);
        padding: 10px 0;
        font-size: 0.9em;
    }

    .top-bar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    /* Ensure all elements are visible on larger screens */
    .top-bar .contact-info,
    .top-bar .social-media,
    .top-bar span {
        display: block; /* Or whatever original display property was */
    }
}
