/* 
 * Cafe Collection - Elite Asymmetric Design System
 * Inspired by Refero Editorial & Remotion Motion Principles
 * Theme: Light (Linen & Espresso)
 */

@font-face {
    font-family: 'LandingFont';
    src: url('font/landing.otf') format('opentype'),
         url('font/landing.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Color Palette - "Unbleached & Roasted" */
    --bg-canvas: #F4F1ED;      /* Unbleached Linen */
    --bg-surface: #EBE7E0;     /* Pressed Canvas */
    --text-primary: #1A1715;   /* Double Espresso */
    --text-muted: #5C544F;     /* Burnt Sienna */
    --accent: #8B6B4D;         /* Roasted Bean */
    --border: rgba(26, 23, 21, 0.08);
    
    /* Typography */
    --font-display: 'LandingFont', 'Mocha Regular', 'Cormorant Garamond', serif;
    --font-sans: 'LandingFont', 'Plus Jakarta Sans', system-ui, sans-serif;
    
    /* Motion - Remotion Cinematic Easing */
    --ease-remotion: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 1.2s var(--ease-remotion);
    --transition-mid: 0.8s var(--ease-remotion);
}

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

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Cinematic Reveal System */
@keyframes cinematicReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    animation: cinematicReveal var(--transition-slow) forwards;
}

.reveal--1 { animation-delay: 0.1s; }
.reveal--2 { animation-delay: 0.3s; }
.reveal--3 { animation-delay: 0.5s; }
.reveal--4 { animation-delay: 0.7s; }

/* Asymmetric Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10rem 0 6rem;
    position: relative;
}

.hero__eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 2rem;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 300;
    line-height: 0.9;
    margin-bottom: 3rem;
    max-width: 900px;
    letter-spacing: -0.04em;
}

.hero__asymmetric-frame {
    position: relative;
    width: 100%;
    height: 400px;
    margin-top: 4rem;
}

.hero__image-main {
    position: absolute;
    right: 0;
    top: -100px;
    width: 60%;
    aspect-ratio: 16/9;
    background: var(--bg-surface);
    overflow: hidden;
    clip-path: polygon(2% 0, 100% 4%, 98% 100%, 0 96%);
}

.hero__image-secondary {
    position: absolute;
    left: 10%;
    bottom: -50px;
    width: 30%;
    aspect-ratio: 4/5;
    background: #DED9D1;
    z-index: 2;
    clip-path: polygon(0 5%, 95% 0, 100% 95%, 5% 100%);
}

/* Broken Grid Gallery */
.gallery {
    padding: 10rem 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: var(--transition-mid);
}

.card--main {
    grid-column: 2 / span 10;
    margin-bottom: 8rem;
}

.card__visual {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    background: var(--bg-surface);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: var(--transition-mid);
    border-radius: 4px;
}

.card:hover .card__visual {
    transform: scale(0.98);
}

.card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.2) contrast(1.05);
}

.card__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card__title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
}

.card__link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    border-bottom: 1px solid var(--text-primary);
    padding-bottom: 4px;
}

/* Imperfect/Hand-drawn Accents */
.accent-border {
    position: absolute;
    border: 1px solid var(--text-primary);
    opacity: 0.1;
    pointer-events: none;
}

@media (max-width: 1200px) {
    .container { padding: 0 3rem; }
    .hero__title { font-size: 6rem; }
}

@media (max-width: 1024px) {
    .container { padding: 0 2rem; }
    .hero { padding: 8rem 0 4rem; }
    .hero__title { font-size: 5rem; }
    .hero__asymmetric-frame { height: 350px; margin-top: 2rem; }
    .card--main { grid-column: span 12; }
    .card__title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .hero { min-height: auto; padding: 6rem 0 3rem; }
    .hero__title { font-size: 4rem; }
    .hero__asymmetric-frame { height: 300px; }
    .hero__image-main { width: 80%; top: -50px; }
    .hero__image-secondary { width: 40%; left: 5%; bottom: -30px; }
    .grid { gap: 1.5rem; }
    .card__title { font-size: 2rem; }
    .gallery { padding: 6rem 0; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.5rem; }
    .hero__title { font-size: 3rem; }
    .hero__asymmetric-frame { height: 250px; }
    .hero__image-main { width: 100%; top: 0; position: relative; clip-path: none; }
    .hero__image-secondary { display: none; }
    .card__content { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .card__title { font-size: 1.75rem; }
}

/* Premium Minimalist Top Navigation (Refero style) */
.collection-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background-color: rgba(244, 241, 237, 0.85); /* premium translucent linen */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(26, 23, 21, 0.08); /* thin border */
    transition: all 0.3s ease;
}

.collection-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collection-nav-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    color: var(--text-primary); /* dark espresso color for logo text */
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.collection-nav-brand:hover {
    opacity: 0.7;
}

.collection-logo-accent {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: #533AFD;
    vertical-align: super;
}

.collection-nav-links {
    display: flex;
    gap: 1.5rem; /* adjusted gap to balance capsule padding */
    align-items: center;
}

.collection-nav-link {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted); /* muted text color for inactive state */
    position: relative;
    padding: 0.6rem 1.25rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.collection-nav-link:hover {
    color: var(--text-primary); /* brighten text to dark espresso on hover */
    cursor: pointer;
}

.collection-nav-link.active {
    color: var(--text-primary);
    background: transparent;
    position: relative;
}

.collection-nav-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    padding: 2px; /* border thickness */
    background: linear-gradient(90deg, #C02BFF 0%, #7B3EFF 35%, #3E4BFF 70%, #00C8FF 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

@media (max-width: 768px) {
    .collection-nav-container {
        padding: 1.25rem 2rem;
    }
    .collection-nav-links {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .collection-nav-container {
        padding: 1rem 1.5rem;
    }
    .collection-nav-links {
        gap: 1.5rem;
    }
}

/* Mobile Navigation overrides & Floating Tab Bar */
.mobile-tab-bar {
    display: none;
}

@media (max-width: 48rem) {
    .collection-nav-links {
        display: none !important;
    }
    
    .collection-nav-container {
        justify-content: center !important;
    }

    .mobile-tab-bar {
        position: fixed;
        bottom: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 2.5rem);
        max-width: 28rem;
        height: 4.2rem;
        background: rgba(244, 241, 237, 0.75); /* translucent linen to match theme */
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid var(--border);
        border-radius: 100px;
        box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.08), 
                    0 2px 10px -2px rgba(0, 0, 0, 0.04);
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0 0.6rem;
        z-index: 9999;
        transition: all 0.4s var(--ease-remotion, cubic-bezier(0.16, 1, 0.3, 1));
    }

    .mobile-tab-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.6rem 1.2rem;
        border-radius: 100px;
        color: var(--text-muted);
        text-decoration: none;
        transition: all 0.35s var(--ease-remotion, cubic-bezier(0.16, 1, 0.3, 1));
    }

    .mobile-tab-item .mobile-tab-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
    }

    .mobile-tab-item .mobile-tab-icon svg {
        width: 20px !important;
        height: 20px !important;
        display: block;
        transition: stroke 0.3s ease, fill 0.3s ease;
        stroke: var(--text-muted);
    }

    .mobile-tab-item .mobile-tab-label {
        font-family: var(--font-sans);
        font-size: 0.75rem;
        font-weight: 500;
        opacity: 1;
        overflow: hidden;
        white-space: nowrap;
        transition: color 0.3s ease;
    }

    /* Active/Hover State */
    .mobile-tab-item:hover, .mobile-tab-item:active {
        background-color: var(--bg-surface);
        color: var(--text-primary);
    }

    .mobile-tab-item:hover .mobile-tab-icon svg, .mobile-tab-item:active .mobile-tab-icon svg {
        stroke: var(--text-primary);
        transform: scale(1.05);
    }
}
