/* ==========================================================================
   recycle.auction - Victorian-Ornate Recycling Auction Platform
   ========================================================================== */

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

:root {
    --auction-black: #0A0A0A;
    --gilded-gold: #D4A855;
    --antique-gold: #B8942D;
    --ivory-cream: #F5ECD8;
    --abstract-teal: #3D8B8B;
    --deep-charcoal: #1A1A1A;
    --rose-gold: #C88B6B;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--auction-black);
    color: var(--ivory-cream);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.75;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

h2 {
    font-size: clamp(40px, 6vw, 90px);
    line-height: 1.1;
}

h3 {
    font-size: clamp(20px, 2.5vw, 32px);
    line-height: 1.2;
}

.lot-label, .lot-number, .bid-label, .process-label, .auction-date, .auction-lots {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* --- Sections --- */
.section {
    position: relative;
    width: 100%;
}

.section-dark {
    background-color: var(--auction-black);
    color: var(--ivory-cream);
}

.section-gold {
    background-color: var(--gilded-gold);
    color: var(--auction-black);
}

.diagonal-cut:nth-child(odd) {
    clip-path: polygon(0 0, 100% 4vh, 100% 100%, 0 calc(100% - 4vh));
}

.diagonal-cut:nth-child(even) {
    clip-path: polygon(0 4vh, 100% 0, 100% calc(100% - 4vh), 0 100%);
}

.diagonal-cut {
    padding-top: 8vh;
    padding-bottom: 8vh;
    margin-top: -4vh;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

.section-header {
    margin-bottom: 50px;
}

.section-header .lot-label {
    display: block;
    margin-bottom: 12px;
    color: var(--abstract-teal);
}

.section-gold .section-header .lot-label {
    color: var(--deep-charcoal);
    opacity: 0.6;
}

/* ==========================================================================
   Auction Hall Entry (Hero)
   ========================================================================== */
#auction-hall {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.botanical-border {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.botanical-frame {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.botanical-stroke {
    fill: none;
    stroke: var(--gilded-gold);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    opacity: 0;
}

.botanical-stroke.animate-in {
    opacity: 1;
    animation: drawStroke 2s ease-out forwards;
}

@keyframes drawStroke {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

#hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#hero-content.animate-in {
    opacity: 1;
    transform: scale(1);
}

.wordmark {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 10vw, 140px);
    color: var(--gilded-gold);
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: lowercase;
    transition: transform 0.3s ease-out;
}

.hero-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(14px, 1.8vw, 22px);
    color: var(--ivory-cream);
    opacity: 0.7;
    margin-top: 12px;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
}

.about-italic {
    font-style: italic;
    opacity: 0.85;
}

.about-motif {
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recycling-icon {
    width: 80px;
    height: 80px;
    opacity: 0.6;
}

/* ==========================================================================
   Lot Display Grid
   ========================================================================== */
.lot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.lot-card {
    position: relative;
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}

.lot-card:hover {
    transform: scale(1.08);
    z-index: 10;
}

.lot-card:hover .frame-rect {
    stroke: var(--gilded-gold);
    stroke-width: 2;
}

.lot-card:hover .frame-corner {
    stroke: var(--gilded-gold);
    stroke-width: 3;
}

.lot-card:hover .lot-frame {
    box-shadow: 0 8px 32px rgba(212, 168, 85, 0.3);
}

.lot-frame {
    position: relative;
    background: var(--deep-charcoal);
    border-radius: 2px;
    overflow: hidden;
    transition: box-shadow 0.4s ease-out;
}

.frame-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.frame-rect {
    transition: stroke 0.4s ease-out, stroke-width 0.4s ease-out;
}

.frame-corner {
    transition: stroke 0.4s ease-out, stroke-width 0.4s ease-out;
}

.lot-inner {
    position: relative;
    z-index: 1;
    padding: 24px 20px 20px;
}

.lot-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 16px;
}

.lot-illustration svg {
    width: 90px;
    height: 90px;
}

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

.lot-number {
    display: block;
    color: var(--abstract-teal);
    margin-bottom: 6px;
    font-size: 11px;
}

.lot-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(18px, 2vw, 24px);
    color: var(--gilded-gold);
    margin-bottom: 8px;
    line-height: 1.2;
}

.lot-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ivory-cream);
    opacity: 0.75;
    margin-bottom: 16px;
}

.lot-bid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(184, 148, 45, 0.3);
}

.bid-label {
    color: var(--ivory-cream);
    opacity: 0.5;
    font-size: 10px;
}

.bid-amount {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    color: var(--gilded-gold);
    letter-spacing: 0.02em;
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.process-step {
    text-align: center;
}

.process-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.process-icon svg {
    width: 60px;
    height: 60px;
}

.process-label {
    display: block;
    color: var(--deep-charcoal);
    opacity: 0.4;
    margin-bottom: 8px;
    font-size: 11px;
}

.process-step h3 {
    color: var(--auction-black);
    margin-bottom: 10px;
    font-size: clamp(20px, 2.2vw, 28px);
}

.process-step p {
    font-size: 15px;
    line-height: 1.65;
    opacity: 0.85;
}

/* ==========================================================================
   Upcoming Auctions
   ========================================================================== */
.auction-schedule {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.auction-row {
    display: grid;
    grid-template-columns: 140px 1fr 100px 140px;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(184, 148, 45, 0.2);
    transition: background-color 0.3s ease;
}

.auction-row:hover {
    background-color: var(--deep-charcoal);
}

.auction-row:first-child {
    border-top: 1px solid rgba(184, 148, 45, 0.2);
}

.auction-date {
    color: var(--gilded-gold);
    font-size: 12px;
}

.auction-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(16px, 1.6vw, 20px);
    color: var(--ivory-cream);
}

.auction-lots {
    color: var(--ivory-cream);
    opacity: 0.5;
    text-align: center;
    font-size: 11px;
}

.auction-status {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: right;
}

.status-open {
    color: var(--abstract-teal);
}

.status-preview {
    color: var(--gilded-gold);
}

.status-coming {
    color: var(--ivory-cream);
    opacity: 0.4;
}

/* ==========================================================================
   Gavel Footer
   ========================================================================== */
#gavel-footer {
    padding-top: 0;
    margin-top: -4vh;
    clip-path: polygon(0 4vh, 100% 0, 100% 100%, 0 100%);
}

.gavel-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--gilded-gold) 20%, var(--gilded-gold) 80%, transparent 100%);
    margin-top: 6vh;
    margin-bottom: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px 30px;
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.footer-brand {
    flex: 0 0 280px;
}

.footer-wordmark {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    color: var(--gilded-gold);
    text-transform: lowercase;
    letter-spacing: 0.04em;
}

.footer-tagline {
    font-style: italic;
    font-size: 14px;
    color: var(--ivory-cream);
    opacity: 0.5;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gilded-gold);
    margin-bottom: 16px;
    font-weight: 400;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    font-size: 14px;
    line-height: 2;
    color: var(--ivory-cream);
    opacity: 0.6;
    cursor: default;
    transition: opacity 0.3s ease;
}

.footer-col li:hover {
    opacity: 1;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px 40px;
    border-top: 1px solid rgba(184, 148, 45, 0.15);
}

.footer-copy {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--ivory-cream);
    opacity: 0.3;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 30px;
    }

    .about-motif {
        flex: 0 0 auto;
        align-self: center;
    }

    .lot-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }

    .process-steps {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .auction-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 16px 12px;
    }

    .auction-lots {
        text-align: left;
    }

    .auction-status {
        text-align: left;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 30px;
    }

    .section-inner {
        padding: 40px 24px;
    }

    .diagonal-cut:nth-child(odd) {
        clip-path: polygon(0 0, 100% 2vh, 100% 100%, 0 calc(100% - 2vh));
    }

    .diagonal-cut:nth-child(even) {
        clip-path: polygon(0 2vh, 100% 0, 100% calc(100% - 2vh), 0 100%);
    }
}

@media (max-width: 480px) {
    .process-steps {
        grid-template-columns: 1fr;
    }

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

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}
