/* Color Variables */
:root {
    --pale-oak: #DAC5A8;
    --brandy: #773618;
    --pacific-blue: #5C9EAD;
    --background: #F5F0E8;
    --text-dark: #2C2C2C;
}

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

body {
    font-family: 'Pompiere', sans-serif;
    font-size: 24px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.main-nav {
    background-color: var(--brandy);
    padding: 0.75rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.logo {
    font-family: 'Londrina Shadow', cursive;
    font-size: 1.75rem;
    color: var(--pale-oak);
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 var(--brandy);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-links a {
    font-family: 'Pompiere', sans-serif;
    font-size: 1.3rem;
    color: var(--pale-oak);
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--pacific-blue);
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 0.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 150px);
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-header h1 {
    font-family: 'Londrina Shadow', cursive;
    font-size: 4rem;
    color: var(--brandy);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0 var(--pale-oak);
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.8rem;
    color: var(--pacific-blue);
    font-weight: normal;
    letter-spacing: 1px;
}

/* Beer Carousel */
.beer-carousel-section {
    margin-top: 0;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0 1rem;
    height: 650px;
    min-height: 650px;
}

.carousel-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 650px;
    min-height: 650px;
    width: 100%;
    max-width: 100%;
}

.carousel-track {
    display: flex;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 1rem 0;
    box-sizing: border-box;
}

.carousel-slide.active {
    opacity: 1;
    position: relative;
    height: 100%;
    width: 100%;
    max-width: 100%;
}

/* Background bottles for prev/next preview */
.carousel-bg-bottle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    width: auto;
    height: auto;
}

.carousel-bg-bottle.visible {
    opacity: 0.4;
}

.carousel-bg-prev {
    left: 2%;
    transform: translateY(-50%) translateX(-20%) scale(0.6);
}

.carousel-bg-next {
    right: 2%;
    transform: translateY(-50%) translateX(20%) scale(0.6);
}

.carousel-bg-bottle img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    filter: blur(2px) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    object-fit: contain;
}

.beer-bottle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 250px;
    height: 400px;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.beer-bottle {
    max-width: 100%;
    width: auto;
    height: 400px;
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
    display: block;
}


.beer-info {
    text-align: center;
    padding: 0 1rem;
    min-height: 150px;
    height: 150px;
    width: 100%;
    min-width: 400px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

.beer-title {
    font-family: 'Londrina Shadow', cursive;
    font-size: 2.5rem;
    color: var(--brandy);
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 0 var(--pale-oak);
    letter-spacing: 1px;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.beer-description {
    font-size: 1.3rem;
    color: var(--text-dark);
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.carousel-btn {
    background-color: var(--brandy);
    color: var(--pale-oak);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.carousel-btn:hover {
    background-color: var(--pacific-blue);
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn span {
    line-height: 1;
    font-weight: bold;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-bottom: 0.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--brandy);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover {
    background-color: var(--pale-oak);
    transform: scale(1.2);
}

.indicator.active {
    background-color: var(--brandy);
    border-color: var(--brandy);
}

/* Brewers Section */
.brewers-section {
    margin-top: 2rem;
}

.brewers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.brewer-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brewer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.brewer-image {
    width: 100%;
    height: 350px;
    background-color: var(--pacific-blue);
    background-size: cover;
    background-position: center;
}

.brewer-card h3 {
    font-family: 'Londrina Shadow', cursive;
    font-size: 2rem;
    color: var(--brandy);
    padding: 1.5rem 1rem 0.5rem;
    text-shadow: 2px 2px 0 var(--pale-oak);
}

.brewer-card p {
    padding: 0 1.5rem 1.5rem;
    font-size: 1.2rem;
    color: var(--text-dark);
}

/* Brewery Section */
.brewery-section {
    margin-top: 2rem;
}

.brewery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.brewery-image-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brewery-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.brewery-image {
    width: 100%;
    height: 400px;
    background-color: var(--pale-oak);
    background-size: cover;
    background-position: center;
}

.brewery-image-card p {
    padding: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-dark);
    text-align: center;
}

/* Brew Mixer Section */
.brew-mixer-section {
    margin-top: 2rem;
}

.calculator-container {
    background-color: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.calculator-placeholder {
    text-align: center;
    padding: 3rem;
}

.calculator-placeholder p {
    font-size: 1.5rem;
    color: var(--pacific-blue);
}

/* Placeholder Styles */
.placeholder {
    opacity: 0.6;
}

.placeholder .beer-image,
.placeholder .brewer-image,
.placeholder .brewery-image {
    background: linear-gradient(135deg, var(--pale-oak) 0%, var(--pacific-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder .beer-image::before,
.placeholder .brewer-image::before,
.placeholder .brewery-image::before {
    content: '📷';
    font-size: 3rem;
    opacity: 0.5;
}

/* Footer */
.main-footer {
    background-color: var(--brandy);
    color: var(--pale-oak);
    text-align: center;
    padding: 0.75rem;
    margin-top: 0;
}

.main-footer p {
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        justify-content: center;
    }

    .page-header h1 {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .gallery-grid,
    .brewers-grid,
    .brewery-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    body {
        font-size: 20px;
    }
    
    /* Carousel responsive */
    .carousel-container {
        padding: 0 1rem;
        max-width: 100%;
        height: 550px;
        min-height: 550px;
    }
    
    .carousel-wrapper {
        height: 550px;
        min-height: 550px;
        overflow: hidden;
    }
    
    .carousel-slide {
        height: 550px;
    }
    
    .carousel-bg-bottle {
        display: none;
    }
    
    .beer-bottle-container {
        max-width: 200px;
    }
    
    .beer-bottle {
        max-height: 350px;
        height: 350px;
    }
    
    .beer-title {
        font-size: 2.5rem;
    }
    
    .beer-description {
        font-size: 1.3rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

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

    .logo {
        font-size: 1.5rem;
    }

    .nav-links a {
        font-size: 1.2rem;
    }
    
    /* Carousel mobile */
    .carousel-container {
        padding: 0 0.5rem;
        gap: 0.5rem;
        height: 500px;
        min-height: 500px;
    }
    
    .carousel-wrapper {
        height: 500px;
        min-height: 500px;
        overflow: hidden;
    }
    
    .carousel-slide {
        height: 500px;
    }
    
    .carousel-bg-bottle {
        display: none;
    }
    
    .beer-bottle-container {
        max-width: 150px;
    }
    
    .beer-bottle {
        max-height: 300px;
        height: 300px;
    }
    
    .beer-title {
        font-size: 2rem;
    }
    
    .beer-description {
        font-size: 1.1rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

