/* 
    Design System for Local Growth Xpert
    Premium, Creative, and Dynamic
*/

:root {
    --primary: #8B5CF6; /* Electric Violet */
    --primary-glow: rgba(139, 92, 246, 0.5);
    --secondary: #10B981; /* Emerald Success */
    --accent: #F59E0B; /* Warm Amber */
    --bg-dark: #0F172A; /* Deep Obsidian */
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Layout Utility --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

/* --- Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.mobile-menu-active {
    overflow: hidden;
}

.site-header.scrolled {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
}

.site-branding img,
.custom-logo-link img,
.logo img,
img.custom-logo {
    max-height: 120px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    transition: var(--transition);
}

.site-header.scrolled .site-branding img,
.site-header.scrolled .custom-logo-link img,
.site-header.scrolled .logo img,
.site-header.scrolled img.custom-logo {
    max-height: 50px !important;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.main-navigation a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.main-navigation a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--primary);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 150px;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 25px -5px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -10px var(--primary-glow);
}

/* --- Review Section (Middle) --- */
.reviews-section {
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    backdrop-filter: blur(8px);
}

.stars {
    color: var(--accent);
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-name {
    font-weight: 700;
    color: var(--text-main);
}

.reviewer-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Pricing/Packages --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 3.5rem 2.5rem;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, var(--bg-card) 100%);
}

.price-header {
    margin-bottom: 2rem;
}

.price-header h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.price-amount span {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.price-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.price-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-features li i {
    color: var(--secondary);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1100;
    }

    .mobile-menu-active .menu-toggle {
        position: fixed;
        top: 2rem;
        right: 2rem;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        z-index: 1000;
        padding: 8rem 2rem 2rem;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--glass-border);
    }

    .mobile-menu-active .main-navigation {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 2rem;
    }

    .main-navigation a {
        font-size: 1.2rem;
        display: block;
    }

    .header-cta {
        display: none;
    }

    .blog-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* --- WooCommerce Service Package Refinements --- */
.woocommerce-product-details__short-description ul,
.price-features-dynamic ul {
    list-style: none;
    padding: 0;
}

.woocommerce-product-details__short-description li,
.price-features-dynamic li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.woocommerce-product-details__short-description li:before,
.price-features-dynamic li:before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--secondary);
}

/* Hide Physical Product Metadata */
.product_meta, 
.woocommerce-tabs, 
.upsells, 
.related.products,
.quantity,
.single-product .product_title {
    display: none !important;
}

.single-product .summary {
    width: 100% !important;
    float: none !important;
    text-align: center;
}

.single-product .price {
    font-size: 3rem !important;
    color: var(--text-main) !important;
}

/* --- WooCommerce Cart & Checkout Visibility --- */
.woocommerce-cart, .woocommerce-checkout, .woocommerce-page {
    color: var(--text-main);
}

.woocommerce table.shop_table {
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

.woocommerce table.shop_table th, 
.woocommerce table.shop_table td {
    color: var(--text-main) !important;
    border-top: 1px solid var(--glass-border) !important;
}

.woocommerce-cart .cart-collaterals .cart_totals h2,
.woocommerce-checkout h3 {
    color: var(--text-main) !important;
    font-family: var(--font-heading);
}

.woocommerce form .form-row label {
    color: var(--text-muted) !important;
}

.woocommerce form .form-row input.input-text, 
.woocommerce form .form-row textarea {
    background-color: rgba(15, 23, 42, 0.5) !important;
    border: 1px solid var(--glass-border) !important;
    color: white !important;
    padding: 12px !important;
    border-radius: 8px !important;
}

.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button {
    background-color: var(--primary) !important;
    color: white !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
}

.woocommerce-info, .woocommerce-message, .woocommerce-error {
    background-color: var(--bg-card) !important;
    border-top-color: var(--primary) !important;
    color: var(--text-main) !important;
}

.woocommerce-checkout #payment {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid var(--glass-border) !important;
}

.woocommerce-checkout #payment div.payment_box {
    background-color: rgba(0, 0, 0, 0.2) !important;
    color: var(--text-muted) !important;
}


/* --- Single Post Styles --- */
.post-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.post-featured-image-wrapper {
    border-radius: 40px;
    overflow: hidden;
    height: 500px;
    border: 1px solid var(--glass-border);
    position: relative;
    margin-bottom: 2rem;
}

.post-featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    padding: 4rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.post-content {
    line-height: 1.9;
    color: var(--text-muted);
    font-size: 1.15rem;
}

.post-content p {
    margin-bottom: 2rem;
}

.post-content h2, .post-content h3 {
    color: var(--text-main);
    margin: 3.5rem 0 1.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 2.5rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 0 20px 20px 0;
    font-style: italic;
    margin: 3.5rem 0;
    font-size: 1.25rem;
    color: var(--text-main);
}

.post-content img {
    border-radius: 20px;
    margin: 2.5rem 0;
    max-width: 100%;
    height: auto;
}

/* --- Mobile Overrides for Single Post --- */
@media (max-width: 768px) {
    .post-title {
        font-size: 2.4rem;
        line-height: 1.2;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.75rem !important;
        align-items: center;
    }

    .post-featured-image-wrapper {
        height: 300px;
        border-radius: 24px;
        margin-bottom: 1.5rem;
    }

    .post-content-card {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .post-content {
        font-size: 1.05rem;
        line-height: 1.7;
    }
    
    .post-content blockquote {
        padding: 1.5rem;
        margin: 2.5rem 0;
        font-size: 1.1rem;
    }
}



/* --- WooCommerce Checkout Visibility Fixes --- */
/* Target traditional labels */
.woocommerce form .form-row label,
.woocommerce-checkout label {
    display: block !important;
    color: var(--text-main) !important;
    margin-bottom: 0.5rem !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}

/* Target WooCommerce Blocks labels and inputs */
.wc-block-components-text-input label,
.wc-block-components-combobox label,
.wc-block-components-checkbox label {
    color: var(--text-main) !important;
}

.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-block-components-combobox input {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    border: 1px solid var(--glass-border) !important;
}

/* Fix placeholder visibility */
::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Fix checkout headings */
.wc-block-checkout__billing-address h2,
.wc-block-checkout__shipping-address h2,
.wc-block-checkout__payment-method h2,
.wc-block-checkout__contact-information h2 {
    color: var(--text-main) !important;
    margin-bottom: 1.5rem !important;
}

/* Ensure the checkout container doesn't have white background from default styles */
.wc-block-checkout,
.wp-block-woocommerce-checkout {
    background: transparent !important;
    color: var(--text-muted) !important;
}

/* Fix for specific blocks input light theme override */
.wc-block-components-text-input.is-active label {
    transform: translateY(-1.25em) scale(0.75) !important;
    color: var(--primary) !important;
}


/* --- Contact Form Specific Styles --- */
.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
    padding-right: 3rem !important;
}

.contact-form select option {
    background-color: var(--bg-dark);
    color: white;
    padding: 10px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px var(--primary-glow);
}

#contact-response {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    display: none;
}

#contact-response.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

#contact-response.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}
