/* 
 Theme Name: Wonear Custom Child Theme
 Template: generatepress
 Description: Custom child theme for Wonear Acoustic Panels by Linyi Shipo, migrated from a static site design.
 Version: 1.0.0
*/

/* --- Header Sticky & Navigation --- */
html, body {
    overflow-x: hidden;
}

.site-header {
    position: sticky !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    z-index: 9999 !important;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.12);
}

/* Ensure no parent container has overflow: hidden or auto which breaks sticky */
#page, 
#content,
.site-content,
main {
    overflow: visible !important;
}

/* Footer Link Cleanups */
.footer-links a,
.footer-contact a,
.footer-bottom a {
    text-decoration: none !important;
}

/* --- Hero Layout Fixes --- */
.hero .container {
    display: block !important; /* Force single column */
    text-align: center;
}

/* --- Hero Banner & Global Button Fixes --- */
.btn-primary, 
.btn-hero-cta,
.product-link,
button.btn-hero-cta {
    background-color: #C89D66 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 2px !important; /* Sharper corners for high-end feel */
    padding: 18px 50px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase !important;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.btn-primary:hover, 
.btn-hero-cta:hover,
.product-link:hover {
    background-color: #b38a55 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(200, 157, 102, 0.4);
}

/* Premium Stats Bar Styling */
.hero-stats-bar {
    margin-top: 80px;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 40px;
}

.hero-stats-bar .stat-item {
    padding: 0 40px;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.hero-stats-bar .stat-item:last-child {
    border-right: none;
}

.hero-stats-bar .stat-item span:first-child {
    color: #C89D66 !important;
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.hero-stats-bar .stat-item span:last-child {
    color: #ffffff !important;
    opacity: 0.7 !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important;
}

/* --- Navigation Reset & Improvements --- */
.site-nav ul, 
.site-nav li,
.main-nav-list,
.main-nav-list ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main-nav-list {
    display: flex;
    align-items: center;
}

.main-nav-list > li {
    margin: 0 18px;
    position: relative;
}

.main-nav-list a {
    text-decoration: none !important;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 16px;
}

/* Submenu / Dropdown */
.main-nav-list li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 10px 0 !important;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1100;
}

.main-nav-list li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav-list li ul.sub-menu li {
    width: 100%;
    margin: 0 !important;
}

.main-nav-list li ul.sub-menu li a {
    padding: 12px 20px;
    display: block;
    font-size: 0.9rem;
    color: #444 !important; /* Ensure clear text color */
}

.main-nav-list li ul.sub-menu li a:hover {
    background: var(--bg-light);
    color: var(--accent-color) !important;
}

/* Fix for Wholesale & Projects submenu colors */
.main-nav-list li.menu-item-has-children > a::after {
    content: '▾';
    margin-left: 5px;
    font-size: 0.8rem;
    vertical-align: middle;
}

/* --- Hero & Banner Improvements --- */
.hero {
    text-align: center;
    padding: 120px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-stats-grid {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
    max-width: 800px;
    margin: 40px auto 0;
}

/* --- Global Background Overlays & Text Colors --- */
.page-hero {
    text-align: center;
    padding: 120px 0;
}

.page-hero h1, 
.page-hero p {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.section-with-bg {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.section-with-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1;
}

.section-with-bg .container {
    position: relative;
    z-index: 2;
}

.section-with-bg .section-title,
.section-with-bg .section-subtitle,
.section-with-bg p {
    color: #ffffff !important;
}

