/*
Theme Name: Homexpert
Author: vafort
Description: A custom WordPress theme for Homexpert, designed for performance and style.
Version: 1.0.1
Text Domain: homexpert
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 General / Body
2.0 Utility Classes (Branding)
3.0 Desktop Navigation
4.0 Mobile Navigation
--------------------------------------------------------------*/
main#primary.site-main {
    padding-top: 0 !important;
}

/*--------------------------------------------------------------
1.0 General / Body
--------------------------------------------------------------*/
body {
    font-family: 'Poppins', sans-serif;
    background-color: #111111;
    color: #E0E0E0;
}

/* Prevents scrolling when the mobile menu is open */
.mobile-menu-open {
    overflow: hidden;
}

/*--------------------------------------------------------------
2.0 Utility Classes (Branding)
--------------------------------------------------------------*/
.gold-text { color: #D4AF37; }
.gold-bg { background-color: #D4AF37; }
.gold-border { border-color: #D4AF37; }

.section-padding { 
    padding: 6rem 1.5rem; 
}

@media (max-width: 768px) { 
    .section-padding { padding: 4rem 1rem; } 
}


/*--------------------------------------------------------------
3.0 Desktop Navigation
--------------------------------------------------------------*/
/* Base styles for main navigation links */
.nav-link { 
    position: relative; 
    transition: color 0.3s ease; 
}

/* Underline animation for nav links */
.nav-link::after {
    content: ''; 
    position: absolute; 
    width: 0; 
    height: 2px;
    bottom: -4px; 
    left: 50%; 
    transform: translateX(-50%);
    background-color: #D4AF37; 
    transition: width 0.3s ease;
}

.nav-link:hover::after, 
.current-menu-item > a.nav-link::after,
.current-menu-ancestor > a.nav-link::after { 
    width: 100%; 
}

/* Styling for the dropdown menu container (sub-menu) */
.main-nav .sub-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    position: absolute;
    background-color: #000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 0.375rem; /* rounded-md */
    margin-top: 1rem; /* mt-4 */
    width: 14rem; /* w-56 */
    z-index: 50;
    padding: 0.5rem 0; /* py-2 */
    border: 1px solid #2d3748; /* border-gray-800 */
}

/* Show sub-menu on hover of parent item */
.main-nav .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Styling for individual dropdown links */
.main-nav .sub-menu a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem; /* text-sm */
    color: #cbd5e0; /* text-gray-300 */
    border-radius: 0.375rem; /* rounded-md */
    margin: 0.25rem; /* m-1 */
    transition: color 0.2s, background-color 0.2s;
}

.main-nav .sub-menu a:hover {
    background-color: #2d3748; /* hover:bg-gray-800 */
    color: #D4AF37; /* hover:gold-text */
}


/*--------------------------------------------------------------
4.0 Mobile Navigation
--------------------------------------------------------------*/
#mobile-menu {
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

#mobile-menu.active {
    transform: translateY(0);
}

/* Styling for mobile sub-menus for accordion effect */
.mobile-nav .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background */
    border-radius: 8px;
    margin-top: 0.5rem;
}

.mobile-nav .sub-menu.active {
    max-height: 500px; /* Adjust if you have very long submenus */
}

.mobile-nav .sub-menu a {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 1rem; /* Slightly smaller font for sub-items */
    color: #a0aec0; /* Lighter gray */
}

/* Icon rotation for active submenu toggle */
.mobile-nav .submenu-toggle.active .lucide-chevron-down {
    transform: rotate(180deg);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo-link {
    padding:20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9ca3af; 
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.logo-link span {
    font-size: 14px; 
    font-weight: 500;
}

.logo-link:hover {
    color: #ffffff;
}

.vafort-logo {
    height: 32px; 
    width: auto;
    transition: transform 0.3s ease-in-out;
}

.logo-link:hover .vafort-logo {
    transform: scale(1.05);
}
