/* ============================================================
   WANDISHA AGROTECH
   CORPORATE AGRICULTURE WEBSITE
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');


/* ============================================================
   ROOT VARIABLES
   ============================================================ */

:root{
    --green:#145b34;
    --deep:#0a2d1c;
    --leaf:#79a942;
    --lime:#b8d96c;
    --cream:#f5f3ea;
    --ink:#183025;
    --muted:#6c7c73;
    --white:#fff;
    --line:#dfe7e1;
    --shadow:0 20px 60px rgba(11,49,29,.11);
    --radius:26px;
}


/* ============================================================
   GLOBAL
   ============================================================ */

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:"DM Sans",Arial,sans-serif;
    color:var(--ink);
    background:#fff;
    line-height:1.65;
}

h1,
h2,
h3,
h4{
    font-family:Manrope,Arial,sans-serif;
    margin:0;
}

a{
    text-decoration:none;
    color:inherit;
}

.container{
    width:min(1200px,92%);
    margin:auto;
}


/* ============================================================
   TOP BAR
   ============================================================ */

.top{
    background:var(--deep);
    color:#d7e7dc;
    font-size:12px;
    padding:8px 0;
}

.top .container{
    display:flex;
    justify-content:space-between;
}


/* ============================================================
   HEADER
   ============================================================ */

header{
    height:84px;
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(16px);
    position:sticky;
    top:0;
    z-index:100;
    border-bottom:1px solid #edf1ed;
}

.nav{
    height:84px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}


/* ============================================================
   LOGO
   ============================================================ */

.brand{
    display:flex;
    align-items:center;
    height:100%;
}

.brand img,
.site-logo{
    display:block;
    width:190px;
    height:62px;
    object-fit:contain;
    object-position:center;
    margin:0;
    padding:0;
    border:0;
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.nav ul{
    display:flex;
    gap:28px;
    list-style:none;
    align-items:center;
    margin:0;
    padding:0;
}

.nav a{
    font-size:14px;
    font-weight:700;
    color:#33483d;
}

.nav a:hover{
    color:var(--green);
}

.nav .cta{
    background:var(--green);
    color:#fff;
    padding:12px 20px;
    border-radius:999px;
}

.hamb{
    display:none;
    border:0;
    background:none;
    font-size:27px;
    color:var(--green);
    cursor:pointer;
}


/* ============================================================
   HERO
   ============================================================ */

.hero{
    min-height:720px;

    background:
        linear-gradient(
            90deg,
            rgba(6,39,23,.91) 0%,
            rgba(6,39,23,.73) 46%,
            rgba(6,39,23,.12) 100%
        ),
        url("https://commons.wikimedia.org/wiki/Special:FilePath/Farming%20in%20central%20Tanzania%2002.jpg")
        center/cover;

    display:flex;
    align-items:center;
}

.hero-content{
    color:#fff;
    padding:100px 0;
    max-width:760px;
}

.eyebrow{
    color:var(--lime);
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:2px;
}

.hero h1{
    font-size:clamp(44px,6.2vw,78px);
    line-height:1.02;
    letter-spacing:-3px;
    margin:18px 0;
}

.hero p{
    font-size:19px;
    color:#e4eee7;
    max-width:660px;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.buttons{
    display:flex;
    gap:13px;
    flex-wrap:wrap;
    margin-top:30px;
}

.btn{
    display:inline-flex;
    padding:14px 23px;
    border-radius:999px;
    font-weight:800;
    align-items:center;
    justify-content:center;
    transition:.25s;
}

.btn:hover{
    transform:translateY(-2px);
}

.primary{
    background:var(--lime);
    color:#173722;
}

.outline{
    border:1px solid rgba(255,255,255,.45);
    color:#fff;
    background:rgba(255,255,255,.08);
}


/* ============================================================
   SECTIONS
   ============================================================ */

.section{
    padding:96px 0;
}

.soft{
    background:var(--cream);
}

.kicker{
    color:var(--green);
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:2px;
}

.head{
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:30px;
    margin-bottom:42px;
}

.head h2{
    font-size:clamp(33px,4vw,52px);
    line-height:1.08;
    letter-spacing:-2px;
    margin-top:9px;
}

.lead{
    color:var(--muted);
    max-width:640px;
}


/* ============================================================
   GRID
   ============================================================ */

.grid{
    display:grid;
    gap:22px;
}

.g3{
    grid-template-columns:repeat(3,1fr);
}

.g4{
    grid-template-columns:repeat(4,1fr);
}


/* ============================================================
   CARDS
   ============================================================ */

.card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:27px;
    box-shadow:var(--shadow);
}

.card h3{
    font-size:20px;
    margin:14px 0 8px;
}

.card p{
    font-size:14px;
    color:var(--muted);
    margin:0;
}

.icon{
    width:56px;
    height:56px;
    border-radius:17px;
    background:#e9f2df;
    display:grid;
    place-items:center;
    font-size:25px;
    color:var(--green);
}


/* ============================================================
   PHOTO CARDS
   ============================================================ */

.photo-card{
    padding:0;
    overflow:hidden;
}

.photo{
    height:220px;
    background-size:cover;
    background-position:center;
}

.photo-card .inside{
    padding:24px;
}


/* ============================================================
   LARGE SPLIT SECTION
   ============================================================ */

.split{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:70px;
    align-items:center;
}


/* ============================================================
   LARGE AVOCADO VIDEO
   ============================================================ */

/*
   HTML REQUIRED:

   <div class="big-photo reveal">
       <video autoplay muted loop playsinline>
           <source src="images/avocado3.mp4" type="video/mp4">
       </video>
   </div>
*/

.big-photo{
    width:100%;
    height:700px;
    min-height:700px;
    border-radius:34px;
    overflow:hidden;
    position:relative;
    background:#0a2d1c;
    box-shadow:var(--shadow);
}

.big-photo video{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    object-position:center;
}


/* ============================================================
   VIDEO DARK OVERLAY
   ============================================================ */

/*
   Keep this disabled unless you want the video darker.

.big-photo::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        180deg,
        rgba(0,0,0,.02),
        rgba(0,0,0,.18)
    );
    pointer-events:none;
}
*/


/* ============================================================
   CHECK LIST
   ============================================================ */

.checks{
    list-style:none;
    padding:0;
    margin:28px 0;
    display:grid;
    gap:14px;
}

.checks li{
    display:flex;
    gap:11px;
}

.checks span{
    width:22px;
    height:22px;
    border-radius:50%;
    background:var(--lime);
    display:grid;
    place-items:center;
    font-weight:900;
    flex:none;
    margin-top:4px;
}


/* ============================================================
   STATS
   ============================================================ */

.stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
    margin-top:32px;
}

.stat{
    padding:19px;
    border:1px solid var(--line);
    border-radius:18px;
    background:white;
}

.stat strong{
    display:block;
    color:var(--green);
    font-size:30px;
    font-family:Manrope;
}

.stat small{
    color:var(--muted);
}


/* ============================================================
   PRODUCTS
   ============================================================ */

.product{
    overflow:hidden;
    padding:0;
}

.product .photo{
    height:230px;
}

.product .inside{
    padding:24px;
}

.tag{
    display:inline-block;
    background:#edf5e6;
    color:var(--green);
    padding:5px 10px;
    border-radius:999px;
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
}


/* ============================================================
   CTA BANNER
   ============================================================ */

.banner{
    border-radius:32px;
    background:var(--green);
    padding:55px;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
}

.banner h2{
    font-size:42px;
}

.banner p{
    color:#d5e6db;
    max-width:680px;
}


/* ============================================================
   PAGE HERO
   ============================================================ */

.pagehero{
    padding:110px 0;
    background:linear-gradient(110deg,#0d3d25,#2a6c43);
    color:white;
}

.pagehero h1{
    font-size:clamp(40px,6vw,65px);
    letter-spacing:-2px;
}

.pagehero p{
    color:#d8e8dd;
    max-width:650px;
}


/* ============================================================
   NEWS
   ============================================================ */

.news-img{
    height:220px;
    background:center/cover;
}

.news-body{
    padding:23px;
}

.news-body h3{
    margin:8px 0;
}

.news-body p{
    color:var(--muted);
    font-size:14px;
}

.news-body small{
    font-weight:900;
    color:var(--green);
}


/* ============================================================
   CONTACT
   ============================================================ */

.contact{
    display:grid;
    grid-template-columns:.8fr 1.2fr;
    gap:24px;
}

.contact-info{
    background:var(--green);
    border-radius:28px;
    padding:38px;
    color:white;
}

.contact-info p,
.contact-info span{
    color:#d5e7db;
}

.contact-row{
    padding:18px 0;
    border-top:1px solid rgba(255,255,255,.17);
}

form{
    border:1px solid var(--line);
    border-radius:28px;
    padding:34px;
}

.formgrid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

label{
    font-size:13px;
    font-weight:800;
    display:block;
    margin-bottom:7px;
}

input,
textarea,
select{
    width:100%;
    border:1px solid #d8e2db;
    border-radius:12px;
    padding:13px;
    font:inherit;
}

textarea{
    min-height:150px;
}

.full{
    grid-column:1/-1;
}


/* ============================================================
   WHATSAPP
   ============================================================ */

.wa{
    position:fixed;
    right:24px;
    bottom:24px;
    z-index:200;
    width:62px;
    height:62px;
    border-radius:50%;
    background:#25d366;
    color:#fff;
    display:grid;
    place-items:center;
    font-size:30px;
    box-shadow:0 10px 30px rgba(37,211,102,.35);
    animation:pulse 2.5s infinite;
}

.wa span{
    position:absolute;
    right:72px;
    background:#153c28;
    color:#fff;
    padding:7px 12px;
    border-radius:9px;
    font-size:12px;
    white-space:nowrap;
    opacity:0;
    pointer-events:none;
    transition:.2s;
}

.wa:hover span{
    opacity:1;
}

@keyframes pulse{

    0%,
    100%{
        box-shadow:0 10px 30px rgba(37,211,102,.25);
    }

    50%{
        box-shadow:0 10px 42px rgba(37,211,102,.55);
    }
}


/* ============================================================
   FOOTER
   ============================================================ */

footer{
    background:#092619;
    color:#cbded1;
    padding:58px 0 24px;
}

.foot{
    display:grid;
    grid-template-columns:1.5fr 1fr 1fr 1fr;
    gap:35px;
}

.foot img{
    width:220px;
    filter:brightness(0) invert(1);
}

footer h3{
    color:#fff;
    font-size:16px;
}

footer ul{
    list-style:none;
    padding:0;
    display:grid;
    gap:8px;
    font-size:14px;
    color:#aac1b2;
}

.copy{
    border-top:1px solid rgba(255,255,255,.1);
    margin-top:40px;
    padding-top:18px;
    font-size:12px;
    color:#88a395;
}


/* ============================================================
   REVEAL ANIMATION
   ============================================================ */

.reveal{
    opacity:0;
    transform:translateY(24px);
    transition:
        opacity .8s ease,
        transform .8s ease;
}

.reveal.show{
    opacity:1;
    transform:none;
}


/* ============================================================
   ADMIN
   ============================================================ */

.admin{
    font-family:Arial,sans-serif;
    background:#f4f7f4;
}

.admin .wrap{
    width:min(1100px,94%);
    margin:35px auto;
}

.panel{
    background:#fff;
    border:1px solid #dce5de;
    border-radius:18px;
    padding:25px;
    margin-bottom:20px;
}

.admin table{
    width:100%;
    border-collapse:collapse;
}

.admin th,
.admin td{
    padding:11px;
    border-bottom:1px solid #e5ebe6;
    text-align:left;
    font-size:13px;
}

.admin input,
.admin textarea{
    margin-bottom:12px;
}

.danger{
    color:#a72d2d;
}

.notice{
    padding:12px;
    border-radius:10px;
    background:#edf6e9;
    margin-bottom:15px;
}


/* ============================================================
   TABLET
   ============================================================ */

@media(max-width:900px){

    .nav ul{
        display:none;
        position:absolute;
        left:0;
        right:0;
        top:84px;
        background:#fff;
        flex-direction:column;
        align-items:flex-start;
        padding:22px 4%;
        border-bottom:1px solid var(--line);
    }

    .nav ul.open{
        display:flex;
    }

    .hamb{
        display:block;
    }

    .g3,
    .g4{
        grid-template-columns:1fr 1fr;
    }

    .split,
    .contact{
        grid-template-columns:1fr;
    }

    /*
       Large video on tablet
    */

    .big-photo{
        width:100%;
        height:520px;
        min-height:520px;
    }

    .big-photo video{
        width:100%;
        height:100%;
        object-fit:cover;
    }

    .foot{
        grid-template-columns:1fr 1fr;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media(max-width:600px){

    .top{
        display:none;
    }

    header{
        height:72px;
    }

    .nav{
        height:72px;
    }

    .nav ul{
        top:72px;
    }


    /* Mobile logo */

    .brand img,
    .site-logo{
        width:150px;
        height:52px;
    }


    /* Hero */

    .hero{
        min-height:620px;
    }

    .hero h1{
        letter-spacing:-1.5px;
    }


    /* Sections */

    .section{
        padding:68px 0;
    }


    /* Grids */

    .g3,
    .g4,
    .stats,
    .formgrid,
    .foot{
        grid-template-columns:1fr;
    }

    .full{
        grid-column:auto;
    }


    /* Banner */

    .banner{
        display:block;
        padding:32px;
    }

    .banner h2{
        font-size:31px;
    }


    /*
       Large video on mobile
    */

    .big-photo{
        width:100%;
        height:420px;
        min-height:420px;
        border-radius:24px;
    }

    .big-photo video{
        width:100%;
        height:100%;
        object-fit:cover;
        object-position:center;
    }


    /* WhatsApp */

    .wa{
        right:18px;
        bottom:18px;
        width:56px;
        height:56px;
    }

    .wa span{
        display:none;
    }
}