/*
Theme Name: UK-China Business Network
Theme URI: https://hdblfz.com
Author: Sino-British Trade Alliance
Description: Professional bilingual theme for UK-China business connections
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: trade-theme
*/

:root {
    --primary-navy: #1a3a52;
    --primary-blue: #2563a8;
    --accent-gold: #d4af37;
    --accent-red: #c8102e;
    --neutral-light: #f8f9fa;
    --neutral-gray: #e9ecef;
    --text-dark: #212529;
    --text-mid: #6c757d;
    --white: #ffffff;
}

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

body {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-navy);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.chinese-text {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    font-weight: 500;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
    padding: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: rgba(0,0,0,0.2);
    padding: 0.5rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-top-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.9);
}

.header-contact {
    display: flex;
    gap: 2rem;
}

.header-contact span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-toggle {
    display: flex;
    gap: 1rem;
}

.language-toggle a {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.language-toggle a:hover,
.language-toggle a.active {
    color: white;
    background: rgba(255,255,255,0.1);
}

.header-main {
    padding: 1.25rem 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-logo {
    width: 60px;
    height: 60px;
    background: var(--accent-gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-navy);
}

.site-title-group h1 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: 0.5px;
}

.site-title-chinese {
    font-size: 1.25rem;
    font-family: 'Noto Sans SC', sans-serif;
    margin-bottom: 0.25rem;
}

.site-title-english {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.95;
    letter-spacing: 1px;
}

.site-tagline {
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
    font-style: italic;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
}

.main-navigation a {
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block;
}

.main-navigation a:hover {
    background: rgba(255,255,255,0.15);
    color: var(--accent-gold);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 50%, #1e5a8e 100%);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 900px;
    padding: 4rem 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-bilingual {
    margin-bottom: 2rem;
}

.hero-chinese {
    font-size: 2.5rem;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-english {
    font-size: 2rem;
    font-weight: 600;
    opacity: 0.95;
}

.hero-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-gold);
    color: var(--primary-navy);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background: #f0c847;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: white;
    color: var(--primary-navy);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Sections */
.content-section {
    padding: 5rem 0;
}

.content-section.gray-bg {
    background-color: var(--neutral-light);
}

.content-section.navy-bg {
    background: var(--primary-navy);
    color: white;
}

.content-section.navy-bg h2,
.content-section.navy-bg h3 {
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header-bilingual h2 {
    margin-bottom: 0.5rem;
}

.section-title-chinese {
    font-size: 2.25rem;
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.section-title-english {
    font-size: 1.75rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-mid);
    max-width: 800px;
    margin: 1rem auto 0;
    line-height: 1.8;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stat-label-chinese {
    font-family: 'Noto Sans SC', sans-serif;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-description {
    font-size: 0.9375rem;
    color: var(--text-mid);
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.column-content h3 {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.column-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.column-content ul {
    list-style: none;
    margin: 2rem 0;
}

.column-content li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.column-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.25rem;
}

.column-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.column-image img {
    transition: transform 0.5s ease;
}

.column-image:hover img {
    transform: scale(1.05);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.info-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-gold);
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-left-color: var(--accent-red);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-navy));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin-bottom: 1.5rem;
}

.info-card h4 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.card-title-chinese {
    font-family: 'Noto Sans SC', sans-serif;
    display: block;
    margin-bottom: 0.25rem;
}

.info-card p {
    color: var(--text-mid);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* Business Directory */
.directory-intro {
    background: white;
    border-radius: 8px;
    padding: 3rem;
    margin-bottom: 4rem;
    border: 2px solid var(--neutral-gray);
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.business-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-blue);
    position: relative;
}

.business-card:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    border-top-color: var(--accent-gold);
}

.business-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-gold);
    color: var(--primary-navy);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.business-category {
    color: var(--accent-red);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.business-card h4 {
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.business-card h4 a {
    color: var(--primary-navy);
    transition: color 0.3s ease;
}

.business-card h4 a:hover {
    color: var(--primary-blue);
}

.business-card p {
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.business-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--neutral-gray);
    font-size: 0.875rem;
    color: var(--text-mid);
}

.business-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Table Styles */
.content-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin: 2rem 0;
}

.content-table th {
    background: var(--primary-navy);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.content-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--neutral-gray);
}

.content-table tbody tr:hover {
    background: var(--neutral-light);
}

/* Footer */
.site-footer {
    background: var(--primary-navy);
    color: rgba(255,255,255,0.9);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about h3,
.footer-links h4 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-about p {
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 1rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 0.5rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 968px) {
    .two-column,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .site-branding {
        flex-direction: row;
        gap: 1rem;
    }
    
    .site-logo {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .site-title-group h1 {
        font-size: 1rem;
    }
    
    .site-title-chinese {
        font-size: 1rem;
    }
    
    .site-title-english {
        font-size: 0.875rem;
    }
    
    .site-tagline {
        display: none;
    }
    
    .main-navigation ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.25rem;
        justify-content: center;
    }
    
    .main-navigation a {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        letter-spacing: 0px;
    }
    
    .header-main {
        padding: 0.75rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-chinese {
        font-size: 1.75rem;
    }
    
    .hero-english {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
    
    .content-section {
        padding: 3rem 0;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}
