/*
Theme Name: Chateasily Child
Theme URI: https://chateasily.com
Description: Child theme for Chateasily.com - Built on Astra
Author: Chandan Singh
Author URI: https://chateasily.com
Template: astra
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chateasily-child
*/

/* ==========================================================================
   Global Header — Dark solid header on ALL pages
   Custom templates (homepage, marketing) override to transparent in their CSS
   ========================================================================== */

/* Dark header background */
.ast-primary-header-bar,
.ast-primary-header,
.main-header-bar,
.main-header-container,
#ast-desktop-header {
    background: #0f0a1e !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Site title color when displayed */
.site-title a {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.375rem !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    letter-spacing: -0.01em;
    text-decoration: none !important;
    white-space: nowrap !important;
}

/* White nav links */
.main-header-menu > .menu-item > a,
.main-navigation a,
.ast-nav-menu > li > a,
.ast-header-break-point .main-header-menu a {
    color: rgba(255, 255, 255, 0.85) !important;
}

.main-header-menu > .menu-item > a:hover,
.main-navigation a:hover,
.ast-nav-menu > li > a:hover {
    color: #ffffff !important;
}

.main-header-menu > .current-menu-item > a,
.ast-nav-menu > .current-menu-item > a {
    color: #ffffff !important;
}

/* White mobile hamburger */
.ast-mobile-menu-trigger-minimal,
.ast-button-wrap .ast-mobile-menu-buttons-minimal .menu-toggle {
    color: #ffffff !important;
}

/* Submenu / Dropdown: dark background */
.main-header-menu .sub-menu,
.ast-nav-menu .sub-menu,
.main-navigation .sub-menu {
    background: #0f0a1e !important;
    border: 1px solid #2d2552 !important;
    border-radius: 10px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
    padding: 0.5rem 0 !important;
    min-width: 200px !important;
}

.main-header-menu .sub-menu a,
.ast-nav-menu .sub-menu a,
.main-navigation .sub-menu a {
    color: #cbd5e1 !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.9375rem !important;
    border-bottom: none !important;
    transition: all 0.2s ease !important;
}

.main-header-menu .sub-menu a:hover,
.ast-nav-menu .sub-menu a:hover,
.main-navigation .sub-menu a:hover {
    color: #ffffff !important;
    background: rgba(124, 58, 237, 0.15) !important;
}

.main-header-menu .sub-menu .menu-item,
.ast-nav-menu .sub-menu .menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.main-header-menu .sub-menu .menu-item:last-child,
.ast-nav-menu .sub-menu .menu-item:last-child {
    border-bottom: none !important;
}

/* Logo image: render in natural colors — Astra applies a dark SVG color filter
   when header-logo-color is set; this removes it so the PNG shows as-is */
.site-logo-img img,
.custom-logo-link img.custom-logo {
    filter: none !important;
    max-height: 80px;
    width: auto;
    display: block;
}

/* Vertically center the logo within the header identity wrapper */
.ast-site-identity,
.site-logo-img,
.custom-logo-link {
    display: flex !important;
    align-items: center;
}

/* Hide Astra's "My Account" element — not needed, causes layout overflow */
.ast-header-account-wrap {
    display: none !important;
}

/* Header grid: logo (auto) | nav fills space (1fr) | empty right collapses (auto).
   Applied to ALL pages — keeps all 3 Astra grid children on one row. */
@media (min-width: 922px) {
    .ast-primary-header-bar .ast-builder-grid-row {
        grid-template-columns: auto 1fr auto !important;
    }
}


/* Nav items: fit in one row */
.main-header-menu > .menu-item > a {
    padding-left: 14px !important;
    padding-right: 14px !important;
    font-size: 0.9375rem !important;
}

/* Cart icon if present */
.ast-header-woo-cart {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ── Mobile header ─────────────────────────────────────────────────────────── */
@media (max-width: 921px) {
    /* Smaller logo on mobile */
    .site-logo-img img,
    .custom-logo-link img.custom-logo {
        max-height: 36px !important;
    }

    /* Mobile header: full-width with side padding */
    .ast-header-break-point .main-header-bar .ast-container,
    .ast-header-break-point #ast-desktop-header .ast-container,
    .ast-header-break-point .ast-mobile-header-wrap .ast-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Keep hamburger icon white */
    .ast-mobile-menu-trigger-minimal .mobile-menu-toggle-icon,
    .ast-button-wrap .menu-toggle .mobile-menu-toggle-icon,
    .ast-button-wrap .menu-toggle {
        color: #ffffff !important;
    }

}

/* ── Mobile dropdown menu (data-type="dropdown") ─────────────────────────── */
/* Astra Pro JS shows #ast-mobile-header .main-header-bar-navigation via
   inline display:block — target that element directly for background + text  */

#ast-mobile-header .ast-mobile-header-content,
#ast-mobile-header .main-header-bar-navigation,
#ast-mobile-header .ast-main-header-bar-alignment,
body.ast-main-header-nav-open #ast-mobile-header .ast-mobile-header-content {
    background-color: #0f0a1e !important;
    background: #0f0a1e !important;
}

/* Menu links — white text */
#ast-mobile-header .main-header-bar-navigation .menu-link,
#ast-mobile-header .ast-mobile-header-content .menu-item .menu-link,
body.ast-main-header-nav-open #ast-mobile-header .menu-item .menu-link {
    color: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

#ast-mobile-header .main-header-bar-navigation .menu-link:hover,
#ast-mobile-header .ast-mobile-header-content .menu-item .menu-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

/* Submenu expand arrows */
#ast-mobile-header .ast-menu-toggle,
#ast-mobile-header .main-header-bar-navigation .ast-menu-toggle {
    color: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Sub-menus */
#ast-mobile-header .sub-menu {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-width: unset !important;
    padding: 0 !important;
}

#ast-mobile-header .sub-menu .menu-link {
    color: rgba(255, 255, 255, 0.7) !important;
    padding-left: 2rem !important;
}

/* ── Off-canvas popup drawer (data-type="popup") — kept for completeness ── */

body .ast-mobile-popup-drawer.active .ast-mobile-popup-inner,
body .ast-mobile-popup-drawer .ast-mobile-popup-inner {
    background-color: #0f0a1e !important;
    background: #0f0a1e !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

body .ast-mobile-popup-drawer.active .ast-mobile-popup-content,
body .ast-mobile-popup-drawer.active .ast-desktop-popup-content {
    background-color: #0f0a1e !important;
}

body .ast-mobile-popup-content .menu-item .menu-link,
body .ast-mobile-popup-content .main-header-menu .menu-item .menu-link {
    color: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body .ast-mobile-popup-content .menu-item .menu-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

body .ast-mobile-popup-content .ast-menu-toggle,
body .ast-mobile-popup-drawer .ast-menu-toggle {
    color: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

body .ast-mobile-popup-drawer .menu-toggle-close {
    color: rgba(255, 255, 255, 0.7) !important;
}
body .ast-mobile-popup-drawer .menu-toggle-close:hover {
    color: #ffffff !important;
}