/* 
  Guangzhou Heqing Technology Co., Ltd.
  Premium B2B Stylesheet
*/

:root {
    --primary-color: #0f3a68; /* Deep Corporate Blue */
    --secondary-color: #10b981; /* Eco Emerald Green */
    --accent-color: #f59e0b; /* Gold/Orange for emphasis */
    --text-main: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --white: #ffffff;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
}

body {
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.section-padding { padding: 80px 0; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.w-100 { width: 100%; }
.text-white { color: var(--white); }
.text-gray { color: #9ca3af; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }

h1, h2, h3, h4 {
    color: var(--primary-color);
    line-height: 1.2;
}

h2.section-title {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Buttons */
.btn-primary, .btn-primary-outline, .btn-secondary, .btn-link {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0b2b4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 58, 104, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #0d9668;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-primary-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-primary-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary-outline.light {
    border-color: var(--white);
    color: var(--white);
}

.btn-primary-outline.light:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contacts span {
    margin-left: 20px;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-mark {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 8px;
}

.logo-text strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 1.1;
}

.logo-text span {
    color: var(--text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: 0.3s;
}

/* Page Header (Inner pages) */
.page-header {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
}
.page-header .hero-bg {
    background: rgba(15, 58, 104, 0.85);
}
.pt-20 { padding-top: 5rem; }
.pb-20 { padding-bottom: 5rem; }

/* Video Hero */
.video-hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15,58,104,0.9) 0%, rgba(16,185,129,0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-content .badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 4rem;
    font-family: var(--font-heading);
    color: white;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Stats Section */
.stats-section {
    background: var(--white);
    padding: 60px 0;
    border-bottom: 1px solid #e5e7eb;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 20px;
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Swiper Product Cards */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background-color: #fafafa;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.product-info p {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Products Page Layout */
.products-page-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.product-sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    text-decoration: none;
    color: var(--text-main);
    display: block;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.2s;
    background: var(--bg-light);
}

.category-list a:hover, .category-list a.active {
    background: var(--primary-color);
    color: white;
}

.product-category-block {
    margin-bottom: 60px;
}

.category-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.category-header p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.catalog-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.catalog-item img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background-color: #fafafa;
    border-radius: 4px;
    margin-bottom: 15px;
}

.catalog-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.spec-table th, .spec-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.spec-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.spec-table tr:hover {
    background-color: #f9fafb;
}

.divider {
    border: 0;
    height: 1px;
    background: #e5e7eb;
    margin: 40px 0;
}

/* Tabs */
.custom-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 24px;
    background: var(--bg-light);
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    color: var(--text-light);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-left: 4px solid var(--secondary-color);
}

.tab-content h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* OEM Layout */
.oem-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.rounded-image {
    width: 100%;
    border-radius: 12px;
}

.shadow-lg {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Contact Page Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.detail-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.detail-item .icon {
    font-size: 2rem;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 58, 104, 0.1);
}

.p-8 { padding: 2rem; }

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a8a 100%);
    color: white;
    padding: 80px 0;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background-color: #111827;
    color: #d1d5db;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    background-color: #030712;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .oem-layout, .contact-layout {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-title {
        font-size: 3rem;
    }
    .products-page-layout {
        grid-template-columns: 1fr;
    }
    .catalog-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none;
    }
    .nav-menu.active {
        display: block;
    }
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .top-bar {
        display: none;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .catalog-grid {
        grid-template-columns: 1fr;
    }
}

/* Additions for new sections */

/* Certificates Strip */
.cert-strip {
    background-color: var(--bg-light);
    padding: 30px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}
.cert-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}
.cert-logos img {
    height: 60px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}
.cert-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Factory Tour Section */
.factory-tour-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.factory-media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.factory-media img, .factory-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.factory-media.aerial {
    height: 400px;
}
.factory-media.video {
    height: 400px;
}

/* Export Map Section */
.export-map-section {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.export-map-section h2 {
    color: white;
}
.map-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.map-container img {
    width: 100%;
    opacity: 0.6;
}

/* Case Studies */
.case-study-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 4px solid var(--accent-color);
}
.case-study-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s;
}
.whatsapp-widget:hover {
    transform: scale(1.1);
    color: white;
}
.whatsapp-widget img {
    width: 35px;
    height: 35px;
}

/* RFQ Form */
.rfq-form-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.rfq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.rfq-full {
    grid-column: 1 / -1;
}

@media (max-width: 992px) {
    .factory-tour-layout, .case-study-grid, .rfq-grid {
        grid-template-columns: 1fr;
    }
}
