@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- CHEMOIL BALL VALVES PAGE STYLESHEET --- */

:root {
    --chemoil-navy: #031b33;
    --chemoil-blue: #0A355C;
    --chemoil-accent: #0A355C;
    --chemoil-light: #f8fafc;
    --chemoil-border: #cbd5e1;
    --chemoil-text-dark: #1e293b;
    --chemoil-text-muted: #64748b;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body.chemoil-ball-valves-body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--chemoil-text-dark);
    background-color: #ffffff;
    line-height: 1.6;
}

.chemoil-ball-valves-wrapper {
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* TOP BAR & HEADER (Standard styles matching main child theme) */
/* Breadcrumbs */
/* Hero Section */
.chemoil-product-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 90px 0;
    color: #ffffff;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(3,27,51,0.95) 0%, rgba(10,53,92,0.85) 100%);
    z-index: 1;
}
.chemoil-product-hero .container {
    position: relative;
    z-index: 2;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}
.hero-content h1 {
    font-size: 48px;
    color: #ffffff;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-weight: 800;
}
.hero-content p {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 35px;
    line-height: 1.6;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
}
.btn-primary-action {
    background: var(--chemoil-blue);
    color: #ffffff;
    padding: 12px 26px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    box-shadow: 0 4px 15px rgba(10, 53, 92, 0.3);
    transition: var(--transition);
}
.btn-primary-action:hover {
    background: #031B33;
    transform: translateY(-2px);
}
.btn-secondary-action {
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 12px 26px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    transition: var(--transition);
}
.btn-secondary-action:hover {
    background: #ffffff;
    color: var(--chemoil-navy);
}
.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.hero-metrics span {
    font-size: 13.5px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 30px;
}
.hero-visual {
    text-align: center;
}
.hero-main-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Product Overview */
.chemoil-product-overview {
    padding: 60px 0 20px 0;
}
.overview-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 20px;
}
.sub-tag {
    display: inline-block;
    color: var(--chemoil-blue);
    font-weight: 800;
    font-size: 12.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.overview-content h2 {
    font-size: 32px;
    color: var(--chemoil-navy);
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-weight: 800;
}
.overview-content p {
    font-size: 15.5px;
    color: var(--chemoil-text-muted);
    line-height: 1.65;
}
.overview-visual {
    text-align: center;
}
.overview-main-img {
    max-width: 80%;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.1));
}

/* Overview Type Selector Carousel */
.overview-carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.carousel-track-container {
    overflow: hidden;
    flex-grow: 1;
    margin: 0 15px;
}
.carousel-track {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}
.carousel-slide {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 1.5px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}
.carousel-slide img {
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: grayscale(1);
    opacity: 0.7;
    transition: var(--transition);
}
.carousel-slide span {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--chemoil-text-muted);
    text-align: center;
    transition: var(--transition);
}
.carousel-slide:hover,
.carousel-slide.active {
    background: #f8fafc;
    border-color: var(--chemoil-blue);
}
.carousel-slide:hover img,
.carousel-slide.active img {
    filter: grayscale(0);
    opacity: 1;
}
.carousel-slide:hover span,
.carousel-slide.active span {
    color: var(--chemoil-navy);
}
.carousel-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--chemoil-navy);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.carousel-nav-btn:hover {
    background: var(--chemoil-blue);
    color: #ffffff;
    border-color: var(--chemoil-blue);
}

/* Specs & Tech Table Section */
.chemoil-specs-section {
    background-color: var(--chemoil-light);
    padding: 85px 0;
    border-top: 1px solid #e2e8f0;
}
.specs-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
}
.features-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}
.features-box h3,
.tech-specs-box h3 {
    font-size: 22px;
    color: var(--chemoil-navy);
    font-family: var(--font-heading);
    margin-bottom: 25px;
    font-weight: 700;
}
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.features-list li {
    font-size: 14.5px;
    color: #475569;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tech-specs-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}
.tech-table {
    width: 100%;
    border-collapse: collapse;
}
.tech-table th,
.tech-table td {
    padding: 10px 15px;
    font-size: 13.5px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}
.tech-table th {
    background: #f1f5f9;
    color: var(--chemoil-navy);
    font-weight: 700;
}
.tech-table td strong {
    color: var(--chemoil-navy);
}

/* Applications (Industries We Serve) */
.chemoil-apps-section {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 85px 0;
    color: #ffffff;
}
.chemoil-apps-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(3, 27, 51, 0.92);
}
.chemoil-apps-section .container {
    position: relative;
    z-index: 2;
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-subtitle-tag {
    display: inline-block;
    color: var(--chemoil-blue);
    font-weight: 800;
    font-size: 12.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.section-header h2 {
    font-size: 32px;
    color: #ffffff;
    font-family: var(--font-heading);
    margin: 0;
    font-weight: 800;
}
.apps-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
}
.app-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 22px 10px;
    text-align: center;
    transition: var(--transition);
}
.app-card span {
    font-size: 28px;
    display: block;
    margin-bottom: 12px;
}
.app-card p {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}
.app-card:hover {
    background: #0A355C;
    transform: translateY(-4px);
    border-color: #0A355C;
}

/* Variants Section */
.chemoil-variants-section {
    padding: 85px 0;
}
.section-header-center {
    text-align: center;
    margin-bottom: 50px;
}
.section-header-center h2 {
    font-size: 32px;
    color: var(--chemoil-navy);
    font-family: var(--font-heading);
    font-weight: 800;
    margin: 0;
}
.variants-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.variant-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.variant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: rgba(10, 53, 92, 0.2);
}
.variant-img-box {
    height: 180px;
    background: var(--chemoil-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}
.variant-img-box img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: var(--transition);
}
.variant-card:hover .variant-img-box img {
    transform: scale(1.05);
}
.variant-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.variant-info h4 {
    font-size: 16px;
    color: var(--chemoil-navy);
    font-weight: 700;
    margin: 0 0 10px 0;
}
.variant-info p {
    font-size: 13px;
    color: var(--chemoil-text-muted);
    line-height: 1.5;
    margin: 0 0 15px 0;
    flex-grow: 1;
}
.variant-link {
    font-size: 13px;
    color: var(--chemoil-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

/* Certifications Bar */
.chemoil-certs-bar {
    background: var(--chemoil-light);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 40px 0;
}
.bar-title {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--chemoil-text-muted);
    letter-spacing: 1px;
    margin-bottom: 25px;
}
.certs-bar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.cert-bar-logo {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 800;
    color: var(--chemoil-navy);
    box-shadow: 0 2px 8px rgba(0,0,0,0.01);
}

/* Related Products */
.chemoil-related-products {
    padding: 85px 0;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.related-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: rgba(10, 53, 92, 0.2);
}
.related-img-box {
    height: 180px;
    background: var(--chemoil-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}
.related-img-box img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: var(--transition);
}
.related-card:hover .related-img-box img {
    transform: scale(1.05);
}
.related-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.related-info h4 {
    font-size: 16px;
    color: var(--chemoil-navy);
    font-weight: 700;
    margin: 0 0 10px 0;
}
.related-info p {
    font-size: 13px;
    color: var(--chemoil-text-muted);
    line-height: 1.5;
    margin: 0 0 15px 0;
    flex-grow: 1;
}
.related-link {
    font-size: 13px;
    color: var(--chemoil-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

/* Downloads Section */
.chemoil-downloads-section {
    background: var(--chemoil-light);
    border-top: 1px solid #e2e8f0;
    padding: 75px 0;
}
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.download-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}
.download-box span {
    font-size: 28px;
    margin-bottom: 12px;
}
.download-box h4 {
    font-size: 14.5px;
    color: var(--chemoil-navy);
    font-weight: 700;
    margin: 0 0 4px 0;
}
.download-box p {
    font-size: 12px;
    color: var(--chemoil-text-muted);
    margin: 0 0 15px 0;
}
.download-box a {
    font-size: 13px;
    color: var(--chemoil-blue);
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
}

/* FAQ Accordion */
.chemoil-faq-section {
    padding: 85px 0;
}
.faq-accordion-box {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover,
.faq-item.active {
    border-color: var(--chemoil-blue);
}
.faq-question {
    width: 100%;
    background: #ffffff;
    border: none;
    padding: 18px 22px;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: var(--chemoil-navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.faq-icon {
    font-size: 18px;
    color: var(--chemoil-blue);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    background: #f8fafc;
}
.faq-answer p {
    padding: 18px 22px;
    margin: 0;
    font-size: 14px;
    color: var(--chemoil-text-muted);
    line-height: 1.6;
    border-top: 1px solid #e2e8f0;
}

/* Call to Action */
.chemoil-cta-section {
    position: relative;
    padding: 70px 0;
    background-size: cover;
    background-position: center;
    color: #ffffff;
}
.cta-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(3, 27, 51, 0.88);
    z-index: 1;
}
.chemoil-cta-section .container {
    position: relative;
    z-index: 2;
}
.cta-grid-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.cta-text-new h3 {
    font-size: 26px;
    font-family: var(--font-heading);
    margin: 0 0 10px 0;
    font-weight: 700;
}
.cta-text-new p {
    font-size: 15.5px;
    color: rgba(255,255,255,0.85);
    margin: 0;
}
.cta-buttons-new {
    display: flex;
    gap: 15px;
}
.btn-cta-light-new {
    background: #ffffff;
    color: var(--chemoil-navy) !important;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    transition: var(--transition);
}
.btn-cta-light-new:hover {
    background: var(--chemoil-blue);
    color: #ffffff !important;
}
.btn-cta-outline-new {
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    transition: var(--transition);
}
.btn-cta-outline-new:hover {
    background: #ffffff;
    color: var(--chemoil-navy) !important;
}

/* Footer Section */



.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    margin: 20px 0;
    opacity: 0.85;
}
.footer-socials {
    display: flex;
    gap: 12px;
}
.footer-socials a {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: var(--transition);
}
.footer-socials a:hover {
    background: var(--chemoil-blue);
}





.footer-contact li {
    font-size: 13.5px;
    opacity: 0.85;
    line-height: 1.6;
}






/* RESPONSIVE DESIGN */
@media screen and (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-metrics {
        justify-content: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .overview-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .overview-main-img {
        margin-top: 30px;
    }
    .specs-grid {
        grid-template-columns: 1fr;
    }
    .apps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .variants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
}

@media screen and (max-width: 768px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cta-grid-new {
        flex-direction: column;
        text-align: center;
    }
    .cta-buttons-new {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
    .variants-grid {
        grid-template-columns: 1fr;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .downloads-grid {
        grid-template-columns: 1fr;
    }
    
    
}




/* Force Parent Theme to Full Width & Hide Default Title (Aggressive) */
.page-title { display: none !important; }
#main { padding: 0 !important; margin: 0 !important; overflow-x: hidden !important; }
#main .wf-wrap { max-width: 100% !important; padding: 0 !important; margin: 0 !important; width: 100% !important; display: block !important; }
#main .wf-container-main { max-width: 100% !important; padding: 0 !important; margin: 0 !important; width: 100% !important; float: none !important; display: block !important; }
#sidebar { display: none !important; }

/* Premium Subtle Dot Grid Background Pattern for Product Images */
.hero-visual,
.overview-visual,
.related-img-box,
.prod-carousel-card > div:first-child,
.dir-card-img {
    background-color: #ffffff !important;

    background-size: 16px 16px !important;
    background-position: center !important;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.02) !important;
    border-radius: 8px !important;
}

/* Specific overrides to make images pop on pattern background */
.hero-visual img,
.overview-visual img,
.related-img-box img,
.prod-carousel-card img,
.dir-card-img img {
    mix-blend-mode: multiply !important;
    object-fit: contain !important;
}
