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

body {
    font-family: 'Libre Baskerville', Georgia, serif;
    background-color: #FFFFFF;
    color: #131313;
    line-height: 1.4;
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container */
.container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 60px); 
}

/* Logo Section */
.logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px 20px;
}

.logo {
    height: 52px;
    width: auto;
    opacity: 0;
    animation: logoFadeIn 1.5s ease-out 0.3s forwards;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery Section */
.gallery-section {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0px;
}

.accordion-gallery {
    display: flex;
    width: 100%;
    height: 600px;
    gap: 0px;
    overflow: hidden;
    border-radius: 2px;
}

.gallery-row {
    display: contents; /* Makes rows invisible on desktop, items flow directly */
}

.gallery-item {
    flex: 1;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1); /* smooth transition */
    position: relative;
}

.gallery-item:hover {
    flex: 1.8;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.gallery-item:hover .product-image {
    transform: scale(1.3); /
}

/* Coming Soon Section */
.coming-soon-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 20px 20px;
}

.coming-soon-text {
    font-family: 'Baskerville', 'Libre Baskerville', Georgia, serif;
    font-size: 10px;
    color: #131313;
    text-align: center;
}

/* CTA Section */
.cta-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px 20px; /* top, right, bottom */
}

.email-form {
    display: flex;
    gap: 0;
    align-items: center;
    max-width: 400px;
    width: 100%;
}

.email-input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #E5E5E5;
    background: #FFFFFF;
    font-family: 'Baskerville', 'Libre Baskerville', Georgia, serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
    outline: none;
    transition: border-color 0.5s ease;
}

.email-input:focus {
    border-color: #131313;
}

.email-input::placeholder {
    color: #999999;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.5px;
    font-family: 'Baskerville', 'Libre Baskerville', Georgia, serif;
}

.cta-button {
    padding: 17px 24px; /* height and width of the button */
    background-color: #131313;
    color: #FFFFFF;
    border: 1px solid #131313;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 8pt;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-button:hover {
    opacity: 0.8;
}

.cta-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Success state styling */
.cta-button.success {
    background-color: #C6890E !important;
    border-color: #C6890E !important;
    opacity: 1 !important;
}

/* Error state styling */
.cta-button.error {
    background-color: #DC3545 !important;
    border-color: #DC3545 !important;
    opacity: 1 !important;
}

/* Footer */
.footer {
    background-color: #FFFFFF;
    height: 60px;
    display: flex;
    align-items: center;
}

.footer-content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.copyright {
    font-family: 'Inter', sans-serif;
    font-size: 7pt;
    font-weight: 400;
    color: #666666;
}

.privacy-link {
    font-family: 'Inter', sans-serif;
    font-size: 7pt;
    font-weight: 400;
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #131313;
}


/* Responsive Design */
@media (max-width: 1440px) {
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .accordion-gallery {
        height: 450px;
    }
}

@media (max-width: 768px) { /* mobile */
    .logo-section {
        padding: 40px 20px 20px;
    }
    
    .logo {
        height: 52px;
    }
    
    .accordion-gallery {
        height: 700px;
        flex-direction: column;
        gap: 0;
    }
    
    .gallery-row {
        display: flex; 
        flex: 1; 
        gap: 0;
        transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
    }
    
    .gallery-row:hover {
        flex: 1.5;
    }
    
    .gallery-item {
        flex: 1;
        height: 100%;
    }
    
    .gallery-item:hover {
        flex: 1; /* No individual item hover on mobile */
    }
    
    .coming-soon-section {
        padding: 20px 20px 20px;
    }
    
    .cta-section {
        padding: 20px 20px 40px; 
    }
    
    .email-form {
        flex-direction: column;
        gap: 1px;
        max-width: 280px;
    }
    
    .email-input,
    .cta-button {
        width: 100%;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 8px;
        padding: 12px 20px;
    }
    
    .footer {
        height: auto;
        min-height: 60px;
    }
}


/* Placeholder styles for missing images */
.product-image[src*="placeholder"] {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image[src*="placeholder"]::after {
    content: 'Product Image';
    position: absolute;
    color: #999;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 1px;
}

.logo[src*="placeholder"] {
    background: #131313;
    width: 120px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
}

.logo[src*="placeholder"]::after {
    content: 'CHAPTER M';
}