/* LC Maison - The Luxury Framework */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,900;1,400&family=Inter:wght@100;300;400;700&display=swap');

:root {
    --bg: #0a0a0a;
    --text: #ffffff;
    --muted: #999999;
    --accent: #d4af37;
    --font-serif: "Playfair Display", serif;
    --font-sans: "Inter", sans-serif;
    --ease-silk: cubic-bezier(0.16, 1, 0.3, 1);
    --p-side: 10vw;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.02rem;
}

::-webkit-scrollbar { display: none; }

/* Bilingual Reveal System */
.bilingual-link, .bilingual-text {
    position: relative;
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.bilingual-inner {
    display: block;
    transition: transform 0.6s var(--ease-silk);
}

.en { display: block; }
.zh {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    font-family: "PingFang TC", "Microsoft JhengHei", sans-serif;
    font-weight: 400;
    white-space: nowrap;
}

.bilingual-link:hover .bilingual-inner,
.bilingual-text:hover .bilingual-inner {
    transform: translateY(-100%);
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 50px var(--p-side);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
}

.brand {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: 0.4rem;
    text-decoration: none;
    color: #fff;
    font-weight: 400;
    z-index: 1002;
    position: relative;
}

.nav-links { display: flex; gap: 40px; align-items: center; }

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    transition: 0.4s;
    opacity: 0.7;
}

.nav-links .zh { font-size: 0.7rem; letter-spacing: 0.1rem; }

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 8px;
    z-index: 1002;
    position: relative;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 1px;
    background: #fff;
    transition: 0.45s var(--ease-silk);
    transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Section Base */
section {
    width: 100%;
    min-height: 100vh;
    padding: 150px var(--p-side);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Typography */
.maison-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 40px;
    font-weight: 400;
}

.maison-body {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--muted);
    font-weight: 300;
}

.cta-btn {
    display: inline-block;
    padding: 20px 60px;
    border: 1px solid #fff;
    text-decoration: none;
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.4rem;
    text-transform: uppercase;
    transition: 0.5s var(--ease-silk);
}
.cta-btn:hover { background: #fff; color: #000; }

/* Animations */
.reveal-maison {
    opacity: 0;
    transform: translateY(40px);
    transition: 1.8s var(--ease-silk);
}
.reveal-maison.is-visible { opacity: 1; transform: translateY(0); }

footer {
    padding: 100px var(--p-side);
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Index: Maison Grid */
.maison-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 80px; align-items: center; }
.maison-visual {
    width: 100%;
    height: 70vh;
    background: url('https://images.unsplash.com/photo-1552519507-da3b142c6e3d?q=80&w=2400') center/cover;
    position: relative;
}
.maison-visual::after {
    content: 'LC';
    position: absolute;
    bottom: -30px;
    right: -30px;
    font-family: var(--font-serif);
    font-size: 8rem;
    opacity: 0.05;
    pointer-events: none;
}

/* =====================
   Tablet: 768px ~ 1024px
   ===================== */
@media (max-width: 1024px) {
    :root { --p-side: 6vw; }
    .maison-title { font-size: 3rem; }
    .maison-grid { gap: 50px; }
}

/* =====================
   Mobile: ≤ 768px
   ===================== */
@media (max-width: 768px) {
    :root { --p-side: 24px; }

    /* Nav */
    nav {
        padding: 26px var(--p-side);
        mix-blend-mode: normal;
        background: rgba(10,10,10,0.95);
    }
    .brand { font-size: 1.2rem; }
    .nav-hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: #0a0a0a;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 50px;
        transform: translateX(100%);
        transition: transform 0.6s var(--ease-silk);
        z-index: 1001;
        mix-blend-mode: normal;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a { font-size: 1.1rem; letter-spacing: 0.3rem; opacity: 1; }
    .nav-links .bilingual-link { overflow: visible; }
    .nav-links .zh { white-space: nowrap; }

    /* Section */
    section {
        padding: 110px var(--p-side) 70px;
        min-height: 100svh;
    }

    /* Typography */
    .maison-title { font-size: 2.2rem; margin-bottom: 25px; }
    .maison-body { font-size: 1rem; line-height: 1.75; }
    .cta-btn { padding: 15px 35px; font-size: 0.72rem; letter-spacing: 0.25rem; }

    /* Bilingual: prevent body overflow */
    .zh { white-space: normal; }

    /* Index Grid */
    .maison-grid { grid-template-columns: 1fr; gap: 40px; }
    .maison-visual { height: 55vw; min-height: 220px; }

    footer { padding: 60px var(--p-side); }
}

/* =====================
   Small phones: ≤ 390px
   ===================== */
@media (max-width: 390px) {
    :root { --p-side: 18px; }
    .maison-title { font-size: 1.8rem; }
    section { padding: 100px var(--p-side) 60px; }
    .cta-btn { padding: 14px 28px; }
}
