﻿/* ========================================
   RM HYBRID SEEDS - VIBRANT COLORFUL HEADER
   Modern Gradient Design | Fully Responsive
   ======================================== */

/* ---------- CSS VARIABLES ---------- */
:root {
    --rmh-gradient-start: #ff6b6b;
    --rmh-gradient-1: #4ecdc4;
    --rmh-gradient-2: #45b7d1;
    --rmh-gradient-3: #96ceb4;
    --rmh-gradient-4: #ffeead;
    --rmh-gradient-5: #ffcc5c;
    --rmh-gradient-6: #ff6f69;
    --rmh-primary: #2c5e2e;
    --rmh-primary-dark: #1e4620;
    --rmh-primary-light: #4c8b4e;
    --rmh-secondary: #ff9a3c;
    --rmh-accent: #ff6b6b;
    --rmh-dark: #1a2a1a;
    --rmh-gray: #4a5b4a;
    --rmh-light-gray: #f8f9f8;
    --rmh-white: #ffffff;
    --rmh-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --rmh-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.15);
    --rmh-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--rmh-white);
    color: var(--rmh-dark);
    overflow-x: hidden;
    padding-top: 140px; /* Total header height */
}

/* ---------- STICKY HEADER ---------- */
.rmh-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--rmh-transition);
}

    .rmh-header.scrolled {
        box-shadow: var(--rmh-shadow-hover);
    }

/* ---------- COLORFUL TOP BAR - MULTI-COLOR GRADIENT ---------- */
.rmh-top-bar {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 15%, #ffb347 30%, #ffd93d 45%, #96ceb4 60%, #4ecdc4 75%, #45b7d1 90%, #6c5ce7 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    padding: 20px 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Animated gradient background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Decorative pattern overlay */
.rmh-top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient( 45deg, rgba(255, 255, 255, 0.05) 0px, rgba(255, 255, 255, 0.05) 2px, transparent 2px, transparent 8px );
    pointer-events: none;
}

.rmh-top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.rmh-title-section {
    text-align: center;
}

.rmh-company-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--rmh-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    margin-bottom: 8px;
    animation: fadeInDown 0.8s ease;
}

.rmh-company-slogan {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- NAVBAR ---------- */
.rmh-navbar {
    background: var(--rmh-white);
    padding: 12px 0;
    position: relative;
    box-shadow: var(--rmh-shadow);
}

.rmh-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* ---------- LOGO SECTION ---------- */
.rmh-logo-section {
    flex-shrink: 0;
}

.rmh-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    transition: var(--rmh-transition);
}

    .rmh-logo-link:hover {
        transform: translateY(-2px);
    }

.rmh-logo-wrapper {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--rmh-gradient-6), var(--rmh-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    }

    50% {
        box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    }
}

.rmh-logo-img {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
}

.rmh-logo-text {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--rmh-primary);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

    .rmh-logo-text span {
        display: block;
        font-size: 0.65rem;
        font-weight: 600;
        color: var(--rmh-secondary);
        letter-spacing: 0.5px;
    }

/* ---------- DESKTOP NAVIGATION ---------- */
.rmh-nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.rmh-nav-item {
    position: relative;
}

.rmh-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--rmh-dark);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 40px;
    transition: var(--rmh-transition);
    background: transparent;
    position: relative;
    overflow: hidden;
}

    .rmh-nav-link::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--rmh-secondary), var(--rmh-gradient-6));
        transition: var(--rmh-transition);
        transform: translateX(-50%);
    }

    .rmh-nav-link:hover::before,
    .rmh-nav-item.active .rmh-nav-link::before {
        width: 70%;
    }

    .rmh-nav-link i {
        font-size: 1rem;
        color: var(--rmh-primary);
        transition: var(--rmh-transition);
    }

    .rmh-nav-link:hover {
        color: var(--rmh-primary);
        transform: translateY(-2px);
    }

        .rmh-nav-link:hover i {
            color: var(--rmh-secondary);
        }

.rmh-nav-item.active .rmh-nav-link {
    color: var(--rmh-primary);
    background: linear-gradient(135deg, rgba(44, 94, 46, 0.1), rgba(249, 168, 37, 0.1));
}

    .rmh-nav-item.active .rmh-nav-link i {
        color: var(--rmh-secondary);
    }

/* ---------- DROPDOWN MENU (DESKTOP) ---------- */
.rmh-dropdown {
    position: relative;
}

.rmh-dropdown-toggle {
    cursor: pointer;
}

.rmh-dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    margin-left: 4px;
}

.rmh-dropdown:hover .rmh-dropdown-arrow {
    transform: rotate(180deg);
}

.rmh-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--rmh-white);
    min-width: 260px;
    list-style: none;
    padding: 8px 0;
    border-radius: 16px;
    box-shadow: var(--rmh-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--rmh-transition);
    z-index: 100;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.rmh-dropdown:hover .rmh-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rmh-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--rmh-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--rmh-transition);
    position: relative;
}

    .rmh-dropdown-item i {
        width: 24px;
        font-size: 1rem;
        color: var(--rmh-primary);
    }

    .rmh-dropdown-item:hover {
        background: linear-gradient(90deg, rgba(44, 94, 46, 0.05), rgba(249, 168, 37, 0.05));
        color: var(--rmh-primary);
        padding-left: 28px;
    }

.rmh-product-badge {
    margin-left: auto;
    background: linear-gradient(135deg, var(--rmh-secondary), var(--rmh-gradient-6));
    color: var(--rmh-white);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

/* ---------- MOBILE MENU BUTTON ---------- */
.rmh-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    flex-direction: column;
    gap: 5px;
}

.rmh-bar {
    width: 28px;
    height: 2.5px;
    background: linear-gradient(90deg, var(--rmh-primary), var(--rmh-secondary));
    border-radius: 2px;
    transition: var(--rmh-transition);
}

/* Hamburger Animation */
.rmh-menu-toggle.active .rmh-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: var(--rmh-gradient-6);
}

.rmh-menu-toggle.active .rmh-bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.rmh-menu-toggle.active .rmh-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: var(--rmh-gradient-6);
}

/* ---------- MOBILE OVERLAY ---------- */
.rmh-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: var(--rmh-transition);
    z-index: 998;
}

    .rmh-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet & Mobile */
@media screen and (max-width: 992px) {
    body {
        padding-top: 125px;
    }

    .rmh-company-title {
        font-size: 1.4rem;
    }

    .rmh-company-slogan {
        font-size: 0.75rem;
    }

    .rmh-top-bar {
        padding: 15px 0;
    }

    .rmh-top-bar-content {
        padding: 0 20px;
    }

    .rmh-nav-container {
        padding: 0 20px;
    }

    .rmh-logo-wrapper {
        width: 45px;
        height: 45px;
    }

    .rmh-logo-img {
        width: 28px;
        height: 28px;
    }

    .rmh-logo-text {
        font-size: 1rem;
    }

        .rmh-logo-text span {
            font-size: 0.55rem;
        }

    /* Show mobile menu toggle */
    .rmh-menu-toggle {
        display: flex;
    }

    /* Hide desktop menu, create mobile slide-out */
    .rmh-nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: linear-gradient(135deg, var(--rmh-white), var(--rmh-light-gray));
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 20px 40px;
        margin: 0;
        gap: 8px;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        overflow-y: auto;
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
    }

        .rmh-nav-menu.open {
            left: 0;
        }

    .rmh-nav-item {
        width: 100%;
    }

    .rmh-nav-link {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        border-radius: 12px;
    }

        .rmh-nav-link::before {
            display: none;
        }

    /* Mobile Dropdown Styles */
    .rmh-dropdown {
        width: 100%;
    }

    .rmh-dropdown-toggle {
        justify-content: space-between;
        width: 100%;
    }

    .rmh-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        background: rgba(44, 94, 46, 0.05);
        border-radius: 12px;
        margin-top: 5px;
        width: 100%;
        padding: 0;
        border: none;
    }

    .rmh-dropdown.active .rmh-dropdown-menu {
        max-height: 400px;
        padding: 8px 0;
    }

    .rmh-dropdown-item {
        padding: 12px 20px 12px 45px;
        border-radius: 8px;
    }

    .rmh-dropdown.active .rmh-dropdown-arrow {
        transform: rotate(180deg);
    }

    .rmh-product-badge {
        margin-left: auto;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 576px) {
    body {
        padding-top: 110px;
    }

    .rmh-top-bar {
        padding: 12px 0;
    }

    .rmh-top-bar-content {
        padding: 0 15px;
    }

    .rmh-company-title {
        font-size: 1.1rem;
    }

    .rmh-company-slogan {
        font-size: 0.65rem;
        line-height: 1.4;
    }

    .rmh-nav-container {
        padding: 0 15px;
    }

    .rmh-logo-wrapper {
        width: 38px;
        height: 38px;
    }

    .rmh-logo-img {
        width: 24px;
        height: 24px;
    }

    .rmh-logo-text {
        font-size: 0.85rem;
    }

    .rmh-nav-menu {
        width: 90%;
        padding: 85px 15px 30px;
    }

    .rmh-nav-link {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .rmh-dropdown-item {
        padding: 10px 16px 10px 40px;
        font-size: 0.85rem;
    }
}

/* Desktop Hover Effects */
@media screen and (min-width: 993px) {
    .rmh-nav-link:hover {
        transform: translateY(-2px);
    }
}

/* Prevent body scroll when mobile menu is open */
body.rmh-menu-open {
    overflow: hidden;
}

/* ========================================
   MAIN CONTENT STYLES
   ======================================== */
.rmh-main-content {
    min-height: calc(100vh - 140px);
    width: 100%;
}

/* ========================================
   FOOTER STYLES
   ======================================== */
.rmh-footer {
    background: linear-gradient(135deg, var(--rmh-dark) 0%, var(--rmh-primary-dark) 100%);
    color: var(--rmh-white);
    margin-top: auto;
}

.rmh-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 30px 20px;
}

.rmh-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.rmh-footer-logo img {
    width: 60px;
    height: 60px;
    filter: brightness(0) invert(1);
    margin-bottom: 15px;
}

.rmh-footer-logo h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.rmh-footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.rmh-footer-links h4,
.rmh-footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--rmh-secondary);
}

.rmh-footer-links ul {
    list-style: none;
}

    .rmh-footer-links ul li {
        margin-bottom: 10px;
    }

        .rmh-footer-links ul li a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            transition: var(--rmh-transition);
        }

            .rmh-footer-links ul li a:hover {
                color: var(--rmh-secondary);
                padding-left: 5px;
            }

.rmh-footer-contact p {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 10px;
}

    .rmh-footer-contact p i {
        width: 25px;
        color: var(--rmh-secondary);
    }

.rmh-footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .rmh-footer-container {
        padding: 40px 20px 20px;
    }

    .rmh-footer-content {
        gap: 30px;
    }
}
