/*
Theme Name: Gas Products Unlimited
Theme URI: https://gputexas.com
Author: Strickland Technology
Description: Custom theme for Gas Products Unlimited - Houston's premier outdoor gas products specialists
Version: 1.0.0
License: Proprietary
Text Domain: gputexas
*/

/* WordPress-specific overrides */
.wp-block-image img { max-width: 100%; height: auto; }
.entry-content { color: var(--text-light, #f0f0f0); }
body.admin-bar .nav { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .nav { top: 46px; }
}

/* Page hero section */
.page-hero {
    padding: 140px 0 60px;
    background: var(--bg-secondary, #1a1a1a);
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.page-hero h1 {
    color: var(--text-light, #f0f0f0);
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 0.5rem 0;
}
.page-hero .hero-description {
    color: var(--text-muted, #a0a0a0);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* ====================================================
   NAV FIXES — Bridge WP walker output to CSS selectors
   WP outputs: li.menu-item-has-children > ul.submenu
   CSS expects: .nav-dropdown > .nav-dropdown-menu
   ==================================================== */

/* Map .menu-item-has-children to act like .nav-dropdown */
.nav-links li.menu-item-has-children {
    position: relative;
}

/* Map .submenu to act like .nav-dropdown-menu */
.nav-links li.menu-item-has-children > ul.submenu {
    position: absolute;
    top: calc(100% + 1.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.08);
    border-top: 2px solid var(--accent-gold, #c8973a);
    min-width: 220px;
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    list-style: none;
    margin: 0;
    z-index: 200;
}

/* Show submenu on hover */
.nav-links li.menu-item-has-children:hover > ul.submenu {
    opacity: 1;
    visibility: visible;
    top: calc(100% + 0.75rem);
}

/* Style submenu links */
.nav-links li.menu-item-has-children > ul.submenu li a {
    display: block;
    padding: 0.65rem 1.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.nav-links li.menu-item-has-children > ul.submenu li a::after {
    display: none;
}
.nav-links li.menu-item-has-children > ul.submenu li a:hover {
    color: var(--accent-gold, #c8973a);
    background: rgba(200,151,58,0.06);
    padding-left: 2rem;
}

/* ====================================================
   NAV LOGO FIX — WP header uses .logo-text / .logo-main / .logo-sub
   Original CSS targets .nav-logo-text / .nav-logo-flame
   ==================================================== */
.nav-logo img {
    width: 36px;
    height: auto;
    mix-blend-mode: screen;
}
.nav-logo .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.nav-logo .logo-main {
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}
.nav-logo .logo-sub {
    font-family: 'Raleway', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-gold, #c8973a);
}

/* ====================================================
   PAGE HERO FIX — ensure proper padding-top to clear fixed nav
   ==================================================== */
.page-hero {
    padding-top: 140px !important;
}

/* Homepage category grid fix */
.categories-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
}
.category-card {
    display: block !important;
    text-decoration: none !important;
    background: var(--bg-card, #1e1e1e) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
    transition: transform 0.3s, border-color 0.3s !important;
}
.category-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(200,151,58,0.3) !important;
}
.category-image {
    height: 250px !important;
    overflow: hidden !important;
}
.category-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s !important;
}
.category-card:hover .category-image img {
    transform: scale(1.05) !important;
}
.category-content {
    padding: 1.5rem !important;
}
.category-content h3 {
    color: var(--text-light, #f0f0f0) !important;
    font-family: 'Playfair Display', serif !important;
    margin-bottom: 0.5rem !important;
}
.category-content p {
    color: var(--text-muted, #999) !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}
.category-link {
    color: var(--accent-gold, #C8973A) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
}

/* Trust grid fix */
.trust-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem !important;
}
.trust-card {
    background: var(--bg-card, #1e1e1e) !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    text-align: center !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
}
.trust-card h3 {
    color: var(--text-light, #f0f0f0) !important;
    margin: 0.75rem 0 !important;
}
.trust-card p {
    color: var(--text-muted, #999) !important;
    font-size: 0.9rem !important;
}

/* CTA section */
.cta-section {
    background: linear-gradient(135deg, rgba(200,151,58,0.1), rgba(232,98,26,0.1)) !important;
    border-radius: 16px !important;
    margin: 2rem !important;
}
.cta-content {
    text-align: center !important;
    padding: 4rem 2rem !important;
}
.cta-content h2 {
    color: var(--text-light, #f0f0f0) !important;
}
.cta-content p {
    color: var(--text-muted, #999) !important;
    max-width: 600px !important;
    margin: 1rem auto !important;
}
.cta-buttons {
    display: flex !important;
    gap: 1rem !important;
    justify-content: center !important;
    margin-top: 2rem !important;
}

/* Responsive overrides */
@media (max-width: 768px) {
    .categories-grid { grid-template-columns: 1fr !important; }
    .trust-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .cta-buttons { flex-direction: column !important; align-items: center !important; }
}
@media (max-width: 480px) {
    .trust-grid { grid-template-columns: 1fr !important; }
}
