/* ===================================================
   JK Crop Science
   style.css
=================================================== */

:root{

    --primary:#2E7D32;
    --primary-dark:#1B5E20;
    --secondary:#D4AF37;

    --light:#F7FAF4;
    --white:#ffffff;

    --text:#555;
    --heading:#223322;

    --shadow:0 10px 30px rgba(0,0,0,.08);

    --radius:16px;

}

/* ===================================================
   Reset
=================================================== */

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

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;

    color:var(--text);

    background:var(--light);

    line-height:1.8;

}

img{
    max-width:100%;
    display:block;
}

.container{

    width:min(1180px,92%);
    margin:auto;

}

section{

    padding:90px 0;

}

h1,h2,h3,h4{

    color:var(--heading);

}

h2{

    text-align:center;

    font-size:40px;

    margin-bottom:55px;

}

p{

    margin-bottom:15px;

}

/* ===================================================
   Header
=================================================== */

.header{

    position:fixed;

    top:0;

    width:100%;

    z-index:999;

    background:rgba(255,255,255,.92);

    backdrop-filter:blur(12px);

    transition:.3s;

    box-shadow:0 2px 12px rgba(0,0,0,.08);

}

.nav{

    display:flex;

    align-items:center;

    justify-content:space-between;

    height:82px;

}

.logo img{

    height:60px;

    width:auto;

}

nav ul{

    list-style:none;

    display:flex;

    gap:35px;

}

nav a{

    color:#222;

    text-decoration:none;

    font-weight:600;

    transition:.3s;

    position:relative;

}

nav a:hover,

nav a.active{

    color:var(--primary);

}

nav a.active::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:100%;

    height:3px;

    background:var(--secondary);

    border-radius:10px;

}

/* ===================================================
Hero
=================================================== */

.hero{

    position:relative;

    height:100vh;

    background:url("../images/hero.jpg") center center/cover no-repeat;

    display:flex;

    justify-content:center;

    align-items:center;

}

.overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(

        rgba(20,70,25,.60),

        rgba(20,70,25,.45)

    );

}

.hero-content{

    position:relative;

    color:white;

    text-align:center;

    max-width:760px;

    z-index:2;

}

.hero h1{

    color:white;

    font-size:62px;

    margin-bottom:20px;

}

.hero p{

    color:white;

    font-size:21px;

    margin-bottom:35px;

}

/* ===================================================
Buttons
=================================================== */

.btn{

    display:inline-block;

    background:var(--secondary);

    color:#222;

    padding:15px 36px;

    border-radius:40px;

    text-decoration:none;

    font-weight:600;

    transition:.3s;

}

.btn:hover{

    transform:translateY(-4px);

    box-shadow:0 10px 25px rgba(0,0,0,.25);

}

.btn-outline{

    margin-top:25px;

    background:white;

    border:2px solid var(--primary);

    color:var(--primary);

    padding:12px 28px;

    border-radius:30px;

    cursor:pointer;

    font-weight:600;

    transition:.3s;

}

.btn-outline:hover{

    background:var(--primary);

    color:white;

}

/* ===================================================
About
=================================================== */

.about-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:70px;

    align-items:center;

}

.about img{

    border-radius:18px;

    box-shadow:var(--shadow);

}

.features{

    margin-top:25px;

    list-style:none;

}

.features li{

    margin-bottom:14px;

    font-weight:500;

}

/* ===================================================
Statistics
=================================================== */

.stats{

    background:white;

}

.stats-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

    text-align:center;

}

.stats h3{

    color:var(--primary);

    font-size:44px;

}

.stats p{

    font-weight:500;

}

/* ===================================================
Products
=================================================== */

.products{

    background:#edf5e8;

}

.product-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:40px;

}

.product-card{

    background:white;

    border-radius:18px;

    text-align:center;

    padding:35px;

    box-shadow:var(--shadow);

    transition:.35s;

}

.product-card:hover{

    transform:translateY(-8px);

}

.product-card img{

    width:220px;

    height:220px;

    object-fit:contain;

    margin:auto;

    margin-bottom:25px;

}

.product-card h3{

    color:var(--primary);

    margin-bottom:8px;

}

.product-card h4{

    color:#666;

    margin-bottom:18px;

    font-weight:500;

}

.badge{

    display:inline-block;

    background:var(--secondary);

    color:#222;

    padding:6px 14px;

    border-radius:20px;

    font-size:13px;

    font-weight:600;

    margin-bottom:16px;

}

/* ===================================================
Contact
=================================================== */

.contact{

    background:linear-gradient(

        135deg,

        #2E7D32,

        #1B5E20

    );

    color:white;

}

.contact h2{

    color:white;

}

.contact-box{

    max-width:700px;

    margin:auto;

    background:rgba(255,255,255,.10);

    padding:50px;

    border-radius:18px;

    backdrop-filter:blur(8px);

}

.contact-box h3{

    color:white;

    margin-bottom:20px;

}

.contact-box p{

    color:white;

}

/* ===================================================
Footer
=================================================== */

footer{

    background:#16391C;

    color:white;

    text-align:center;

    padding:25px;

}

/* ===================================================
Animations
=================================================== */

.hidden{

    opacity:0;

    transform:translateY(40px);

    transition:.8s;

}

.show{

    opacity:1;

    transform:translateY(0);

}

/* ===================================================
Responsive
=================================================== */

@media(max-width:992px){

.about-grid{

    grid-template-columns:1fr;

}

.stats-grid{

    grid-template-columns:repeat(2,1fr);

}

.hero h1{

    font-size:48px;

}

.hero p{

    font-size:18px;

}

}

@media(max-width:768px){

.nav{

    flex-direction:column;

    height:auto;

    padding:15px 0;

}

.logo{

    margin-bottom:15px;

}

nav ul{

    gap:18px;

    flex-wrap:wrap;

    justify-content:center;

}

.hero{

    text-align:center;

    padding:20px;

}

.hero h1{

    font-size:38px;

}

.hero p{

    font-size:17px;

}

h2{

    font-size:32px;

}

.contact-box{

    padding:35px;

}

}

@media(max-width:576px){

.stats-grid{

    grid-template-columns:1fr;

}

.product-card{

    padding:25px;

}

.product-card img{

    width:180px;

    height:180px;

}

.hero h1{

    font-size:32px;

}

.hero p{

    font-size:16px;

}

.btn{

    padding:13px 26px;

}

}