﻿/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   HEADER CONTAINER
   ============================================ */
.rs-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: transparent;
}

/* ============================================
   TOP HEADER - First Layer (Light Green)
   ============================================ */
.rs-top-header {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 12px 0;
    border-bottom: 2px solid #a5d6a7;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.rs-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand / Logo */
.rs-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 16px;
}

.rs-logo {
    height: 60px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

    .rs-logo:hover {
        transform: scale(1.05) rotate(-1deg);
    }

.rs-brand-text h1 {
    font-size: 26px;
    font-weight: 800;
    color: #2e7d32;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #1b5e20, #388e3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.rs-brand-text p {
    font-size: 13px;
    color: #558b2f;
    font-weight: 500;
    letter-spacing: 0.3px;
    -webkit-text-fill-color: #558b2f;
}

/* Top Info */
.rs-top-info {
    display: flex;
    gap: 40px;
}

.rs-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .rs-info i {
        font-size: 28px;
        color: #43a047;
        background: white;
        padding: 10px;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
        transition: all 0.3s ease;
    }

    .rs-info:hover i {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25);
        color: #2e7d32;
    }

    .rs-info span {
        display: flex;
        flex-direction: column;
    }

    .rs-info small {
        font-size: 11px;
        color: #689f38;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .rs-info strong {
        font-size: 15px;
        color: #1b5e20;
        font-weight: 700;
    }

/* ============================================
   NAVIGATION - Second Layer (White)
   ============================================ */
.rs-nav {
    background: #ffffff;
    border-bottom: 2px solid #e8f5e9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.rs-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 30px;
}

/* Mobile Brand (hidden on desktop) */
.rs-mobile-brand {
    display: none;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

    .rs-mobile-brand img {
        height: 36px;
        width: auto;
        border-radius: 8px;
    }

    .rs-mobile-brand span {
        font-size: 18px;
        font-weight: 700;
        color: #2e7d32;
    }

/* Desktop Menu */
.rs-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

    .rs-menu > a {
        padding: 10px 16px;
        color: #37474f;
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
        border-radius: 8px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
        position: relative;
    }

        .rs-menu > a i {
            font-size: 15px;
            color: #66bb6a;
            transition: color 0.3s ease;
        }

        .rs-menu > a:hover {
            background: #e8f5e9;
            color: #2e7d32;
            transform: translateY(-1px);
        }

            .rs-menu > a:hover i {
                color: #2e7d32;
            }

/* Contact Button */
.rs-contact {
    background: linear-gradient(135deg, #43a047, #2e7d32) !important;
    color: white !important;
    padding: 10px 22px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 12px rgba(76, 175, 80, 0.3);
}

    .rs-contact i {
        color: white !important;
    }

    .rs-contact:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4) !important;
        background: linear-gradient(135deg, #388e3c, #1b5e20) !important;
    }

/* ============================================
   DROPDOWN (About)
   ============================================ */
.rs-dropdown {
    position: relative;
}

.rs-dropdown-btn {
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: #37474f;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

    .rs-dropdown-btn i {
        font-size: 12px;
        color: #66bb6a;
        transition: transform 0.3s ease;
    }

    .rs-dropdown-btn:hover {
        background: #e8f5e9;
        color: #2e7d32;
    }

.rs-dropdown:hover .rs-dropdown-btn i {
    transform: rotate(180deg);
}

.rs-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e8f5e9;
}

.rs-dropdown:hover .rs-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rs-dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #37474f;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

    .rs-dropdown-menu a:hover {
        background: #e8f5e9;
        color: #2e7d32;
        padding-left: 20px;
    }

/* ============================================
   PRODUCTS DROPDOWN (Simplified)
   ============================================ */
.rs-products-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e8f5e9;
}

.rs-dropdown:hover .rs-products-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rs-product-column h4 {
    font-size: 14px;
    color: #2e7d32;
    font-weight: 700;
    padding: 8px 12px 8px 12px;
    border-bottom: 2px solid #e8f5e9;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .rs-product-column h4 i {
        color: #43a047;
    }

.rs-product-column a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    color: #37474f;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

    .rs-product-column a i {
        color: #66bb6a;
        font-size: 13px;
        width: 18px;
    }

    .rs-product-column a:hover {
        background: #e8f5e9;
        color: #2e7d32;
        padding-left: 20px;
    }

/* ============================================
   MOBILE MENU
   ============================================ */
.rs-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    pointer-events: none;
}

    .rs-mobile-menu.active {
        pointer-events: all;
    }

.rs-mobile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(4px);
}

.rs-mobile-menu.active .rs-mobile-overlay {
    opacity: 1;
}

.rs-mobile-panel {
    position: absolute;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background: white;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.rs-mobile-menu.active .rs-mobile-panel {
    right: 0;
}

.rs-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 2px solid #e8f5e9;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

    .rs-mobile-header a {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
    }

        .rs-mobile-header a img {
            height: 40px;
            width: auto;
            border-radius: 8px;
        }

        .rs-mobile-header a strong {
            font-size: 18px;
            color: #2e7d32;
        }

#rs-mobile-close {
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    color: #37474f;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

    #rs-mobile-close:hover {
        background: #2e7d32;
        color: white;
        transform: rotate(90deg);
    }

.rs-mobile-links {
    padding: 12px 16px;
}

    .rs-mobile-links > a {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 16px;
        color: #37474f;
        text-decoration: none;
        font-weight: 600;
        font-size: 15px;
        border-radius: 10px;
        transition: all 0.2s ease;
    }

        .rs-mobile-links > a i {
            width: 24px;
            color: #66bb6a;
            font-size: 18px;
        }

        .rs-mobile-links > a:hover {
            background: #e8f5e9;
            color: #2e7d32;
        }

.rs-mobile-contact {
    background: linear-gradient(135deg, #43a047, #2e7d32) !important;
    color: white !important;
    margin-top: 8px;
    justify-content: center;
}

    .rs-mobile-contact i {
        color: white !important;
    }

    .rs-mobile-contact:hover {
        background: linear-gradient(135deg, #388e3c, #1b5e20) !important;
    }

/* Mobile Dropdown */
.rs-mobile-dropdown {
    border-bottom: 1px solid #f0f4f0;
}

.rs-mobile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
}

    .rs-mobile-row a {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 16px;
        color: #37474f;
        text-decoration: none;
        font-weight: 600;
        font-size: 15px;
        border-radius: 10px;
        flex: 1;
        transition: all 0.2s ease;
    }

        .rs-mobile-row a i {
            width: 24px;
            color: #66bb6a;
            font-size: 18px;
        }

        .rs-mobile-row a:hover {
            background: #e8f5e9;
            color: #2e7d32;
        }

.rs-sub-button {
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    color: #66bb6a;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .rs-sub-button:hover {
        background: #e8f5e9;
    }

    .rs-sub-button.active i {
        transform: rotate(180deg);
    }

.rs-mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 20px;
}

    .rs-mobile-submenu.open {
        max-height: 600px;
    }

    .rs-mobile-submenu strong {
        display: block;
        padding: 10px 16px 4px;
        font-size: 13px;
        color: #2e7d32;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .rs-mobile-submenu a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 16px;
        color: #546e7a;
        text-decoration: none;
        font-weight: 500;
        font-size: 14px;
        border-radius: 8px;
        transition: all 0.2s ease;
    }

        .rs-mobile-submenu a i {
            width: 18px;
            color: #81c784;
            font-size: 13px;
        }

        .rs-mobile-submenu a:hover {
            background: #e8f5e9;
            color: #2e7d32;
            padding-left: 22px;
        }

/* ============================================
   MOBILE MENU BUTTON
   ============================================ */
.rs-menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .rs-menu-button span {
        display: block;
        width: 28px;
        height: 3px;
        background: #2e7d32;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .rs-menu-button:hover {
        background: #e8f5e9;
    }

    .rs-menu-button.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .rs-menu-button.active span:nth-child(2) {
        opacity: 0;
    }

    .rs-menu-button.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

/* ============================================
   STICKY BEHAVIOR - NO GAP
   ============================================ */
.rs-header.sticky .rs-top-header {
    padding: 6px 0;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-bottom-color: #81c784;
}

    .rs-header.sticky .rs-top-header .rs-brand-text h1 {
        font-size: 20px;
    }

    .rs-header.sticky .rs-top-header .rs-brand-text p {
        font-size: 11px;
    }

    .rs-header.sticky .rs-top-header .rs-logo {
        height: 46px;
    }

    .rs-header.sticky .rs-top-header .rs-info i {
        font-size: 20px;
        padding: 6px;
    }

    .rs-header.sticky .rs-top-header .rs-info strong {
        font-size: 13px;
    }

    .rs-header.sticky .rs-top-header .rs-info small {
        font-size: 10px;
    }

.rs-header.sticky .rs-nav {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.rs-header.sticky .rs-nav-container {
    padding: 4px 30px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .rs-top-info {
        gap: 20px;
    }

    .rs-menu > a {
        padding: 8px 12px;
        font-size: 13px;
    }

    .rs-dropdown-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .rs-top-header .rs-top-info {
        display: none;
    }

    .rs-brand-text p {
        display: none;
    }

    .rs-brand-text h1 {
        font-size: 20px;
    }

    .rs-logo {
        height: 44px;
    }

    .rs-menu {
        display: none;
    }

    .rs-mobile-brand {
        display: flex;
    }

    .rs-menu-button {
        display: flex;
    }

    .rs-nav-container {
        padding: 8px 16px;
    }

    .rs-container {
        padding: 0 16px;
    }

    /* Sticky compact on mobile */
    .rs-header.sticky .rs-top-header {
        padding: 4px 0;
    }

        .rs-header.sticky .rs-top-header .rs-logo {
            height: 36px;
        }

        .rs-header.sticky .rs-top-header .rs-brand-text h1 {
            font-size: 16px;
        }
}

@media (max-width: 480px) {
    .rs-brand-text h1 {
        font-size: 17px;
    }

    .rs-logo {
        height: 38px;
    }

    .rs-mobile-panel {
        width: 280px;
        right: -280px;
    }
}
/* ============================================
   DROPDOWN - STEADY HOVER FIX
   ============================================ */
.rs-dropdown {
    position: relative;
    display: inline-block;
}

/* Make dropdown button and menu connected */
.rs-dropdown-btn {
    position: relative;
    z-index: 2;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: #37474f;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

    .rs-dropdown-btn i {
        font-size: 12px;
        color: #66bb6a;
        transition: transform 0.3s ease;
    }

    .rs-dropdown-btn:hover {
        background: #e8f5e9;
        color: #2e7d32;
    }

/* Dropdown Menu - Connected to button */
.rs-dropdown-menu,
.rs-products-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e8f5e9;
    z-index: 10;
    margin-top: 0;
    /* Remove gap between button and menu */;
}

    /* Bridge gap between button and menu */
    .rs-dropdown-menu::before,
    .rs-products-menu::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 0;
        width: 100%;
        height: 10px;
        background: transparent;
    }

    /* Hover state - Keep open when hovering */
    .rs-dropdown:hover .rs-dropdown-menu,
    .rs-dropdown:hover .rs-products-menu,
    .rs-dropdown-menu:hover,
    .rs-products-menu:hover {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }

/* Products menu specific */
.rs-products-menu {
    min-width: 240px;
    padding: 12px;
}

    .rs-products-menu::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 0;
        width: 100%;
        height: 10px;
        background: transparent;
    }

/* Menu items hover */
.rs-dropdown-menu a,
.rs-product-column a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #37474f;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

    .rs-dropdown-menu a:hover,
    .rs-product-column a:hover {
        background: #e8f5e9;
        color: #2e7d32;
        padding-left: 20px;
    }

    /* Product icons */
    .rs-product-column a i {
        color: #66bb6a;
        font-size: 14px;
        width: 20px;
        text-align: center;
    }

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .rs-dropdown-menu,
    .rs-products-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        pointer-events: none;
        box-shadow: none;
        border: none;
        padding: 0;
        margin-top: 4px;
        background: #f8faf8;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

        .rs-dropdown-menu::before,
        .rs-products-menu::before {
            display: none;
        }

        .rs-dropdown-menu.active,
        .rs-products-menu.active {
            opacity: 1 !important;
            visibility: visible !important;
            transform: translateY(0) !important;
            pointer-events: auto !important;
            padding: 8px;
        }
}