/* ============================================
   MC Bauchemie Landing Page - Main Stylesheet
   Brand Colors: Blue (#0066CC), White (#FFFFFF)
   ============================================ */

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

:root {
    --primary-blue: #0066CC;
    --dark-blue: #004499;
    --light-blue: #E6F2FF;
    --white: #FFFFFF;
    --gray-dark: #333333;
    --gray-light: #F5F5F5;
    --gray-border: #DDDDDD;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

/* ============================================
   Global Styles
   ============================================ */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white);
}

html {
    scroll-behavior: smooth;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-blue);
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

/* ============================================
   Header & Navigation
   ============================================ */

header {
    background: #ffffff;
    color: #0066CC;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: #0066CC;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: #0066CC;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

nav a:hover {
    opacity: 0.8;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    background: linear-gradient(135deg, #0066CC 0%, #004499 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #1FAD50;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ============================================
   Container & Layout
   ============================================ */

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

.section {
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 3rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray-dark);
    margin-bottom: 2rem;
}

/* ============================================
   Filters Section
   ============================================ */

.filters {
    background-color: var(--light-blue);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.filters-title {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* ============================================
   Products Grid
   ============================================ */

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

.product-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.2);
    border-color: var(--primary-blue);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-bottom: 1px solid var(--gray-border);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.85rem;
    color: var(--primary-blue);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-name {
    font-size: 1.3rem;
    color: var(--gray-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.product-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-footer {
    display: flex;
    gap: 10px;
}

.product-footer button {
    flex: 1;
    padding: 10px;
    font-size: 0.9rem;
    border-radius: 5px;
    font-weight: 600;
}

.btn-details {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.btn-details:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* ============================================
   Product Modal
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--gray-dark);
    cursor: pointer;
    background: none;
    border: none;
}

.modal-close:hover {
    color: var(--primary-blue);
}

.modal-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.modal-image {
    flex: 0 0 300px;
    max-height: 300px;
    width: 100%;
    object-fit: contain;
    border-radius: 10px;
    background-color: var(--white);
    padding: 10px;
    border: 1px solid var(--gray-border);
}

.modal-info h2 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.modal-info .category {
    color: var(--gray-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.modal-info .description {
    color: #666;
    font-size: 1rem;
    margin-bottom: 20px;
}

.modal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.detail-item h4 {
    color: var(--primary-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.detail-item p {
    color: var(--gray-dark);
    font-size: 0.95rem;
}

.modal-list {
    margin-bottom: 20px;
}

.modal-list h4 {
    color: var(--primary-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

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

.modal-list li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: var(--gray-dark);
}

.modal-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* ============================================
   Footer
   ============================================ */

footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 10px;
}

.footer-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

/* ============================================
   Floating WhatsApp Button
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .modal-header {
        flex-direction: column;
        gap: 20px;
    }

    .modal-image {
        flex: 1;
        width: 100%;
        height: auto;
    }

    .modal-details {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        justify-content: center;
    }

    nav {
        gap: 1rem;
    }

    .header-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .section {
        padding: 40px 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.hidden {
    display: none !important;
}

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }
