/* 
* High-End Fashion Showcase Global Styles 
* Design Philosophy: Minimalist, Modern, Artistic
* Copyright (c) 2025 HAISNAP
*/

/* 1. Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,400&family=Noto+Sans+SC:wght@300;400;500&family=Noto+Serif+SC:wght@200;300;400&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');

/* 2. CSS Variables */
:root {
    /* Colors */
    --c-white: #FFFFFF;
    --c-off-white: #F5F5F5;
    --c-black: #1A1A1A;
    --c-gray: #888888;
    --c-clay: #D4A8A8;
    --c-blue: #7A9EB1;

    /* Fonts */
    --f-heading-en: 'Playfair Display', serif;
    --f-heading-cn: 'Noto Serif SC', serif;
    --f-body: 'Noto Sans SC', sans-serif;

    /* Spacing & Layout */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --container-width: 1400px;
    --nav-height: 80px;

    /* Transitions */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration-base: 0.4s;
}

/* 3. Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-base) ease;
}

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--f-heading-cn);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

.en-font {
    font-family: var(--f-heading-en);
}

.text-light {
    font-weight: 300;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--space-lg);
    letter-spacing: 0.05em;
}

.section-subtitle {
    font-family: var(--f-heading-en);
    font-style: italic;
    color: var(--c-gray);
    display: block;
    font-size: 1.2rem;
    margin-top: var(--space-xs);
}

/* 4. Layout Components */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-md);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.logo {
    font-family: var(--f-heading-en);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

nav ul {
    display: flex;
    gap: var(--space-lg);
}

nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 4px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--c-black);
    transition: width var(--duration-base) var(--ease-out);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.bag-icon {
    font-size: 1.2rem;
    cursor: default;
    opacity: 0.8;
}

/* Footer */
footer {
    padding: var(--space-lg) 0;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.8rem;
    color: var(--c-gray);
    font-family: var(--f-body);
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* 5. Page Specific Styles */

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.9);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--c-white);
    mix-blend-mode: difference; /* Ensure readability */
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: var(--space-sm);
    font-family: var(--f-heading-cn);
    letter-spacing: 0.2em;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.btn-link {
    display: inline-block;
    color: var(--c-white);
    border-bottom: 1px solid var(--c-white);
    padding-bottom: 4px;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: opacity 0.3s;
}

.btn-link:hover {
    opacity: 0.7;
}

/* Section: Collections Preview (Index) */
.section-preview {
    padding: var(--space-xl) 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.card-hover {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.card-hover img {
    width: 100%;
    height: 100%;
    transition: transform 0.8s var(--ease-out);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-text {
    color: var(--c-black);
    font-family: var(--f-heading-cn);
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

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

.card-hover:hover .card-overlay {
    opacity: 1;
}

.card-hover:hover .card-text {
    transform: translateY(0);
}

/* Section: Philosophy (Index) */
.section-philosophy {
    padding: var(--space-xl) 0;
    background-color: var(--c-off-white);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.philosophy-text h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.philosophy-text p {
    color: #444;
    font-size: 1.05rem;
    max-width: 500px;
    text-align: justify;
}

/* Page: Collections */
.page-header {
    padding: 180px 0 80px;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.page-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--c-gray);
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns for symmetry */
    gap: 80px 40px;
    padding-bottom: var(--space-xl);
}

.look-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.look-main-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.look-details {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.look-detail-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    opacity: 0.8;
}

.look-info {
    margin-top: var(--space-sm);
}

.look-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--c-black);
}

.look-meta {
    font-size: 0.85rem;
    color: var(--c-gray);
    display: flex;
    gap: 15px;
}

.look-meta span::before {
    content: '·';
    margin-right: 5px;
    font-weight: bold;
}
.look-meta span:first-child::before {
    content: '';
    margin-right: 0;
}

/* Page: Style Guide */
.style-section {
    margin-bottom: var(--space-xl);
}

.style-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-lg);
    align-items: start;
}

.style-grid.reverse {
    grid-template-columns: 0.8fr 1.2fr;
    direction: rtl;
}

.style-grid.reverse .style-content {
    direction: ltr;
}

.style-img-group {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-sm);
}

.style-content {
    padding-top: var(--space-lg);
}

.suggestion-box {
    margin-top: var(--space-md);
    padding: var(--space-md);
    border-left: 2px solid var(--c-clay);
    background: rgba(212, 168, 168, 0.05);
}

.suggestion-box h4 {
    color: var(--c-clay);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Page: Craftsmanship */
.craft-section {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    overflow: hidden;
    background: var(--c-white);
}

.craft-section:nth-child(even) {
    background: var(--c-off-white);
}

.craft-content {
    width: 50%;
    padding: 0 var(--space-lg);
    z-index: 2;
}

.craft-image {
    width: 50%;
    height: 100%;
    position: relative;
}

.craft-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.craft-num {
    font-family: var(--f-heading-en);
    font-size: 5rem;
    color: rgba(0,0,0,0.05);
    line-height: 1;
    margin-bottom: -20px;
    display: block;
}

/* 6. Utility & Animation */
.fade-in-up {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }

/* 7. Responsive Design */
@media (max-width: 1024px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 5rem;
    }
    .hero h1 { font-size: 3rem; }
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    .craft-section {
        flex-direction: column;
        height: auto;
        padding: var(--space-xl) 0;
    }
    .craft-content, .craft-image {
        width: 100%;
        height: 50vh;
    }
    .craft-content { padding: var(--space-md); order: 2; }
    .craft-image { order: 1; }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
        --space-md: 1.5rem;
    }

    header {
        padding: 0 var(--space-sm);
    }
    
    nav ul {
        display: none; /* Simplify for MVP, could use hamburger in full ver */
    }
    
    /* Mobile Nav Fallback: Horizontal scroll or simplified */
    nav ul.mobile-visible {
        display: flex;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-sm);
        border-bottom: 1px solid #eee;
    }

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

    .collection-grid {
        grid-template-columns: 1fr;
    }

    .style-grid, .style-grid.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .hero h1 { font-size: 2.2rem; }
    .section-title { font-size: 1.6rem; }
}