/* ==========================================================================
   SitoraLife Homepage Styles
   Modern/Minimalist - Light & Airy
   ========================================================================== */

/* ==========================================================================
   Homepage Variables Override
   ========================================================================== */
.home {
    --color-bg-light: #fafafa;
    --color-bg-warm: #f5f0eb;
    --color-wood: #d4a574;
    --color-wood-dark: #8b7355;
    --color-text-dark: #2c3e50;
    --color-text-muted: #6c757d;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.homepage-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.homepage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 2rem;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #ffffff;
    color: var(--color-text-dark);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background-color: var(--color-wood);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Section Common Styles
   ========================================================================== */
.homepage-section {
    padding: 5rem 0;
}

.homepage-section.bg-light {
    background-color: var(--color-bg-light);
}

.homepage-section.bg-warm {
    background-color: var(--color-bg-warm);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-wood);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================================================================
   Categories Grid
   ========================================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.category-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    border-radius: 4px;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    color: #ffffff;
}

.category-name {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.category-count {
    font-size: 0.875rem;
    opacity: 0.8;
}

.category-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

/* ==========================================================================
   Featured Products
   ========================================================================== */
.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.featured-product-card {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.featured-product-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.featured-product-image {
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--color-bg-light);
}

.featured-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-product-card:hover .featured-product-image img {
    transform: scale(1.05);
}

.featured-product-info {
    padding: 1.5rem;
    text-align: center;
}

.featured-product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.featured-product-title {
    font-family: var(--font-secondary);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 0.75rem;
}

.featured-product-title a {
    color: inherit;
    text-decoration: none;
}

.featured-product-title a:hover {
    color: var(--color-wood);
}

.featured-product-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.featured-product-price del {
    color: var(--color-text-muted);
    font-weight: 400;
    margin-right: 0.5rem;
}

.featured-product-price ins {
    text-decoration: none;
    color: var(--color-wood-dark);
}

/* View All Link */
.view-all-link {
    text-align: center;
    margin-top: 3rem;
}

.view-all-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid var(--color-text-dark);
    color: var(--color-text-dark);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background-color: var(--color-text-dark);
    color: #ffffff;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-stars {
    color: var(--color-wood);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.testimonial-name {
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.25rem;
}

.testimonial-location {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Newsletter Section
   ========================================================================== */
.newsletter-section {
    background-color: var(--color-text-dark);
    color: #ffffff;
    padding: 4rem 0;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #ffffff;
}

.newsletter-description {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-wood);
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    padding: 1rem 2rem;
    background-color: var(--color-wood);
    color: #ffffff;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--color-wood-dark);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

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

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .homepage-hero {
        min-height: 70vh;
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .homepage-section {
        padding: 3rem 0;
    }

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

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

    .category-card {
        aspect-ratio: 16/9;
    }

    .featured-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .featured-product-info {
        padding: 1rem;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

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

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.project-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: var(--color-bg-light);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-warm);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.project-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--color-wood);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 0.8rem;
    border-radius: 2px;
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.project-title a {
    color: inherit;
    text-decoration: none;
}

.project-title a:hover {
    color: var(--color-wood);
}

.project-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Projects Responsive */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
