/*
 Theme Name:   Kadence KEXIN Stainless Child
 Theme URI:    https://kexinstainless.com
 Description:  Official B2B Industrial Child Theme for KEXIN Stainless (Hebei Kexin Metal Manufacturing). Centralizes global industrial B2B styles, mobile responsiveness fixes, B2B footer directory, and mobile sticky inquiry bar.
 Author:       KEXIN Stainless Engineering
 Template:     kadence
 Version:      1.1.0
 Text Domain:  kadence-kexin-child
*/

/* 1. Hide redundant default page header on custom Gutenberg landing pages */
body.page .page-hero-section,
body.page header.entry-header.page-title {
    display: none !important;
}
body.page-id-3 header.entry-header.page-title {
    display: block !important; /* Keep visible on standard text pages like Privacy Policy */
}

/* 2. Hero & Industrial Section Styling */
.kx-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 52px 36px;
    border-radius: 14px;
    margin-bottom: 38px;
    border-bottom: 5px solid #d97706;
}
.kx-hero h1,
.kx-hero h2 {
    color: #ffffff !important;
    margin-top: 0;
    line-height: 1.24;
}
.kx-hero p {
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.65;
    max-width: 860px;
}

/* Fixed mobile multi-line pill distortion: crisp 8px badge radius instead of 99px oval */
.kx-kicker {
    display: inline-block;
    background: rgba(217, 119, 6, 0.22);
    border: 1px solid #f59e0b;
    color: #fbbf24 !important;
    font-weight: 700;
    font-size: 13px !important;
    line-height: 1.45 !important;
    padding: 6px 14px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* 3. Stat & Feature Cards */
.kx-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #0284c7;
    border-radius: 10px;
    padding: 22px 20px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    height: 100%;
}
.kx-stat-card h3 {
    color: #0f172a;
    font-size: 23px;
    margin: 0 0 8px 0;
}
.kx-stat-card p {
    color: #475569;
    font-size: 14.5px;
    margin: 0;
    line-height: 1.55;
}

.kx-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 26px 24px;
    height: 100%;
}
.kx-card h3 {
    margin-top: 0;
    color: #0f172a;
}

.kx-dark-banner {
    background: #0f172a;
    color: #ffffff;
    padding: 40px 32px;
    border-radius: 14px;
    margin: 42px 0;
}
.kx-dark-banner h2,
.kx-dark-banner h3 {
    color: #ffffff !important;
    margin-top: 0;
}
.kx-dark-banner p,
.kx-dark-banner li {
    color: #cbd5e1;
}
.kx-dark-banner img {
    border: 1px solid #334155;
    border-radius: 10px;
}

/* 4. Buttons & Tables */
.kx-btn-amber .wp-block-button__link {
    background: #d97706 !important;
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 8px;
    padding: 14px 26px;
}
.kx-btn-outline .wp-block-button__link {
    background: transparent !important;
    border: 2px solid #94a3b8 !important;
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 24px;
}
.kx-btn-navy .wp-block-button__link {
    background: #0f172a !important;
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 8px;
    padding: 13px 24px;
}

.wp-block-table {
    overflow-x: auto;
}
.wp-block-table table {
    border-collapse: collapse;
    width: 100%;
}
.wp-block-table th {
    background: #0f172a;
    color: #ffffff;
    padding: 12px 14px;
    text-align: left;
    border: 1px solid #cbd5e1;
}
.wp-block-table td {
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
}

/* 5. B2B Inquiry Form Controls */
.kx-submit-btn {
    background: #d97706 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 14px 28px !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    font-size: 16px !important;
    width: 100%;
}
.kx-form-grid input[type="text"],
.kx-form-grid input[type="email"],
.kx-form-grid select,
.kx-form-grid textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    margin-top: 5px;
    font-size: 15px;
}

/* 6. WooCommerce Pure B2B Catalog Grid & Mobile Thumbnail Fix (Zero 1:1 Edge Cropping!) */
ul.products li.product .price {
    display: none !important;
}
ul.products li.product .archive-img-wrap img,
.woocommerce ul.products li.product a img {
    aspect-ratio: 4 / 3 !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
ul.products li.product .button {
    background: #0f172a !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

/* 7. Industrial B2B Pre-Footer Directory */
.kx-b2b-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 48px 24px 36px;
    margin-top: 56px;
    border-top: 4px solid #d97706;
    font-size: 14.5px;
}
.kx-b2b-footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}
.kx-b2b-footer h4 {
    color: #ffffff;
    font-size: 16px;
    margin: 0 0 14px 0;
    border-bottom: 1px solid #334155;
    padding-bottom: 8px;
}
.kx-b2b-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.kx-b2b-footer ul li {
    margin-bottom: 9px;
}
.kx-b2b-footer a {
    color: #cbd5e1;
    text-decoration: none;
}
.kx-b2b-footer a:hover {
    color: #fbbf24;
    text-decoration: underline;
}
.kx-b2b-footer-bottom {
    max-width: 1240px;
    margin: 28px auto 0;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    color: #94a3b8;
    font-size: 13px;
}

/* 8. Mobile Responsive Adjustments & Sticky Bottom B2B Quote Bar */
.kx-mobile-sticky-bar {
    display: none;
}
@media (max-width: 768px) {
    .kx-hero {
        padding: 32px 20px;
    }
    .kx-dark-banner {
        padding: 28px 18px;
    }
    body {
        padding-bottom: 64px;
    }
    .kx-mobile-sticky-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: #0f172a;
        border-top: 2px solid #d97706;
        padding: 8px 12px;
        gap: 10px;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
    }
    .kx-mobile-sticky-bar a {
        flex: 1;
        text-align: center;
        padding: 11px 10px;
        border-radius: 6px;
        font-weight: 700;
        font-size: 14px;
        text-decoration: none !important;
    }
    .kx-mobile-sticky-quote {
        background: #d97706;
        color: #ffffff !important;
    }
    .kx-mobile-sticky-mail {
        background: #1e293b;
        border: 1px solid #64748b;
        color: #ffffff !important;
    }
    .kx-mobile-sticky-wa {
        background: #16a34a;
        color: #ffffff !important;
    }
}
