/* =========================================
   KETUMLOKAL — KRATOM THEME
   Natural Herbal • Premium Modern
========================================= */

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

:root{
    --primary-dark: #1a3b1a;      /* Dark green */
    --primary: #2E7D32;            /* Medium green */
    --primary-light: #4CAF50;       /* Light green */
    --primary-soft: #81C784;        /* Soft green */
    --primary-bg: #E8F5E9;          /* Background green */
    --accent: #8B5A2B;              /* Wood/Brown accent */
    --gold: #c6a75e;                /* Gold accent */
    --bg: #f5f3ee;                  /* Beige background */
    --bg-green: #f0f7f0;            /* Green tint background */
    --text: #1c2e1c;                /* Dark text */
    --text-light: #4a5a4a;           /* Light text */
    --soft: #e8e5df;                 /* Soft neutral */
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(26, 59, 26, 0.1);
    --shadow-hover: 0 20px 40px rgba(46, 125, 50, 0.15);
}

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

html{
    scroll-behavior:smooth;
}

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

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

/* =========================================
   TYPOGRAPHY
========================================= */

h1, h2, h3, h4{
    font-family: 'Playfair Display', serif;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

h1{ font-size: 3.5rem; }
h2{ font-size: 2.5rem; }
h3{ font-size: 1.8rem; }

p{
    color: var(--text-light);
    margin-bottom: 15px;
}

/* =========================================
   LOADER
========================================= */

#loader{
    position:fixed;
    width:100%;
    height:100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:99999;
    transition:0.5s;
}

.loader-logo{
    font-family:'Playfair Display', serif;
    font-size:32px;
    letter-spacing:8px;
    color: var(--white);
    animation:pulse 1.5s infinite;
    text-shadow: 0 0 30px rgba(255,255,255,0.3);
}

@keyframes pulse{
    0%{ opacity:0.3; transform: scale(0.95); }
    50%{ opacity:1; transform: scale(1.05); }
    100%{ opacity:0.3; transform: scale(0.95); }
}

/* =========================================
   SCROLL PROGRESS
========================================= */

.progress-bar{
    position:fixed;
    top:0;
    left:0;
    height:3px;
    background: linear-gradient(90deg, var(--primary-light), var(--gold));
    width:0%;
    z-index:9999;
}

/* =========================================
   NAVBAR
========================================= */

.navbar{
    position:fixed;
    width:100%;
    top:0;
    left:0;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 60px;
    z-index:1000;
    transition: all 0.4s ease;
    background: transparent;
    color: var(--white);
}

.navbar.transparent{
    background: transparent;
}

.navbar.scrolled{
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    color: var(--text);
}

.logo{
    font-family:'Playfair Display', serif;
    font-size:22px;
    letter-spacing:4px;
    font-weight: 700;
    transition: all 0.3s;
}

.navbar.scrolled .logo{
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar nav a{
    text-decoration:none;
    color: inherit;
    margin-left:30px;
    font-size:14px;
    letter-spacing:1px;
    position:relative;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 50px;
}

.navbar nav a:hover{
    background: rgba(255,255,255,0.15);
}

.navbar.scrolled nav a:hover{
    background: var(--primary-bg);
    color: var(--primary-dark);
}

.navbar nav a.active{
    background: var(--primary);
    color: var(--white);
}

/* =========================================
   HERO SECTION
========================================= */

.hero{
    min-height:100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    position:relative;
    overflow: hidden;
}

.hero::before{
    content:"";
    position:absolute;
    width:100%;
    height:100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path d="M20,40 Q35,20 50,40 T80,40" stroke="white" fill="none" stroke-width="2"/><path d="M30,60 Q45,40 60,60 T90,60" stroke="white" fill="none" stroke-width="2"/></svg>');
    background-size: 200px 200px;
}

.hero-content{
    position:relative;
    color:white;
    z-index:2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1{
    color: white;
    font-size:4rem;
    margin-bottom:20px;
    text-shadow: 2px 4px 20px rgba(0,0,0,0.3);
}

.hero-content p{
    color: rgba(255,255,255,0.9);
    font-size:1.2rem;
    margin-bottom:40px;
    letter-spacing:2px;
}

.kratom-tag{
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 25px;
    border-radius: 50px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.3);
}

.buy-btn{
    display:inline-block;
    padding:16px 45px;
    background: var(--gold);
    color:white;
    text-decoration:none;
    font-size:15px;
    letter-spacing:2px;
    border-radius:50px;
    transition: all 0.4s;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.buy-btn:hover{
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* =========================================
   PAGE HERO
========================================= */

.page-hero{
    padding: 150px 20px 80px;
    text-align:center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    position: relative;
    overflow: hidden;
}

.page-hero::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path d="M20,40 Q35,20 50,40 T80,40" stroke="white" fill="none" stroke-width="2"/></svg>');
    background-size: 200px 200px;
}

.page-hero h1{
    color: white;
    font-size:3rem;
    position: relative;
    z-index: 2;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.3);
}

/* =========================================
   SECTION
========================================= */

section{
    padding:80px 20px;
}

.about-section{
    background: var(--bg-green);
    position: relative;
}

.cert-section{
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.cert-section h2,
.cert-section p{
    color: white;
}

/* =========================================
   PRODUCT GRID
========================================= */

.product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
    gap:40px;
    padding:40px 0;
}

.product-card{
    background:white;
    border-radius:20px;
    padding:0 0 30px 0;
    box-shadow:var(--shadow);
    transition: all 0.4s ease;
    text-align:center;
    overflow: hidden;
    border: 1px solid rgba(46,125,50,0.1);
}

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

.product-image{
    width:100%;
    height:250px;
    overflow:hidden;
    background: linear-gradient(145deg, var(--bg-green), var(--primary-bg));
    margin-bottom:20px;
    position: relative;
}

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

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

.product-badge{
    position: absolute;
    top:15px;
    right:15px;
    background: var(--gold);
    color: var(--primary-dark);
    padding:5px 15px;
    border-radius:50px;
    font-size:0.8rem;
    font-weight:600;
    z-index:2;
}

.product-card h2{
    font-family:'Playfair Display', serif;
    font-size:1.4rem;
    margin:15px 20px 10px;
    color: var(--primary-dark);
}

.product-card p{
    font-size:0.95rem;
    margin:0 20px 15px;
    color: var(--text-light);
}

.price{
    font-size:1.3rem;
    font-weight:700;
    color: var(--primary);
    margin:15px 0;
}

.price-idr{
    font-size:1.3rem;
    font-weight:700;
    color: var(--primary);
}

.price-usd{
    font-size:1rem;
    color: var(--primary-light);
    margin-left:10px;
}

.batch-info{
    display: inline-block;
    background: var(--primary-bg);
    color: var(--primary-dark);
    padding:5px 15px;
    border-radius:50px;
    font-size:0.8rem;
    font-weight:500;
}

/* =========================================
   WHOLESALE PAGE
========================================= */

.wholesale-hero{
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 180px 20px 100px;
    text-align: center;
}

.wholesale-hero h1{
    color: white;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.wholesale-hero p{
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
}

.wholesale-content{
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.wholesale-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.wholesale-box{
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid rgba(46,125,50,0.1);
}

.wholesale-box:hover{
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-soft);
}

.wholesale-box h2{
    color: var(--primary-dark);
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.wholesale-box ul{
    list-style: none;
}

.wholesale-box li{
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wholesale-box li::before{
    content: "🌿";
    font-size: 1.2rem;
}

/* =========================================
   GUIDE PAGE
========================================= */

.guide-content{
    max-width:900px;
    margin:0 auto;
    padding: 60px 20px;
}

.guide-block{
    background:white;
    padding:50px;
    border-radius:30px;
    box-shadow:var(--shadow);
    margin-bottom:40px;
    border: 1px solid rgba(46,125,50,0.1);
    transition: all 0.3s;
}

.guide-block:hover{
    box-shadow:var(--shadow-hover);
    border-color: var(--primary-soft);
}

.guide-block h2{
    color: var(--primary-dark);
    font-size:2rem;
    margin-bottom:25px;
    border-left: 5px solid var(--gold);
    padding-left: 20px;
}

.guide-block p{
    line-height:1.8;
    font-size:1.1rem;
}

/* =========================================
   CONTACT PAGE
========================================= */

.contact-section{
    min-height: 60vh;
    padding: 80px 20px;
}

.contact-container{
    max-width:600px;
    margin:0 auto;
}

.contact-info{
    background:white;
    padding:60px 50px;
    border-radius:30px;
    box-shadow:var(--shadow);
    text-align:center;
    border: 1px solid rgba(46,125,50,0.1);
}

.contact-info h2{
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.contact-info h2::after{
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gold);
}

.contact-info p{
    font-size:1.2rem;
    margin:25px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-info .buy-btn{
    margin-top: 30px;
    display: inline-block;
    background: #25D366;
}

.contact-info .buy-btn:hover{
    background: #128C7E;
}

/* =========================================
   FOOTER
========================================= */

.footer{
    background: var(--primary-dark);
    color:white;
    text-align:center;
    padding:50px 20px;
    margin-top:80px;
}

.footer p{
    color: rgba(255,255,255,0.8);
    margin-bottom:10px;
}

/* =========================================
   ANIMATIONS
========================================= */

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.float{
    animation: float 6s ease-in-out infinite;
}

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

@media(max-width:1024px){
    h1{ font-size: 3rem; }
    h2{ font-size: 2.2rem; }
}

@media(max-width:768px){
    .navbar{
        padding:15px 20px;
        flex-direction:column;
        gap:10px;
    }
    
    .navbar nav a{
        margin:0 10px;
        font-size:13px;
    }
    
    .hero h1{
        font-size:2.5rem;
    }
    
    .product-grid{
        gap:20px;
        padding:20px;
    }
    
    .wholesale-hero h1{
        font-size:2.5rem;
    }
    
    .guide-block{
        padding:30px;
    }
    
    .contact-info{
        padding:40px 30px;
    }
}

@media(max-width:480px){
    h1{ font-size: 2rem; }
    h2{ font-size: 1.8rem; }
    
    .navbar nav a{
        margin:0 5px;
        font-size:12px;
    }
}