/* namu.market - Coastal Village Timber & Seedling Market */
/* Colors: #3D6B7E Tide Blue, #E5E8E3 Fog, #D4943A Market Orange, #8FA89A Sea Sage, #1C2B33 Deep Indigo, #6B5E50 Driftwood, #F8F4ED Parchment */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Lora', serif;
    font-weight: 400;
    color: #1C2B33;
    background-color: #F8F4ED;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== Market Zone ===== */
.market-zone {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
}

/* ===== Entrance ===== */
#entrance {
    background: linear-gradient(180deg, #E5E8E3 0%, #F8F4ED 100%);
}

.entrance-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 900px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.tree-illustration {
    flex-shrink: 0;
    width: 200px;
}

.tree-drawing {
    width: 100%;
    height: auto;
}

.draw-path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawLine 2s ease forwards;
}

.draw-path:nth-child(1) { animation-delay: 0s; }
.draw-path:nth-child(2) { animation-delay: 0.15s; }
.draw-path:nth-child(3) { animation-delay: 0.3s; }
.draw-path:nth-child(4) { animation-delay: 0.45s; }
.draw-path:nth-child(5) { animation-delay: 0.6s; }
.draw-path:nth-child(6) { animation-delay: 0.75s; }
.draw-path:nth-child(7) { animation-delay: 0.9s; }
.draw-path:nth-child(8) { animation-delay: 1.05s; }
.draw-path:nth-child(9) { animation-delay: 1.2s; }
.draw-path:nth-child(10) { animation-delay: 1.35s; }
.draw-path:nth-child(11) { animation-delay: 1.5s; }

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.entrance-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sketch-card {
    background: #F8F4ED;
    border: 2px solid rgba(107, 94, 80, 0.2);
    padding: 1.5rem 2rem;
    position: relative;
}

.sketch-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 1px solid rgba(107, 94, 80, 0.08);
    pointer-events: none;
}

.market-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1C2B33;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.market-subtitle {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: #3D6B7E;
    line-height: 1.6;
}

.annotation {
    font-family: 'Kalam', cursive;
    font-weight: 400;
    font-size: 0.85rem;
    color: #D4943A;
    font-style: italic;
}

/* ===== Stall ===== */
.stall {
    max-width: 850px;
    width: 100%;
}

.stall-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #6B5E50;
}

.stall-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1C2B33;
}

.stall-number {
    font-family: 'Kalam', cursive;
    font-weight: 400;
    font-size: 0.9rem;
    color: #D4943A;
}

.stall-body {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    color: #1C2B33;
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 2.5rem;
    opacity: 0.85;
}

/* ===== Specimen Cards ===== */
.specimen-cards {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.specimen-card {
    background: #F8F4ED;
    border: 1.5px solid rgba(107, 94, 80, 0.25);
    padding: 1.5rem;
    text-align: center;
    width: 160px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.specimen-card:hover {
    transform: rotate(0deg) translateY(-4px) !important;
    box-shadow: 0 6px 20px rgba(28, 43, 51, 0.08);
}

.specimen-card svg {
    width: 80px;
    height: 100px;
    margin-bottom: 0.8rem;
}

.specimen-name {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1C2B33;
    margin-bottom: 0.3rem;
}

.price-tag {
    font-family: 'Kalam', cursive;
    font-weight: 700;
    font-size: 0.9rem;
    color: #D4943A;
}

.price-tag.large {
    font-size: 1rem;
}

/* ===== Timber Stack ===== */
.timber-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timber-plank {
    background: linear-gradient(90deg, rgba(107, 94, 80, 0.08) 0%, rgba(212, 148, 58, 0.06) 100%);
    border: 1px solid rgba(107, 94, 80, 0.15);
    border-left: 4px solid #6B5E50;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.timber-plank:hover {
    transform: rotate(0deg) !important;
    border-left-color: #D4943A;
}

.plank-species {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1C2B33;
    min-width: 100px;
}

.plank-note {
    font-family: 'Kalam', cursive;
    font-weight: 400;
    font-size: 0.8rem;
    color: #6B5E50;
}

/* ===== Boardwalk ===== */
#boardwalk {
    background: linear-gradient(180deg, #F8F4ED 0%, #E5E8E3 100%);
}

.boardwalk-items {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.boardwalk-card {
    background: #F8F4ED;
    border: 1.5px solid rgba(61, 107, 126, 0.2);
    padding: 2rem;
    max-width: 350px;
    transition: transform 0.3s ease;
}

.boardwalk-card:hover {
    transform: rotate(0deg) !important;
}

.bw-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #3D6B7E;
    margin-bottom: 0.8rem;
}

.bw-desc {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: #1C2B33;
    line-height: 1.7;
    margin-bottom: 0.8rem;
    opacity: 0.8;
}

/* ===== Footer / Waterfront ===== */
#waterfront {
    background: #1C2B33;
    padding: 4rem 2rem;
    text-align: center;
}

.waterfront-inner {
    max-width: 600px;
    margin: 0 auto;
}

.wave-line {
    margin-bottom: 2rem;
}

.wave-line svg {
    width: 100%;
    height: 40px;
}

.footer-domain {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8FA89A;
    margin-bottom: 0.3rem;
}

.footer-tagline {
    color: #D4943A;
    margin-bottom: 2rem;
    opacity: 0.7;
}

.market-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-link {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #E5E8E3;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
}

/* ===== Scroll Reveal ===== */
.stall,
.entrance-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.stall.revealed,
.entrance-content.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .market-zone {
        padding: 4rem 1.5rem;
    }

    .entrance-content {
        flex-direction: column;
        text-align: center;
    }

    .specimen-cards {
        justify-content: center;
    }

    .boardwalk-items {
        flex-direction: column;
    }

    .boardwalk-card {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .market-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .specimen-card {
        width: 140px;
    }
}
