/* General Reset and Basic Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif; /* Choose a suitable font */
    line-height: 1.6;
    color: #333; /* Dark gray for text */
}

a {
    text-decoration: none;
    color: #007bff; /* Link color */
}

/* Header */
header {
    background-color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.logo img {
    height: auto;
	/*max-width: 150px;  Adjust as needed */
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

/* Hero Section */
.hero {
    background-image: url('../images/hero-background.jpg'); /* Replace with your image */
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 5rem 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Catalogues Section */
.catalogues {
    padding: 3rem 2rem;
}

.catalogues h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 2rem;
}

.catalogue-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden; /* Clip image corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out; /* Hover effect */
}
.catalogue-card:hover {
    transform: translateY(-5px);
}

.catalogue-thumb {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Ensure image covers the area */
}

.catalogue-card h3 {
    padding: 1rem;
    font-size: 1.25rem;
}

.catalogue-card .thickness {
    padding: 0 1rem;
    font-style: italic;
    color: #666;
}

.catalogue-card .description {
    padding: 1rem;
    font-size: 0.9rem;
}

.button {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #007bff; /* Button color */
    color: #fff;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.button:hover {
    background-color: #0056b3; /* Darker button color on hover */
}

/* Footer */
footer {
    background-color: #f8f8f8;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #ddd;
}

footer p {
    margin-bottom: 0.5rem;
}

.catalogue-description {
    text-align: center;
    margin-top: 1rem; /* Add some space above the description */
    margin-bottom: 2rem; /* Add some space below the description */
    font-size: 1rem;
    line-height: 1.5;
    color: #555; /* Slightly darker gray for the description */
    max-width: 800px; /* Limit the width for readability */
    margin-left: auto;  /* Center horizontally */
    margin-right: auto; /* Center horizontally */
}

/* Media Queries for Responsiveness (Basic Examples) */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav ul li {
        margin-left: 0;
        margin-right: 1rem; /* Add spacing between items */
    }

    .hero h1 {
        font-size: 2rem;
    }

    .catalogue-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Smaller cards on smaller screens*/
    }
     .pdf-viewer, .download-section {
        width: 95%; /* Wider on smaller screens */
    }
}

@media (max-width: 480px) {
        .catalogue-grid {
        grid-template-columns: 1fr; /* Single column on very small screens*/
    }
}

/* Loading Indicator Styles (Global) */
#loading-indicator {
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #007bff; /* Or your brand's primary color */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto; /* Center the spinner */
    margin-bottom: 1rem; /* Space below spinner */
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Styles for Catalogue Detail Pages (Moved from wonderlam-beauty.css) */
.catalogue-title {
    text-align: center;
    padding: 2rem;
    background-color: #f8f8f8; /* Light background */
}

.pdf-viewer {
    width: 80%;
    margin: 0 auto;
    padding: 2rem;
    border: 1px solid #ddd;
    text-align: center;
}

#pdf-canvas {
    width: 100%; /* Make the canvas responsive */
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: block;  /* Important for centering */
    margin: 0 auto; /* Center the canvas */
}

.pdf-controls {
    margin-top: 1rem;
    text-align: center;
}

.pdf-controls button {
    margin: 5px;
    padding: 5px;
}

.download-section {
    width: 80%;
    margin: 2rem auto;
    padding: 2rem;
    border: 1px solid #ddd;
    text-align: center;
}

#download-form {
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1rem;
    text-align: left; /* Align labels to the left */
}

.form-group label {
    display: block; /* Make labels block-level */
    margin-bottom: 0.5rem;
    font-weight: bold;
}

#download-button {
    margin: 5px;
    padding: 8px;
    background-color: #007bff;
    border: none;
    color: white;
    border-radius: 4px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.error-message {
    color: red;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

#thank-you-message {
    text-align: center;
    margin-top: 15px;
    font-weight: bolder;
}