/* ================================
   WINE PAGE - styles7.css
================================ */

body {
    background:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('img/winewall2.jpg') center/cover no-repeat fixed;
    background-color: #121212;
    color: #f5f5f5;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background: transparent;
    padding: 8rem 2rem 3rem;
    text-align: center;
    animation: fadeInDown 1s ease forwards;
}

header h1 {
    font-family: 'Playfair Display', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: #8ec3e6;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Main */
main {
    flex: 1;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Section (Accordion-like) */
.section {
    background: #1e1e1e;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.section h2 {
    background: #2b2b2b;
    padding: 1.2rem;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section h2:hover {
    background: #333;
}

.list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.section.active .list {
    max-height: 1200px;
    overflow-y: auto;
}

/* Sub-sections */
.sub-section {
    margin: 1rem;
}

.section h3,
.sub-section h3 {
    color: #8ec3e6;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.sub-section.active .sub-list {
    max-height: 1000px;
}

/* Items */
.item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #333;
}

.item span:last-child {
    font-style: italic;
    color: #ccc;
}

/* Custom Scrollbars */
.list::-webkit-scrollbar,
.sub-list::-webkit-scrollbar {
    width: 8px;
}

.list::-webkit-scrollbar-thumb,
.sub-list::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.list::-webkit-scrollbar-thumb:hover,
.sub-list::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Footer Override */
footer.site-footer {
    background: #1e1e1e;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    color: #aaa;
}

/* Responsive */
@media (max-width: 926px) {
    header h1 {
        font-size: 5rem;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 5rem;
    }

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

    .section h2 {
        font-size: 1.1rem;
    }

    .sub-section h3 {
        font-size: 1rem;
    }
}
