/* Main CSS - Leimei Group (Luxury Pivot) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    /* Colors - Luxury Noir & Gold */
    --bg-deep: #080808;
    --bg-card: rgba(20, 20, 20, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.02);

    --text-primary: #F2F0E9;
    /* Cream White */
    --text-secondary: rgba(242, 240, 233, 0.7);
    --text-tertiary: rgba(242, 240, 233, 0.4);

    --accent-gold: #D4AF37;
    --accent-pale-gold: #F3E5AB;
    --accent-gradient: linear-gradient(135deg, #D4AF37 0%, #F3E5AB 50%, #D4AF37 100%);

    /* Typography */
    --font-sans: 'SF Pro Display', 'PingFang SC', 'Heiti SC', 'Microsoft YaHei', 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', 'Songti SC', 'STSong', serif;
    /* For Editorial Headers */

    /* Spacing & Layout */
    --container-width: 1400px;
    --border-radius: 4px;
    /* Sharper, more editorial */

    /* Effects */
    --glass-blur: blur(20px);
    --glass-border: 1px solid rgba(212, 175, 55, 0.15);
    /* Gold outline */
    --glow-shadow: 0 0 60px rgba(212, 175, 55, 0.1);
}

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    selection-background-color: var(--accent-gold);
    selection-color: #000;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Typography Overhaul */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    line-height: 1.1;
    letter-spacing: -0.01em;
    font-weight: 400;
}

.text-hero {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 9vw, 8rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1;
}

.text-subhero {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    max-width: 500px;
    margin: 0 auto;
    border-top: 1px solid var(--accent-gold);
    padding-top: 2rem;
}

.section-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.bg-texture-chinese {
    position: relative;
}
.bg-texture-chinese::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/fabric_texture.png');
    background-size: 300px;
    opacity: 0.15;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 10rem 0;
    position: relative;
}

/* Navbar - Minimalist */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(8, 8, 8, 0.9);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 4rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
}

/* Hero Section - Editorial */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: contrast(1.1) brightness(0.8);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(8, 8, 8, 1) 100%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 2rem;
    animation: fadeUp 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Bento Grid Layout - Asymmetrical Editorial */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(350px, auto);
    gap: 2rem;
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-item:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--glow-shadow);
    transform: translateY(-5px);
}

/* Span Utilities */
.span-4 {
    grid-column: span 4;
}

.span-6 {
    grid-column: span 6;
}

.span-8 {
    grid-column: span 8;
}

.span-12 {
    grid-column: span 12;
}

@media (max-width: 900px) {

    .span-4,
    .span-6,
    .span-8 {
        grid-column: span 12;
    }
}

.bento-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    font-style: italic;
}

.bento-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 400px;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.4s ease;
    background: transparent;
}

.btn:hover {
    background: var(--accent-gold);
    color: #000;
}

.btn-primary {
    background: var(--accent-gold);
    color: #000;
}

.btn-primary:hover {
    background: #fff;
    border-color: #fff;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8rem 0 4rem;
    margin-top: 6rem;
    background: #000;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand p {
    color: var(--text-tertiary);
    margin-top: 2rem;
    max-width: 300px;
    font-family: var(--font-serif);
    font-style: italic;
}

.footer-col h4 {
    color: var(--accent-gold);
    margin-bottom: 2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

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

.footer-col li {
    margin-bottom: 1rem;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}