﻿/* ============================================================
   MALWA AGRITECH
   PREMIUM FULL-SCREEN VIDEO HERO
   ============================================================ */


/* ============================================================
   ROOT
   ============================================================ */

:root {
    --malwa-hero-green: #116b3a;
    --malwa-hero-dark: #073b22;
    --malwa-hero-gold: #d6a72c;
    --malwa-hero-white: #ffffff;
    --malwa-hero-header-gap: 0px;
}


/* ============================================================
   IMPORTANT BODY RESET
   Prevents unexpected whitespace
   ============================================================ */

html,
body {
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
}


/* ============================================================
   HERO
   ============================================================ */

.malwa-hero {
    position: relative;
    width: 100%;
    /*
       svh works better on mobile browsers than vh.
    */

    min-height: 100svh;
    height: calc(100svh - var(--malwa-hero-header-gap));
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: transparent;
    isolation: isolate;
}


/* ============================================================
   VIDEO CONTAINER
   ============================================================ */

.malwa-hero-video-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent;
    z-index: -2;
}


/* ============================================================
   VIDEOS
   ============================================================ */

.malwa-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    /*
       IMPORTANT:
       Video remains completely visible.
       No green overlay.
       No black overlay.
    */

    object-fit: cover;
    object-position: center center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    /*
       Prevent browser from creating weird inline gaps.
    */

    vertical-align: middle;
}


    .malwa-hero-video.malwa-video-active {
        opacity: 1;
        visibility: visible;
    }


/* ============================================================
   CONTENT
   ============================================================ */

.malwa-hero-content {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    pointer-events: none;
}


.malwa-hero-content-inner {
    width: min(100% - 80px, 1380px);
    margin: 0 auto;
    padding: 70px 0 80px;
    pointer-events: auto;
}


/* ============================================================
   EYEBROW
   ============================================================ */

.malwa-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: rgba(255,255,255,.96);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0,0,0,.45);
}


.eyebrow-line {
    width: 30px;
    height: 1px;
    background: rgba(255,255,255,.85);
}


/* ============================================================
   MAIN TITLE
   ============================================================ */

.malwa-hero-title {
    margin: 0;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,.48);
}


    .malwa-hero-title span {
        color: #ffffff;
    }


/* ============================================================
   SLOGAN
   ============================================================ */

.malwa-hero-slogan {
    margin-top: 14px;
    color: #ffffff;
    font-size: clamp(19px, 2.1vw, 28px);
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 2px 7px rgba(0,0,0,.55);
}


/* ============================================================
   DESCRIPTION
   ============================================================ */

.malwa-hero-description {
    max-width: 590px;
    margin: 15px 0 0;
    color: rgba(255,255,255,.96);
    font-size: 14px;
    line-height: 1.75;
    font-weight: 500;
    text-shadow: 0 2px 6px rgba(0,0,0,.55);
}


/* ============================================================
   CROPS
   ============================================================ */

.malwa-crop-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 23px;
}


.malwa-crop-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 125px;
    padding: 9px 13px;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 8px;
    background: rgba(0,0,0,.16);
    backdrop-filter: blur(4px);
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
}


    .malwa-crop-item:hover {
        color: #ffffff;
        text-decoration: none;
        transform: translateY(-2px);
        background: rgba(255,255,255,.16);
        border-color: #ffffff;
    }


.crop-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(255,255,255,.94);
    color: var(--malwa-green);
    font-size: 14px;
}


.malwa-crop-item strong {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
}


.malwa-crop-item small {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    color: rgba(255,255,255,.88);
}


/* ============================================================
   CTA
   ============================================================ */

.malwa-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}


.malwa-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 40px;
    padding: 0 17px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .25s ease, background .25s ease, color .25s ease;
}


    .malwa-hero-btn:hover {
        text-decoration: none;
        transform: translateY(-2px);
    }


.malwa-hero-btn-primary {
    background: var(--malwa-hero-gold);
    color: #073b22;
}


    .malwa-hero-btn-primary:hover {
        background: #f0cf67;
        color: #073b22;
    }


.malwa-hero-btn-secondary {
    color: #ffffff;
    border: 1px solid rgba(255,255,255,.85);
    background: rgba(0,0,0,.12);
}


    .malwa-hero-btn-secondary:hover {
        color: #ffffff;
        background: rgba(255,255,255,.15);
    }


/* ============================================================
   SOUND BUTTON
   ============================================================ */

.malwa-hero-controls {
    position: absolute;
    right: 25px;
    bottom: 25px;
    z-index: 20;
}


.malwa-sound-button {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 7px;
    background: rgba(0,0,0,.22);
    color: #ffffff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(5px);
    transition: background .25s ease, transform .25s ease;
}


    .malwa-sound-button:hover {
        background: rgba(0,0,0,.38);
        transform: translateY(-2px);
    }


    .malwa-sound-button i {
        font-size: 13px;
    }


/* ============================================================
   VIDEO INDICATOR
   ============================================================ */

.malwa-video-indicator {
    position: absolute;
    right: 27px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 7px;
}


.video-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    transition: transform .25s ease, background .25s ease;
}


    .video-dot.active {
        background: #ffffff;
        transform: scale(1.45);
    }


/* ============================================================
   SCROLL
   ============================================================ */

.malwa-scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,.9);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    text-shadow: 0 1px 5px rgba(0,0,0,.5);
    transition: opacity .25s ease, transform .25s ease;
}


    .malwa-scroll-indicator:hover {
        color: #ffffff;
        text-decoration: none;
        transform: translateX(-50%) translateY(-2px);
    }


    .malwa-scroll-indicator i {
        font-size: 10px;
        animation: malwaScrollArrow 1.7s infinite;
    }


@keyframes malwaScrollArrow {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}


/* ============================================================
   NEXT ANCHOR
   ============================================================ */

.malwa-hero-next-anchor {
    width: 100%;
    height: 1px;
    margin: 0;
    padding: 0;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 991px) {

    .malwa-hero {
        min-height: 100svh;
        height: 100svh;
    }


    .malwa-hero-content-inner {
        width: calc(100% - 50px);
        padding: 50px 0 70px;
    }


    .malwa-hero-title {
        font-size: clamp(35px, 7vw, 54px);
    }


    .malwa-hero-description {
        max-width: 510px;
        font-size: 13px;
    }


    .malwa-video-indicator {
        right: 18px;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767px) {

    .malwa-hero {
        min-height: 100svh;
        height: 100svh;
    }


    .malwa-hero-video {
        object-position: center center;
    }


    .malwa-hero-content {
        align-items: center;
    }


    .malwa-hero-content-inner {
        width: calc(100% - 32px);
        padding: 35px 0 65px;
    }


    .malwa-hero-eyebrow {
        gap: 7px;
        margin-bottom: 10px;
        font-size: 8px;
        letter-spacing: 1.3px;
    }


    .eyebrow-line {
        width: 18px;
    }


    .malwa-hero-title {
        font-size: clamp(30px, 10vw, 43px);
        letter-spacing: .6px;
    }


    .malwa-hero-slogan {
        margin-top: 10px;
        font-size: 17px;
        line-height: 1.45;
    }


    .malwa-hero-description {
        max-width: 100%;
        margin-top: 10px;
        font-size: 12px;
        line-height: 1.6;
    }


    .malwa-crop-list {
        gap: 7px;
        margin-top: 16px;
    }


    .malwa-crop-item {
        min-width: 0;
        flex: 1 1 calc(33.333% - 7px);
        padding: 7px 8px;
        gap: 6px;
    }


    .crop-icon {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
        font-size: 11px;
    }


    .malwa-crop-item strong {
        font-size: 9px;
        letter-spacing: .4px;
    }


    .malwa-crop-item small {
        font-size: 8px;
    }


    .malwa-hero-actions {
        gap: 7px;
        margin-top: 17px;
    }


    .malwa-hero-btn {
        min-height: 37px;
        padding: 0 12px;
        font-size: 10px;
    }


    .malwa-hero-controls {
        right: 14px;
        bottom: 14px;
    }


    .malwa-sound-button {
        height: 35px;
        padding: 0 10px;
        font-size: 10px;
    }


    .malwa-video-indicator {
        top: auto;
        right: 14px;
        bottom: 62px;
        transform: none;
        flex-direction: row;
    }


    .malwa-scroll-indicator {
        display: none;
    }
}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 420px) {

    .malwa-hero-content-inner {
        width: calc(100% - 24px);
        padding-top: 25px;
        padding-bottom: 58px;
    }


    .malwa-hero-title {
        font-size: 29px;
    }


    .malwa-hero-slogan {
        font-size: 15px;
    }


    .malwa-hero-description {
        font-size: 11px;
        line-height: 1.55;
    }


    .malwa-crop-item {
        padding: 6px 5px;
    }


    .crop-icon {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }


    .malwa-crop-item strong {
        font-size: 8px;
    }


    .malwa-crop-item small {
        font-size: 7px;
    }


    .malwa-hero-btn {
        min-height: 34px;
        padding: 0 9px;
        font-size: 9px;
    }
}


/* ============================================================
   LANDSCAPE MOBILE
   ============================================================ */

@media (max-width: 900px) and (orientation: landscape) {

    .malwa-hero {
        min-height: 100svh;
        height: 100svh;
    }


    .malwa-hero-content-inner {
        padding-top: 20px;
        padding-bottom: 40px;
    }


    .malwa-hero-title {
        font-size: 32px;
    }


    .malwa-hero-description {
        max-width: 520px;
        font-size: 11px;
    }


    .malwa-crop-list {
        margin-top: 10px;
    }


    .malwa-hero-actions {
        margin-top: 10px;
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .malwa-hero-video {
        transition: none;
    }


    .malwa-scroll-indicator i {
        animation: none;
    }
}
