/* Main Stylesheet for EuroStandarte Website */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d32f2f;
    --secondary-color: #f9f9f9;
    --accent-color: #1e3d59;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --container-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: #f5f5f5;
}

.container {
    width: 100%;
    padding: 40px 20px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Section Styles */
section {
    margin-bottom: 40px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--container-shadow);
}

/* Offer Section (Block 1) */
#offer {
    background: linear-gradient(135deg, rgba(30, 61, 89, 0.95), rgba(211, 47, 47, 0.85)),
                url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover;
    color: var(--light-text);
    height: 450px;
    display: flex;
    align-items: center;
    text-align: center;
    border-radius: 8px;
    margin-top: 20px;
}

#offer .container {
    max-width: 800px;
}

#offer h1 {
    margin-bottom: 20px;
}

#offer p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

#offer .btn {
    background-color: white;
    color: var(--accent-color);
    font-size: 1rem;
    padding: 14px 30px;
    margin-top: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#offer .btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Specialists Section (Block 4) */
#specialists {
    background-color: #fff;
}

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

.specialist {
    padding: 25px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
}

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

.specialist h3 {
    color: var(--accent-color);
}

.specialist p:first-of-type {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

/* Reviews Section (Block 5) */
#reviews {
    background-color: var(--accent-color);
    color: var(--light-text);
}

#reviews h2 {
    color: var(--light-text);
}

#reviews h2::after {
    background-color: var(--light-text);
}

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

.review {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    position: relative;
}

.review::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    position: absolute;
    top: -15px;
    left: 10px;
    opacity: 0.2;
}

/* Form Section (Block 2) */
#form {
    background-color: var(--secondary-color);
}

form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="email"],
input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s;
}

input[type="email"]:focus,
input[type="text"]:focus {
    border-color: var(--accent-color);
    outline: none;
}

form .btn {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    font-size: 1rem;
}

/* Products Section (Block 3) */
#products {
    background-color: #fff;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: var(--container-shadow);
}

.product h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.product ul {
    list-style-position: inside;
    margin: 15px 0;
}

.product li {
    margin-bottom: 8px;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 15px;
}

/* Article Styling */
.article {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.article h2 {
    color: var(--accent-color);
}

.article p {
    text-align: justify;
}

/* Contact Section (Block 6) */
#contact {
    background-color: #fff;
}

#contact p {
    margin-bottom: 15px;
}

.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Footer (Block 7) */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    margin-bottom: 20px;
    border-top: 1px solid var(--border-color);
}

footer p {
    color: #777;
    margin-bottom: 8px;
}

/* Media Queries */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .container {
        padding: 30px 15px;
    }

    #offer {
        height: auto;
        min-height: 430px;
        padding: 40px 20px;
    }

    .specialists-container,
    .reviews-container,
    .products-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product,
    .specialist,
    .review {
        padding: 20px;
    }

    .article {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0 10px;
    }

    h1 {
        font-size: 1.8rem;
    }

    #offer {
        padding: 30px 15px;
    }

    form {
        padding: 20px 15px;
    }

    .container {
        padding: 25px 10px;
    }
}
