/* -----------------------------------------
   Luxury Theme for Microbrotes.farm
------------------------------------------*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Playfair+Display:wght@400;600&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

.bg-light-section {
    background-color: #f8f9fa;
    /* Very light grey */
    width: 100%;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.text-theme-dark {
    color: #0F1F0F !important;
}

/* HEADER */
header {
    background: #0F1F0F;
    color: white;
    /* Padding removed, handled by spacer or hero */
    text-align: center;
}

/* NAVBAR */
.navbar {
    transition: all 0.4s ease;
    padding: 1rem 0;
}

.navbar-scrolled {
    background: #0F1F0F;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    transition: all 0.4s ease;
}

.navbar-scrolled .navbar-brand img {
    height: 40px;
}

.nav-link {
    color: white !important;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: #C4A463 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #C4A463;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Navbar Dropdown Background */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #0F1F0F;
        padding: 1rem;
        border-radius: 0 0 10px 10px;
        margin-top: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
}

/* Mobile Toggle */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Page Header Title (Hidden on Home, Styled otherwise) */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.hero-sub {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

/* SECTION TITLES */
.section-title {
    font-family: 'Playfair Display', serif;
    color: #0F1F0F;
    font-weight: 600;
    font-size: 2.2rem;
    text-align: center;
    margin-top: 70px;
}

.section-divider {
    width: 70px;
    height: 3px;
    background: #C4A463;
    margin: 15px auto 50px auto;
}

/* PARAGRAPHS */
p {
    max-width: 750px;
    margin: 0 auto 1.5rem auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* BUTTONS */
.btn-luxury {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid #C4A463;
    border-radius: 0;
    text-decoration: none;
    color: #0F1F0F;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-luxury:hover {
    background: #C4A463;
    color: white;
    box-shadow: 0 0 15px rgba(196, 164, 99, 0.4);
}

.btn-primary {
    background-color: #0F1F0F;
    border-color: #0F1F0F;
}

.btn-primary:hover {
    background-color: #2c422c;
    border-color: #2c422c;
}

/* FEATURE CARDS (About Section) */
.feature-card {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    /* Added shadow on hover */
}

.feature-icon {
    font-size: 2.5rem;
    color: #C4A463;
    margin-bottom: 1rem;
}

.feature-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* GALLERY IMAGES */
.gallery img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 25px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}



/* FOOTER - Updated for Premium Look */
.footer {
    background: #000000;
    /* Deepest Black */
    color: #ffffff;
    padding: 80px 0 30px 0;
    margin-top: 80px;
    text-align: left;
    border-top: 4px solid #C4A463;
    /* Distinct Gold Border */
}

.footer h5 {
    font-family: 'Playfair Display', serif;
    color: #C4A463;
    font-size: 1.3rem;
    /* Slightly larger */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 2px;
    background: #C4A463;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.footer-link:hover {
    color: #C4A463;
    padding-left: 10px;
    /* Indent on hover */
    transform: none;
    /* Reset transform in favor of padding */
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    /* Larger icons */
    height: 45px;
    border: 1px solid rgba(196, 164, 99, 0.3);
    /* Gold tint border */
    border-radius: 50%;
    color: #C4A463;
    margin-right: 15px;
    transition: all 0.4s ease;
}

.social-icon:hover {
    background: #C4A463;
    border-color: #C4A463;
    color: #000000;
    transform: translateY(-3px);
}

/* Newsletter Input Premium */
/* Newsletter Input Premium */
.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(196, 164, 99, 0.3);
    color: #ffffff;
    /* White text for visibility */
    border-radius: 0;
    padding: 15px;
    font-size: 0.95rem;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
    /* Lighter placeholder */
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #C4A463;
    box-shadow: 0 0 10px rgba(196, 164, 99, 0.2);
    color: #ffffff;
}

/* Increased specificity to override .footer .btn-luxury */
.footer .newsletter-form .btn {
    border-radius: 0;
    padding: 0 25px;
    background: #C4A463;
    color: #000000;
    border: none;
    font-weight: 600;
    z-index: 2;
    /* Ensure button is clickable above input if needed */
}

.footer .newsletter-form .btn:hover {
    background: #AA8A4A;
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding-top: 30px;
    color: rgba(255, 255, 255, 0.5);
}

/* Fix for button visibility in dark footer */
.footer .btn-luxury {
    color: #C4A463;
}

.footer .btn-luxury:hover {
    color: #0F1F0F;
}

/* ================================
   HERO BANNER (Parallax)
================================= */

.hero-banner {
    width: 100%;
    height: 45vh;
    min-height: 400px;
    background-image: url('/assets/img/hero_no_logo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect - removed in favor of slideshow/static logic */
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Important for scaling images */
}

/* Slideshow Container */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Individual Slide */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    animation: kenBurns 24s infinite;
    /* 3 images * 8s per cycle ideally, but we'll overlap */
}

/* Stagger Animations */
.hero-slide:nth-child(1) {
    animation-delay: 0s;
    opacity: 1;
    /* Start visible */
}

.hero-slide:nth-child(2) {
    animation-delay: 8s;
}

.hero-slide:nth-child(3) {
    animation-delay: 16s;
}

/* Ken Burns Keyframes */
@keyframes kenBurns {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    5% {
        opacity: 1;
    }

    33% {
        opacity: 1;
        transform: scale(1.1);
        /* Zoom in */
    }

    38% {
        opacity: 0;
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

.hero-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

/* Overlay for text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-banner .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-sub {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* FEATURETTES (Product Highlight) */
.featurette-image {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ================================
   MOBILE RESPONSIVE
================================= */

@media (max-width: 768px) {
    .hero-banner {
        height: 50vh;
        background-attachment: scroll;
        /* Disable parallax on mobile for performance */
        background-position: center;
    }

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

    .hero-sub {
        font-size: 1.1rem;
    }

    .feature-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* ================================
   PRODUCTS CAROUSEL
================================= */
/* ================================
   PRODUCTS STORY (Sticky Scroll)
================================= */
.product-story-container {
    position: relative;
    width: 100%;
    /* Height is set inline or dynamically, purely defines scroll track */
}

.product-story-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 15vh;
    height: 70vh;
    width: 100%;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 0 0 100vmax rgba(255, 255, 255, 0.8);
    /* Fade out background */
    display: flex;
    align-items: center;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

/* Note: box-shadow above is a trick to wash out background, or we can just leave it */
/* Let's try simpler first */
.product-story-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 15vh;
    height: 70vh;
    background: #f8f9fa;
    z-index: 10;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
}

.story-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    /* Fill sticky container */
}

.story-item {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%) scale(0.95);
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-out;
    pointer-events: none;
    /* Prevent clicks on hidden items */
}

.story-item.visible,
.story-item.active {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
    z-index: 2;
}

/* Ensure images look good */
.story-item img {
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    /* Stronger shadow for depth */
}

/* Ensure text is readable if needed, though background handles it */
.story-item h2 {
    margin-bottom: 1rem;
}

@media (max-width: 992px) {
    .product-story-container {
        height: auto !important;
        /* Disable sticky scroll on mobile */
    }

    .product-story-sticky {
        position: static;
        height: auto !important;
        display: block !important;
        padding: 4rem 0;
    }

    .story-wrapper {
        display: block;
    }

    .story-item {
        position: static;
        transform: none;
        opacity: 1;
        margin-bottom: 5rem;
        /* Space between stacked items */
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .story-item:last-child {
        margin-bottom: 0;
        border-bottom: none;
    }
}



/* ================================
   BLOG INDEX
================================= */

.blog-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: #C4A463;
}

.blog-thumb-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.blog-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.blog-card:hover .blog-thumb {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-title a {
    color: #0F1F0F;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #C4A463;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #C4A463;
    text-decoration: none;
    margin-top: auto;
    display: inline-block;
}

.blog-link:hover {
    color: #0F1F0F;
    text-decoration: underline;
}

/* ================================
   BLOG ARTICLE SINGLE
================================= */
.blog-article {
    text-align: left;
    /* Force left alignment */
    max-width: 800px;
    margin: 0 auto;
}

.blog-article h2,
.blog-article h3,
.blog-article h4 {
    font-family: 'Playfair Display', serif;
    color: #0F1F0F;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    text-align: left;
    /* Override any centered utility */
}

.blog-article h2 {
    font-size: 2rem;
    border-bottom: 2px solid #C4A463;
    padding-bottom: 10px;
    display: inline-block;
    /* Underline only text width */
    margin-bottom: 2rem;
}

.blog-article p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #333;
    margin-bottom: 1.5rem;
    max-width: none !important;
    /* Let container control width */
    text-align: left;
}

.blog-article .lead {
    font-size: 1.35rem;
    font-weight: 400;
    color: #0F1F0F;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    border-left: 3px solid #C4A463;
    padding-left: 20px;
}

/* ================================
   PRODUCTS CAROUSEL (Restored)
================================= */
.product-carousel-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Scroll Snap Carousel */
.product-carousel {
    display: flex;
    align-items: center;
    /* Center vertically */
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 2rem 50% 2rem 50%;
    /* Center the first/last items */
    width: 100%;

    /* Hide scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.product-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.product-card {
    flex: 0 0 auto;
    /* Don't grow/shrink, respect width */
    width: 380px;
    /* Fixed width for consistent snapping */
    scroll-snap-align: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
}

.product-card-inner {
    background-color: #0F1F0F;
    border: 1px solid #C4A463;
    border-radius: 0;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    /* Ensure shadow transitions */
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    width: 100%;
    position: relative;
    /* For absolute badge */
}

.product-card-badge {
    position: absolute;
    top: 10px;
    right: -10px;
    background: linear-gradient(135deg, #C4A463, #AA8A4A);
    color: #0F1F0F;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.product-card-badge::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    border-top: 10px solid #735D32;
    border-right: 10px solid transparent;

}

.product-card img {
    max-height: 270px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.product-card h3 {
    font-family: 'Playfair Display', serif;
    color: #C4A463;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    /* Limit lines if needed, but flex column handles it well */
}

/* Fix visibility of luxury button on dark card */
.product-card .btn-luxury {
    color: #C4A463;
}

.product-card .btn-luxury:hover {
    color: #0F1F0F;
    /* Dark text on Gold background */
}

/* Carousel States */
.product-card-center {
    opacity: 1;
    transform: scale(1.1);
    z-index: 2;
}

.product-card-side {
    opacity: 0.8;
    transform: scale(0.95);
    z-index: 1;
}

.product-card-outer {
    opacity: 0.5;
    transform: scale(0.85);
}

.product-card-hidden {
    display: none;
    opacity: 0;
    transform: scale(0.8);
}

/* Controls */
.product-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.product-carousel-btn {
    background-color: transparent;
    border: 1px solid #C4A463;
    color: #C4A463;
    padding: 0.5rem 1.5rem;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-carousel-btn:hover {
    background-color: #C4A463;
    color: #0F1F0F;
}

@media (max-width: 992px) {
    .product-card {
        flex: 0 0 40%;
    }
}

/* =========================================
   MOBILE PRODUCT STACK (Vertical Layout)
   ========================================= */
@media (max-width: 768px) {
    .product-carousel-wrapper {
        display: block;
        /* Remove flex centering constraint */
        margin-top: 2rem;
    }

    .product-carousel {
        display: flex;
        flex-direction: column;
        /* Stack vertically */
        gap: 3rem;
        /* Good spacing between cards */
        padding: 0 10px;
        /* Slight padding */
        overflow-x: visible;
        /* Allow normal scroll */
        scroll-snap-type: none;
        /* Disable snap */
    }

    .product-card {
        width: 100%;
        /* Full width */
        margin-bottom: 0;
        transform: none !important;
        /* Reset any JS transforms */
        opacity: 1 !important;
        /* Ensure visible */
        flex: 0 0 auto;
    }

    /* Force card styling for mobile to look like "center" state */
    .product-card-inner {
        transform: scale(1) !important;
        opacity: 1 !important;
        background-color: #0F1F0F;
        /* Ensure background is solid */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    }

    /* Hide controls on mobile */
    .product-carousel-controls {
        display: none !important;
    }
}