/*
Theme Name:  Word Gear Child
Description: Child theme for Hello Elementor — Word Gear Ministries
Template:    hello-elementor
Version:     1.2
Author:      Word Gear Ministries
*/

/* ─────────────────────────────────────────────────────────────────
   GLOBAL
───────────────────────────────────────────────────────────────── */
:root {
    --wg-crimson:  #8B0000;
    --wg-crimson-d:#6B0000;
    --wg-black:    #1A1A1A;
    --wg-cream:    #FAF8F5;
    --wg-gold:     #C5A028;
    --wg-gray:     #666666;
    --wg-dark:     #111111;
    --wg-rule:     #E0D8D0;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--wg-black);
}

/* ─────────────────────────────────────────────────────────────────
   HEADER — white background, original logo colors show intact
───────────────────────────────────────────────────────────────── */
.page-wrapper > #site-footer,
main ~ #site-footer,
#content + #site-footer {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(-50vw + 50%) !important;
	margin-right: calc(-50vw + 50%) !important;
	position: relative !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
}

#site-header.site-header {
    background-color: #ffffff;
    border-bottom: 4px solid var(--wg-crimson);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 999;
}

.site-header .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ── Logo — no filter, original crimson + black renders on white ── */
.site-branding {
    flex-shrink: 0;
}

.site-header .custom-logo-link,
.site-header a.site-logo,
.site-header .site-branding a {
    display: inline-block;
    line-height: 0;
    transition: opacity 0.2s;
}

.site-header .custom-logo-link:hover,
.site-header a.site-logo:hover,
.site-header .site-branding a:hover {
    opacity: 0.8;
}

.site-header .custom-logo,
.site-header img.custom-logo {
    max-height: 50px;
    width: auto;
    display: block;
    /* No filter — crimson W + black GEAR show correctly on white */
}

/* Fallback text site title */
.site-header .site-title a,
.site-header .site-title {
    color: var(--wg-crimson);
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
}

/* ── Navigation ───────────────────────────────────────────────── */
#site-navigation.site-navigation {
    display: flex;
    align-items: center;
}

.main-menu-wrapper {
    display: flex;
    align-items: center;
}

.site-navigation .menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
}

.site-navigation .menu > li > a {
    color: var(--wg-black);
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.3px;
    padding: 8px 14px;
    border-radius: 2px;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
    white-space: nowrap;
}

.site-navigation .menu > li > a:hover {
    color: var(--wg-crimson);
    background-color: rgba(139, 0, 0, 0.06);
}

.site-navigation .menu > li.current-menu-item > a,
.site-navigation .menu > li.current_page_item > a {
    color: var(--wg-crimson);
    background-color: rgba(139, 0, 0, 0.08);
    font-weight: 700;
}

/* ── Cart icon ────────────────────────────────────────────────── */
.nav-cart-item {
    margin-left: 8px;
}

.nav-cart-link {
    display: flex !important;
    align-items: center;
    gap: 7px;
    color: var(--wg-crimson) !important;
    background-color: rgba(139, 0, 0, 0.06);
    border: 1px solid rgba(139, 0, 0, 0.2);
    padding: 7px 14px !important;
    border-radius: 2px;
    text-decoration: none !important;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.nav-cart-link:hover {
    background-color: var(--wg-crimson) !important;
    border-color: var(--wg-crimson) !important;
    color: #ffffff !important;
}

.nav-cart-link svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    flex-shrink: 0;
}

.cart-count {
    font-family: Georgia, serif;
    font-size: 13px;
    line-height: 1;
}

.nav-cart-item.has-items .cart-count {
    background-color: var(--wg-crimson);
    color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* ── Mobile hamburger ─────────────────────────────────────────── */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(139, 0, 0, 0.3);
    color: var(--wg-crimson);
    font-family: Georgia, serif;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 2px;
}

.menu-toggle:hover {
    border-color: var(--wg-crimson);
    background-color: rgba(139, 0, 0, 0.06);
}

/* ─────────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────────── */
#site-footer,
#site-footer.site-footer,
body #site-footer.site-footer,
.site-footer,
footer.site-footer {
    background-color: var(--wg-dark) !important;
    border-top: 4px solid var(--wg-crimson) !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    float: none !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
}

/* ── Main footer wrapper — centered column ───────────────────── */
.wg-footer {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 44px 40px 36px;
    text-align: center;
    box-sizing: border-box;
}

/* ── Logo — forced white and small ───────────────────────────── */
.wg-footer-logo {
    display: block;
}

.wg-footer-logo a {
    display: inline-block;
    line-height: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.wg-footer-logo a:hover {
    opacity: 1;
}

/* Triple-specificity + !important to beat Hello Theme base styles */
#site-footer .wg-footer-logo img,
#site-footer .wg-footer-logo .wg-logo-img,
#site-footer .wg-footer-logo a img {
    height: 32px !important;
    width: auto !important;
    max-width: 130px !important;
    min-width: unset !important;
    filter: brightness(0) invert(1) !important;
    display: block !important;
}

/* ── Nav links — horizontal row ──────────────────────────────── */
.wg-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    align-items: center;
}

/* Override any inherited link colors aggressively */
#site-footer .wg-footer-nav a,
#site-footer .wg-footer-nav a:link,
#site-footer .wg-footer-nav a:visited {
    color: #888888 !important;
    font-family: Georgia, serif !important;
    font-size: 13px !important;
    text-decoration: none !important;
    letter-spacing: 0.3px;
    padding: 4px 12px;
    transition: color 0.2s;
}

#site-footer .wg-footer-nav a:hover {
    color: var(--wg-gold) !important;
}

/* Dot separator */
#site-footer .wg-footer-nav a + a::before {
    content: '·';
    margin-right: 12px;
    color: #444;
    pointer-events: none;
}

/* ── Copyright ───────────────────────────────────────────────── */
#site-footer .wg-footer-copy {
    font-family: Georgia, serif !important;
    font-size: 12px !important;
    color: #666666 !important;
    margin: 0 !important;
    letter-spacing: 0.3px;
    border-top: 1px solid #2a2a2a;
    padding-top: 20px;
    width: 100%;
}

/* ─────────────────────────────────────────────────────────────────
   WOOCOMMERCE
───────────────────────────────────────────────────────────────── */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button.alt,
.woocommerce a.button.alt {
    background-color: var(--wg-crimson) !important;
    color: #ffffff !important;
    font-family: Georgia, serif !important;
    letter-spacing: 0.5px;
    border-radius: 2px !important;
    transition: background-color 0.2s !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .button.alt:hover {
    background-color: var(--wg-crimson-d) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: Georgia, serif;
    color: var(--wg-black);
}

.woocommerce ul.products li.product .price,
.woocommerce .price {
    color: var(--wg-crimson) !important;
    font-family: Georgia, serif;
}

.woocommerce span.onsale {
    background-color: var(--wg-crimson);
    border-radius: 2px;
}

/* ─────────────────────────────────────────────────────────────────
   MOBILE  ( ≤ 768px )
───────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    .site-header .header-inner {
        padding: 12px 20px;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    #site-navigation.site-navigation {
        width: 100%;
        order: 3;
    }

    .main-menu-wrapper {
        width: 100%;
    }

    .site-navigation .menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-bottom: 8px;
    }

    .site-navigation .menu > li > a {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        display: block;
    }

    .nav-cart-item {
        margin-left: 0;
    }

    .nav-cart-link {
        justify-content: flex-start;
    }

    .wg-footer {
        padding: 36px 20px 28px;
        gap: 16px;
    }

    .wg-footer-nav {
        gap: 4px 2px;
    }
}
