/*
 * Lomi Crochets - Home & Hero Scoped Stylesheet (home.css)
 */

/* Hero Section */
.hero-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tagline {
    background-color: var(--lilac-light);
    color: var(--lilac);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-tagline::before {
    content: "♥";
    color: var(--lilac);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero-title span {
    color: var(--sage);
    font-style: italic;
}

.hero-desc {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Beautiful Hero Illustration Frame */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    background-color: var(--terracotta-light);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morphBlob 12s linear infinite;
    z-index: 1;
}

.hero-image-frame {
    width: 100%;
    max-width: 450px;
    height: 520px;
    border-radius: 200px 200px 24px 24px;
    border: 8px solid var(--white);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.hero-image-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--sage), var(--lilac));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    padding: 2rem;
    text-align: center;
}

.hero-image-fallback svg {
    width: 80px;
    height: 80px;
    stroke: var(--cream);
    stroke-width: 1.2;
    fill: none;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-image-fallback h3 {
    font-size: 1.8rem;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.hero-image-fallback p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Brand Values Section */
.values-section {
    background-color: var(--white);
    border-top: var(--border-soft);
    border-bottom: var(--border-soft);
    padding: 5rem 2rem;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.05rem;
    opacity: 0.8;
}

.values-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.value-card {
    background-color: var(--cream);
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: var(--border-soft);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--sage);
}

.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--border);
}

.value-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: var(--sage);
    stroke-width: 1.5;
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.value-card p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Featured Products Carousel/Grid */
.featured-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3.5rem;
}

/* Call to Action banner */
.cta-banner {
    max-width: 1200px;
    margin: 0 auto 6rem;
    background: linear-gradient(135deg, var(--sage), var(--mocha));
    border-radius: var(--radius-lg);
    padding: 5rem 4rem;
    color: var(--cream);
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.cta-banner::after {
    content: '';
    position: absolute;
    right: -10%;
    bottom: -20%;
    width: 300px;
    height: 300px;
    border: 30px solid rgba(247, 242, 232, 0.04);
    border-radius: 50%;
}

.cta-content h2 {
    font-size: 3rem;
    color: var(--cream);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    max-width: 500px;
}

.cta-actions {
    display: flex;
    justify-content: flex-end;
}

@keyframes morphBlob {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; }
    67% { border-radius: 50% 60% 30% 70% / 60% 40% 60% 30%; }
    100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

/* Responsive Home Styles */
@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 4rem 1rem;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cta-banner {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        text-align: center;
    }
    
    .cta-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
}

/* New Scoped Classes refactored from inline styles */
.featured-empty {
    grid-column: 1 / -1;
    width: 100%;
}

.index-shop-btn-wrap {
    text-align: center;
}

.btn-index-shop {
    padding: 1rem 3rem;
}

.btn-index-cta {
    padding: 1.2rem 3rem;
    font-size: 1.05rem;
}

@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-section,
    .values-section,
    .featured-section,
    .cta-banner {
        padding: 3rem 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .btn-index-shop,
    .btn-index-cta {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}
