/* ==========================================================================
   CSS Variables & Base Setup (Minimalist Premium Aesthetic)
   ========================================================================== */
   :root {
    /* Colors */
    --clr-bg: #FFFFFF;
    --clr-bg-offwhite: #FAFAFA;
    --clr-bg-cream: #F5F3EC;
    --clr-text-main: #1A1A1A;
    --clr-text-muted: #666666;
    --clr-accent: #E8E3Db; /* Very subtle champagne/grey */
    --clr-border: #E5E5E5;
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', 'Prompt', sans-serif;
    
    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-xxl: 8rem;

    /* Transitions */
    --trans-slow: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    --trans-med: 0.4s ease;
}

html {
    scroll-behavior: smooth;
}

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

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

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

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

p {
    margin-bottom: var(--space-md);
    color: var(--clr-text-muted);
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: 800px;
}

.text-center { text-align: center; }
.py-section { padding: var(--space-xxl) 0; }
.mb-xl { margin-bottom: var(--space-xl); }
.bg-offwhite { background-color: var(--clr-bg-offwhite); }

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 0.05em;
    color: var(--clr-text-main);
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--clr-text-muted);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: var(--space-lg) 0;
    transition: var(--trans-med);
    /* mix-blend-mode for readability on light/dark backgrounds */
    mix-blend-mode: difference;
    color: white; 
}

.header.scrolled {
    padding: var(--space-md) 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    mix-blend-mode: normal;
    color: var(--clr-text-main);
    border-bottom: 1px solid var(--clr-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    font-weight: 500;
}

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: var(--trans-med);
}

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

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    margin-left: var(--space-md);
}

.lang-btn {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--trans-med);
}

.lang-btn.active {
    opacity: 1;
    font-weight: 500;
}

.lang-btn:hover {
    opacity: 0.8;
}

.lang-sep {
    opacity: 0.3;
}

/* Responsive Header */
@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        gap: var(--space-sm);
        padding: 0 var(--space-md);
    }
    
    .logo {
        margin-bottom: 5px;
    }
    
    .nav {
        width: 100%;
        justify-content: space-between;
        gap: var(--space-sm);
    }
    
    .nav-link {
        font-size: 0.75rem;
    }
    
    .lang-toggle {
        margin-left: 0;
        font-size: 0.75rem;
    }
}

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

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-position: center;
    /* Subtle zoom effect initialized */
    transform: scale(1.05); 
    animation: slowZoom 20s infinite alternate linear;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
}

.hero-title {
    font-size: clamp(4rem, 10vw, 8rem);
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.2rem, 2vw, 2rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
}

.hero-btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    transition: var(--trans-med);
    cursor: pointer;
    margin-top: var(--space-md);
}

.hero-btn:hover {
    background-color: white;
    color: var(--clr-text-main);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.5);
    margin-top: var(--space-sm);
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: white;
    animation: scrollLine 2s infinite cubic-bezier(0.77, 0, 0.175, 1);
}

/* ==========================================================================
   Story Section
   ========================================================================== */
.story-content {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--clr-text-muted);
}

.story-content p {
    margin-bottom: var(--space-lg);
}

.story-quote {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--clr-text-main);
    font-style: italic;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--clr-border);
}

/* ==========================================================================
   Collection Grid
   ========================================================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
}

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

.product-card {
    cursor: pointer;
}

.product-image-wrapper {
    aspect-ratio: 4/5;
    overflow: hidden;
    background-color: var(--clr-bg);
    margin-bottom: var(--space-md);
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--trans-slow);
}

/* Fallback generic image style if none provided */
.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--clr-bg-cream);
    color: var(--clr-text-muted);
    font-family: var(--font-serif);
    font-style: italic;
    transition: transform var(--trans-slow);
}

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

.product-info {
    text-align: center;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    transition: color var(--trans-med);
}

.product-family {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clr-text-muted);
}

.product-card:hover .product-title {
    color: #000;
}

/* ==========================================================================
   Modal
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.4s, opacity 0.4s ease;
}

.modal.active {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    z-index: 1001;
    background: var(--clr-bg);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--clr-text-muted);
    z-index: 2;
    transition: color var(--trans-med);
}

.modal-close:hover {
    color: var(--clr-text-main);
}

.modal-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

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

.modal-image-wrapper {
    background-color: var(--clr-bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.modal-image-wrapper img {
    height: 100%;
    max-height: 500px;
    object-fit: contain;
}

.modal-info {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-title {
    font-size: 2.5rem;
    margin-bottom: 0;
}

.modal-family {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    margin-bottom: var(--space-sm);
}

.modal-concept {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--clr-text-main);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: var(--space-md);
}

.notes-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.note-group h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.2rem;
    color: var(--clr-text-main);
}

.note-items {
    font-weight: 500;
    margin-bottom: 0.2rem;
    color: var(--clr-text-main);
    font-size: 1rem;
}

.note-desc {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.extra-info {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--clr-border);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.info-group h4 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-group p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: var(--space-xl) 0 var(--space-lg);
    background-color: var(--clr-text-main);
    color: white;
}

.footer-logo {
    font-size: 2rem;
    letter-spacing: 0.2em;
    color: white;
    margin-bottom: var(--space-lg);
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.qr-code-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.qr-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: var(--space-sm);
    background-color: white; /* In case the QR has transparency */
    padding: 10px;
}

.qr-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-sans);
}

.social-link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--trans-med);
}

.social-link:hover {
    color: white;
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes slowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 1s ease forwards;
}

.fade-up-delay-1 { animation-delay: 0.3s; }
.fade-up-delay-2 { animation-delay: 0.6s; }
.fade-up-delay-3 { animation-delay: 0.9s; }
.fade-up-delay-4 { animation-delay: 1.2s; }

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

/* Intersection Observer Classes */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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