@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* Body Styles */
body {
    font-family: 'Poppins', sans-serif;
    font-weight: 500; /* Bolder body text */
    background: linear-gradient(180deg, #F8F1E9 0%, #F0E8E0 100%); /* Pearl white with soft brown tint, gradient */
    color: #333333; /* Dark grey for all text on light backgrounds */
}

/* Navigation Styles */
nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #2D3E50; /* Deep slate blue-gray, dark background */
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

nav .logo-image {
    height: 50px; /* Adjust based on image dimensions */
    width: auto;
    display: block;
}

nav a {
    color: #FFFFFF; /* White text on dark background */
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600; /* Bolder nav links */
    transition: color 0.3s;
}

nav a:hover {
    color: #2A8A80; /* Darker Bear Lake blue */
}

/* Slideshow Styles */
.slideshow-container {
    max-width: calc(100% - 220px); /* Account for 100px + 10px margin per side */
    position: relative;
    margin: auto;
    overflow: hidden;
    border-radius: 1rem;
    perspective: 1000px; /* 3D effect for book page turn */
}

.slide {
    display: none;
    width: 100%;
    opacity: 0;
    transform: rotateY(90deg);
    transform-origin: right;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.slide.page-turn {
    display: block;
    opacity: 1;
    animation: pageTurn 1s ease-in-out forwards;
    -webkit-animation: pageTurn 1s ease-in-out forwards;
}

@keyframes pageTurn {
    0% { transform: rotateY(90deg); opacity: 0; }
    100% { transform: rotateY(0deg); opacity: 1; }
}

@-webkit-keyframes pageTurn {
    0% { -webkit-transform: rotateY(90deg); opacity: 0; }
    100% { -webkit-transform: rotateY(0deg); opacity: 1; }
}

.slide img {
    width: 100%;
    height: 50vh; /* Responsive height to prevent distortion */
    object-fit: cover;
    border-radius: 1rem;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #2A8A80; /* Darker Bear Lake blue */
}

@media (prefers-reduced-motion: reduce) {
    .slide {
        transform: none;
        animation: none;
        transition: opacity 0.5s;
    }
    .slide.page-turn {
        opacity: 1;
    }
}

/* Section Styles */
section {
    padding: 2rem;
    position: relative;
}

section h2 {
    font-size: 2.25rem;
    font-weight: 700; /* Bolder heading */
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333333; /* Dark grey on light background */
}

section p {
    font-size: 1.125rem;
    font-weight: 500; /* Bolder body text */
    color: #333333; /* Dark grey on light background */
    max-width: 800px;
    margin: 0 auto 1rem;
}

/* Home Section */
#home .container {
    text-align: center;
    padding: 2rem;
}

/* Pricing Table (Used for Reviews in Home Section and Pricing Page) */
.pricing-table-container {
    margin-bottom: 2rem;
}

.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto;
}

.pricing-card {
    background-color: #ffffff; /* Light background */
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700; /* Bolder heading */
    color: #333333; /* Dark grey on light background */
    margin-bottom: 1rem;
}

.pricing-card p {
    font-size: 1.25rem;
    font-weight: 500; /* Bolder text */
    color: #FF6F61; /* Soft coral */
    margin-bottom: 1rem;
}

/* Specific Styles for Reviews Section */
.reviews .pricing-card p {
    font-size: 1rem; /* Adjust size for review content */
    font-weight: 600; /* Bolder review text */
    color: #333333; /* Dark grey on light background */
    margin-bottom: 0.5rem;
}

.reviews .pricing-card p.text-lg {
    font-size: 1.125rem; /* Customer name */
    font-weight: 600; /* Bolder */
    color: #333333; /* Dark grey on light background */
}

.reviews .pricing-card p.text-sm {
    font-size: 0.875rem; /* Date */
    font-weight: 500; /* Slightly less bold */
    color: #333333; /* Dark grey on light background */
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 1rem;
}

.pricing-card ul li {
    font-size: 1rem;
    font-weight: 500; /* Bolder text */
    color: #333333; /* Dark grey on light background */
    margin-bottom: 0.5rem;
}

/* Specialties Section */
.specialties {
    max-width: 800px;
    margin: 1.5rem auto;
}

.specialties h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 1rem;
}

.specialties ul {
    list-style: none;
    padding-left: 0;
}

.specialties > ul > li {
    font-size: 1.125rem;
    font-weight: 500;
    color: #333333;
    margin-bottom: 1rem;
}

.specialties > ul > li > ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.specialties > ul > li > ul > li {
    font-size: 1rem;
    font-weight: 500;
    color: #333333;
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 2rem auto;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.5rem;
}

.faq-item p {
    font-size: 1rem;
    font-weight: 500;
    color: #333333;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background-color: #ffffff; /* Light background */
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form label {
    display: block;
    font-size: 1rem;
    font-weight: 500; /* Bolder text */
    color: #333333; /* Dark grey on light background */
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500; /* Bolder text */
    color: #333333; /* Dark grey on light background */
}

.contact-form button {
    background-color: #FF6F61; /* Soft coral, dark background for button */
    color: #FFFFFF; /* White text on dark button background */
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500; /* Bolder text */
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #E55A50; /* Darker coral */
}

/* Links */
a {
    color: #2A8A80; /* Darker Bear Lake blue on light backgrounds */
    text-decoration: none;
    font-weight: 500; /* Bolder text */
}

a:hover {
    text-decoration: underline;
}

/* Animated Cleaning Supplies */
.cleaning-item {
    position: fixed;
    z-index: 5;
    width: 80px;
    height: 80px;
    max-width: 80px; /* Ensure no oversizing */
    max-height: 80px;
    object-fit: contain;
    pointer-events: none;
    box-sizing: border-box;
}

#bucket-top-left {
    top: 10px;
    left: 10px;
    animation: fly-left-right 8s infinite ease-in-out;
}

#mop-top-right {
    top: 10px;
    right: 10px;
    animation: fly-right-left 7s infinite ease-in-out;
}

#cloth-bottom-left {
    bottom: 10px;
    left: 10px;
    animation: fly-left-right 6s infinite ease-in-out;
}

#bucket-bottom-right {
    bottom: 10px;
    right: 10px;
    animation: fly-right-left 9s infinite ease-in-out;
}

@keyframes fly-left-right {
    0% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(50vw) rotate(10deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

@keyframes fly-right-left {
    0% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(-50vw) rotate(-10deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

/* Side Photos */
.side-photos-left, .side-photos-right {
    position: fixed;
    top: 100px;
    width: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 5;
}

.side-photos-left {
    left: 10px;
}

.side-photos-right {
    right: 10px;
}

.side-photos-left img, .side-photos-right img {
    width: 100%;
    height: auto;
    max-width: 100px; /* Prevent oversizing */
    max-height: 100px;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0.7;
    transition: opacity 0.3s;
    box-sizing: border-box;
}

.side-photos-left img:hover, .side-photos-right img:hover {
    opacity: 1;
}

/* Footer Styles */
footer {
    background-color: #2D3E50; /* Dark background */
    color: #FFFFFF; /* White text on dark background */
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

footer p {
    font-size: 0.875rem;
    font-weight: 600; /* Bolder text */
    color: #FFFFFF; /* White text on dark background */
}

footer a {
    color: #FFFFFF; /* White text on dark background */
    text-decoration: underline;
    font-weight: 600; /* Bolder text */
}

footer a:hover {
    color: #FF6F61; /* Soft coral */
}

/* Responsive Design */
@media (max-width: 768px) {
    .slideshow-container {
        max-width: 100%; /* Full width on mobile, as side photos are hidden */
    }

    .slide img {
        height: 400px; /* Fixed height for mobile */
    }

    nav .container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav .space-x-4 {
        margin-top: 1rem;
    }

    nav a {
        margin-right: 1rem;
    }

    nav .logo-image {
        height: 40px; /* Smaller for mobile */
    }

    section h2 {
        font-size: 1.875rem;
    }

    section p {
        font-size: 1rem;
    }

    .cleaning-item {
        width: 50px;
        height: 50px;
        max-width: 50px;
        max-height: 50px;
    }

    .side-photos-left, .side-photos-right {
        display: none;
    }
}

@media (max-width: 640px) {
    .slide img {
        height: 300px;
    }

    .pricing-table {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cleaning-item {
        animation: none;
    }
}