/* ==========================================================
   recycle.auction — Muji-Inspired Auction Archive
   Palette: Sepia-Nostalgic
   Layout: Z-pattern with sharp-angle section cuts
   ========================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: #6B5040;
    background-color: #F5ECD7;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Lora', serif;
    font-weight: 700;
    color: #3C2A14;
    line-height: 1.2;
}

a {
    color: #C4A055;
    text-decoration: none;
}

/* ---------- Underline-Draw Animation ---------- */
.underline-draw {
    background: linear-gradient(currentColor, currentColor) no-repeat bottom left;
    background-size: 0% 2px;
    padding-bottom: 2px;
    transition: background-size 0.4s ease;
}

.underline-draw:hover {
    background-size: 100% 2px;
}

/* ---------- Accent Color Utility ---------- */
.accent {
    color: #C4A055;
}

/* ---------- Water-Bubble Floating Markers ---------- */
.bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 160, 85, 0.3), transparent);
    opacity: 0.4;
}

.bubble-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 5%;
    animation: bubbleFloat1 18s ease-in-out infinite;
}

.bubble-2 {
    width: 80px;
    height: 80px;
    top: 30%;
    right: 8%;
    animation: bubbleFloat2 22s ease-in-out infinite;
}

.bubble-3 {
    width: 60px;
    height: 60px;
    top: 55%;
    left: 15%;
    animation: bubbleFloat3 16s ease-in-out infinite;
}

.bubble-4 {
    width: 140px;
    height: 140px;
    top: 70%;
    right: 20%;
    animation: bubbleFloat1 24s ease-in-out infinite reverse;
}

.bubble-5 {
    width: 50px;
    height: 50px;
    top: 85%;
    left: 40%;
    animation: bubbleFloat2 20s ease-in-out infinite;
}

.bubble-6 {
    width: 90px;
    height: 90px;
    top: 15%;
    right: 30%;
    animation: bubbleFloat3 26s ease-in-out infinite reverse;
}

.bubble-7 {
    width: 70px;
    height: 70px;
    top: 45%;
    left: 60%;
    animation: bubbleFloat1 19s ease-in-out infinite;
}

@keyframes bubbleFloat1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -30px); }
    50% { transform: translate(-10px, -50px); }
    75% { transform: translate(15px, -20px); }
}

@keyframes bubbleFloat2 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-25px, -15px); }
    50% { transform: translate(15px, -40px); }
    75% { transform: translate(-10px, -25px); }
}

@keyframes bubbleFloat3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -20px); }
    66% { transform: translate(-20px, -45px); }
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(245, 236, 215, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(196, 160, 85, 0.2);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #3C2A14;
}

.nav-logo:hover {
    color: #3C2A14;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B5040;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: #C4A055;
}

/* ---------- Z-Pattern Utilities ---------- */
.z-left {
    text-align: left;
    margin-right: auto;
    margin-left: 0;
}

.z-right {
    text-align: right;
    margin-left: auto;
    margin-right: 0;
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    gap: 3rem;
}

.hero-content {
    flex: 1;
    max-width: 560px;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: #3C2A14;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #6B5040;
    max-width: 440px;
    line-height: 1.8;
}

.hero-accent {
    flex: 0 0 auto;
}

/* ---------- Auction Card Preview ---------- */
.auction-card-preview {
    background-color: #FFF8EC;
    border: 1px solid rgba(196, 160, 85, 0.3);
    padding: 2.5rem 2rem;
    max-width: 320px;
    position: relative;
}

.auction-card-preview::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid rgba(196, 160, 85, 0.15);
    pointer-events: none;
}

.card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #B88A7A;
    margin-bottom: 1rem;
}

.card-item-name {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #3C2A14;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.card-bid {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
}

.bid-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #B88A7A;
}

.bid-amount {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #C4A055;
}

.card-timer {
    font-size: 0.8rem;
    color: #6B5040;
    text-align: right;
    opacity: 0.7;
}

/* ---------- Skew Dividers ---------- */
.skew-divider {
    position: relative;
    z-index: 1;
    height: 80px;
    margin: -40px 0;
    transform: skewY(-3deg);
}

.skew-divider--gold {
    background-color: rgba(196, 160, 85, 0.08);
}

.skew-divider--rose {
    background-color: rgba(184, 138, 122, 0.08);
}

/* ---------- Section Titles ---------- */
.section-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    color: #3C2A14;
}

.section-desc {
    font-size: 1rem;
    color: #6B5040;
    max-width: 480px;
    margin-bottom: 2rem;
}

.section-header.z-right .section-desc {
    margin-left: auto;
}

/* ---------- Listings Section ---------- */
.listings {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.listings .section-header {
    margin-bottom: 3rem;
}

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

/* ---------- Listing Card ---------- */
.listing-card {
    background-color: #FFF8EC;
    border: 1px solid rgba(196, 160, 85, 0.2);
    padding: 2rem 1.75rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(60, 42, 20, 0.08);
}

.listing-number {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: rgba(196, 160, 85, 0.2);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.listing-name {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: #3C2A14;
}

.listing-detail {
    font-size: 0.875rem;
    color: #6B5040;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.listing-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(196, 160, 85, 0.15);
}

.listing-bid {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: #C4A055;
}

.listing-bids {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #B88A7A;
}

.listing-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #C4A055;
    font-weight: 500;
}

/* ---------- About Section ---------- */
.about {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
}

.about-content {
    flex: 1;
    max-width: 560px;
}

.about-text {
    font-size: 1rem;
    color: #6B5040;
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.about-accent {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-block {
    background-color: #FFF8EC;
    border: 1px solid rgba(196, 160, 85, 0.2);
    padding: 1.5rem;
    text-align: right;
}

.stat-number {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 2rem;
    color: #C4A055;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #B88A7A;
}

/* ---------- How It Works Section ---------- */
.how-it-works {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.how-it-works .section-header {
    margin-bottom: 3rem;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.step {
    max-width: 560px;
    padding: 2rem;
    background-color: #FFF8EC;
    border: 1px solid rgba(196, 160, 85, 0.15);
    position: relative;
}

.step.z-right {
    margin-left: auto;
    text-align: right;
}

.step.z-left {
    margin-right: auto;
    text-align: left;
}

.step-number {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 3rem;
    color: rgba(196, 160, 85, 0.15);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #3C2A14;
}

.step-desc {
    font-size: 0.95rem;
    color: #6B5040;
    line-height: 1.7;
}

/* ---------- Contact Section ---------- */
.contact {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem 6rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
}

.contact-content {
    flex: 1;
    max-width: 480px;
}

.contact-text {
    font-size: 1rem;
    color: #6B5040;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    color: #3C2A14;
    border: 1px solid #C4A055;
    padding: 1rem 2.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    background: linear-gradient(#C4A055, #C4A055) no-repeat bottom left;
    background-size: 0% 2px;
}

.cta-button:hover {
    background-color: #C4A055;
    color: #FFF8EC;
    background-size: 100% 2px;
}

.contact-accent {
    flex: 0 0 320px;
}

.contact-info {
    text-align: right;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #6B5040;
}

.info-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #B88A7A;
    margin-bottom: 0.25rem;
}

.contact-info a {
    color: #C4A055;
}

/* ---------- Footer ---------- */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(196, 160, 85, 0.2);
    padding: 1.5rem 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1rem;
    color: #3C2A14;
}

.footer-copy {
    font-size: 0.8rem;
    color: #B88A7A;
    letter-spacing: 0.05em;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        padding-top: 6rem;
        min-height: auto;
    }

    .hero-accent {
        margin-top: 2rem;
    }

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

    .about {
        flex-direction: column;
    }

    .about-accent {
        flex: none;
        flex-direction: row;
        width: 100%;
    }

    .stat-block {
        flex: 1;
    }

    .contact {
        flex-direction: column;
    }

    .contact-accent {
        flex: none;
        width: 100%;
    }

    .contact-info {
        text-align: left;
    }

    .z-right {
        text-align: left;
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

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

    .about-accent {
        flex-direction: column;
    }

    .step {
        max-width: 100%;
    }
}
