/* General Body and Container Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #E0F2F7; /* Light blue background for the whole page */
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1000px; /* REDUCED MAX WIDTH FOR ALL PAGES */
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background-color: #000080; /* Navy blue background for header */
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.logo-and-text {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-and-text img {
    height: 60px; /* Adjust logo size */
    border-radius: 8px; /* Rounded corners for logo */
}

.header-titles h1 {
    margin: 0;
    color: white; /* White for main title */
    font-size: 1.8rem;
    font-weight: 700;
}

.header-titles .tagline {
    margin: 0;
    color: #e0e0e0; /* Light grey for tagline */
    font-size: 0.9rem;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center; /* Center items when wrapped */
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    text-decoration: none;
    color: white; /* White for navigation links */
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent; /* For active/hover effect */
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #ADD8E6; /* Light blue on hover/active */
    border-bottom-color: #ADD8E6;
}

/* Hero Section Carousel Styles */
.page-hero {
    background-color: #000080; /* Navy blue background for hero section */
    padding: 20px 0; /* Adjusted padding-top to move content higher */
    text-align: center;
    overflow: hidden; /* Hide overflowing carousel images */
}

.hero-content-wrapper {
    display: flex; /* Make it a flex container */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center children horizontally */
    gap: 20px; /* Space between button and carousel */
}

.carousel-wrapper {
    position: relative;
    max-width: 750px; /* Set to desired max width for the carousel */
    margin: 0 auto;
    border-radius: 12px; /* Rounded corners for the carousel wrapper */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); /* Soft shadow */
    overflow: hidden; /* Ensure images stay within bounds */
}

.image-carousel-container {
    display: flex;
    overflow-x: scroll; /* Enable horizontal scrolling */
    scroll-snap-type: x mandatory; /* Snap to images */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
}

.image-carousel-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, Opera */
}

.image-carousel-container img {
    flex-shrink: 0; /* Prevent images from shrinking */
    width: 100%; /* Make images take full width of the container */
    max-width: 750px; /* Set to desired max width for the image */
    height: 350px; /* Set to desired height for the image */
    object-fit: cover; /* Cover the area, cropping if necessary */
    scroll-snap-align: start; /* Snap images to the start */
    border-radius: 12px; /* Consistent rounded corners for images */
    transition: transform 0.5s ease-in-out; /* Smooth transition for image changes */
    /* Recommended image size for optimal fit: 750px width x 350px height */
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .image-carousel-container img {
        height: 200px; /* Further reduced height on smaller screens */
        max-width: 100%; /* Allow full width on smaller screens */
    }
    .carousel-wrapper {
        max-width: 100%; /* Allow full width on smaller screens */
    }
}


.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%; /* Circular buttons */
    transition: background-color 0.3s ease;
    z-index: 10; /* Ensure buttons are above images */
}

.carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Section Padding */
.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: #ecf0f1; /* Kept light grey for sections that need contrast */
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 18px; /* Slightly reduced padding for all buttons */
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem; /* Slightly reduced font size for all buttons */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 2px solid;
    cursor: pointer;
    text-align: center; /* Ensure text is centered */
}

.btn-primary {
    background-color: #3498db; /* Blue */
    color: white;
    border-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9; /* Darker blue */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #3498db; /* Blue */
    color: white;
    border-color: #3498db;
}

.btn-secondary:hover {
    background-color: #2980b9; /* Darker blue */
    transform: translateY(-2px);
}

.btn-inverted {
    background-color: transparent;
    color: #3498db;
    border-color: #3498db;
}

.btn-inverted:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25D366; /* WhatsApp green */
    color: white;
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background-color: #1DA851;
    transform: translateY(-2px);
}

/* About Section */
.about-content .flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-content .about-text {
    flex: 2;
    min-width: 300px;
}

.about-content .about-image {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.about-content .about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-content h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-content h3 {
    color: #3498db;
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.about-content ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.about-content ul li {
    margin-bottom: 8px;
}

/* Product Categories Grid (Home Page) */
.product-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.category-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.category-card i {
    font-size: 3.5rem;
    color: #3498db;
    margin-bottom: 20px;
}

.category-card h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.category-card p {
    color: #555;
    font-size: 0.95rem;
}

/* Products List Page (products.html) */
.products-list h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-top: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.product-card h3 {
    color: #3498db;
    font-size: 1.4rem;
    padding: 15px 20px 5px;
    margin: 0;
}

.product-card p {
    color: #555;
    font-size: 0.95rem;
    padding: 0 20px 15px;
    flex-grow: 1; /* Allows paragraph to take available space */
}

.product-card .btn {
    margin: 0 20px 20px;
    align-self: flex-start; /* Align button to the start */
}

/* Product Details Page (e.g., hotel-locks.html) */
.product-details-section h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.product-details-section h2 {
    color: #3498db;
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.product-details-section h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

.product-details-section p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #555;
}

.product-details-section ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.product-details-section ul li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #555;
}

.product-details-section strong {
    color: #333;
}

/* Testimonials Section */
.testimonials-list h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
}

.testimonial-card .quote-icon {
    font-size: 2.5rem;
    color: #3498db;
    position: absolute;
    top: 20px;
    left: 20px;
    opacity: 0.2;
}

.testimonial-card .quote-text {
    font-style: italic;
    margin-bottom: 20px;
    padding-top: 20px; /* Space for quote icon */
}

.testimonial-card .client-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.testimonial-card .stars {
    color: #f39c12; /* Gold color for stars */
    font-size: 1.1rem;
}

/* Downloads Section */
.download-category {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.download-category h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.download-card {
    background-color: #ecf0f1;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.download-card i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 15px;
}

.download-card h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.download-card p {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.download-card .btn {
    width: auto; /* Adjust button width */
}

/* Contact Section */
.contact-form-section h2,
.contact-info-section h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: calc(100% - 20px); /* Account for padding */
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-card i {
    font-size: 3.5rem;
    color: #3498db;
    margin-bottom: 20px;
}

.contact-card h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.contact-card p {
    color: #555;
    margin-bottom: 15px;
}

.contact-card .btn {
    margin-top: 10px;
}


/* Footer Styles */
.main-footer {
    background-color: #000080; /* Navy blue background for footer */
    color: white;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.main-footer .footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.main-footer .footer-links a:hover {
    color: #3498db; /* Blue on hover */
}

.development-credit {
    margin-top: 20px;
    color: #bdc3c7; /* Lighter grey */
    font-size: 0.85rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo-and-text {
        flex-direction: column;
        gap: 10px;
    }

    .main-nav ul {
        flex-direction: row; /* Changed to row to keep links horizontal */
        margin-top: 10px; /* Reduced margin-top */
        justify-content: center; /* Center links */
        padding: 0 10px; /* Add some horizontal padding */
    }

    .main-nav ul li {
        margin: 0 8px; /* Reduced margin between links */
    }

    .main-nav ul li a {
        font-size: 0.85rem; /* Slightly smaller font for compactness */
        padding: 5px 0; /* Reduced vertical padding */
    }

    .hero-content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .carousel-wrapper {
        margin-top: 30px;
    }

    .product-grid, .testimonial-grid, .download-grid, .contact-grid {
        grid-template-columns: 1fr; /* Stack columns on small screens */
    }

    .about-content .flex-container {
        flex-direction: column;
    }

    .contact-form {
        padding: 25px;
    }

    .product-details-section h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header-titles h1 {
        font-size: 1.5rem;
    }

    .header-titles .tagline {
        font-size: 0.8rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section-padding {
        padding: 40px 0;
    }

    .product-details-section h1 {
        font-size: 1.8rem;
    }

    .product-details-section h2 {
        font-size: 1.4rem;
    }
}
