/* Front Page Styles
--------------------------------------------- */

/* Hero Section */
.hero-section {
    position: relative;
    height: 500px;
    min-height: auto;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Remove any top margin from first child */
.hero-section > :first-child {
    margin-top: 0;
}

@media (min-width: 768px) {
    .hero-section {
        height: 550px; /* Slightly taller on desktop */
    }
}

.site-main {
    padding: 0;
}

.hero-slider {
    position: relative;
    height: 100%;
    margin: 0;
    padding: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

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

.hero-slide.preload {
    opacity: 1;
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-content h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    max-width: 800px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.5);
    display: inline-block;
    padding: 0.5rem 1rem;
    position: relative;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.3);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.hero-content p {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

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

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #2a7d2e, #37a03c);
    color: #fff;
    border: 2px solid #2a7d2e;
    animation: pulse 2s infinite;
    position: relative;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(42, 125, 46, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(42, 125, 46, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(42, 125, 46, 0);
    }
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: -1;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #216b24, #318b34);
    border-color: #216b24;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    animation: none;
}

.btn-primary:hover::before {
    transform: scaleX(1);
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-outline:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    z-index: -1;
    transition: left 0.7s ease;
}

.hero-section .btn-primary:hover::after {
    left: 100%;
}

.hero-section .btn-outline::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    z-index: -1;
    transition: left 0.7s ease;
}

.hero-section .btn-outline:hover::after {
    left: 100%;
}



/* Section Styles */
section {
    padding: 2.5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    color: #333;
    overflow: hidden;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #2a7d2e;
    margin: 1rem auto 0;
}

/* Flash animation for section titles */
.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    z-index: 2;
    transform: skewX(-25deg);
    animation: flashAnimation 5s infinite;
    pointer-events: none;
    opacity: 0; /* Start hidden */
}

/* Only animate when JS adds this class */
.section-title.flash-active::before {
    animation: flashAnimation 5s ease-in-out;
    opacity: 1;
}

@keyframes flashAnimation {
    0% {
        left: -100%;
        opacity: 0;
    }
    20% {
        opacity: 0.3;
    }
    30% {
        opacity: 0.7;
    }
    40% {
        opacity: 0.3;
    }
    50% {
        left: 100%;
        opacity: 0;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Add specific shine effect to featured collections and featured products sections */
.featured-collections .section-title::before,
.featured-products .section-title::before {
    background: linear-gradient(to right, 
        rgba(255,255,255,0) 0%, 
        rgba(42,125,46,0.2) 25%,
        rgba(255,255,255,0.8) 50%, 
        rgba(42,125,46,0.2) 75%,
        rgba(255,255,255,0) 100%);
    box-shadow: 0 0 20px rgba(42,125,46,0.5);
}

/* Enhanced flash effect for featured sections */
.featured-collections .section-title.flash-active::before,
.featured-products .section-title.flash-active::before {
    animation: enhancedFlashAnimation 6s ease-in-out;
}

/* Text glow effect during flash animation */
.featured-collections .section-title.flash-active,
.featured-products .section-title.flash-active {
    animation: textGlowEffect 6s ease-in-out;
}

@keyframes textGlowEffect {
    0% {
        text-shadow: 0 0 0 rgba(42,125,46,0);
    }
    30% {
        text-shadow: 0 0 10px rgba(42,125,46,0.7),
                     0 0 20px rgba(42,125,46,0.5),
                     0 0 30px rgba(42,125,46,0.3);
        color: #2a7d2e;
    }
    60% {
        text-shadow: 0 0 5px rgba(42,125,46,0.5),
                     0 0 10px rgba(42,125,46,0.3);
    }
    100% {
        text-shadow: 0 0 0 rgba(42,125,46,0);
        color: #333;
    }
}

@keyframes enhancedFlashAnimation {
    0% {
        left: -100%;
        opacity: 0;
        filter: blur(5px);
    }
    10% {
        opacity: 0.1;
        filter: blur(3px);
    }
    20% {
        opacity: 0.3;
        filter: blur(2px);
    }
    30% {
        opacity: 1;
        filter: blur(0);
    }
    40% {
        opacity: 0.7;
        filter: blur(1px);
    }
    75% {
        left: 100%;
        opacity: 0;
        filter: blur(5px);
    }
    100% {
        left: 100%;
        opacity: 0;
        filter: blur(5px);
    }
}

/* Featured Collections */
.featured-collections {
    width: 100%;
    background-color: #fff;
}

.featured-collections .container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

/* Collection Cards */
.collection-card {
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    height: auto !important;
    aspect-ratio: auto !important;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.collection-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.collection-card:hover {
    transform: translateY(-5px);
}

.collection-card__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.collection-card__image-link {
    display: block;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 65%;
}

.collection-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-card:hover .collection-card__image {
    transform: scale(1.05);
}

.collection-card__content {
    padding: 1.5rem;
    display: flex !important;
    flex-direction: column;
    flex-grow: 1;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 5;
    background-color: #fff;
}

.collection-card__title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #333 !important;
    font-weight: 600;
    font-family: serif;
    line-height: 1.2;
    display: block !important;
}

.collection-card__description {
    color: #666 !important;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    font-size: 0.95rem;
    flex-grow: 1;
    display: block !important;
}

.collection-card__button {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: transparent;
    border: 1px solid #2a7d2e;
    color: #2a7d2e;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    align-self: flex-start;
}

.collection-card__button:hover {
    background-color: #2a7d2e;
    color: #fff;
}

/* Add a default animation state for when JavaScript is disabled */
.no-js .collection-card {
    opacity: 1;
    transform: translateY(0);
}

/* Featured Products */
.featured-products {
    background-color: #fff;
}

.featured-products .container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

/* WooCommerce products styling for consistency */
.featured-products ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

.featured-products ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.featured-products ul.products li.product:hover {
    transform: translateY(-5px);
}

.featured-products ul.products li.product a img {
    margin: 0 !important;
    width: 100%;
    border-radius: 8px 8px 0 0;
    aspect-ratio: 3/2;
    object-fit: cover;
}

.featured-products ul.products li.product .woocommerce-loop-product__title {
    padding: 1rem 1rem 0.5rem !important;
    font-size: 1.5rem !important;
    color: #333 !important;
    font-weight: 600;
    font-family: serif;
    line-height: 1.2;
}

.featured-products ul.products li.product .price {
    padding: 0 1rem;
    color: #2a7d2e !important;
    font-weight: 600;
}

.featured-products ul.products li.product .button {
    margin: 1rem !important;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: transparent;
    border: 1px solid #2a7d2e;
    color: #2a7d2e;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.featured-products ul.products li.product .button:hover {
    background-color: #2a7d2e;
    color: #fff;
}

/* Apply WooCommerce responsive styling */
@media (max-width: 992px) {
    .featured-products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .featured-products ul.products {
        grid-template-columns: 1fr !important;
        max-width: 500px;
        margin: 0 auto !important;
    }
}

.view-all-products {
    margin-top: 3rem;
    text-align: center;
}

.products-placeholder {
    text-align: center;
}

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

.product-card.placeholder {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background-color: #f8f9fa;
    height: 350px;
    display: flex;
    flex-direction: column;
}

.product-image {
    height: 220px;
    background-color: #eee;
}

.product-title {
    height: 24px;
    width: 80%;
    background-color: #eee;
    margin: 1rem auto 0.5rem;
    border-radius: 4px;
}

.product-price {
    height: 20px;
    width: 40%;
    background-color: #eee;
    margin: 0.5rem auto;
    border-radius: 4px;
}

/* About Section */
.about-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-color: #333;
    color: #fff;
    padding: 5rem 0;
}

.about-section .container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.about-image img,
.about-image .profile-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    max-height: 500px;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.about-content p {
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.about-section .btn-outline {
    color: #fff;
    border-color: #fff;
    margin-top: 1rem;
}

/* Social Media Section */
.social-media-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5rem 0;
}

.social-media-section .container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: center;
}

.social-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 3rem;
    font-weight: 400;
}

.social-icons-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.social-icon i,
.social-svg-icon {
    font-size: 2rem;
    transition: all 0.3s ease;
    line-height: 1;
    width: 2rem;
    height: 2rem;
}

.social-svg-icon {
    display: block;
    fill: currentColor;
}

.social-icon span {
    display: none;
}

/* Individual platform colors and hover effects */
.social-icon.instagram {
    color: #E4405F;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(228, 64, 95, 0.3);
}

.social-icon.facebook {
    color: #1877F2;
}

.social-icon.facebook:hover {
    background: #1877F2;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(24, 119, 242, 0.3);
}

.social-icon.youtube {
    color: #FF0000;
}

.social-icon.youtube:hover {
    background: #FF0000;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.3);
}

.social-icon.twitter {
    color: #000000;
}

.social-icon.twitter:hover {
    background: #000000;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.social-icon.pinterest {
    color: #BD081C;
}

.social-icon.pinterest:hover {
    background: #BD081C;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(189, 8, 28, 0.3);
}

.social-icon.email {
    color: #34495e;
}

.social-icon.email:hover {
    background: #34495e;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(52, 73, 94, 0.3);
}



/* Newsletter Section */
.newsletter-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-color: var(--forest-green);
    color: #fff;
    padding: 5rem 0;
}

.newsletter-section .container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.newsletter-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.newsletter-container p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form .form-group {
    display: flex;
    margin-bottom: 1rem;
}

.form-control {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.newsletter-form .btn {
    border-radius: 0 4px 4px 0;
}

.form-check {
    text-align: left;
    margin-top: 1rem;
}

.form-check-label {
    font-size: 0.875rem;
    padding-left: 0.5rem;
}

.form-check-label a {
    color: #fff;
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .hero-content p {
        font-size: 1.25rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid,
    .placeholder-products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Social media responsive styles */
    .social-icons-grid {
        gap: 1.5rem;
    }
    
    .social-icon {
        width: 70px;
        height: 70px;
    }
    
    .social-icon i {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 400px; /* Even more compact on mobile */
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .products-grid,
    .placeholder-products {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .collection-card__image-link {
        padding-bottom: 56%;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .form-control {
        border-radius: 4px;
        margin-bottom: 1rem;
    }
    
    .newsletter-form .btn {
        border-radius: 4px;
        width: 100%;
    }
    
    /* Social media responsive styles for tablets */
    .social-icons-grid {
        gap: 1.25rem;
    }
    
    .social-icon {
        width: 65px;
        height: 65px;
    }
    
    .social-icon i {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 60vh;
        min-height: 500px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Social media responsive styles for mobile */
    .social-icons-grid {
        gap: 1rem;
        max-width: 400px;
    }
    
    .social-icon {
        width: 60px;
        height: 60px;
    }
    
    .social-icon i {
        font-size: 1.4rem;
    }
}



/* Enhance the overlay for better text contrast */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
} 