/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary: #2d5a27;
    /* Forest Green */
    --primary-light: #3e7a36;
    --secondary: #8d6e63;
    /* Earth brown */
    --accent: #d4a373;
    /* Beige/Sand */
    --bg-natural: #fff6ea;
    /* Warm Cream */
    --bg-card: #ffffff;
    --text-main: #3e2723;
    /* Dark brown */
    --text-light: #6d4c41;
    --white: #ffffff;
    --border: rgba(141, 110, 99, 0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-soft: 0 10px 30px rgba(62, 39, 35, 0.05);
    --shadow-hover: 0 15px 40px rgba(62, 39, 35, 0.1);
    --radius-lg: 20px;
    --radius-md: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-natural);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-font {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Base Utility Classes */
.text-center {
    text-align: center;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 90, 39, 0.3);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Typography Enhancements */
.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    color: var(--text-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* -- HEADER & NAV -- */
.site-header {
    background: rgba(255, 246, 234, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.site-header.scrolled {
    padding: 0.5rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.logo-subtext {
    font-size: 0.9rem;
    color: var(--secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.9;
}

.desktop-nav .nav-links {
    display: flex;
    gap: 2.5rem;
}

.desktop-nav .nav-links a {
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding: 0.5rem 0;
}

.desktop-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.desktop-nav .nav-links a.active::after,
.desktop-nav .nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 9px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 18px;
}

.mobile-menu-toggle.open span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-natural);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    transform: translateY(-20px);
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-links {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav-links a {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
}

.mobile-nav-links a.active {
    color: var(--secondary);
}

/* Main Layout Spacing to account for fixed header */
main {
    padding-top: 100px;
    min-height: calc(100vh - 300px);
}

/* -- HERO SLIDER -- */
.hero-slider {
    position: relative;
    height: calc(100vh - 100px);
    overflow: hidden;
}



.slider-container {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    /* For desktop, keep full width. Border radius only added on mobile via media query */
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    /* Slight zoom for parachute effect */
    transition: transform 6s ease;
}

.slide.active img {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    color: var(--white);
    text-align: center;
    z-index: 10;
}

@media (min-width: 768px) {
    .slide-content {
        left: 10%;
        transform: translateY(-50%);
        text-align: left;
    }
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    color: var(--white);
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
}

.slide-content .btn-primary {
    opacity: 0;
    transform: translateY(30px);
}

.active .slide-content h1 {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out 0.2s;
}

.active .slide-content p {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out 0.4s;
}

.active .slide-content .btn-primary {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out 0.6s;
}

.slider-dots-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px 18px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    padding: 0;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.9);
}

.slider-dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 10px;
}

/* -- PRODUCT CARDS -- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    padding: 2rem 0;
}

@media screen and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    /* Added for stretched link */
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-img-wrap {
    height: 260px;
    overflow: hidden;
    position: relative;
    background: #f8f8f8;
}

/* Discount % badge — top-left corner of product card image */
.discount-badge-circle {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    letter-spacing: -0.3px;
    pointer-events: none;
    font-family: 'Outfit', sans-serif;
}

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

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

.product-info {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    text-decoration: none;
}

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

.card-price-display {
    font-size: 1.1rem;
    font-weight: 600;
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

.btn-outline,
.btn-primary {
    position: relative;
    z-index: 2;
    /* Ensure buttons stay clickable above the stretched link */
}

.product-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* -- STORY TIMELINE (ZIGZAG LAYOUT) -- */
.story-timeline {
    position: relative;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem 0;
}

.story-chapter {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.story-chapter.chapter-right {
    flex-direction: row-reverse;
}

.chapter-image-wrap {
    flex: 1;
}

.chapter-img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.chapter-content {
    flex: 1;
    padding: 2rem;
}

.chapter-title {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.chapter-text {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* -- ANIMATIONS -- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in.active {
    opacity: 1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.pulse-anim {
    animation: pulse 2s infinite;
}

/* WhatsApp Floating Button */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    z-index: 999;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.wa-float:hover {
    background: #08382c;
    transform: translateY(-3px);
}

/* -- FOOTER -- */
.site-footer {
    background: var(--primary);
    color: var(--bg-natural);
    padding: 5rem 0 2rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.footer-logo .logo-subtext {
    font-size: 0.95rem;
    color: var(--accent);
    opacity: 0.85;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 5px;
}

.footer-desc {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-natural);
    margin-right: 10px;
}

.social-links a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

.site-footer h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.links-col ul li {
    margin-bottom: 0.75rem;
}

.links-col ul li a {
    opacity: 0.8;
}

.links-col ul li a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 5px;
}

.contact-details li {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    opacity: 0.8;
    align-items: flex-start;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* -- RESPONSIVE -- */
@media screen and (max-width: 900px) {
    .slide-content h1 {
        font-size: 2.2rem;
    }

    /* Mobile Story Zigzag fix */
    .story-chapter,
    .story-chapter.chapter-right {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .chapter-content {
        padding: 0 1rem;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
        width: 100%;
    }

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

    .footer-logo .logo-text {
        font-size: 2rem;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

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

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

    .product-img-wrap {
        height: 150px;
    }

    .product-info {
        padding: 0.8rem;
    }

    .product-title {
        font-size: 1.05rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        /* Standard property for compatibility */
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 0.3rem;
    }

    .card-price-display {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .product-desc {
        display: none;
    }

    .product-info .btn-primary,
    .product-info .btn-outline {
        padding: 6px 5px;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* -- ORGANIC NOTIFICATION TOAST -- */
.organic-toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.organic-toast {
    background: rgba(44, 62, 47, 0.95);
    /* Deep earthy green */
    color: var(--bg-natural);
    padding: 16px 28px;
    border-radius: 8px 30px 8px 30px;
    /* Root/leaf style asymmetrical border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    pointer-events: auto;
    border: 1px solid var(--accent);
    backdrop-filter: blur(5px);
    width: max-content;
    max-width: 90vw;
    text-align: left;

    /* Animation entering */
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.organic-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.organic-toast.error {
    background: rgba(139, 0, 0, 0.95);
    /* Deep earthy red */
    border-color: #ff9999;
}

.organic-toast i.icon {
    font-size: 1.4rem;
    color: var(--accent);
}

.organic-toast.error i.icon {
    color: #ff9999;
}

.organic-toast-msg {
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

.organic-toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 10px;
    transition: var(--transition);
}

.organic-toast-close:hover {
    color: white;
}

@media (max-width: 600px) {
    .organic-toast {
        padding: 12px 18px;
        gap: 12px;
        border-radius: 8px 20px 8px 20px;
        width: 90vw;
        /* fill most of the screen */
        max-width: 400px;
    }

    .organic-toast i.icon {
        font-size: 1.25rem;
    }

    .organic-toast-msg {
        font-size: 0.95rem;
        flex: 1;
        /* allow text to fill space */
    }

    .organic-toast-close {
        font-size: 1.3rem;
        margin-left: 5px;
    }
}