/**
 * MAISON — Luxury Fashion House
 * Louis Vuitton inspired design
 */

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    --bg: #f5f5f5;
    --bg-dark: #1a1a1a;
    --text: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #666666;
    --accent: #8b7355;
    --border: rgba(0, 0, 0, 0.1);
    --border-light: rgba(255, 255, 255, 0.2);
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

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

/* Back to Portfolio Button */
.back-to-portfolio {
    position: fixed;
    top: 80px;
    left: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--text);
    color: var(--bg);
    font-size: 13px;
    font-weight: 500;
    border-radius: 100px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.back-to-portfolio:hover {
    background: #333;
    transform: translateX(-4px);
}

.back-to-portfolio svg {
    transition: transform 0.3s ease;
}

.back-to-portfolio:hover svg {
    transform: translateX(-3px);
}

a:hover {
    opacity: 0.7;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(245, 245, 245, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    position: relative;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--text);
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-left a,
.nav-right a {
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.icon-btn svg {
    width: 22px;
    height: 22px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    color: var(--text-light);
}

.hero-label {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0.9;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: 0.02em;
    margin-bottom: 40px;
}

.hero-btn {
    display: inline-block;
    padding: 16px 40px;
    border: 1px solid var(--text-light);
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    transition: all var(--transition);
}

.hero-btn:hover {
    background: var(--text-light);
    color: var(--text);
    opacity: 1;
}

/* ==========================================================================
   Section Titles
   ========================================================================== */
.section-title {
    text-align: center;
    padding: 80px 24px 60px;
}

.section-title h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 15px;
}

.section-cta {
    text-align: center;
    padding: 40px 24px 80px;
}

.btn-text {
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--text);
    border-bottom: 1px solid var(--text);
    padding-bottom: 4px;
}

/* ==========================================================================
   Products Grid
   ========================================================================== */
.products-section {
    background: var(--bg);
}

.products-grid {
    display: grid;
    gap: 2px;
    background: var(--border);
    padding: 0 48px;
}

.products-grid.editorial {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
}

.product-item {
    position: relative;
    background: #fff;
    overflow: hidden;
}

.product-item.large {
    grid-row: span 2;
}

.product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.product-item:hover img {
    transform: scale(1.03);
}

.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.product-name {
    font-size: 14px;
    letter-spacing: 0.05em;
}

.product-price {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==========================================================================
   Feature Banner
   ========================================================================== */
.feature-banner {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background: var(--bg-dark);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.feature-img {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 55%;
    height: 80%;
    object-fit: cover;
}

.feature-content {
    position: relative;
    z-index: 1;
    padding: 0 10%;
    max-width: 500px;
    color: var(--text-light);
}

.feature-label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.7;
}

.feature-content h2 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 20px;
}

.feature-content p {
    font-size: 15px;
    opacity: 0.8;
    margin-bottom: 32px;
    line-height: 1.7;
}

.btn-outline-light {
    display: inline-block;
    padding: 14px 36px;
    border: 1px solid var(--border-light);
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    transition: all var(--transition);
}

.btn-outline-light:hover {
    background: var(--text-light);
    color: var(--bg-dark);
    opacity: 1;
}

/* ==========================================================================
   Categories
   ========================================================================== */
.categories-section {
    padding: 80px 48px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-item {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #fff;
}

.category-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.category-item span {
    position: absolute;
    bottom: 24px;
    left: 24px;
    font-size: 14px;
    letter-spacing: 0.05em;
    color: var(--text);
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
}

/* ==========================================================================
   Beauty Section
   ========================================================================== */
.beauty-section {
    padding: 100px 48px;
    background: #faf9f7;
}

.beauty-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.beauty-img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.beauty-label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.beauty-text h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    margin-bottom: 20px;
}

.beauty-text p {
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* ==========================================================================
   Newsletter
   ========================================================================== */
.newsletter {
    background: var(--bg-dark);
    padding: 100px 48px;
    text-align: center;
}

.newsletter-content {
    max-width: 500px;
    margin: 0 auto;
    color: var(--text-light);
}

.newsletter h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 16px;
}

.newsletter p {
    opacity: 0.7;
    margin-bottom: 32px;
    font-size: 15px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-light);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--text-light);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    padding: 16px 32px;
    background: var(--text-light);
    color: var(--bg-dark);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity var(--transition);
}

.newsletter-form button:hover {
    opacity: 0.9;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    padding: 80px 48px;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--text);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: var(--text);
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 24px 48px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--text);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .header-inner {
        padding: 16px 24px;
    }

    .nav-left {
        display: none;
    }

    .products-grid {
        padding: 0 24px;
    }

    .products-grid.editorial {
        grid-template-columns: 1fr;
    }

    .product-item.large {
        grid-row: span 1;
    }

    .feature-img {
        width: 100%;
        height: 100%;
        opacity: 0.4;
    }

    .feature-content {
        padding: 0 24px;
        max-width: 100%;
        text-align: center;
    }

    .categories-section {
        padding: 60px 24px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .beauty-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        padding: 60px 24px;
    }

    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 42px;
    }

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

    .newsletter-form {
        flex-direction: column;
    }

    .footer-nav {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}