/* Root Variables - Theme Colors */
:root {
    /* Primary Theme Colors */
    --primary-color: #396283;
    --primary-light: #1E2939;
    --primary-dark: #171717;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --whatsapp-green: #25D366;
}

/* ============================================
   Base Styles & Reset
============================================ */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4, h5, h6, ul, li, p {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header Styles
============================================ */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Top Bar */
.top-bar {
    background: var(--white);
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-dark);
}

.contact-link i {
    font-size: 18px;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--whatsapp-green);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #1da851;
    transform: translateY(-2px);
}

.whatsapp-btn i {
    font-size: 18px;
}

/* Main Navigation */
.main-nav {
    background: var(--primary-color);
}

.nav-inner {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-menu {
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 15px 18px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.new-badge {
    background: #ff4444;
    color: var(--white);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    font-weight: 700;
    text-transform: uppercase;
}

.sale-badge {
    background: #ffc107;
    color: var(--primary-dark);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Nav Link Arrow Icon */
.nav-link i {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--primary-light);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 5px 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

/* Custom Scrollbar for Dropdown */
.nav-dropdown::-webkit-scrollbar {
    width: 6px;
}

.nav-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.nav-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.nav-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.nav-item:hover > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-dropdown li a::after {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    opacity: 0.5;
}

.nav-dropdown li:last-child a {
    border-bottom: none;
}

.nav-dropdown li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding-left: 25px;
}

/* Mega Menu - Business Cards */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 700px;
    background: var(--white);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 25px;
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mega-menu-col {
    min-width: 0;
}

.mega-menu-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    text-decoration: underline;
}

.mega-menu-col ul {
    list-style: none;
}

.mega-menu-col ul li {
    margin-bottom: 8px;
}

.mega-menu-col ul li a {
    display: block;
    color: var(--dark-gray);
    font-size: 13px;
    padding: 6px 0;
    transition: all 0.3s ease;
}

.mega-menu-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

/* Overflow "More" Menu */
.nav-item.nav-more {
    position: relative;
    margin-left: auto;
}

.nav-more .nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-more .nav-dropdown {
    right: 0;
    left: auto;
    min-width: 280px;
}

.nav-more .nav-dropdown .nav-item {
    width: 100%;
}

.nav-more .nav-dropdown .nav-link {
    padding: 12px 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-more .nav-dropdown .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.nav-more .nav-dropdown .nav-link i {
    margin-left: auto;
}

/* Nested dropdown inside More menu */
.nav-more .nav-dropdown .nav-item .nav-dropdown,
.nav-more .nav-dropdown .nav-item .mega-menu {
    position: absolute;
    left: -100%;
    top: 0;
    right: auto;
}

.nav-more .nav-dropdown .nav-item:hover > .nav-dropdown,
.nav-more .nav-dropdown .nav-item:hover > .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hide items that overflow */
.nav-item.nav-hidden {
    display: none !important;
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--white);
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Mobile Toggle Active State */
.mobile-toggle.active .hamburger {
    background: transparent;
}

.mobile-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ============================================
   Footer Styles
============================================ */
.site-footer {
    background: var(--primary-dark);
    color: var(--white);
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-contact li i {
    color: var(--primary-color);
    font-size: 16px;
    margin-top: 3px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--white);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* ============================================
   Responsive Styles
============================================ */
@media (max-width: 1200px) {
    .nav-link {
        padding: 15px 12px;
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    /* Mobile Toggle */
    .mobile-toggle {
        display: block;
        padding: 24px 0;
    }

    /* Navigation Menu Mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 0 20px;
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        padding: 15px 20px;
        font-size: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Hide the inline chevron icon on mobile */
    .nav-link i.fa-chevron-down {
        transition: transform 0.3s ease;
    }

    .has-dropdown.active .nav-link i.fa-chevron-down {
        transform: rotate(180deg);
    }

    /* Mobile Dropdown */
    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        min-width: 100%;
    }

    .has-dropdown.active > .nav-dropdown {
        max-height: 1000px;
        overflow-y: auto;
    }

    .nav-dropdown li a {
        color: rgba(255, 255, 255, 0.9);
        padding: 12px 30px;
        border-bottom-color: rgba(255, 255, 255, 0.05);
        font-size: 13px;
    }

    .nav-dropdown li a::after {
        display: none;
    }

    .nav-dropdown li a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--white);
        padding-left: 35px;
    }

    /* Mobile Mega Menu */
    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        min-width: 100%;
        padding: 0;
    }

    .has-mega-menu.active .mega-menu {
        max-height: 2000px;
        overflow-y: auto;
        padding: 15px 20px;
    }

    .mega-menu-inner {
        display: block;
    }

    .mega-menu-col {
        margin-bottom: 20px;
    }

    .mega-menu-col:last-child {
        margin-bottom: 0;
    }

    .mega-menu-title {
        color: var(--white);
        font-size: 13px;
        border-bottom-color: rgba(255, 255, 255, 0.3);
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .mega-menu-col ul li a {
        color: rgba(255, 255, 255, 0.9);
        font-size: 13px;
        padding: 8px 10px;
    }

    .mega-menu-col ul li a:hover {
        color: var(--white);
        background: rgba(255, 255, 255, 0.1);
        padding-left: 15px;
    }

    /* Body overlay when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    /* Hide More menu and show all items on mobile */
    .nav-item.nav-more {
        display: none !important;
    }

    .nav-item.nav-hidden {
        display: block !important;
    }

    /* Footer Grid */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar-inner {
        flex-direction: column-reverse;
        gap: 15px;
    }

    .site-header{
        position: relative;
    }

    .main-nav{
        position: absolute;
        bottom: 0;
        right: 10px;
        background: none;
    }

    .hamburger,
    .hamburger::before, .hamburger::after{
        background: var(--primary-color);
    }

    .top-bar-left{
        width: 100%;
    }

    .whatsapp-btn span{
        display: none;
    }

    .top-bar-right {
        width: 100%;
        justify-content: space-between;
    }

    .logo{
        display: flex;
        
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .whatsapp-btn{
        padding: 5px 10px;
    }

    .contact-link i {
        font-size: 10px;
    }

    .contact-link {
        font-size: 12px;
    }

    .whatsapp-btn i {
        font-size: 14px;
    }

    .mobile-toggle {
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }
}
