/*
Theme Name: JMB
Author: the Konbini Digital
Author URI: 
Version: 1.3
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* Import Public Sans font */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;500;600;700&display=swap');

:root{
    --heading-color: #03322B;
    --general-color: #FFFFFF;
    --primary-color: #15BC2E;
    --secondary-color: #FFDA4E;
}

/* Global Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Global Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-slide-in-top {
    animation: slideInFromTop 0.6s ease-out forwards;
}

/* Stagger animations for lists */
.animate-stagger > * {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.animate-stagger > *:nth-child(5) { animation-delay: 0.5s; }
.animate-stagger > *:nth-child(6) { animation-delay: 0.6s; }

/* Enhanced Transitions */
* {
    transition: all 0.3s ease;
}

/* Hover Effects */
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(21, 188, 46, 0.3);
}

.gradient-yellow-green {
    background: linear-gradient(50deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

html.jmb-theme{
    margin-top: 0 !important;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--general-color);
    overflow-x: hidden;
    animation: pageEaseIn 0.8s ease-out forwards;
}

@keyframes pageEaseIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 0 0 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--heading-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 48px;
    color: var(--primary-color);
    font-weight: bolder;
}

h3 {
    font-size: 1.75rem;
}
h4{
    font-size: 22px;
    font-weight: bolder;
}

p {
    margin: 0 0 1.5rem;
    font-size: 20px;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

ul, ol {
    margin: 0 0 1.5rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}


.hero-home{
    height: 95vh;
    margin-bottom: 0px;
    animation: fadeInUp 1s ease-out forwards;

    h1{
        font-size: 60px;
        animation: fadeInLeft 1s ease-out 0.3s forwards;
        opacity: 0;
    }

    .hero-text{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        width: 40%;
        flex-basis: unset !important;
        flex-grow: 0 !important;
        animation: fadeInLeft 1s ease-out 0.5s forwards;
        opacity: 0;
        .text-cont{
            max-width: 562px;
            margin-right: -50px;
        }
    }

    h1,p{
        color: var(--general-color);
    }
}

.hero-image{
    z-index: 8;
    display: flex;
    flex-direction: column;
    padding-top: 50px;
    justify-content: center;
    width: 60%;
    animation: fadeInRight 1s ease-out 0.7s forwards;
    opacity: 0;

    .wp-block-group{
        z-index: 9;
        position:relative;
        background-color: var(--secondary-color);
        padding: 2rem;
        margin-bottom: 35px;
        max-width: 405px;
        border-radius: 20px;
        padding-left: 110px;
        transition: all 0.3s ease;

        &:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        }

        h4{
            text-transform: uppercase;
            color: var(--heading-color);
        }
        p{
            color: var(--heading-color);
            line-height: normal;
        }
    }

    .wp-block-group::before{
        content: '';
        height: 68px;
        width: 68px;
        border-radius: 100px;
        background-color: #FFFFFF;
        position: absolute;
        left: 25px;
        animation: scaleIn 0.6s ease-out 1s forwards;
        opacity: 0;
    }

    .second-item{
        margin-left: 90px;
        animation-delay: 1.2s;
    }

    .third-item{
        margin-left: 180px;
        animation-delay: 1.4s;
    }
}

.hero-image::before{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url(./assets/img/hero-bg.png);
    background-size: contain;
    background-position: 100% 100%;
    background-repeat: no-repeat;
    z-index: 1;
}

.jmb-navbar-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    z-index: 1000;
    animation: slideInFromTopNavbar 0.8s ease-out forwards;
}

@keyframes slideInFromTopNavbar {
    from {
        opacity: 0;
        top: -50px;
    }
    to {
        opacity: 1;
        top: 20px;
    }
}

.jmb-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 40px;
    padding: 16px 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.jmb-navbar:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.jmb-logo {
    display: flex;
    align-items: center;
    font-size: 2.5rem;
    font-weight: bold;
    animation: scaleIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.jmb-logo-jm {
    color: #16b12b;
    font-weight: 700;
}

.jmb-logo-d {
    background: linear-gradient(90deg, #ffe259 0%, #ffa751 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    margin-left: 2px;
}

.jmb-nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left:auto;
    line-height: normal;
    animation: fadeInRight 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.jmb-nav-links li {
    position: relative;
    margin-bottom: 0;
    color: #03322B;
    margin-right: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.jmb-nav-links li:hover {
    transform: translateY(-2px);
}

.jmb-nav-links li.active a,
.jmb-nav-links li a:hover {
    color: #15BC2E;
}

.jmb-nav-links li.active::after {
    content: '';
    display: block;
    margin: 6px auto 0;
    width: 100%;
    height: 5px;
    border-radius: 2px;
    background: #15BC2E;
    animation: scaleIn 0.3s ease-out;
}

.jmb-nav-links a {
    text-decoration: none;
    color: #1a2b2b;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.jmb-contact-btn {
    background: #16b12b;
    color: #fff;
    padding: 10px 36px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    animation: fadeInRight 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.jmb-contact-btn:hover {
    background: #129a23;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(22, 177, 43, 0.3);
}

.about-section{
    
    .about-image{
        img{
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    .about-text{
        margin: auto;
        padding: 0 70px;

        p{
            color: var(--heading-color);
        }
    }
    
}
.wp-block-button__link.wp-element-button, .jmd-button{
    background-color: var(--primary-color);
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    padding: 10px 50px;
    letter-spacing: 0.05rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;

    &:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(21, 188, 46, 0.3);
        background-color: #129a23;
    }

    &:active {
        transform: translateY(-1px);
    }
}

.product-section{
    padding: 0 100px;
    animation: fadeInUp 1s ease-out forwards;

    display: flex;
    flex-direction: column;
    p{
        color: var(--heading-color);
    }

    .products-container .wp-block-column{
        display: flex;
        flex-direction: row;
    }
    .products-home{
        width: 23%;
        margin-right: 30px;
        display: flex;
        flex-direction: column;
        transition: all 0.3s ease;
        animation: scaleIn 0.8s ease-out forwards;
        opacity: 0;

        &:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.15);
        }

        img{
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all 0.3s ease;
        }

        .products-home-text{
            padding: 20px;
            border-radius: 0 0px 20px 20px;
            display: flex;
            flex-direction: row;
            background-color: var(--primary-color);
            position: relative;
            transition: all 0.3s ease;
            
            h4{
                margin-bottom: 0px;
                color: var(--general-color);
                text-transform: uppercase;
            }
            a{
                color: var(--general-color);
                background-color: var(--heading-color);
                margin-left: auto;
                height: 100%;
                width: 70px;
                right: 0;
                top: 0;
                position: absolute;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 0 0px 20px 0px;
                transition: all 0.3s ease;

                &:hover {
                    background-color: var(--secondary-color);
                    color: var(--heading-color);
                    transform: scale(1.1);
                }
            }
        }
    }
}

.inquiry-container{
    margin-bottom: 0;
}
.inquiry-section{
    background-image: url(./assets/img/inquiry-bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px;
    position: relative;

    h2,p,button,.wp-block-buttons{
        z-index: 9;
    }

    h2{
        color: #FFDA4E;
        font-size: 48px;
    }

    .wp-block-buttons .wp-block-button__link{
        background-color: #FFDA4E;
        color: var(--heading-color)
    }
}

.inquiry-section::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    opacity: 0.6;
}
.inquiry-modal{
    display: none;
}

.site-footer{
    background-color: var(--heading-color);
    animation: fadeInUp 1s ease-out forwards;

    .footer-main{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding: 100px 30px;

        .footer-col.no-border{
            border-left: none;
            animation: fadeInLeft 0.8s ease-out 0.2s forwards;
            opacity: 0;
        }
        .footer-col{
            width: 33%;
            border-left: 1px solid var(--secondary-color);
            padding: 0 60px;
            transition: all 0.3s ease;

            &:hover {
                transform: translateY(-3px);
            }
        }

        ul{
            list-style: none;
            margin: 0;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            column-gap: 20px;
            row-gap: 15px;
            padding: 50px 0;
            animation: fadeInUp 0.8s ease-out 0.4s forwards;
            opacity: 0;
            
            li{
                width: 45%;
                font-size: 18px;
                transition: all 0.3s ease;
                cursor: pointer;

                &:hover {
                    color: var(--primary-color);
                    transform: translateX(5px);
                }
            }
        }

        .footer-contact{
            display: flex;
            flex-direction: column;
            justify-content: center;
            animation: fadeInRight 0.8s ease-out 0.6s forwards;
            opacity: 0;
        }
        .footer-phone{
            color: var(--general-color);
            transition: all 0.3s ease;
            
            &:hover {
                transform: scale(1.05);
            }
            
            span{
                font-size: 34px;
                font-weight: bold;
            }
        }
        .footer-address{
            transition: all 0.3s ease;
            
            &:hover {
                transform: translateY(-2px);
            }
            
            .footer-address-label{
                color: var(--primary-color);
                font-size: 24px;
                font-weight: bold;
            }
            .footer-address-desc{   
                color: var(--general-color);
                font-size: 24px;
            }
        }
    }
}

.footer-bottom{
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
    opacity: 0;
}

.about-hero-image{
    position: relative;
    img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    figure{
        margin: 0;
    }
}

.about-hero-text{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 60px;

    h1{
        color: var(--primary-color);
        font-size: 48px;
        font-weight: bold;
    }

    p{
        color: var(--heading-color);
        max-width: 700px;
    }
}

.about-hero-image::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--heading-color);
    opacity: 0.4;
}

.about-why-section{
    margin: 200px 0;
    .wp-block-column{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
   
    h2{
        color: var(--primary-color);
        font-size: 48px;
        font-weight: bolder;
        text-align: center;
    }
    p{
        color: var(--heading-color);
        margin: 0 auto;
    }


    .why-list{
        margin-top: 70px;
        padding: 0 100px;
        justify-content: center;
        column-gap: 0px;
        .why-item{
            background-color: #77C53C;
            display: flex;
            flex-direction: column;
            padding: 100px 50px;
            width: 33%;
            flex-grow: unset;
            flex-basis: unset;
            
            h4{
                color: var(--general-color);
                text-align: left;
                margin-right: auto;
                margin-top: 30px;
                font-weight: bolder;
                font-size: 30px;
            }
            p{
                color: var(--general-color);
                font-size: 20px;
                font-weight: 500;
            }
        }

        .item-second{
            background-color: #3BB447;
        }
        .item-third{
            background-color: #009245;
        }
    }
}
.single-product-content{
    display: flex;
    flex-direction: row;
    margin-top: 150px;
    padding: 0 50px;

    .single-product-image,
    .single-product-title{
        width: 50%;

        img{
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    .single-product-title{
        padding-left: 50px;
        display: flex;
        flex-direction: column;
        justify-content: start;

        h1{
            color: var(--primary-color);
            font-weight: bolder;
            
        }

        h4{
            color: var(--primary-color);
            font-weight: 300;
            font-size: 20px;
        }

        p, li{
            color: var(--heading-color);
            font-size: 18px;
        }

        .product-buttons{
            display: flex;
            flex-direction: row;
        }
        .jmd-button{
            width: 100%;
            max-width: 100px;
            text-align: center;
        }
        .inquire-btn{
            background-color: #009245;
            color: var(--general-color);
            margin-right: 30px;
        }
        .email-btn{
            background-color: var(--secondary-color);
            color: var(--heading-color);
        }
    }

    
    
}

.gradient-box {
    width: 100%;
    height: 100px;
    background: linear-gradient(to right, #15BC2E -80%, #FFCB03 41%, #009245 100%);
    margin-top: 50px;
}

.product-inquiry{
    padding: 50px 100px;
    background: linear-gradient(to bottom, #ffffff 0%, #e6f4ec 80%, #d3efd9 100%);
    .frm_style_formidable-style.with_frm_style .frm_form_field.frm_right_container{
        display: flex;
        flex-direction: column;
    }

    h3{
        color: var(--primary-color);
        font-size: 40px;
        font-weight: bolder;
    }
    p{
       text-align: left;
       color: var(--heading-color);
    }
}

body .frm_style_formidable-style.with_frm_style .frm_submit{

    text-align: center;
    button{
        background-color: #009245;
        border: none;
        border-radius: 20px;
        padding: 10px 30px;
        font-weight: bolder;
    }
    
}
.contact-us-cont{
    padding: 150px 200px 50px;
    background: linear-gradient(to bottom, rgba(255, 203, 3, 0.2) 0%, #FFFFFF 60%);

    h1{
        color: var(--primary-color);
        font-size: 60px;
        font-weight: bolder;
        text-align: center;
    }

    p{
        text-align: center;
        font-size: 20px;
        color: var(--heading-color);
    }

    .inquiry-form{
        margin-top: 100px;
        h2{
            color: var(--primary-color);
            font-size: 48px;
            font-weight: bolder;
        }
        p{
           text-align: left;
        }
        
    }
}


.products-page-container{
    .products-header{
        padding: 150px 0 20px;
        background: linear-gradient(148deg, #FFCB03 -5%, #15BC2E 44%, #03322B 120%);
        h1{
            color: var(--secondary-color);
            font-size: 48px;
            font-weight: bolder;
            text-align: center;
        }
        p{
            color: var(--general-color);
        }
    }
    
    .products-layout{
        padding: 0 40px;
    }
}
/* Responsive Typography */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

