﻿/* =========================================================
   MALWA AGRITECH
   GLOBAL WEBSITE LAYOUT
   VERSION: 2026
   STICKY HEADER + COMPACT HERO
   FULL RESPONSIVE
   ========================================================= */


/* =========================================================
   GLOBAL RESET
   ========================================================= */

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* =========================================================
   BODY
   ========================================================= */

body.malwa-site-body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
    color: #1d2b22;
}


/* =========================================================
   REMOVE DEFAULT ELEMENT SPACING
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
}

img {
    max-width: 100%;
}


/* =========================================================
   MAIN WEBSITE WRAPPER
   ========================================================= */

#malwaWebsite,
.malwa-website {
    width: 100%;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   STICKY HEADER
   ========================================================= */

/*
    IMPORTANT

    Header is STICKY, not fixed.

    This means:

        Header
           ↓
        Hero

    There is NO artificial padding or margin added
    to compensate for the header height.
*/

#malwaHeaderContainer,
.malwa-header-container {
    position: sticky !important;
    position: -webkit-sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 99999;
    background: #ffffff;
    isolation: isolate;
}


    /* =========================================================
   HEADER INNER ELEMENTS
   ========================================================= */

    #malwaHeaderContainer > *,
    .malwa-header-container > * {
        margin-top: 0 !important;
    }


/*
    Prevent accidental transforms from parent elements
    from breaking sticky positioning.
*/

#malwaHeaderContainer,
.malwa-header-container {
    transform: none !important;
}


    /* =========================================================
   REMOVE OLD HEADER OFFSET
   ========================================================= */

    #malwaHeaderContainer::before,
    #malwaHeaderContainer::after,
    .malwa-header-container::before,
    .malwa-header-container::after {
        display: none !important;
        content: none !important;
    }


/* =========================================================
   MAIN CONTENT
   ========================================================= */

#malwaMainContent,
.malwa-main-content {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
}


    /* =========================================================
   FIRST CONTENT ELEMENT
   ========================================================= */

    #malwaMainContent > section:first-child,
    #malwaMainContent > div:first-child,
    #malwaMainContent > article:first-child,
    .malwa-main-content > section:first-child,
    .malwa-main-content > div:first-child,
    .malwa-main-content > article:first-child {
        margin-top: 0 !important;
    }


    /* =========================================================
   FIRST HERO
   ========================================================= */

    #malwaMainContent > .malwa-hero:first-child,
    #malwaMainContent > .malwa-page-hero:first-child,
    #malwaMainContent > .malwa-contact-hero:first-child,
    .malwa-main-content > .malwa-hero:first-child,
    .malwa-main-content > .malwa-page-hero:first-child,
    .malwa-main-content > .malwa-contact-hero:first-child {
        margin-top: 0 !important;
    }


    /* =========================================================
   REMOVE BOOTSTRAP / TEMPLATE TOP SPACING
   ========================================================= */

    #malwaMainContent > .mt-5:first-child,
    #malwaMainContent > .mt-4:first-child,
    #malwaMainContent > .mt-3:first-child,
    #malwaMainContent > .pt-5:first-child,
    #malwaMainContent > .pt-4:first-child,
    #malwaMainContent > .pt-3:first-child,
    .malwa-main-content > .mt-5:first-child,
    .malwa-main-content > .mt-4:first-child,
    .malwa-main-content > .mt-3:first-child,
    .malwa-main-content > .pt-5:first-child,
    .malwa-main-content > .pt-4:first-child,
    .malwa-main-content > .pt-3:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }


/* =========================================================
   NEVER CREATE HEADER OFFSET
   ========================================================= */

#malwaMainContent,
.malwa-main-content {
    --malwa-header-height: 0px;
    --header-height: 0px;
}


    /*
    If old pages use these variables, they will not
    introduce additional spacing.
*/

    #malwaMainContent[style*="padding-top"],
    .malwa-main-content[style*="padding-top"] {
        padding-top: 0 !important;
    }


    /* =========================================================
   GENERIC SECTION RESET
   ========================================================= */

    #malwaMainContent > section,
    .malwa-main-content > section {
        position: relative;
        width: 100%;
    }


/* =========================================================
   COMPACT HERO SYSTEM
   ========================================================= */

/*
    Use these classes on all page hero sections:

        .malwa-hero
        .malwa-page-hero
        .malwa-contact-hero

    The hero is deliberately compact.

    Desktop:
        approximately 330px–420px

    Tablet:
        approximately 280px–350px

    Mobile:
        approximately 240px–310px
*/


.malwa-hero,
.malwa-page-hero,
.malwa-contact-hero {
    position: relative;
    width: 100%;
    min-height: 330px;
    margin: 0 !important;
    overflow: hidden;
    isolation: isolate;
}


/* =========================================================
   HERO INNER CONTAINER
   ========================================================= */

.malwa-hero-container,
.malwa-page-hero-container,
.malwa-contact-hero-container {
    position: relative;
    width: 100%;
    max-width: 1280px;
    min-height: 330px;
    margin: 0 auto;
    padding: 55px 32px;
    display: flex;
    align-items: center;
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.malwa-hero-content,
.malwa-page-hero-content,
.malwa-contact-hero-content {
    position: relative;
    width: 100%;
    max-width: 760px;
    z-index: 3;
}


/* =========================================================
   HERO EYEBROW
   ========================================================= */

.malwa-hero-eyebrow,
.malwa-page-hero-eyebrow,
.malwa-contact-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.4;
}


/* =========================================================
   HERO TITLE
   ========================================================= */

.malwa-hero-title,
.malwa-page-hero-title,
.malwa-contact-hero-title {
    margin: 0 0 14px 0 !important;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.8px;
}


    /* =========================================================
   HERO TITLE HIGHLIGHT
   ========================================================= */

    .malwa-hero-title span,
    .malwa-page-hero-title span,
    .malwa-contact-hero-title span {
        display: inline;
    }


/* =========================================================
   HERO DESCRIPTION
   ========================================================= */

.malwa-hero-description,
.malwa-page-hero-description,
.malwa-contact-hero-description {
    max-width: 680px;
    margin: 0 0 20px 0 !important;
    font-size: 16px;
    line-height: 1.65;
}


/* =========================================================
   HERO BUTTON AREA
   ========================================================= */

.malwa-hero-actions,
.malwa-page-hero-actions,
.malwa-contact-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}


/* =========================================================
   HERO IMAGE
   ========================================================= */

.malwa-hero-image,
.malwa-page-hero-image,
.malwa-contact-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}


    .malwa-hero-image img,
    .malwa-page-hero-image img,
    .malwa-contact-hero-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center;
    }


/* =========================================================
   HERO OVERLAY
   ========================================================= */

.malwa-hero-overlay,
.malwa-page-hero-overlay,
.malwa-contact-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}


/* =========================================================
   HERO BOTTOM SPACING
   ========================================================= */

.malwa-hero + section,
.malwa-page-hero + section,
.malwa-contact-hero + section {
    margin-top: 0 !important;
}


/* =========================================================
   PAGE SECTION CONTAINER
   ========================================================= */

.malwa-section-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}


/* =========================================================
   GENERAL SECTION SPACING
   ========================================================= */

.malwa-section {
    width: 100%;
    padding-top: 70px;
    padding-bottom: 70px;
}


/* =========================================================
   BACK TO TOP
   ========================================================= */

.malwa-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: linear-gradient( 135deg, #116b3a, #0a4f2c );
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    z-index: 99990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
}


    .malwa-back-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }


    .malwa-back-to-top:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
    }


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    /* Header */

    #malwaHeaderContainer,
    .malwa-header-container {
        width: 100% !important;
    }


    /* Main */

    #malwaMainContent,
    .malwa-main-content {
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
    }


    /* Hero */

    .malwa-hero,
    .malwa-page-hero,
    .malwa-contact-hero {
        min-height: 300px;
    }


    .malwa-hero-container,
    .malwa-page-hero-container,
    .malwa-contact-hero-container {
        min-height: 300px;
        padding: 45px 25px;
    }


    .malwa-hero-title,
    .malwa-page-hero-title,
    .malwa-contact-hero-title {
        font-size: clamp( 30px, 5vw, 44px );
    }


    .malwa-hero-description,
    .malwa-page-hero-description,
    .malwa-contact-hero-description {
        font-size: 15px;
        max-width: 620px;
    }


    .malwa-section-container {
        padding-left: 24px;
        padding-right: 24px;
    }


    .malwa-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    /* =========================================
       HEADER
       ========================================= */

    #malwaHeaderContainer,
    .malwa-header-container {
        width: 100% !important;
        position: sticky !important;
        top: 0 !important;
    }


    /* =========================================
       HERO
       ========================================= */

    .malwa-hero,
    .malwa-page-hero,
    .malwa-contact-hero {
        min-height: 270px;
        max-height: none;
    }


    .malwa-hero-container,
    .malwa-page-hero-container,
    .malwa-contact-hero-container {
        min-height: 270px;
        padding: 38px 20px;
    }


    .malwa-hero-content,
    .malwa-page-hero-content,
    .malwa-contact-hero-content {
        max-width: 100%;
    }


    .malwa-hero-eyebrow,
    .malwa-page-hero-eyebrow,
    .malwa-contact-hero-eyebrow {
        margin-bottom: 9px;
        font-size: 10px;
        letter-spacing: 1.5px;
        gap: 7px;
    }


    .malwa-hero-title,
    .malwa-page-hero-title,
    .malwa-contact-hero-title {
        margin-bottom: 10px !important;
        font-size: clamp( 27px, 8vw, 36px );
        line-height: 1.12;
        letter-spacing: -0.4px;
    }


    .malwa-hero-description,
    .malwa-page-hero-description,
    .malwa-contact-hero-description {
        margin-bottom: 15px !important;
        font-size: 14px;
        line-height: 1.55;
        max-width: 100%;
    }


    .malwa-hero-actions,
    .malwa-page-hero-actions,
    .malwa-contact-hero-actions {
        margin-top: 14px;
        gap: 9px;
    }


    /* =========================================
       GENERAL SECTION
       ========================================= */

    .malwa-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }


    .malwa-section-container {
        padding-left: 18px;
        padding-right: 18px;
    }


    /* =========================================
       BACK TO TOP
       ========================================= */

    .malwa-back-to-top {
        right: 14px;
        bottom: 14px;
        width: 44px;
        height: 44px;
        font-size: 14px;
    }
}


/* =========================================================
   SMALL MOBILE DEVICES
   ========================================================= */

@media (max-width: 575.98px) {

    /* =========================================
       HERO
       ========================================= */

    .malwa-hero,
    .malwa-page-hero,
    .malwa-contact-hero {
        min-height: 240px;
    }


    .malwa-hero-container,
    .malwa-page-hero-container,
    .malwa-contact-hero-container {
        min-height: 240px;
        padding: 30px 16px;
    }


    .malwa-hero-eyebrow,
    .malwa-page-hero-eyebrow,
    .malwa-contact-hero-eyebrow {
        font-size: 9px;
        letter-spacing: 1.2px;
        gap: 5px;
    }


    .malwa-hero-title,
    .malwa-page-hero-title,
    .malwa-contact-hero-title {
        font-size: 27px;
        line-height: 1.12;
    }


    .malwa-hero-description,
    .malwa-page-hero-description,
    .malwa-contact-hero-description {
        font-size: 13px;
        line-height: 1.5;
    }


    .malwa-section-container {
        padding-left: 15px;
        padding-right: 15px;
    }


    .malwa-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}


/* =========================================================
   EXTRA SMALL DEVICES
   ========================================================= */

@media (max-width: 380px) {

    .malwa-hero,
    .malwa-page-hero,
    .malwa-contact-hero {
        min-height: 225px;
    }


    .malwa-hero-container,
    .malwa-page-hero-container,
    .malwa-contact-hero-container {
        min-height: 225px;
        padding: 26px 14px;
    }


    .malwa-hero-title,
    .malwa-page-hero-title,
    .malwa-contact-hero-title {
        font-size: 24px;
        line-height: 1.12;
    }


    .malwa-hero-description,
    .malwa-page-hero-description,
    .malwa-contact-hero-description {
        font-size: 12.5px;
        line-height: 1.48;
    }
}


/* =========================================================
   LANDSCAPE MOBILE
   ========================================================= */

@media (max-width: 767.98px) and (orientation: landscape) {

    .malwa-hero,
    .malwa-page-hero,
    .malwa-contact-hero {
        min-height: 230px;
    }


    .malwa-hero-container,
    .malwa-page-hero-container,
    .malwa-contact-hero-container {
        min-height: 230px;
        padding-top: 28px;
        padding-bottom: 28px;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto !important;
    }


    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* =========================================================
   PRINT
   ========================================================= */

@media print {

    #malwaHeaderContainer,
    .malwa-header-container {
        position: static !important;
    }


    .malwa-back-to-top {
        display: none !important;
    }


    .malwa-hero,
    .malwa-page-hero,
    .malwa-contact-hero {
        min-height: auto !important;
    }
}
