/* ==========================================================================
   CHEROQEE Import & Export Trading Co. - Core Design System & Main Styles
   ========================================================================== */

:root {
    --gold: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dark: #B8860B;
    --gold-gradient: linear-gradient(135deg, #E6CA65 0%, #D4AF37 50%, #997A15 100%);
    --gold-glow: 0 0 25px rgba(212, 175, 55, 0.35);
    --black: #07101e;
    --black-light: #0d1a2d;
    --gray-dark: #122138;
    --gray-card: #0b182b;
    --light: #FFFFFF;
    --light-gray: #D1D5DB;
    --border-color: rgba(212, 175, 55, 0.28);
    --glass-bg: rgba(11, 25, 46, 0.94);
    --glass-border: rgba(212, 175, 55, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 35px rgba(0, 0, 0, 0.65);
    --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.22);
    --border-radius: 14px;
    --border-radius-sm: 8px;
    --max-width: 1240px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    max-width: 100vw;
    overflow-x: hidden;
}

section, [id] {
    scroll-margin-top: 90px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--black);
    color: var(--light);
    line-height: 1.6;
    max-width: 100vw;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--light);
    letter-spacing: 0.5px;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Top Announcement & Contact Strip
   ========================================================================== */

.top-bar {
    background: #080808;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    padding: 6px 0;
    font-size: 0.8rem;
    color: #AAA;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-contact span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-contact i {
    color: var(--gold);
    font-size: 0.82rem;
}

.top-bar-tagline .badge {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-light);
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    font-weight: 600;
    font-size: 0.76rem;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   Header & Navigation Architecture
   ========================================================================== */

.header {
    background: var(--glass-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 24px;
    width: 100%;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    min-width: 0;
    flex: 1 1 auto;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.logo img {
    height: 72px;
    width: auto;
    max-width: 72px;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 4px 14px rgba(212, 175, 55, 0.5));
}

.logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 5px 20px rgba(212, 175, 55, 0.65));
}

.company-names {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.company-name-en {
    font-size: clamp(0.72rem, 1.6vw + 0.3rem, 1.15rem);
    font-weight: 800;
    letter-spacing: 0.5px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    line-height: 1.2;
    word-break: normal;
    overflow-wrap: break-word;
}

.company-name-cn {
    font-size: clamp(0.65rem, 1vw + 0.2rem, 0.86rem);
    letter-spacing: 0.8px;
    color: var(--light-gray);
    margin-top: 2px;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 500;
}

/* Navigation Styles */
.navbar {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 12, 24, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1005;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.nav-open {
    overflow: hidden !important;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1010;
    width: 44px;
    height: 44px;
    position: relative;
    flex-shrink: 0;
}

.hamburger-box {
    width: 28px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
}

.hamburger-inner, 
.hamburger-inner::before, 
.hamburger-inner::after {
    background-color: var(--gold);
    height: 2.5px;
    width: 28px;
    display: block;
    content: '';
    position: absolute;
    border-radius: 4px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, background-color 0.3s ease;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before {
    top: -8px;
    left: 0;
}

.hamburger-inner::after {
    top: 8px;
    left: 0;
}

/* Symmetrical X close state */
.hamburger.active .hamburger-inner {
    background-color: transparent !important;
}

.hamburger.active .hamburger-inner::before {
    top: 50%;
    margin-top: -1.25px;
    transform: rotate(45deg);
    transform-origin: center center;
    background-color: var(--gold-light);
}

.hamburger.active .hamburger-inner::after {
    top: 50%;
    margin-top: -1.25px;
    transform: rotate(-45deg);
    transform-origin: center center;
    background-color: var(--gold-light);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    position: relative;
    display: inline-block;
    letter-spacing: 0.3px;
}

.nav-links a:hover, 
.nav-links a:focus {
    color: var(--gold-light);
    background: rgba(212, 175, 55, 0.1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 60%;
}

.nav-links a[aria-current="page"] {
    color: var(--gold);
    font-weight: 600;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.nav-links a[aria-current="page"]::after {
    width: 70%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    height: calc(85vh - 80px);
    min-height: 480px;
    background: linear-gradient(rgba(14, 14, 14, 0.72), rgba(14, 14, 14, 0.92)), 
                url('../images/brand/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold-gradient);
    opacity: 0.4;
}

.hero-overlay {
    max-width: 900px;
    padding: 0 24px;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.25;
    margin-bottom: 24px;
    color: var(--gold);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: var(--light-gray);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Upgraded 4-Column Corporate Footer
   ========================================================================== */

footer {
    background: linear-gradient(180deg, #070707 0%, #0D0D0D 100%);
    padding: 0 0 24px;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.footer-accent-line {
    height: 3px;
    background: var(--gold-gradient);
    width: 100%;
}

.footer-content {
    padding-top: 55px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 45px;
}

.footer-col h3 {
    color: var(--gold);
    font-size: 1.15rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 0.5px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 42px;
    height: 2px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

.brand-col .footer-logo-block {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    text-decoration: none;
}

.brand-col .footer-logo-img {
    height: 66px;
    width: 66px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 3px 10px rgba(212, 175, 55, 0.4));
}

.brand-col .footer-logo-text {
    display: flex;
    flex-direction: column;
}

.brand-col .footer-company-name-en {
    font-weight: 700;
    font-size: 0.96rem;
    letter-spacing: 0.6px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
    text-transform: uppercase;
}

.brand-col .footer-company-name-cn {
    font-size: 0.8rem;
    color: var(--light-gray);
    margin-top: 3px;
    font-family: 'Noto Sans SC', sans-serif;
}

.brand-col .footer-desc {
    color: #BBB;
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.footer-badge {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.22);
    color: var(--gold-light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.footer-badge:hover {
    background: rgba(212, 175, 55, 0.16);
    border-color: var(--gold);
}

/* Address Columns Styling */
.address-col .cn-title {
    color: var(--gold-light);
    font-size: 0.9rem;
    margin-bottom: 14px;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 500;
}

.address-col address {
    font-style: normal;
}

.address-col address p {
    color: #CCC;
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.address-col address p i {
    color: var(--gold);
    font-size: 0.92rem;
    margin-top: 4px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.address-col address p a {
    color: #CCC;
    text-decoration: none;
    transition: var(--transition);
}

.address-col address p a:hover {
    color: var(--gold-light);
}

/* Footer Bottom Bar */
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a, .social-icons button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--gray-dark);
    border-radius: 50%;
    color: var(--gold);
    font-size: 15px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-decoration: none;
    cursor: pointer;
    padding: 0;
}

.social-icons a:hover, .social-icons button:hover {
    background: var(--gold-gradient);
    color: var(--black);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

.footer-bottom p.copyright {
    color: #999;
    font-size: 0.85rem;
    margin: 0;
}

/* Back to Top Floating Button */

/* Back to Top Floating Button */
.back-to-top {
    background: var(--gray-dark);
    border: 1px solid var(--border-color);
    color: var(--gold);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.back-to-top:hover {
    background: var(--gold-gradient);
    color: var(--black);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   Responsive Design Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .brand-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .top-bar-inner {
        justify-content: center;
        text-align: center;
    }
    .header-inner {
        padding: 8px 16px;
        gap: 12px;
    }
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(320px, 85vw);
        flex-direction: column;
        align-items: flex-start;
        padding: 85px 24px 30px;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
        background: var(--black-light);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.85);
        border-left: 1px solid var(--border-color);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        gap: 8px;
        z-index: 1008;
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
    }

    .nav-links::before {
        content: 'NAVIGATION';
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 2px;
        color: var(--gold);
        text-transform: uppercase;
        margin-bottom: 10px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        display: block;
    }
    
    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        width: 100%;
        padding: 12px 16px;
        font-size: 1.02rem;
    }
}

@media (max-width: 600px) {
    .top-bar-contact {
        flex-direction: column;
        gap: 4px;
    }
    .header-inner {
        padding: 8px 12px;
        gap: 8px;
    }
    .logo img {
        height: 44px;
        max-width: 44px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .brand-col {
        grid-column: auto;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
