/* ============================
   Mento Goods - Home Page Styles
   ============================ */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(250, 247, 242, 0.55) 0%, rgba(231, 225, 214, 0.4) 100%), 
                url('../images/hero/hero-main.jpg') center/cover;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.25;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 50rem;
}

.hero-title {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--brand-ink) 0%, var(--brand-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(var(--brand-ink), 0.7);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 1.5rem;
    height: 1.5rem;
    border-right: 2px solid var(--brand-accent);
    border-bottom: 2px solid var(--brand-accent);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Features */
.features {
    background: rgba(var(--brand-line), 0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--brand-line);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-title {
    color: var(--brand-accent);
    margin-bottom: 1rem;
}

.feature-text {
    color: rgba(var(--brand-ink), 0.8);
}

/* Featured Products */
.featured-products {
    background: rgba(var(--brand-line), 0.05);
}

.products-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-preview-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--brand-line);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.product-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(107, 68, 35, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.product-preview-card:hover::before {
    opacity: 1;
}

.product-preview-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(107, 68, 35, 0.2);
    border-color: var(--brand-accent);
}

.product-preview-image {
    aspect-ratio: 4/3;
    background: rgba(var(--brand-line), 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(var(--brand-ink), 0.5);
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

.product-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-preview-card:hover .product-preview-image img {
    transform: scale(1.1);
    filter: brightness(1.05);
}

.product-preview-info {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.product-preview-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.product-preview-card:hover .product-preview-title {
    color: var(--brand-accent);
}

.product-preview-description {
    color: rgba(var(--brand-ink), 0.7);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.product-preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-preview-price {
    font-weight: 600;
    color: var(--brand-accent);
    font-size: 1.125rem;
}

/* Instagram */
.instagram {
    background: rgba(var(--brand-line), 0.1);
}

.instagram-header {
    text-align: center;
    margin-bottom: 2rem;
}

.instagram-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.instagram-subtitle {
    color: rgba(var(--brand-ink), 0.7);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.instagram-item {
    aspect-ratio: 1;
    background: rgba(231, 225, 214, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(17, 17, 17, 0.5);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--brand-line);
}

.instagram-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(107, 68, 35, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.instagram-item:hover::before {
    width: 200%;
    height: 200%;
}

.instagram-item:hover {
    transform: scale(1.08) rotate(2deg);
    border-color: var(--brand-accent);
    box-shadow: 0 8px 24px rgba(107, 68, 35, 0.2);
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform 0.4s ease;
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-cta {
    text-align: center;
}

/* About Preview */
.about-preview {
    background: rgba(var(--brand-accent2), 0.05);
}

.about-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.about-preview-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--brand-line);
    transition: var(--transition);
}

.about-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.about-preview-title {
    color: var(--brand-accent);
    margin-bottom: 1rem;
}

.about-preview-text {
    color: rgba(var(--brand-ink), 0.8);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent2) 100%);
    color: white;
    text-align: center;
}

.cta-section .section-title {
    color: white;
}

.cta-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-white {
    background: white;
    color: var(--brand-accent);
    border: 2px solid white;
}

.btn-white:hover {
    background: transparent;
    color: white;
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--brand-accent);
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.animate-fade-up-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease 0.2s forwards;
}

.animate-fade-up-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease 0.4s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding-top: 4rem;
    }
    
    .products-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 1rem;
    }
    
    .feature-card,
    .about-preview-card {
        padding: 1.5rem;
    }
}
