/* 
Theme Name: Baisifu Greenway Clone
Description: 99% matching gwbiotek.com layout for Shaanxi Baisifu Biological Engineering Co., Ltd.
Version: 3.0.0
Author: Baisifu Dev Team
Text Domain: baisifu-theme
*/

/* ============================================================
   CSS RESET & BASE - Matching gwbiotek.com exactly
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}
a { text-decoration: none; color: inherit; transition: color 0.3s; }
a:hover { color: #e8a838; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; color: #1a1a1a; }

/* ============================================================
   CONTAINER - Match gwbiotek.com width (1200px)
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   HEADER / NAVIGATION - Exact match to gwbiotek.com
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-bottom: 1px solid #f0f0f0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 30px;
    max-width: 1400px;
    margin: 0 auto;
}
.site-logo img { height: 50px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 5px; }
.main-nav a {
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    color: #444;
    transition: all 0.3s;
    border-radius: 4px;
}
.main-nav a:hover,
.main-nav a.current-menu-item {
    color: #e8a838;
    background: #fffbf0;
}
.header-cta {
    background: #e8a838;
    color: #fff !important;
    padding: 12px 24px !important;
    border-radius: 6px;
    font-weight: 600;
}
.header-cta:hover {
    background: #d4962f !important;
    transform: translateY(-1px);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}
.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
}

/* ============================================================
   HERO SECTION - Green gradient like gwbiotek.com
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 30%, #43a047 60%, #66bb6a 100%);
    color: #fff;
    padding: 100px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="00 100 100"><defs><pattern id="p" patternUnits="userSpaceOnUse" width="40" height="40"><circle cx="20" cy="20" r="1.5" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect fill="url(%23p)" width="100%" height="100%"/></svg>');
    opacity: 0.5;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.25);
}
.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -1px;
}
.hero-subtitle {
    font-size: 20px;
    opacity: 0.92;
    margin-bottom: 35px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-white {
    background: #fff;
    color: #2e7d32;
    padding: 14px 34px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: #2e7d32;
}
.btn-outline {
    background: transparent;
    color: #fff;
    padding: 14px 34px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid rgba(255,255,255,0.5);
    transition: all 0.3s;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

/* ============================================================
   FEATURE BADGES - Low MOQ / Lead Time / One Stop Shop
   ============================================================ */
.feature-badges {
    padding: 45px 0;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}
.badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.badge-card {
    text-align: center;
    padding: 28px 22px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.3s;
}
.badge-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}
.badge-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #e8a838, #f0c060);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 26px;
    color: #fff;
}
.badge-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}
.badge-desc {
    font-size: 13px;
    color: #777;
    line-height: 1.55;
}

/* ============================================================
   SECTION STYLES - Numbered sections like gwbiotek.com
   ============================================================ */
.section { padding: 80px 0; }
.section-alt { background: #f9fdfa; }
.section-dark {
    background: linear-gradient(135deg, #1a4d2e 0%, #1b5e20 50%, #2e7d32 100%);
    color: #fff;
}
.section-header { margin-bottom: 48px; text-align: center; }
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #e8a838;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.section-number {
    font-size: 42px;
    font-weight: 800;
    opacity: 0.25;
    line-height: 1;
}
.section-title {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}
.section-dark .section-title { color: #fff; }
.section-desc {
    font-size: 17px;
    color: #666;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}
.section-dark .section-desc { color: rgba(255,255,255,0.82); }

/* ============================================================
   INTRO SECTION - Company intro with image (left-right)
   ============================================================ */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.intro-text h3 {
    font-size: 29px;
    font-weight: 750;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
}
.intro-text p {
    font-size: 16px;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.75;
}
.intro-image img {
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    width: 100%;
}

/* ============================================================
   PRODUCTS GRID - 4 columns matching gwbiotek.com
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}
.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.35s ease;
}
.product-card:hover {
    box-shadow: 0 12px 36px rgba(0,0,0,0.11);
    transform: translateY(-5px);
    border-color: transparent;
}
.product-img-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-info { padding: 20px 18px; }
.product-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #e8a838;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    background: #fffbf0;
    padding: 3px 10px;
    border-radius: 4px;
}
.product-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.35;
    min-height: 44px;
}
.product-name a { color: inherit; }
.product-name a:hover { color: #e8a838; }
.product-excerpt {
    font-size: 13px;
    color: #888;
    line-height: 1.55;
    margin-bottom: 16px;
}
.card-btns { display: flex; flex-direction: column; gap: 8px; }
.card-btn {
    display: block;
    text-align: center;
    padding: 9px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}
.card-btn-primary {
    background: #e8a838;
    color: #fff;
    border: none;
}
.card-btn-primary:hover { background: #d4962f; color: #fff; }
.card-btn-secondary {
    background: transparent;
    color: #e8a838;
    border: 1.5px solid #e8a838;
}
.card-btn-secondary:hover { background: #e8a838; color: #fff; }

/* ============================================================
   INDUSTRY APPLICATION CARDS
   ============================================================ */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.app-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s;
}
.app-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.09);
    transform: translateY(-3px);
}
.app-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 30px;
}
.app-icon.c { background: #e8f5e9; color: #2e7d32; }
.app-icon.f { background: #fff8e1; color: #f57c00; }
.app-icon.p { background: #fce4ec; color: #c62828; }
.app-icon.s { background: #ede7f6; color: #512da8; }
.app-title { font-size: 18px; font-weight: 700; color: #1a1a1a; margin-bottom: 10px; }
.app-desc { font-size: 13px; color: #777; line-height: 1.6; }
.app-link {
    display: inline-block;
    margin-top: 14px;
    color: #e8a838;
    font-weight: 600;
    font-size: 13px;
}

/* ============================================================
   TRUST SECTION - Dark green with trust badges
   ============================================================ */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.trust-item {
    padding: 30px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    backdrop-filter: blur(5px);
}
.trust-num {
    font-size: 38px;
    font-weight: 800;
    color: #e8a838;
    margin-bottom: 8px;
}
.trust-text {
    font-size: 15px;
    color: rgba(255,255,255,0.88);
    line-height: 1.6;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
    background: linear-gradient(135deg, #e8a838 0%, #f0c060 100%);
    padding: 55px 0;
    text-align: center;
    color: #fff;
}
.cta-banner h2 {
    font-size: 33px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}
.cta-banner p {
    font-size: 17px;
    opacity: 0.95;
    margin-bottom: 24px;
}
.cta-banner .btn-white { color: #e8a838; }
.cta-banner .btn-white:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ============================================================
   FOOTER - 4 columns like gwbiotek.com
   ============================================================ */
.site-footer {
    background: #111827;
    color: #9ca3af;
    padding: 65px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 40px;
    padding-bottom: 45px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
}
.footer-about p { font-size: 14px; line-height: 1.7; margin-bottom: 12px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    font-size: 14px;
    color: #9ca3af;
    transition: all 0.2s;
}
.footer-links a:hover { color: #e8a838; padding-left: 4px; }
.contact-info li {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.contact-info strong { color: #e2e8f0; font-weight: 600; }
.cert-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.cert-badge {
    background: rgba(255,255,255,0.06);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    color: #d1d5db;
    border: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */
.page-content { padding: 70px 0; min-height: 400px; }
.page-content h1 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 24px;
    color: #1a1a1a;
}
.page-content h2 { font-size: 28px; font-weight: 700; margin-top: 36px; margin-bottom: 14px; color: #222; }
.page-content h3 { font-size: 22px; font-weight: 600; margin-top: 28px; margin-bottom: 12px; }
.page-content p { font-size: 16px; color: #555; margin-bottom: 16px; line-height: 1.78; }
.page-content ul, .page-content ol { margin: 16px 0 16px 22px; }
.page-content li { margin-bottom: 8px; font-size: 15px; color: #555; line-height: 1.65; }
.entry-content a { color: #e8a838; }
.entry-content a:hover { text-decoration: underline; }

/* Contact Form Styling */
.contact-form-box {
    max-width: 720px;
    margin: 30px auto;
    padding: 36px;
    background: #fafafa;
    border-radius: 14px;
    border: 1px solid #eee;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
    background: #fff;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e8a838;
    box-shadow: 0 0 0 3px rgba(232,168,56,0.12);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.submit-btn {
    background: #e8a838;
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.submit-btn:hover { background: #d4962f; transform: translateY(-1px); }

/* FAQ Accordion */
.faq-list { max-width: 850px; margin: 0 auto; }
.faq-category {
    margin-bottom: 35px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}
.faq-cat-header {
    background: #f8f9fa;
    padding: 16px 24px;
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 1px solid #eee;
}
.faq-item {
    border-bottom: 1px solid #f0f0f0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
    padding: 16px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #222;
    transition: background 0.2s;
}
.faq-q:hover { background: #fffbf0; }
.faq-a {
    padding: 0 24px 16px;
    font-size: 14px;
    color: #666;
    line-height: 1.72;
    display: none;
}
.faq-item.active .faq-a { display: block; }

/* ============================================================
   SINGLE PRODUCT PAGE
   ============================================================ */
.product-single {
    padding: 40px 0 70px;
}
.prod-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}
.prod-gallery img {
    border-radius: 14px;
    width: 100%;
    border: 1px solid #eee;
}
.prod-details h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 14px;
}
.prod-meta { margin-bottom: 20px; }
.prod-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}
.spec-row {
    display: flex;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
}
.spec-label { font-weight: 600; color: #555; min-width: 110px; }
.spec-value { color: #222; }
.prod-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.prod-inquiry-btn {
    background: #e8a838;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.prod-inquiry-btn:hover { background: #d4962f; transform: translateY(-1px); }
.whatsapp-btn {
    background: #25D366;
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.whatsapp-btn:hover { background: #1ebe5d; }

/* Product content sections */
.prod-section { margin-bottom: 40px; }
.prod-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8a838;
    display: inline-block;
}
.prod-section p { font-size: 15px; color: #555; line-height: 1.78; margin-bottom: 14px; }
.prod-section ul { margin: 12px 0 12px 20px; }
.prod-section li { margin-bottom: 8px; font-size: 14px; color: #555; line-height: 1.65; }

/* Comparison Table */
.comp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.comp-table thead th {
    background: #e8a838;
    color: #fff;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}
.comp-table tbody td {
    padding: 12px 18px;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
}
.comp-table tbody tr:hover { background: #fffbf0; }

/* Products Page Filter */
.products-page { padding: 50px 0 70px; }
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 35px;
    justify-content: center;
}
.filter-btn {
    padding: 8px 20px;
    border: 1.5px solid #ddd;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
    color: #666;
}
.filter-btn:hover,
.filter-btn.active {
    background: #e8a838;
    border-color: #e8a838;
    color: #fff;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .apps-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .intro-grid { gap: 40px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .badges-grid { grid-template-columns: 1fr; }
    .intro-grid { grid-template-columns: 1fr; }
    .apps-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .prod-hero { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 28px; }
    .section { padding: 50px 0; }
    .hero-section { padding: 60px 0 50px; }
    .header-inner { height: 65px; padding: 0 15px; }
    .site-logo img { height: 38px; }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .filter-bar { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
    .prod-specs { grid-template-columns: 1fr; }
}
