/* Import main styles */
@import url('style.css');

/* Prevent horizontal overflow */
html {
    overflow-x: clip;
}

body {
    overflow-x: clip;
    background-color: var(--primary-color);
}

/* Fix navbar sticky on beers page */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Beer Page Specific Styles */

.beers-header {
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 66, 45, 0.55)),
                url('../images/biere-header.webp');
    background-size: cover;
    background-position: center bottom;
    color: white;
    padding: 100px 20px;
    padding-top: 200px;
    text-align: center;
    border-bottom: 3px solid var(--secondary-color);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.beers-header h1 {
    font-size: 3.4rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.beers-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Carousel styles live in style.css (shared with the landing page) */

/* Beer Sections */
.beer-section {
    display: flex;
    align-items: center;
    gap: 0;
    background-color: var(--primary-color);
    width: 100%;
    max-width: 1200px;
    margin: 140px auto 60px auto;
    padding: 0 20px;
    position: relative;
    overflow: visible;
    scroll-margin-top: 200px;
}

.beer-left {
    flex-direction: row;
}

.beer-right {
    flex-direction: row-reverse;
}

.beer-right .beer-content {
    text-align: right;
    padding-left: 40px;
    padding-right: 300px;
    margin-left: auto;
}

.beer-left .beer-content {
    text-align: left;
    padding-left: 300px;
    padding-right: 40px;
    margin-right: auto;
}

.beer-right .beer-content h2,
.beer-right .beer-content p {
    text-align: right;
}

.beer-right .beer-content .beer-type {
    justify-content: flex-end;
}

.beer-left .beer-content h2,
.beer-left .beer-content p {
    text-align: left;
}

.beer-visual {
    position: absolute;
    width: 396px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
}

.beer-left .beer-visual {
    left: -20px;
}

.beer-right .beer-visual {
    right: -20px;
}

.bottle-image {
    width: 330px;
    height: auto;
    max-height: 715px;
    filter: drop-shadow(0 12px 22px rgba(0,0,0,0.18));
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.beer-content {
    flex: 1;
    min-width: 225px;
    padding: 60px 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 66, 45, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    position: relative;
    z-index: 1;
    width: 100%;
}

.beer-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.beer-specs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.beer-right .beer-specs {
    justify-content: flex-end;
}

.beer-right .beer-formats {
    justify-content: flex-end;
}

.beer-specs span {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
}

.beer-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

.beer-content strong {
    color: var(--primary-color);
}

.beer-formats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.format {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.beer-image {
    display: none;
}

.beer-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

/* Back Section */
.back-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #003d26 100%);
    padding: 60px 20px;
    text-align: center;
    margin-top: 120px;
}

.back-section .btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 16px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
    margin-top: 10px;
}

.back-section .btn:hover,
.back-section .btn:focus {
    background-color: transparent;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.back-section .btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .beers-header {
        padding: 60px 20px;
        margin-top: 70px;
    }

    .beers-header h1 {
        font-size: 2rem;
    }

    .beers-header p {
        font-size: 1rem;
    }

    .beer-section {
        flex-direction: column !important;
        min-height: auto;
        margin: 60px auto 20px auto;
        padding: 0 20px;
    }

    .beer-visual {
        position: relative;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        margin-bottom: -220px;
        z-index: 2;
    }

    .beer-left .beer-visual,
    .beer-right .beer-visual {
        left: auto;
        right: auto;
    }

    .bottle-image {
        width: 280px;
        max-height: 550px;
    }

    .beer-content {
        padding: 200px 30px 40px 30px;
        width: 100%;
        text-align: center;
    }

    .beer-left .beer-content,
    .beer-right .beer-content {
        padding: 200px 30px 40px 30px;
        text-align: center;
        margin: 0;
    }

    .beer-left,
    .beer-right {
        flex-direction: column;
    }

    .beer-content h2 {
        font-size: 1.8rem;
    }

    .beer-specs {
        gap: 10px;
        justify-content: center;
    }

    .beer-right .beer-specs {
        justify-content: center;
    }

    .beer-specs span {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .format {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .beer-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .beers-header h1 {
        font-size: 1.5rem;
    }

    .beers-header p {
        font-size: 0.9rem;
    }

    .beer-content {
        padding: 30px 15px;
    }

    .beer-content h2 {
        font-size: 1.5rem;
    }

    .beer-specs {
        flex-direction: column;
        gap: 8px;
    }

    .beer-specs span {
        width: 100%;
        text-align: center;
    }
}

/* Footer Styles */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 20px 20px;
    text-align: center;
    border-top: 3px solid var(--secondary-color);
}

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

.footer p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: white;
}
