/*
Theme Name: Jhono Sourcing Agent
Theme URI: https://www.jhono.com
Author: Hainan Jhono Industry and Trade Co.,Ltd
Author URI: https://www.jhono.com
Description: Professional China sourcing agent WordPress theme for building materials, construction machinery and custom industrial products.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jhono-sourcing
Tags: responsive, custom-logo, custom-menu, featured-images, translation-ready
*/

/* =Reset
-------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #333; background: #fff; }
img { max-width: 100%; height: auto; }
ul, ol { padding-left: 1.5em; }
a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { margin: 1em 0 0.5em; font-weight: 700; line-height: 1.2; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* =Layout
-------------------------------------------------------------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =Header
-------------------------------------------------------------- */
.site-header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; max-width: 1200px; margin: 0 auto; position: relative; }
.site-logo { font-size: 1.4rem; font-weight: 800; color: #1a5ca8; text-decoration: none; }
.site-logo span { color: #f39c12; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.main-nav li { position: relative; }
.main-nav a { color: #333; font-weight: 500; font-size: 0.95rem; text-decoration: none; transition: color 0.3s; padding: 8px 0; display: block; }
.main-nav a:hover { color: #1a5ca8; text-decoration: none; }

/* Desktop dropdown sub-menus */
.main-nav ul ul { display: none; position: absolute; top: 100%; left: 0; background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.15); border-radius: 6px; min-width: 200px; padding: 10px 0; z-index: 9999; }
.main-nav ul ul li { width: 100%; }
.main-nav ul ul a { padding: 10px 20px; font-size: 0.9rem; color: #333; }
.main-nav ul ul a:hover { color: #1a5ca8; background: #f0f4fa; }
.main-nav li:hover > ul { display: block; }

/* Sub-sub menu indent */
.main-nav ul ul ul { top: 0; left: 100%; }

.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* =Hero Section
-------------------------------------------------------------- */
.hero { background: linear-gradient(135deg, #1a5ca8 0%, #0d3a6e 100%); color: #fff; padding: 80px 0; text-align: center; }
.hero h1 { color: #fff; font-size: 3rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; opacity: 0.9; max-width: 700px; margin: 0 auto 30px; }
.btn-primary { display: inline-block; background: #f39c12; color: #fff; padding: 14px 36px; border-radius: 5px; font-weight: 700; font-size: 1rem; transition: background 0.3s; }
.btn-primary:hover { background: #e67e22; text-decoration: none; }

/* =Sections
-------------------------------------------------------------- */
.section { padding: 70px 0; }
.section-light { background: #f8f9fa; }
.section-dark { background: #1a1a2e; color: #fff; }
.section h2 { text-align: center; margin-bottom: 50px; font-size: 2.2rem; }
.section h2::after { content: ''; display: block; width: 60px; height: 4px; background: #f39c12; margin: 15px auto 0; }

/* =Service Cards
-------------------------------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-card { background: #fff; padding: 35px 25px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); text-align: center; transition: transform 0.3s; }
.service-card:hover { transform: translateY(-5px); }
.service-icon { width: 70px; height: 70px; background: linear-gradient(135deg, #1a5ca8, #0d3a6e); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: #fff; font-size: 1.8rem; }
.service-card h3 { font-size: 1.2rem; margin: 0 0 15px; color: #1a1a2e; }
.service-card p { color: #666; font-size: 0.95rem; margin: 0; }

/* =Process Steps
-------------------------------------------------------------- */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.step-item { display: flex; gap: 20px; align-items: flex-start; }
.step-number { min-width: 50px; height: 50px; background: #f39c12; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; }
.step-content h4 { margin: 0 0 8px; font-size: 1.1rem; }
.step-content p { margin: 0; color: #666; font-size: 0.9rem; }

/* =Features Grid
-------------------------------------------------------------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.feature-item h3 { display: flex; align-items: center; gap: 12px; color: #1a5ca8; }
.feature-item h3::before { content: '✓'; background: #f39c12; color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }

/* =Testimonials
-------------------------------------------------------------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; }
.testimonial-card { background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 3px 12px rgba(0,0,0,0.08); }
.testimonial-card .stars { color: #f39c12; margin-bottom: 10px; }
.testimonial-card blockquote { margin: 0 0 15px; font-style: italic; color: #555; }
.testimonial-card cite { font-weight: 700; color: #1a5ca8; }

/* =Statistics
-------------------------------------------------------------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item h3 { font-size: 3rem; color: #f39c12; margin: 0; }
.stat-item p { margin: 5px 0 0; font-size: 0.95rem; opacity: 0.9; }

/* =FAQ
-------------------------------------------------------------- */
.faq-item { background: #fff; border-radius: 8px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden; }
.faq-question { padding: 20px 25px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: #fff; border: none; width: 100%; text-align: left; font-size: 1.05rem; transition: background 0.2s; }
.faq-question::after { content: '+'; font-size: 1.5rem; color: #f39c12; transition: transform 0.3s; font-weight: 400; flex-shrink: 0; margin-left: 16px; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-question:hover { background: #f8f9fa; }
.faq-question:focus { outline: 2px solid #f39c12; outline-offset: -2px; }
.faq-answer-wrapper { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.faq-answer { overflow: hidden; }
.faq-answer > * { visibility: hidden; opacity: 0; transition: visibility 0.2s 0.1s, opacity 0.2s 0.1s; }
.faq-item.active .faq-answer-wrapper { grid-template-rows: 1fr; }
.faq-item.active .faq-answer > * { visibility: visible; opacity: 1; }

/* =Inquiry Form
-------------------------------------------------------------- */
.inquiry-section { background: linear-gradient(135deg, #1a5ca8, #0d3a6e); color: #fff; padding: 60px 0; }
.inquiry-form { max-width: 650px; margin: 0 auto; background: rgba(255,255,255,0.1); padding: 40px; border-radius: 15px; backdrop-filter: blur(5px); }
.inquiry-form h2 { color: #fff; }
.inquiry-form h2::after { background: #f39c12; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border: 2px solid rgba(255,255,255,0.3); border-radius: 8px; background: rgba(255,255,255,0.9); font-size: 1rem; color: #333; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.btn-submit { width: 100%; background: #f39c12; color: #fff; padding: 15px; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: background 0.3s; }
.btn-submit:hover { background: #e67e22; }

/* =Footer
-------------------------------------------------------------- */
.site-footer { background: #1a1a2e; color: #ccc; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; margin: 0 0 20px; font-size: 1.1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #aaa; font-size: 0.9rem; transition: color 0.3s; }
.footer-col a:hover { color: #f39c12; text-decoration: none; }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; text-align: center; font-size: 0.85rem; color: #777; }

/* =WhatsApp Floating Button
-------------------------------------------------------------- */
.whatsapp-float { position: fixed; bottom: 25px; right: 25px; z-index: 9999; width: 60px; height: 60px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(37,211,102,0.4); animation: pulse 2s infinite; }
.whatsapp-float svg { width: 35px; height: 35px; fill: #fff; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* =Page Header
-------------------------------------------------------------- */
.page-header { background: linear-gradient(135deg, #1a5ca8, #0d3a6e); color: #fff; padding: 50px 0; text-align: center; }
.page-header h1 { color: #fff; margin: 0; font-size: 2.5rem; }
.page-header p { opacity: 0.85; margin: 10px 0 0; }

/* =Product Categories
-------------------------------------------------------------- */
.category-section { padding: 70px 0; }
.category-card { background: #fff; border-radius: 12px; padding: 30px; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.category-card h3 { color: #1a5ca8; margin-top: 0; }
.category-card ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; list-style: none; padding: 0; }
.category-card li { padding: 8px 15px; background: #f0f4fa; border-radius: 5px; font-size: 0.9rem; }
.category-card li::before { content: '✓ '; color: #f39c12; font-weight: bold; }

/* =Process Page
-------------------------------------------------------------- */
.process-page { padding: 70px 0; }
.process-item { display: flex; gap: 30px; margin-bottom: 40px; padding: 30px; background: #f8f9fa; border-radius: 12px; align-items: center; }
.process-item .step-num { min-width: 60px; height: 60px; background: #1a5ca8; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.5rem; flex-shrink: 0; }

/* =Contact Page
-------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 70px 0; }
.contact-info h3 { color: #1a5ca8; margin-top: 0; }
.contact-info p { display: flex; align-items: center; gap: 10px; margin: 15px 0; }
.contact-form-wrapper { background: #f8f9fa; padding: 40px; border-radius: 12px; }

/* =CTA Section
-------------------------------------------------------------- */
.cta-section { background: #f39c12; color: #fff; text-align: center; padding: 60px 20px; }
.cta-section h2 { color: #fff; margin-bottom: 15px; }
.cta-section h2::after { background: #fff; }
.cta-section p { opacity: 0.9; margin-bottom: 25px; }

/* =Social Icons
-------------------------------------------------------------- */
.social-links { display: flex; gap: 15px; margin-top: 15px; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: background 0.3s; }
.social-links a:hover { background: #f39c12; }

/* =Utility
-------------------------------------------------------------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-30 { margin-top: 30px; }
.bg-white { background: #fff; }

/* =Responsive
-------------------------------------------------------------- */
@media (max-width: 991px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
}
@media (max-width: 767px) {
  .main-nav { display: none; }
  .main-nav.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.1); padding: 20px; }
  .main-nav.active ul { flex-direction: column; gap: 15px; }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 50px 0; }
  .hero h1 { font-size: 1.8rem; }
  .section { padding: 50px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-item h3 { font-size: 2rem; }
  .inquiry-form { padding: 25px; }
}
