/*
 * ============================================
 * T2China.in - Common CSS
 * Version: 3.0 (Header & Footer Only)
 * 
 * This file ONLY controls header and footer styling
 * All page content (hero, cards, etc.) uses inline CSS
 * ============================================
 */

/* ============================================
   HEADER STYLES - Override ALL page headers
   ============================================ */
.t2c-header,
header.t2c-header,
.header,
header {
    background: #ffffff !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    color: #2c2c2c !important;
}

/* Override dark/gradient headers */
header[style*="gradient"],
header[style*="dark"],
.header[style*="gradient"] {
    background: #ffffff !important;
    background-image: none !important;
}

.t2c-nav-container,
.nav-container,
.header-content {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 1rem 2rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: transparent !important;
}

.t2c-logo,
.logo,
header .logo,
.header .logo {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-shadow: none !important;
}

.t2c-logo-chinese,
.logo-chinese,
.logo span,
.logo .chinese,
header .logo span {
    font-family: 'Noto Serif SC', 'Noto Sans SC', serif !important;
    color: #c8102e !important;
    font-size: 1.2rem !important;
    margin-left: 0.5rem !important;
    font-weight: 400 !important;
    text-shadow: none !important;
}

.t2c-nav-links,
.nav-links,
header nav,
.header nav {
    display: flex !important;
    gap: 2rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}

.t2c-nav-links li,
.nav-links li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.t2c-nav-links a,
.nav-links a,
header nav a,
.header nav a {
    color: #2c2c2c !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    font-family: 'Inter', sans-serif !important;
    transition: color 0.3s ease !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.t2c-nav-links a:hover,
.nav-links a:hover,
header nav a:hover {
    color: #c8102e !important;
    text-decoration: none !important;
}

.t2c-cta-button,
.cta-button,
.cta-btn,
header .cta-btn,
header .cta-button {
    background: #c8102e !important;
    background-color: #c8102e !important;
    color: #ffffff !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.3s ease !important;
    border: none !important;
    display: inline-block !important;
}

.t2c-cta-button:hover,
.cta-button:hover,
.cta-btn:hover {
    background: #a00d24 !important;
    background-color: #a00d24 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    text-decoration: none !important;
}

/* Mobile menu icon */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #2c2c2c;
}

/* ============================================
   FOOTER STYLES - Override ALL page footers
   ============================================ */
.t2c-footer,
footer.t2c-footer,
footer {
    background: #f8f9fa !important;
    background-color: #f8f9fa !important;
    background-image: none !important;
    color: #2c2c2c !important;
    padding: 4rem 2rem 2rem !important;
    margin-top: 4rem !important;
    border-top: 1px solid #e0e0e0 !important;
    font-family: 'Inter', sans-serif !important;
}

/* Override dark/gradient footers */
footer[style*="gradient"],
footer[style*="dark"] {
    background: #f8f9fa !important;
    background-image: none !important;
    color: #2c2c2c !important;
}

.t2c-footer-content,
.footer-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 2.5rem !important;
    background: transparent !important;
    padding: 0 !important;
}

.t2c-footer-section,
.footer-section {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.t2c-footer-section h3,
.footer-section h3,
footer h3 {
    color: #1a1a2e !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-bottom: 1.25rem !important;
    font-family: 'Inter', sans-serif !important;
    background: none !important;
    padding: 0 !important;
}

.t2c-brand-chinese {
    color: #c8102e !important;
    font-family: 'Noto Serif SC', serif !important;
}

.t2c-footer-section p,
.footer-section p,
footer p {
    color: #666666 !important;
    line-height: 1.8 !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
    background: none !important;
}

.t2c-footer-section ul,
.footer-section ul,
footer ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
}

.t2c-footer-section ul li,
.footer-section ul li,
footer ul li {
    margin-bottom: 0.6rem !important;
    padding: 0 !important;
    list-style: none !important;
    background: none !important;
}

.t2c-footer-section ul li a,
.footer-section ul li a,
.footer-section a,
footer a {
    color: #666666 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    transition: color 0.3s ease !important;
    font-family: 'Inter', sans-serif !important;
    background: none !important;
    padding: 0 !important;
}

.t2c-footer-section ul li a:hover,
.footer-section ul li a:hover,
.footer-section a:hover,
footer a:hover {
    color: #c8102e !important;
    text-decoration: none !important;
}

.t2c-footer-bottom,
.footer-bottom {
    max-width: 1200px !important;
    margin: 2.5rem auto 0 !important;
    padding-top: 2rem !important;
    border-top: 1px solid #e0e0e0 !important;
    text-align: center !important;
    background: transparent !important;
}

.t2c-footer-contact,
.footer-contact {
    margin-bottom: 1rem !important;
    display: flex !important;
    justify-content: center !important;
    gap: 2rem !important;
    flex-wrap: wrap !important;
    background: none !important;
    padding: 0 !important;
}

.t2c-footer-contact span,
.footer-contact span {
    color: #666666 !important;
    font-size: 0.95rem !important;
    background: none !important;
    padding: 0 !important;
}

.t2c-footer-bottom p,
.footer-bottom p {
    color: #888888 !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
    background: none !important;
}

/* ============================================
   RESPONSIVE - Header & Footer Only
   ============================================ */
@media (max-width: 900px) {
    .t2c-nav-container,
    .nav-container,
    .header-content {
        padding: 0.75rem 1rem !important;
        flex-wrap: wrap !important;
        gap: 0.75rem !important;
    }

    .t2c-nav-links,
    .nav-links,
    header nav {
        gap: 1rem !important;
        order: 3 !important;
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    .t2c-nav-links a,
    .nav-links a,
    header nav a {
        font-size: 0.9rem !important;
    }

    .t2c-cta-button,
    .cta-button,
    .cta-btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
    }

    .t2c-footer-content,
    .footer-content {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }

    .t2c-footer-contact,
    .footer-contact {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
}

@media (max-width: 768px) {
    .t2c-nav-links,
    .nav-links,
    header nav {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block !important;
    }
}

@media (max-width: 600px) {
    .t2c-logo,
    .logo {
        font-size: 1.25rem !important;
    }

    .t2c-logo-chinese,
    .logo-chinese,
    .logo span {
        font-size: 1rem !important;
    }

    .t2c-footer,
    footer {
        padding: 3rem 1.5rem 1.5rem !important;
    }

    .t2c-footer-content,
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .t2c-header,
    .t2c-footer,
    header,
    footer {
        display: none !important;
    }
}
