/*
Theme Name: Converio Child Theme
Theme URI: http://thememotive.com/
Description: Child theme for Fujairah Chemical - customized for conversion and visual quality
Author: ThemeMotive
Template: converio
Version: 2.0.0
*/

@import url('../converio/style.css');

/* 1. CRITICAL FIX: Dark background on scroll */
html, body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #f5f7fa !important;
}
.root {
    background: #fff !important;
    overflow: visible !important;
}

/* 2. GLOBAL TYPOGRAPHY */
body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: #4a5568 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}
h1, h2, h3, h4, h5, h6 {
    color: #1a2332 !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em;
}
a { color: #1a7a3c !important; transition: color 0.2s ease; }
a:hover { color: #145e2e !important; text-decoration: none !important; }

/* 3. MAIN CONTENT AREA - Fix dark background */
.lead,
#content, .content, .site-content,
.col-content, .col-main, .post-content, .entry-content,
article.post, article.page, article.product,
.inner, .container, .content-wrap,
#page, .site, .type-post, .type-page, .type-product {
    background: #fff !important;
}

/* 4. SINGLE POST STYLES */
.single h1.entry-title,
.single h1.post-title,
.page h1.entry-title {
    font-size: 2rem !important;
    margin-bottom: 16px !important;
    color: #1a2332 !important;
}
.post-meta, .entry-meta {
    color: #718096 !important;
    font-size: 13px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 16px !important;
    margin-bottom: 24px !important;
}

/* 5. AUTHOR BOX - Fix the grey box */
.author-box, .post-author, .author-info, div.author {
    background: linear-gradient(135deg, #f0faf4 0%, #e8f5ee 100%) !important;
    border: 1px solid #c6e6d2 !important;
    border-radius: 12px !important;
    padding: 28px 32px !important;
    margin: 32px 0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
}
.author-box .avatar, .author-info .avatar, .author-box img.avatar {
    border-radius: 50% !important;
    border: 3px solid #1a7a3c !important;
}

/* 6. RELATED POSTS */
.related-posts, .related, .content-slider.related {
    background: #f5f7fa !important;
    padding: 32px !important;
    border-radius: 12px !important;
    margin: 32px 0 !important;
}
.related-posts h3, .related h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a2332 !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 3px solid #1a7a3c !important;
    display: inline-block !important;
}
.content-slider.related article {
    background: #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    margin-bottom: 0 !important;
}
.content-slider.related article:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.10) !important;
}

/* 7. SIDEBAR */
#sidebar, .sidebar, aside.sidebar, .widget-area {
    background: transparent !important;
}
.widget {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
    border: 1px solid #e2e8f0 !important;
}
.widget-title, .widgettitle {
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #1a2332 !important;
    margin-bottom: 16px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #1a7a3c !important;
}
.widget ul li a, aside ul li a, #sidebar ul li a {
    color: #4a5568 !important;
    font-size: 14px !important;
    padding: 6px 0 !important;
    display: block !important;
    border-bottom: 1px solid #f0f0f0 !important;
    transition: color 0.2s, padding-left 0.2s !important;
}
.widget ul li a:hover, aside ul li a:hover, #sidebar ul li a:hover {
    color: #1a7a3c !important;
    padding-left: 6px !important;
}

/* 8. BUTTONS */
a.button, .button, button, input[type=submit], .btn,
.woocommerce .button {
    background: #1a7a3c !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    transition: all 0.25s ease !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(26,122,60,0.3) !important;
    height: auto !important;
    line-height: 1.5 !important;
    cursor: pointer !important;
}
a.button:hover, .button:hover, button:hover, input[type=submit]:hover {
    background: #145e2e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(26,122,60,0.4) !important;
    color: #fff !important;
}

/* 9. PRODUCT CARDS */
.woocommerce ul.products li.product, .products .product {
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    padding: 0 !important;
}
.woocommerce ul.products li.product:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.10) !important;
}
.woocommerce ul.products li.product img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
}

/* 10. BREADCRUMBS */
.breadcrumb {
    background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%) !important;
    min-height: 60px !important;
    padding: 0 30px !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: none !important;
}
.breadcrumb a, .breadcrumb span { color: rgba(255,255,255,0.75) !important; font-size: 13px !important; }
.breadcrumb a:hover { color: #f5a623 !important; }
.breadcrumb .current { color: #fff !important; }

/* 11. FOOTER */
footer {
    background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%) !important;
    color: #a0aec0 !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
footer h3, footer h4 {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 16px !important;
}
footer a { color: #a0aec0 !important; }
footer a:hover { color: #f5a623 !important; }

/* 12. FORMS */
input[type=text], input[type=email], input[type=tel],
input[type=url], textarea, select {
    border: 2px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    color: #1a2332 !important;
    background: #fff !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
input:focus, textarea:focus, select:focus {
    border-color: #1a7a3c !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(26,122,60,0.12) !important;
}

/* 13. WOOCOMMERCE SINGLE PRODUCT */
.woocommerce div.product {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 32px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
}
.woocommerce div.product .cart .button,
.woocommerce a.button.alt, .woocommerce button.button.alt {
    background: #1a7a3c !important;
    border-radius: 6px !important;
    padding: 14px 32px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(26,122,60,0.3) !important;
    height: auto !important;
    line-height: 1.5 !important;
}

/* 14. BLOG POST CARDS */
.blog article, .archive article {
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
    margin-bottom: 28px !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
.blog article:hover, .archive article:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.10) !important;
}

/* 15. MOBILE */
@media (max-width: 768px) {
    h1 { font-size: 1.6rem !important; }
    h2 { font-size: 1.3rem !important; }
    .widget { padding: 16px !important; }
    .breadcrumb { min-height: 44px !important; }
}

html { scroll-behavior: smooth; }

/* 16. FOOTER REDESIGN */
.fc-footer {
    background: #0f1923 !important;
    color: #94a3b8 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    border-top: 3px solid #1a7a3c !important;
}
.fc-footer-main {
    padding: 60px 20px 48px !important;
}
.fc-footer-inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1.4fr !important;
    gap: 48px !important;
}
.fc-footer-col {}
.fc-footer-logo {
    margin-bottom: 18px !important;
}
.fc-footer-logo img {
    max-width: 160px !important;
    height: auto !important;
    filter: brightness(0) invert(1) !important;
    opacity: 0.9 !important;
}
.fc-footer-desc {
    color: #94a3b8 !important;
    font-size: 13.5px !important;
    line-height: 1.7 !important;
    margin-bottom: 22px !important;
}
.fc-footer-social {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}
.fc-social-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 8px !important;
    color: #fff !important;
    transition: transform 0.2s, opacity 0.2s !important;
    text-decoration: none !important;
}
.fc-social-btn:hover { transform: translateY(-3px) !important; opacity: 0.85 !important; color: #fff !important; }
.fc-fb  { background: #1877f2 !important; }
.fc-tw  { background: #1da1f2 !important; }
.fc-wa  { background: #25d366 !important; }
.fc-email { background: #1a7a3c !important; }

.fc-footer-heading {
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    margin: 0 0 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
.fc-footer-links {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.fc-footer-links li {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}
.fc-footer-links li a {
    color: #94a3b8 !important;
    font-size: 13.5px !important;
    display: block !important;
    padding: 5px 0 !important;
    border-bottom: none !important;
    transition: color 0.2s, padding-left 0.2s !important;
    text-decoration: none !important;
}
.fc-footer-links li a:hover {
    color: #4ade80 !important;
    padding-left: 6px !important;
}
.fc-contact-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.fc-contact-list li {
    display: flex !important;
    gap: 12px !important;
    align-items: flex-start !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    color: #94a3b8 !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
}
.fc-contact-list li:last-child { border-bottom: none !important; }
.fc-contact-icon {
    color: #1a7a3c !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}
.fc-contact-list a {
    color: #94a3b8 !important;
    transition: color 0.2s !important;
    border: none !important;
}
.fc-contact-list a:hover { color: #4ade80 !important; }

.fc-footer-bottom {
    background: rgba(0,0,0,0.35) !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
    padding: 16px 20px !important;
}
.fc-footer-bottom .fc-footer-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    grid-template-columns: unset !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}
.fc-copyright {
    color: #64748b !important;
    font-size: 13px !important;
    margin: 0 !important;
}
.fc-bottom-links {
    display: flex !important;
    gap: 20px !important;
}
.fc-bottom-links a {
    color: #64748b !important;
    font-size: 13px !important;
    transition: color 0.2s !important;
    border: none !important;
    text-decoration: none !important;
}
.fc-bottom-links a:hover { color: #4ade80 !important; }

/* Hide old footer widgets */
footer .widgets, footer.fc-footer section.widgets,
footer .bottom { display: none !important; }

/* Responsive footer */
@media (max-width: 1024px) {
    .fc-footer-inner { grid-template-columns: 1fr 1fr !important; gap: 36px !important; }
}
@media (max-width: 600px) {
    .fc-footer-inner { grid-template-columns: 1fr !important; gap: 28px !important; }
    .fc-footer-main { padding: 40px 20px 32px !important; }
    .fc-footer-bottom .fc-footer-inner { flex-direction: column !important; text-align: center !important; }
    .fc-bottom-links { justify-content: center !important; }
}

/* 17. EXIT POPUP FIX - Remove the 1000px box-shadow that darkens entire page */
#ddexitpop1, .ddexitpop {
    display: none !important;
    box-shadow: none !important;
    visibility: hidden !important;
}
#ddexitpopwrapper.open .ddexitpop {
    display: block !important;
    visibility: visible !important;
    box-shadow: none !important;
}
