/* Google Fonts - Cormorant Garamond (Serif Headings) & Inter (Sans-serif Body) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@200;300;400;500;600&display=swap');

:root {
    --bg-base: #F5F2ED;       /* Warm broken white / linen */
    --bg-card: #E8E2D6;       /* Stone beige */
    --text-main: #0A0A0A;     /* Pure black */
    --text-muted: #3D362E;    /* Taupe / dark brown */
    --gold: #C9A876;          /* Fine gold accent */
    --gold-hover: #B2915F;
    --border-light: rgba(61, 54, 46, 0.08);
    --border-gold: rgba(201, 168, 118, 0.25);
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', sans-serif;
    --transition-smooth: all 0.8s cubic-bezier(0.25, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

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

html {
    scroll-behavior: initial; /* Lenis handles smooth scrolling, initial is required */
    overflow-x: hidden;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.3px;
}

/* Subtle Linen Texture Background Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.015;
    z-index: 9998;
    pointer-events: none;
    background-image: radial-gradient(var(--text-muted) 25%, transparent 25%),
                      radial-gradient(var(--text-muted) 25%, transparent 25%);
    background-size: 4px 4px;
    background-position: 0 0, 2px 2px;
}

/* Custom Scrollbar for Luxury Experience */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: rgba(61, 54, 46, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(61, 54, 46, 0.4);
}

/* Preloader Screen */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-base);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1.5s cubic-bezier(0.25, 1, 0.3, 1);
}

.preloader-content {
    text-align: center;
}

.preloader-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 12px;
    color: var(--text-main);
    opacity: 0;
    transform: translateY(20px);
    animation: preloaderFade 2.6s cubic-bezier(0.25, 1, 0.3, 1) forwards;
}

.preloader-line {
    width: 80px;
    height: 1px;
    background-color: var(--gold);
    margin: 1.5rem auto 0 auto;
    opacity: 0;
    transform: scaleX(0);
    animation: preloaderLineWidth 2.6s cubic-bezier(0.25, 1, 0.3, 1) forwards;
}

@keyframes preloaderFade {
    0% { opacity: 0; transform: translateY(20px); }
    30% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-30px); }
}

@keyframes preloaderLineWidth {
    0% { opacity: 0; transform: scaleX(0); }
    30% { opacity: 1; transform: scaleX(1); }
    80% { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(0.5); }
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--text-main);
}

em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
}

.section-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: var(--gold);
    margin-bottom: 1.5rem;
    display: block;
}

/* Header & Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.2rem 6rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(245, 242, 237, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
    transition: var(--transition-smooth);
}

.nav-brand {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 5px;
    text-decoration: none;
    color: var(--text-main);
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-brand span {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
}

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

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

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

/* Minimal Luxury Button */
.btn-luxury {
    display: inline-block;
    padding: 1.1rem 3.2rem;
    border: 1px solid var(--text-muted);
    background: transparent;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-luxury:hover {
    background-color: var(--text-muted);
    color: #FFFFFF;
    border-color: var(--text-muted);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

/* 3D Perspective Containers */
.reveal-3d {
    perspective: 1200px;
    transform-style: preserve-3d;
}

.reveal-3d-child {
    will-change: transform, opacity;
}

/* Parallax Wrappers */
.parallax-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.parallax-img {
    height: 130%;
    width: 100%;
    object-fit: cover;
    position: absolute;
    top: -15%;
    left: 0;
    will-change: transform;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?q=80&w=2000') no-repeat center center;
    background-size: cover;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.08); /* Sophisticated dark tint */
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    z-index: 5;
    color: #FFFFFF;
    padding: 0 2rem;
}

.hero-content .section-subtitle {
    color: var(--gold);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 3rem;
    letter-spacing: 2px;
    color: #FFFFFF;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-title em {
    color: #FFFFFF;
}

.hero .btn-luxury {
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.hero .btn-luxury:hover {
    background-color: #FFFFFF;
    color: var(--text-main);
    border-color: #FFFFFF;
}

/* Animated Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 0.65rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.scroll-down:hover {
    opacity: 1;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 25px;
    background: #FFFFFF;
    animation: scrollIndicator 2.2s cubic-bezier(0.25, 1, 0.3, 1) infinite;
}

@keyframes scrollIndicator {
    0% { transform: translateY(-100%); }
    60% { transform: translateY(240%); }
    100% { transform: translateY(240%); }
}

/* Collections Grid Section (Zara Home Style Asymmetric Grid) */
.collections-section {
    padding: 9rem 6rem;
    background-color: var(--bg-base);
}

.section-header {
    text-align: center;
    margin-bottom: 8rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: 300;
    line-height: 1.2;
}

.collections-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 8rem;
    align-items: stretch;
}

.grid-col-left {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.grid-col-right {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    padding-top: 10rem; /* Asymmetric offset */
}

/* 3D Tilt Card Structure */
.tilt-card {
    background-color: transparent;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1500px;
}

.card-img-container {
    width: 100%;
    height: 520px;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    transform-style: preserve-3d;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.3, 1);
    will-change: transform;
}

.tilt-card:hover .card-img-container img {
    transform: scale(1.03);
}

.card-details {
    margin-top: 2rem;
    transform: translateZ(30px); /* 3D pop effect */
    transform-style: preserve-3d;
}

.card-details span {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    display: block;
    margin-bottom: 0.5rem;
}

.card-details h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.card-details p {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}

/* Horizontal Scroll Featured Products Section */
.horizontal-scroll-section {
    position: relative;
    overflow: hidden;
    height: 100vh;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.horizontal-scroll-container {
    display: flex;
    height: 100vh;
    align-items: center;
    padding: 0 8vw;
    width: max-content;
}

.horizontal-scroll-intro {
    width: 320px;
    margin-right: 8rem;
    flex-shrink: 0;
}

.horizontal-scroll-intro h2 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.horizontal-scroll-intro p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.products-strip {
    display: flex;
    gap: 8rem;
    flex-wrap: nowrap;
}

.product-gallery-card {
    width: 380px;
    flex-shrink: 0;
    transform-style: preserve-3d;
    perspective: 1500px;
}

.product-gallery-card .card-img-container {
    height: 460px;
}

/* Heritage / Brand Story Section */
.heritage-section {
    padding: 9rem 6rem;
    background: var(--bg-base);
}

.heritage-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 8rem;
    align-items: center;
}

.heritage-content {
    max-width: 580px;
}

.heritage-content h2 {
    font-family: var(--font-serif);
    font-size: 3.6rem;
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 3.5rem;
}

.heritage-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.95;
    margin-bottom: 2.2rem;
}

.heritage-img-container {
    width: 100%;
    height: 640px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

/* B2B Sourcing Inquiry Form Section */
.contact-section {
    padding: 9rem 6rem;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-light);
}

.contact-box {
    max-width: 820px;
    margin: 0 auto;
    background: transparent;
    padding: 0;
}

.contact-box h2 {
    font-family: var(--font-serif);
    font-size: 3.4rem;
    font-weight: 300;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.contact-box p {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 6rem;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.input-luxury {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(61, 54, 46, 0.2);
    padding: 1.2rem 0;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-main);
    outline: none;
    transition: var(--transition-fast);
}

.input-luxury::placeholder {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.75;
}

.input-luxury:focus {
    border-bottom-color: var(--text-main);
}

.textarea-luxury {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(61, 54, 46, 0.2);
    padding: 1.2rem 0;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-main);
    outline: none;
    resize: none;
    height: 90px;
    transition: var(--transition-fast);
}

.textarea-luxury::placeholder {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.75;
}

.textarea-luxury:focus {
    border-bottom-color: var(--text-main);
}

.contact-form .btn-luxury {
    width: 100%;
    margin-top: 2rem;
}

/* Footer Section */
.footer {
    background-color: var(--text-main); /* Deep solid tone, contrast highlight */
    color: var(--bg-base);
    padding: 8rem 6rem 4rem 6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.7fr 1.3fr;
    gap: 6rem;
    margin-bottom: 6rem;
}

.footer-col h4 {
    color: #FFFFFF;
    font-family: var(--font-serif);
    font-size: 1.6rem;
    letter-spacing: 4px;
    margin-bottom: 1.8rem;
    font-weight: 400;
}

.footer-col h4 span {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    display: block;
    letter-spacing: 5px;
    color: var(--gold);
    text-transform: uppercase;
    margin-top: 4px;
}

.footer-desc {
    font-size: 0.8rem;
    color: rgba(245, 242, 237, 0.7);
    line-height: 1.9;
    max-width: 280px;
}

.footer-col h5 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #FFFFFF;
    margin-bottom: 1.8rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.footer-links a {
    color: rgba(245, 242, 237, 0.7);
    text-decoration: none;
    font-size: 0.75rem;
    transition: var(--transition-fast);
    letter-spacing: 0.5px;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: rgba(245, 242, 237, 0.5);
    letter-spacing: 1px;
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
    .navbar {
        padding: 2rem 4rem;
    }
    .collections-section, .heritage-section, .contact-section {
        padding: 10rem 4rem;
    }
    .collections-grid, .heritage-grid {
        grid-template-columns: 1fr;
        gap: 6rem;
    }
    .grid-col-right {
        padding-top: 0;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
}

@media (max-width: 900px) {
    /* Convert horizontal scroll to normal vertical grid scrolling on tablet/mobile for smooth flow */
    .horizontal-scroll-section {
        height: auto;
        padding: 10rem 4rem;
    }
    .horizontal-scroll-container {
        flex-direction: column;
        height: auto;
        padding: 0;
        width: 100%;
        align-items: stretch;
    }
    .horizontal-scroll-intro {
        width: 100%;
        margin-right: 0;
        margin-bottom: 6rem;
    }
    .products-strip {
        flex-direction: column;
        gap: 6rem;
        width: 100%;
    }
    .product-gallery-card {
        width: 100%;
    }
    .product-gallery-card .card-img-container {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem 2rem;
    }
    .nav-menu {
        display: none; /* Minimalist mobile hides nav items for raw layout */
    }
    .hero-title {
        font-size: 3.2rem;
    }
    .collections-section, .heritage-section, .contact-section {
        padding: 8rem 2rem;
    }
    .contact-box {
        padding: 0;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 4.5rem;
    }
    .footer {
        padding: 6rem 2rem 3rem 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}
