/**
 * Willcsarroll.com - Homepage Styles
 * Hero: H4 Carousel Layout
 */

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

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

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.carousel-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
}

.carousel-content {
    position: absolute;
    bottom: 15%;
    left: 5%;
    max-width: 500px;
    color: white;
    z-index: 2;
}

.carousel-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.carousel-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.carousel-cta {
    display: inline-block;
    background: white;
    color: #212529;
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.carousel-cta:hover {
    background: #4A90E2;
    color: white;
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: white;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: white;
}

.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

/* Features */
.home-features {
    padding: 4rem 0;
    background: white;
    border-bottom: 1px solid #eee;
}

.home-features .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-item svg {
    margin-bottom: 1rem;
    color: #4A90E2;
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #212529;
}

.feature-item p {
    font-size: 0.875rem;
    color: #6C757D;
}

/* Home Sections */
.home-section {
    padding: 5rem 0;
}

.home-section.bg-light {
    background: #F8F9FA;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: #212529;
}

.view-all {
    color: #4A90E2;
    font-weight: 500;
    text-decoration: none;
}

.view-all:hover {
    text-decoration: underline;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.product-grid.small {
    grid-template-columns: repeat(4, 1fr);
}

.product-card {
    background: white;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

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

.product-image {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #F8F9FA;
    margin-bottom: 1rem;
}

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

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

.product-info h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #212529;
}

.product-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: #4A90E2;
}

/* Brand Story */
.brand-story {
    padding: 5rem 0;
    background: white;
}

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

.story-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.story-content {
    padding: 2rem;
}

.story-label {
    display: inline-block;
    color: #4A90E2;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.story-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #212529;
}

.story-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #6C757D;
    margin-bottom: 2rem;
}

.story-cta {
    display: inline-block;
    border: 2px solid #212529;
    color: #212529;
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.story-cta:hover {
    background: #212529;
    color: white;
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background: #F8F9FA;
    text-align: center;
}

.testimonials h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 3rem;
    color: #212529;
}

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

.testimonial-card {
    background: white;
    padding: 2.5rem;
    text-align: left;
}

.stars {
    color: #FFB800;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #212529;
    margin-bottom: 1.5rem;
}

.testimonial-card .author {
    font-weight: 600;
    color: #6C757D;
}

/* Newsletter */
.newsletter {
    padding: 5rem 0;
    background: #212529;
    color: white;
    text-align: center;
}

.newsletter-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.125rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
}

.newsletter-form button {
    background: #4A90E2;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #3A7BC8;
}

/* Instagram */
.instagram {
    padding: 5rem 0;
    background: white;
    text-align: center;
}

.instagram h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.instagram p {
    color: #6C757D;
    margin-bottom: 2rem;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.instagram-item {
    aspect-ratio: 1;
    overflow: hidden;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-item:hover img {
    transform: scale(1.05);
}

/* Footer */
.site-footer {
    background: #212529;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1.5fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.footer-brand {
    text-align: left;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.footer-logo svg {
    color: #4A90E2;
}

.footer-tagline {
    font-size: 0.9375rem;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: center;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-company {
    text-align: right;
    font-size: 0.875rem;
    opacity: 0.7;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .home-features .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid,
    .product-grid.small {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .story-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .carousel-content h2 {
        font-size: 2rem;
    }
    
    .product-grid,
    .product-grid.small {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .home-features .container {
        grid-template-columns: 1fr;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}
