/* 1. CSS Reset & Global Settings */
:root {
    --color-background: #f7f7f6;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-text-light: #6b7280;
    --color-border: #e6e9ed;
    --color-accent: #0ea5a4; /* muted teal */
    --color-accent-contrast: #ffffff;
    --color-footer-bg: #1a1a1a;

    /* Typography */
    --font-body: "Inter", "Noto Sans JP", sans-serif;
    --font-heading: "Inter", sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    --radius: 10px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s ease;
}

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

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

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

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

a {
    color: var(--color-text);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

/* 2. Utility Classes & Animations */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Fade In Up Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Header & Navigation */
.site-header {
    width: 100%;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(247, 247, 246, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding var(--transition-medium), background-color var(--transition-medium);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    padding: 0.75rem 2rem;
    background-color: rgba(247, 247, 246, 0.98);
    border-bottom: 1px solid var(--color-border);
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--color-text);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    color: var(--color-text);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-text);
    transition: width var(--transition-fast);
}

.main-nav a:hover::after {
    width: 100%;
}

.lang-switcher {
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-switcher .current-lang {
    color: var(--color-text);
}

.lang-switcher .other-lang {
    color: var(--color-text-light);
}

.lang-switcher .other-lang:hover {
    color: var(--color-text);
}

/* 4. Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: -80px;
    /* Offset header height */
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3)), url("../images/hero-background.jpg");
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: zoomSlow 20s infinite alternate;
}

@keyframes zoomSlow {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-content {
    color: #ffffff;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.9rem 2rem;
    background-color: var(--color-accent);
    color: var(--color-accent-contrast);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(14,165,164,0.12);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(14,165,164,0.16);
    opacity: 0.98;
}

/* 5. Featured Collection */
.featured-collection {
    padding: calc(var(--spacing-xl) - 2rem) 0;
}

.featured-collection h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.product-card {
    cursor: pointer;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem;
}

.product-image {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    background-color: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.product-info span {
    font-size: 1rem;
    color: var(--color-text-light);
    font-weight: 400;
}

/* 6. Brand Story (Split Layout) */
.brand-story {
    padding: 0;
    background-color: #f9f9f9;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 600px;
}

.split-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Interactive brand trigger (glare + subtle parallax) */
.brand-trigger {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0; /* remove rounded corners for brand image */
    transition: transform 420ms cubic-bezier(.2,.9,.2,1), box-shadow 420ms ease;
    --mx: 50%; --my: 40%; /* pointer position */
}

.brand-trigger img {
    transform-origin: center center;
    transition: transform 600ms cubic-bezier(.2,.9,.2,1), filter 420ms ease;
    will-change: transform, filter;
}

.brand-trigger .brand-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.18));
    opacity: 0;
    transition: opacity 320ms ease;
}

.brand-trigger .brand-glare {
    position: absolute;
    left: 0; top: 0; width: 100%; height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,0.16), rgba(255,255,255,0.06) 6%, transparent 25%);
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 220ms ease, background-position 160ms linear;
}

.brand-trigger.is-hover { box-shadow: 0 18px 40px rgba(2,6,8,0.18); transform: translateZ(0.01px) scale(1.015); }
.brand-trigger.is-hover img { transform: scale(1.06) translate3d(calc((var(--mx) - 50%) * -0.02), calc((var(--my) - 50%) * -0.02), 0); filter: saturate(1.06) contrast(1.03); }
.brand-trigger.is-hover .brand-overlay { opacity: 1; }
.brand-trigger.is-hover .brand-glare { opacity: 1; }

/* Keyboard focus styles */
.brand-trigger:focus { outline: 3px solid rgba(14,165,164,0.16); outline-offset: 4px; }

/* Mobile: simplify effects and use tap-friendly hit area */
@media (max-width: 768px) {
    .brand-trigger { transition: transform 240ms ease; }
    .brand-trigger img { transition: transform 320ms ease; }
    .brand-trigger .brand-glare { display: none; }
    .brand-trigger.is-hover img { transform: scale(1.02); }
}

.brand-content {
    padding: calc(var(--spacing-lg) + 1rem) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.brand-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.brand-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-light);
    max-width: 500px;
}

@media (max-width: 768px) {
    .brand-story {
        grid-template-columns: 1fr;
        grid-template-rows: 300px auto;
    }

    .split-image {
        height: 100%;
        /* Controlled by grid row */
    }

    .brand-content {
        padding: var(--spacing-lg) 2rem;
        align-items: center;
        text-align: center;
    }
}

/* 7. Footer */
.site-footer {
    padding: 3rem 1.5rem;
    background-color: var(--color-footer-bg);
    color: var(--color-accent-contrast);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content p {
    color: #888888;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: var(--color-accent-contrast);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-links a:hover {
    color: #888888;
}

/* 8. Responsive Design */
@media (max-width: 768px) {
    .site-header {
        padding: 0.85rem 1rem;
    }

    .main-nav {
        display: none;
        /* Simplified for this demo, normally would be a hamburger menu */
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* 9. Lookbook Section */
.lookbook-section {
    padding: var(--spacing-xl) 0;
    background-color: #ffffff;
}

.lookbook-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
}

.lookbook-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.lookbook-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-bottom: 125%;
    /* Aspect Ratio 4:5 Fallback */
}

.lookbook-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.lookbook-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .lookbook-grid {
        grid-template-columns: 1fr;
    }
}

/* Per-language font stacks (migrated from localized inline rules) */
html[lang="zh-CN"] body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html[lang="ja"] body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', '游ゴシック体', 'Yu Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}