/* =========================================
   Responsive & Homepage CSS
   ========================================= */

/* --- Hero Slider --- */
#hero-slider {
    position: relative;
    height: 100vh;
    /* Full viewport height */
    width: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-slide.active {
    opacity: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Solid semi-transparent dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    /* Pure white */
    max-width: 800px;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 600;
    /* Increased weight */
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    /* Increased shadow for depth */
}

.hero-content p {
    font-size: 1.3rem;
    /* Slightly larger for readability */
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #f1f1f1;
    /* Softer white */
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
    /* Subtle shadow */
}

/* --- Featured Collection --- */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-text-primary);
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

.img-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    aspect-ratio: 3/4;
    /* Consistent portrait ratio */
    background-color: var(--color-beige);
    /* Placeholder color */
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.img-wrapper:hover img {
    transform: scale(1.05);
    /* Soft zoom */
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-wrapper:hover .hover-overlay {
    opacity: 1;
}

.item-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.item-info p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* --- Fabric Story --- */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.story-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.story-text p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.story-image img {
    width: 100%;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* --- Newsletter --- */
#newsletter-cta {
    background-color: var(--color-beige);
    /* Soft background */
}

#newsletter-cta h2 {
    margin-bottom: 1rem;
}

.newsletter-form {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.newsletter-form input {
    padding: 1rem;
    width: 300px;
    border: 1px solid var(--color-text-primary);
    background: transparent;
    font-family: var(--font-body);
}

/* --- Responsiveness --- */

/* Tablet Landscape (1024px) */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait (768px) */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-image {
        order: -1;
        /* Image on top on mobile */
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input {
        width: 100%;
    }
}

/* Mobile (480px) */
@media (max-width: 480px) {
    .collection-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        /* Tighter gap for mobile */
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

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

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

    .page-hero-content h1 {
        font-size: 2.2rem;
        /* Slightly larger than home hero on small mobile if needed, or same */
    }

    /* Ensure announcement bar doesn't overflow */
    .announcement-bar {
        font-size: 0.7rem;
    }
}

/* Very Small Mobile (320px) */
@media (max-width: 350px) {
    .brand-name {
        font-size: 1.4rem;
        /* Scale down logo */
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        /* Smaller buttons */
        font-size: 0.8rem;
    }
}