/* ==========================================================================
   Premium Static Hero Banner Styles
   ========================================================================== */
.premium-hero-banner {
    width: 100vw;
    min-height: 85vh;
    position: relative;
    overflow: hidden;
    background-image: var(--bg-desktop);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    display: flex;
    align-items: center; /* Flex vertical align center */
}

/* Gradient overlay for readability */
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
}

.hero-text-container {
    max-width: 650px;
    padding: 0 5%;
    margin-top: 5rem; /* Moves the text down */
}

.hero-text-container h1 {
    font-weight: 600; /* Thinner font */
    color: #ffffff;
    line-height: 1.15;
    font-size: 3.8rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    margin-bottom: 0;
}

.hero-text-container p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin: 1.5rem 0 2.5rem;
    line-height: 1.6;
}

/* Premium Dual CTA Buttons */
.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-block;
    background: var(--color-primary-green, #045c2f);
    color: #ffffff !important;
    font-weight: 700;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-hero-primary:hover {
    background: var(--color-primary-hover, #034523);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(4,92,47,0.4);
}

.btn-hero-secondary {
    display: inline-block;
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff !important;
    font-weight: 600;
    padding: 13px 35px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-hero-secondary:hover {
    background: #ffffff;
    color: var(--color-text-dark, #1a1a1a) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.2);
}

/* ==========================================================================
   Mobile Responsiveness
   ========================================================================== */
@media (max-width: 768px) {
    .premium-hero-banner {
        background-image: var(--bg-mobile);
        background-position: center; /* Better visibility on mobile */
        min-height: 80vh;
        align-items: flex-end; /* Align to the bottom */
        justify-content: center;
        padding-bottom: 4rem; /* Give it some space from the bottom edge */
    }
    .hero-gradient-overlay {
        background: rgba(0, 0, 0, 0.6); /* Full dark overlay on mobile for readability */
    }
    .hero-text-container {
        padding: 0 20px;
        text-align: center;
        margin: 0 auto; /* Reset margin */
        width: 100%;
    }
    .hero-text-container h1 {
        font-size: 2.2rem;
        font-weight: 700; /* Slightly bolder on mobile for readability */
    }
    .hero-cta-group {
        justify-content: center;
        gap: 1rem;
    }
    .btn-hero-primary, .btn-hero-secondary {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   Remove Astra Default Spacing (Gap Fix)
   ========================================================================== */
body.home .site-content,
body.home .ast-container,
body.home .site-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
}

body.home .ast-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.home #masthead {
    margin-bottom: 0 !important;
}

/* ==========================================================================
   Premium Product Showcase Banner
   ========================================================================== */
.product-banner-section.advanced-showcase {
    background-color: var(--color-primary-green);
    position: relative;
    padding: 5rem 0;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* To keep gradient overlay contained */
}

/* Subtle radial gradient overlay in the center */
.banner-gradient-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
    z-index: 0;
}

.banner-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem 2rem;
    align-items: stretch;
    justify-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .banner-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 5rem 3rem;
    }
}

@media (min-width: 1024px) {
    .banner-grid-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.banner-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem 2rem;
    align-items: stretch;
    justify-items: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .banner-grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 3rem;
    }
}

.banner-card {
    text-decoration: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff; /* Solid white to hide image backgrounds */
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    width: 100%;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1);
}

.banner-card:hover {
    box-shadow: 0 15px 40px rgba(0, 92, 47, 0.15);
}

.product-img-wrapper {
    width: 100%;
    height: 280px; /* Fixed height to control image size */
    margin-bottom: 1.5rem;
    position: relative;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(30px);
}

.floating-product {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Prevents overflow and distortion */
    display: block;
    margin: 0 auto;
    mix-blend-mode: multiply; /* Magically removes white background */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.banner-card:hover .floating-product {
    transform: scale(1.15) translateY(-5px);
}

/* Mobile Adjustments for Product Showcase Banner */
@media (max-width: 767px) {
    .product-banner-section.advanced-showcase {
        padding: 4rem 0;
    }
    .banner-grid-2 {
        gap: 2.5rem;
    }
    .product-img-wrapper {
        height: 220px; /* Smaller image height on mobile */
    }
    .banner-card {
        padding: 1.5rem 1rem;
    }
    .banner-title {
        font-size: 1.25rem;
    }
}

.banner-title {
    color: var(--color-text-dark);
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0 0 0.5rem 0;
    transform: translateZ(30px); /* 3D depth for text */
}

.shop-now-text {
    color: var(--color-primary-green);
    font-size: 1rem;
    font-weight: 600;
    opacity: 1;
    transform: translateZ(20px);
    transition: all 0.3s ease;
}

.banner-card:hover .shop-now-text {
    color: var(--color-primary-hover, #034523);
}

/* ==========================================================================
   Premium 3D SEO Content Section
   ========================================================================== */
.seo-content-section.premium-3d-section {
    background-color: var(--color-bg-cream);
    padding: 7rem 0 8rem;
    position: relative;
    overflow: hidden;
    perspective: 1200px;
}

/* 3D Background Glows */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
}
.bg-glow.glow-1 {
    width: 400px;
    height: 400px;
    background: rgba(4, 92, 47, 0.15);
    top: -100px;
    left: -100px;
}
.bg-glow.glow-2 {
    width: 300px;
    height: 300px;
    background: rgba(255, 185, 0, 0.12);
    bottom: -50px;
    right: 10%;
}

.seo-grid-3d {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
    align-items: center;
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    padding: 0 2rem;
}

@media (min-width: 992px) {
    .seo-grid-3d {
        grid-template-columns: 1fr 1.1fr;
        gap: 3rem;
    }
}

/* 3D Glassmorphism Text Card */
.seo-text-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transform: translateZ(30px);
    transition: transform 0.4s ease;
}
.seo-text-card:hover {
    transform: translateZ(40px) scale(1.02);
}

.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-secondary-yellow), #ff9900);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 185, 0, 0.3);
}

.seo-text-card h2.gradient-text {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-primary-green) 0%, #02361b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.02);
}

.seo-text-card p {
    font-size: 1.15rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--color-primary-green);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-read-more span {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
}
.btn-read-more:hover {
    color: #02361b;
}
.btn-read-more:hover span {
    transform: translateX(6px);
}

/* 3D Stacked Images */
.seo-images-3d-stack {
    position: relative;
    height: 550px;
    width: 100%;
    transform-style: preserve-3d;
}

.seo-images-3d-stack .seo-image-wrapper {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border: 4px solid #fff;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.img-back {
    width: 65%;
    height: 70%;
    top: 5%;
    right: 5%;
    z-index: 1;
    transform: translateZ(0) rotate(-3deg);
    filter: brightness(0.9) blur(1px);
}

.img-front {
    width: 70%;
    height: 75%;
    bottom: 5%;
    left: 0;
    z-index: 3;
    transform: translateZ(60px) rotate(2deg);
}

.seo-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* 3D Hover Effects */
.seo-images-3d-stack:hover .img-back {
    transform: translateZ(30px) rotate(0deg) translateX(15px) translateY(-10px);
    filter: brightness(1) blur(0);
}
.seo-images-3d-stack:hover .img-front {
    transform: translateZ(90px) rotate(0deg) scale(1.05);
}

/* Continuous Floating Animation */
.float-anim-1 { animation: float-3d 6s ease-in-out infinite alternate; }
.float-anim-2 { animation: float-3d-reverse 7s ease-in-out infinite alternate; }

@keyframes float-3d {
    0% { transform: translateZ(60px) rotate(2deg) translateY(0); }
    100% { transform: translateZ(60px) rotate(2deg) translateY(-15px); }
}
@keyframes float-3d-reverse {
    0% { transform: translateZ(0) rotate(-3deg) translateY(0); }
    100% { transform: translateZ(0) rotate(-3deg) translateY(12px); }
}

/* Floating 3D Badge */
.floating-badge {
    position: absolute;
    top: 40%;
    right: 15%;
    z-index: 4;
    background: #fff;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,92,47,0.2), inset 0 -4px 10px rgba(0,0,0,0.05);
    transform: translateZ(100px);
    animation: bounce-3d 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.badge-content {
    display: flex;
    flex-direction: column;
}
.badge-number {
    color: var(--color-secondary-yellow);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}
.badge-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

@keyframes bounce-3d {
    0%, 100% { transform: translateZ(100px) translateY(0); }
    50% { transform: translateZ(120px) translateY(-10px) rotate(5deg); }
}

@media (max-width: 768px) {
    .seo-text-card { padding: 2rem; }
    .seo-text-card h2.gradient-text { font-size: 2.2rem; }
    .seo-images-3d-stack { height: 400px; margin-top: 2rem; }
    .floating-badge { width: 90px; height: 90px; right: 5%; }
    .badge-number { font-size: 1.5rem; }
    .badge-text { font-size: 0.6rem; }
}

/* ==========================================================================
   Dynamic Products Section
   ========================================================================== */
.dynamic-products-section {
    background-color: var(--color-bg-cream);
    padding: var(--section-padding-y, 5rem) 0;
}

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

.dynamic-products-section .section-header h2 {
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.dynamic-products-section .section-header p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.dynamic-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 1rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

@media (min-width: 768px) {
    .dynamic-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .dynamic-products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.product-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,92,47,0.15); /* Hint of primary green */
}

.product-image-container {
    height: 250px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1rem;
    position: relative;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

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

.product-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category-badge {
    background-color: #eaf5ef; /* Light green/yellow */
    color: var(--color-primary-green);
    font-size: 12px;
    border-radius: 20px;
    padding: 4px 10px;
    display: inline-block;
    align-self: flex-start;
    font-weight: 600;
}

.product-title-link {
    text-decoration: none;
}

.product-title {
    font-weight: 600;
    color: var(--color-text-dark);
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-weight: 700;
    color: var(--color-primary-green);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    margin-top: auto; /* Pushes the button to the bottom */
}

.btn-add-to-cart {
    width: 100%;
    display: block;
    text-align: center;
    background-color: var(--color-primary-green);
    color: #ffffff;
    border-radius: 8px;
    padding: 10px 0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-add-to-cart:hover {
    background-color: var(--color-primary-hover, #067a3f);
    color: #ffffff;
    transform: scale(0.98);
}

/* Mobile Adjustments for Dynamic Products 2-Column Grid */
@media (max-width: 767px) {
    .product-card {
        padding: 0.8rem;
    }
    .product-image-container {
        height: 150px;
        margin-bottom: 0.8rem;
    }
    .product-category-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    .product-title {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }
    .product-price {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    .btn-add-to-cart {
        padding: 8px 0;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   Premium 3D Brand Features Section
   ========================================================================== */
.brand-features-section.premium-features-3d {
    background: linear-gradient(180deg, #ffffff 0%, var(--color-bg-cream) 100%);
    padding: 8rem 0;
    position: relative;
}

.features-header-3d {
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
}

.gradient-text-features {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary-green);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

.title-underline-3d {
    width: 80px;
    height: 6px;
    background: linear-gradient(90deg, var(--color-primary-green), var(--color-secondary-yellow));
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(4, 92, 47, 0.3);
}

.features-grid-3d {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem 2.5rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .features-grid-3d {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1200px) {
    .features-grid-3d {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.feature-card-3d {
    background-color: transparent;
    perspective: 1000px;
    position: relative;
    width: 100%;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.feature-card-3d:hover .flip-card-inner {
    transform: rotateY(180deg) scale(1.05);
}

.flip-card-front, .flip-card-back {
    width: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.flip-card-front {
    background: #ffffff; /* Solid white to seamlessly blend with image backgrounds */
    border: 1px solid rgba(0,0,0,0.05);
    padding: 0 0 2.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary-green) 0%, #034523 100%);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.flip-card-back .feature-content-3d {
    padding: 2rem;
    transform: translateZ(30px);
}

.flip-card-back h3 {
    color: var(--color-secondary-yellow);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.flip-card-back p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    line-height: 1.6;
}

.back-number {
    color: rgba(255, 255, 255, 0.05);
}

.feature-img-wrapper {
    width: 100%;
    height: 240px; /* Taller for cover image */
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: 30px 30px 0 0; /* Matches card corner */
    overflow: hidden; /* Ensures image stays within corners */
}

.glow-backdrop {
    display: none; /* No longer needed with full cover images */
}

.floating-feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill the top of the card completely */
    position: relative;
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Add smooth zoom on image when card is hovered */
.feature-card-3d:hover .floating-feature-img {
    transform: scale(1.1);
}

/* Remove floating animations as images are not transparent PNGs */
.float-anim-a, .float-anim-b, .float-anim-c, .float-anim-d {
    animation: none;
}

.feature-content-3d {
    padding: 0 2rem;
    position: relative;
    transform: translateZ(30px); /* Keeps text popping in 3D */
}

.feature-number {
    position: absolute;
    top: -15px; /* Moved down to act as a watermark behind title */
    left: 50%;
    transform: translateX(-50%);
    font-size: 6rem;
    font-weight: 900;
    color: rgba(4, 92, 47, 0.04);
    z-index: 0;
    line-height: 1;
}

.flip-card-front h3 {
    color: var(--color-text-dark);
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.flip-card-front p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .gradient-text-features { font-size: 2.2rem; }
    .features-header-3d { margin-bottom: 3rem; }
    .features-grid-3d { gap: 3rem; }
    .feature-img-wrapper {
        height: 200px; /* Reduced height on mobile */
    }
    .feature-content-3d {
        padding: 0 1.5rem;
    }
    .flip-card-front h3 {
        font-size: 1.25rem;
    }
    .flip-card-front p {
        font-size: 0.95rem;
    }
    /* Disable redundant 3D flip effect on mobile for cleaner UX */
    .feature-card-3d {
        perspective: none;
    }
    .flip-card-inner {
        transform: none !important;
        transition: none !important;
    }
    .flip-card-back {
        display: none; /* Hide back of flip card on mobile */
    }
    .flip-card-front {
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }
}

/* ==========================================================================
   The Science of Purity Section (Advanced 3D Layout)
   ========================================================================== */
.science-purity-section {
    background-color: #022010; /* Very dark rich green for premium contrast */
    color: #fff;
    padding: 8rem 0 10rem;
    position: relative;
    overflow: hidden;
}

.science-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 185, 0, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: 0;
}
.glow-top-left { top: -200px; left: -200px; }
.glow-bottom-right { bottom: -200px; right: -200px; background: radial-gradient(circle, rgba(4, 92, 47, 0.3) 0%, rgba(0,0,0,0) 70%); }

.science-header {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto 6rem;
}

.tagline-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 185, 0, 0.5);
    color: var(--color-secondary-yellow);
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 185, 0, 0.2);
}

.science-header .main-heading {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.science-header .main-heading span {
    background: linear-gradient(90deg, #fff, var(--color-secondary-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.science-header .sub-headline {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

.science-3d-layout {
    position: relative;
    height: 700px;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.center-images-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    z-index: 2;
    perspective: 1200px;
}

.sci-center-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 185, 0, 0.3) 0%, rgba(0,0,0,0) 60%);
    border-radius: 50%;
    z-index: 1;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.sci-img-main {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px; /* Soft square instead of circle */
    z-index: 3;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.sci-img-shield {
    position: absolute;
    width: 65%;
    height: 65%;
    object-fit: cover;
    border-radius: 20px; /* Soft square instead of circle */
    bottom: -15%;
    right: -15%;
    z-index: 4;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Floating Boxes */
.float-box {
    position: absolute;
    background: rgba(25, 55, 35, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 1.5rem;
    width: 320px;
    z-index: 5;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.float-box:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: rgba(255, 185, 0, 0.5);
    background: rgba(25, 55, 35, 0.8);
}

.fb-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary-green), #034523);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary-yellow);
    margin-bottom: 1rem;
    border: 1px solid rgba(255,185,0,0.3);
    box-shadow: 0 5px 15px rgba(255,185,0,0.2);
}

.float-box h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.float-box p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    margin: 0;
}

/* Positioning */
.fb-top-left { top: 5%; left: 0; }
.fb-top-right { top: 15%; right: 0; }
.fb-bottom-left { bottom: 15%; left: 0; }
.fb-bottom-right { bottom: 5%; right: 0; }

/* Connecting Lines - Removed for cleaner look */
.float-box::before {
    display: none;
}

@media (max-width: 1024px) {
    .science-3d-layout { height: auto; display: flex; flex-direction: column; align-items: center; gap: 2rem; }
    .center-images-wrapper { position: relative; top: 0; left: 0; transform: none; width: 350px; height: 350px; margin-bottom: 3rem; }
    .float-box { position: relative; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100%; max-width: 400px; }
    .float-box::before { display: none; }
}
@media (max-width: 768px) {
    .science-header .main-heading { font-size: 2.5rem; }
    .center-images-wrapper { width: 300px; height: 300px; }
}

/* ==========================================================================
   Culinary Inspiration & Recipes Section
   ========================================================================== */
.recipes-section {
    background: linear-gradient(180deg, var(--color-bg-cream) 0%, #ffffff 100%);
    padding: var(--section-padding-y, 5rem) 0;
}

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

.recipes-section .section-header h2 {
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.recipes-section .section-header p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.recipes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

@media (min-width: 768px) {
    .recipes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .recipes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.recipe-card {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden; /* Keep image inside rounded corners */
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    will-change: transform;
}

.recipe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(4, 92, 47, 0.12);
}

.recipe-img-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.recipe-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.recipe-card:hover .recipe-img {
    transform: scale(1.1) rotate(1deg);
}

.recipe-content-box {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.recipe-content-box h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
    font-weight: 700;
    font-size: 1.3rem;
}

.recipe-content-box p {
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.recipe-link {
    color: var(--color-primary-green);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.recipe-link:hover {
    color: var(--color-primary-hover, #067a3f);
}

.recipe-link .arrow {
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.recipe-card:hover .recipe-link .arrow {
    transform: translateX(5px);
}

/* ==========================================================================
   Transparent Header for Homepage
   ========================================================================== */
body.home .custom-site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease !important;
}

body.home .custom-site-header.is-sticky {
    background: rgba(255, 255, 255, 0.95) !important; /* Premium glass white */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    border-bottom: 1px solid rgba(4, 92, 47, 0.1) !important;
}

/* White text/icons when header is transparent on homepage */
body.home .custom-site-header:not(.is-sticky) .site-title,
body.home .custom-site-header:not(.is-sticky) .primary-nav > ul > li > a,
body.home .custom-site-header:not(.is-sticky) .icon-link,
body.home .custom-site-header:not(.is-sticky) .mobile-menu-toggle {
    color: #ffffff !important;
}

/* Ensure dropdown menus remain readable (dark text on white background) */
body.home .custom-site-header:not(.is-sticky) .dropdown-menu {
    background-color: #ffffff !important;
}
body.home .custom-site-header:not(.is-sticky) .dropdown-menu a {
    color: var(--color-text-dark, #1a1a1a) !important;
}
body.home .custom-site-header:not(.is-sticky) .dropdown-menu a:hover {
    color: var(--color-primary-green, #045c2f) !important;
    background-color: rgba(4, 92, 47, 0.05) !important;
}

/* Change underline hover effect to white when transparent */
body.home .custom-site-header:not(.is-sticky) .primary-nav > ul > li > a::after {
    background-color: #ffffff !important;
}

/* White Logo filter when transparent (if logo is an image) */
body.home .custom-site-header:not(.is-sticky) .header-left img {
    filter: brightness(0) invert(1) !important;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    translate: 0 40px;
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), translate 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, translate;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    translate: 0 0;
}

/* ==========================================================================
   Premium 3D Brand Values Section
   ========================================================================== */
.brand-values-section {
    background-color: var(--color-bg-cream, #f7f9f6);
    padding: 8rem 0 5rem 0;
    position: relative;
    perspective: 1200px;
}

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

@media (min-width: 768px) {
    .brand-values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6rem 2rem;
    }
}

@media (min-width: 1024px) {
    .brand-values-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4rem 2rem;
    }
}

.value-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    border: 1px solid rgba(0,0,0,0.03);
}

.value-card:hover {
    transform: translateY(-15px) rotateX(4deg) rotateY(-4deg);
    box-shadow: -15px 25px 50px rgba(4, 92, 47, 0.12);
    z-index: 2;
}

.value-card-img-wrap {
    width: 88%;
    height: 220px;
    margin: -40px auto 1.5rem;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transform: translateZ(30px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transition: all 0.5s ease;
    background: #fff;
}

.value-card:hover .value-card-img-wrap {
    transform: translateZ(60px) translateY(-10px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.25);
}

.value-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.value-card:hover .value-card-img-wrap img {
    transform: scale(1.1);
}

.value-card-content {
    padding: 0 1.5rem 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: transparent;
    transform: translateZ(20px);
}

.value-card-content h3 {
    color: var(--color-primary-green, #045c2f);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.value-card-content p {
    color: var(--color-text-light, #555555);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* Mobile Friendly Adjustments */
@media (max-width: 767px) {
    .brand-values-section {
        padding: 6rem 0 3rem 0;
    }
    .brand-values-grid {
        gap: 5rem 1.5rem;
    }
    .value-card-img-wrap {
        height: 200px;
        margin-top: -30px;
        width: 90%;
    }
    .value-card:hover {
        transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
    }
    .value-card:hover .value-card-img-wrap {
        transform: translateZ(40px) translateY(-5px);
    }
    .value-card-content {
        padding: 0 1.2rem 2rem;
    }
    .value-card-content h3 {
        font-size: 1.25rem;
    }
    .value-card-content p {
        font-size: 0.95rem;
    }
}
