/* ==========================================================
   O‘rikzor bozori — landing
   Tokens: apricot orange, awning stripe orange, kernel brown,
   orchard green, blossom white.
   ========================================================== */

:root {
    --apricot: #F2922E;
    --apricot-deep: #D9671C;
    --apricot-soft: #F7B066;
    --amber: #B5541A;
    --kernel: #2A1A10;
    --kernel-soft: #5C3B26;
    --leaf: #1B4527;
    --leaf-2: #2C5E38;
    --leaf-line: #3C7449;
    --blossom: #FBEDE8;
    --paper: #FFFAF7;

    --bg: var(--paper);
    --bg-alt: var(--blossom);
    --text: var(--kernel);
    --text-muted: var(--kernel-soft);
    --line: #EBD3C7;
    --card: #FFFFFF;

    --font-display: 'Unbounded', 'Arial Black', sans-serif;
    --font-body: 'Onest', -apple-system, 'Segoe UI', Roboto, sans-serif;

    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
    --radius: 18px;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #1A110B;
        --bg-alt: #22160E;
        --text: #F7E6DA;
        --text-muted: #CDB3A2;
        --line: #3A281C;
        --card: #261910;
    }
}
:root[data-theme="dark"] {
    --bg: #1A110B;
    --bg-alt: #22160E;
    --text: #F7E6DA;
    --text-muted: #CDB3A2;
    --line: #3A281C;
    --card: #261910;
}

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

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

:focus-visible {
    outline: 3px solid var(--leaf-2);
    outline-offset: 3px;
    border-radius: 6px;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.eyebrow {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.display {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.02em;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .85rem 1.4rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 700;
    font-size: .98rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--kernel); color: #FFF3EA; }
.btn-dark:hover { background: #000; }
.btn-ghost { border-color: var(--kernel); color: var(--kernel); background: transparent; }
.btn-ghost:hover { background: var(--kernel); color: #FFF3EA; }
.btn-sm { padding: .45rem .95rem; font-size: .85rem; }

/* ---------- Top bar (sits on the apricot hero) ---------- */
.topbar {
    position: relative;
    z-index: 2;
    color: var(--kernel);
}
.topbar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -.01em;
}
.brand img { width: 34px; height: 34px; }
.topnav { display: flex; gap: 1.6rem; }
.topnav a {
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}
.topnav a:hover { border-color: var(--kernel); }
.top-actions { display: flex; align-items: center; gap: .5rem; }
.lang-switch button {
    background: transparent;
    border: 0;
    font-weight: 700;
    font-size: .85rem;
    color: var(--kernel);
    padding: .45rem .6rem;
    border-radius: 999px;
    cursor: pointer;
}
.lang-switch button:hover { background: rgba(42, 26, 16, .1); }

/* ---------- Hero ---------- */
.hero {
    background: var(--apricot);
    color: var(--kernel);
    overflow: hidden;
    position: relative;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 2rem;
    padding-top: clamp(1.5rem, 5vw, 4rem);
    padding-bottom: clamp(3rem, 7vw, 6rem);
}
.hero .eyebrow { color: #6E2F08; margin-bottom: 1.1rem; }
.hero h1 {
    font-size: clamp(2.5rem, 6.4vw, 5.4rem);
    margin-bottom: 1.4rem;
}
.hero h1 em {
    font-style: normal;
    color: #FFF3EA;
}
.hero-lede {
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    max-width: 34rem;
    margin-bottom: 2rem;
    color: #3B2213;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-fruit {
    position: relative;
    justify-self: center;
    width: min(100%, 440px);
    aspect-ratio: 1;
}
.hero-fruit svg {
    width: 100%;
    height: 100%;
    animation: fruit-in .9s cubic-bezier(.2, .9, .3, 1.2) both;
    transform-origin: 50% 20%;
}
.now-tag {
    position: absolute;
    left: 0;
    bottom: 12%;
    background: var(--leaf);
    color: #FFF3EA;
    padding: .7rem 1rem;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(42, 26, 16, .25);
    max-width: 15rem;
    animation: tag-in .6s .5s ease-out both;
}
.now-tag .eyebrow { color: var(--apricot-soft); display: block; font-size: .7rem; margin-bottom: .1rem; }
.now-tag strong { font-weight: 600; font-size: .98rem; line-height: 1.3; display: block; }

@keyframes fruit-in {
    from { opacity: 0; transform: translateY(-30px) rotate(-8deg) scale(.92); }
    to { opacity: 1; transform: none; }
}
@keyframes tag-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Bazaar awning (the signature) ----------
   Striped canopy with a scalloped edge, like the awnings over the stalls.
   Each 48px stripe lines up with one scallop. */
.awning {
    height: 40px;
    background: repeating-linear-gradient(90deg, #FFF3EA 0 48px, var(--apricot-deep) 48px 96px);
    -webkit-mask:
        linear-gradient(#000 0 0) top / 100% 16px no-repeat,
        radial-gradient(circle 24px at 24px 0, #000 97%, transparent 100%) 0 16px / 48px 24px repeat-x;
    mask:
        linear-gradient(#000 0 0) top / 100% 16px no-repeat,
        radial-gradient(circle 24px at 24px 0, #000 97%, transparent 100%) 0 16px / 48px 24px repeat-x;
}

/* ---------- Sections (green band under the awning) ---------- */
.sections-band {
    background: var(--leaf);
    color: #F3EBDD;
    padding-bottom: clamp(3.5rem, 8vw, 6rem);
}
.sections-band > .wrap { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.band-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: end;
    margin-bottom: 2.5rem;
}
.sections-band .eyebrow { color: var(--apricot-soft); margin-bottom: .8rem; }
.sections-band h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); color: #FFF3EA; }
.band-lede { color: #CFE0CF; font-size: 1.05rem; }

.zones {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 12px;
}
.zone {
    display: flex;
    flex-direction: column;
    padding: 1.4rem;
    border-radius: var(--radius);
    background: var(--leaf-2);
    color: #F3EBDD;
}
.zone-xl {
    grid-column: span 2;
    grid-row: span 2;
    background: var(--apricot);
    color: var(--kernel);
}
.zone-wide { grid-column: span 2; }
.zone-food { background: #FFF3EA; color: var(--kernel); }
.zone-icon { width: 40px; height: 40px; margin-bottom: auto; }
.zone-xl .zone-icon { width: 76px; height: 76px; }
.zone h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
    margin: 1.6rem 0 .4rem;
}
.zone-xl h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.zone p { font-size: .92rem; opacity: .85; }
.zone-xl p { font-size: 1.05rem; max-width: 26ch; }

/* ---------- Sections on paper ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
    font-size: clamp(1.8rem, 3.8vw, 2.8rem);
    margin-bottom: 2.25rem;
    max-width: 22ch;
}
.section .eyebrow { color: var(--amber); margin-bottom: .8rem; }

/* Getting here */
.visit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.facts > div {
    border-top: 2px solid var(--text);
    padding: 1rem 0 1.3rem;
}
.facts dt {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: .25rem;
}
.facts dd { font-size: 1.15rem; font-weight: 500; }

/* Sellers */
.sellers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 5vw, 4rem);
    align-items: end;
}
.sellers .section-title { margin-bottom: 0; }
.sellers-lede { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.muted { color: var(--text-muted); }

/* Closing call to action */
.closing {
    background: var(--apricot);
    color: var(--kernel);
    padding-bottom: clamp(3rem, 7vw, 5rem);
}
.closing > .wrap { padding-top: clamp(2rem, 5vw, 3.5rem); }
.closing .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.closing h2 { font-size: clamp(1.8rem, 4vw, 3rem); max-width: 16ch; }
.closing p { margin-top: .6rem; color: #3B2213; }

/* Footer */
.site-footer {
    background: var(--kernel);
    color: #D9C3B4;
    padding: 2rem 0;
    font-size: .9rem;
}
.site-footer .wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.site-footer nav { display: flex; gap: 1.2rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #FFF3EA; }

/* ---------- 404 ---------- */
.notfound {
    min-height: 100vh;
    background: var(--apricot);
    color: var(--kernel);
    display: flex;
    flex-direction: column;
}
.notfound main {
    flex: 1;
    display: flex;
    align-items: center;
}
.notfound h1 { font-size: clamp(3rem, 12vw, 8rem); margin-bottom: 1rem; }
.notfound p { font-size: 1.15rem; max-width: 32rem; margin-bottom: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .topnav { display: none; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-fruit { width: min(80%, 340px); order: -1; }
    .band-head, .visit, .sellers { grid-template-columns: 1fr; }
    .zones { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    body { font-size: 16px; }
    .brand span { display: none; }
    .top-actions .btn-ghost { display: none; }
}

@media (max-width: 480px) {
    .zones { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .zone-xl, .zone-wide { grid-column: auto; grid-row: auto; }
    .zone-xl .zone-icon { width: 56px; height: 56px; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .now-tag { left: auto; right: 0; bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
