/* ═══════════════════════════════════════════════
   RHF ART GALLERY — main.css
   ═══════════════════════════════════════════════ */

:root {
    --black: #0a0a0a; --dark: #111111; --mid: #1c1c1c;
    --gold: #c9a227; --text: #e8e0d0; --muted: #7a7060;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--text); font-family: 'DM Mono', monospace; min-height: 100vh; overflow-x: hidden; }

/* ── NAV ── */
#site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 3rem; background: rgba(10,10,10,0.93); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(201,162,39,0.15); }
.nav-logo { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: 0.12em; color: var(--gold); text-decoration: none; }
.nav-logo span { color: var(--text); }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-link { font-size: 0.65rem; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; text-decoration: none; transition: color .2s; }
.nav-link:hover { color: var(--gold); }

/* ── HERO ── */
#hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8rem 2rem 5rem; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: repeating-linear-gradient(45deg,transparent,transparent 40px,rgba(201,162,39,0.02) 40px,rgba(201,162,39,0.02) 41px), repeating-linear-gradient(-45deg,transparent,transparent 40px,rgba(192,57,43,0.02) 40px,rgba(192,57,43,0.02) 41px); pointer-events: none; }
.hero-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(5rem,15vw,12rem); letter-spacing: 0.06em; line-height: 0.9; text-align: center; color: var(--text); position: relative; }
.hero-title .accent { color: var(--gold); }
.hero-sub { font-family: 'Crimson Pro', serif; font-style: italic; font-weight: 300; font-size: 1.3rem; color: var(--muted); letter-spacing: 0.1em; margin: 1.5rem 0 3rem; text-align: center; }
.hero-cta { font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); padding: 0.9rem 2.5rem; text-decoration: none; transition: all 0.3s; }
.hero-cta:hover { background: var(--gold); color: var(--black); }
.hero-strip { display: flex; gap: 0; margin-top: 5rem; width: 100%; max-width: 1200px; overflow: hidden; border: 1px solid rgba(201,162,39,0.1); }
.hero-strip-img { flex: 1; aspect-ratio: 1; overflow: hidden; cursor: pointer; transition: flex 0.5s ease; }
.hero-strip-img:hover { flex: 3; }
.hero-strip-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block; }
.hero-strip-img:hover img { transform: scale(1.05); }

/* ── GALLERY ── */
#gallery { padding: 5rem 3rem 4rem; }
.gallery-header { display: flex; align-items: baseline; gap: 2rem; margin-bottom: 3rem; border-bottom: 1px solid rgba(201,162,39,0.15); padding-bottom: 1.5rem; }
.gallery-header h2 { font-family: 'Bebas Neue', sans-serif; font-size: 3.5rem; letter-spacing: 0.08em; color: var(--text); }
.gallery-header span { font-size: 0.65rem; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.5px; background: rgba(201,162,39,0.08); }
.gallery-card { background: var(--dark); cursor: pointer; overflow: hidden; position: relative; aspect-ratio: 4/3; text-decoration: none; display: block; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.gallery-card:hover img { transform: scale(1.08); }
.gallery-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top,rgba(0,0,0,0.85) 0%,transparent 50%); opacity: 0; transition: opacity 0.4s; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; }
.gallery-card:hover .gallery-card-overlay { opacity: 1; }
.gallery-card-num { font-size: 0.55rem; letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase; margin-bottom: 0.4rem; }
.gallery-card-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: 0.08em; color: var(--text); line-height: 1; }

/* ── ARTWORK PAGE ── */
#artwork-page { padding: 7rem 0 4rem; min-height: 100vh; }
.artwork-back { font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); padding: 0 3rem 2rem; display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; transition: color 0.2s; }
.artwork-back:hover { color: var(--gold); }
.artwork-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; }
.artwork-image-panel { background: var(--mid); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2.5rem; position: relative; overflow: hidden; gap: 1.2rem; }
.artwork-image-panel::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg,transparent,transparent 30px,rgba(201,162,39,0.03) 30px,rgba(201,162,39,0.03) 31px); pointer-events: none; }
.artwork-main-img { max-width: 100%; max-height: 65vh; object-fit: contain; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,0.7); cursor: zoom-in; transition: transform 0.3s ease; display: block; }
.artwork-main-img:hover { transform: scale(1.02); }
.img-actions { display: flex; gap: 0.8rem; position: relative; z-index: 2; flex-wrap: wrap; justify-content: center; }
.img-btn { font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 0.6rem 1.1rem; border: 1px solid rgba(201,162,39,0.3); background: rgba(10,10,10,0.7); color: var(--muted); cursor: pointer; transition: all 0.25s; display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.img-btn:hover, .img-btn.active { border-color: var(--gold); color: var(--gold); }
.img-btn.liked { border-color: #e74c3c; color: #e74c3c; }
.img-btn svg { width: 13px; height: 13px; flex-shrink: 0; }

.artwork-info-panel { padding: 2.5rem 3rem; display: flex; flex-direction: column; border-left: 1px solid rgba(201,162,39,0.1); overflow-y: auto; max-height: 92vh; }
.artwork-number { font-size: 0.6rem; letter-spacing: 0.4em; color: var(--gold); text-transform: uppercase; margin-bottom: 0.8rem; }
.artwork-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.2rem,4vw,4rem); letter-spacing: 0.06em; line-height: 0.9; color: var(--text); margin-bottom: 1.2rem; }
.artwork-divider { width: 3rem; height: 2px; background: linear-gradient(to right,var(--gold),transparent); margin-bottom: 1.2rem; }
.artwork-desc { font-family: 'Crimson Pro', serif; font-size: 1.05rem; line-height: 1.75; color: rgba(232,224,208,0.75); margin-bottom: 1.5rem; font-weight: 300; }

/* ── BUY ── */
.buy-btn { display: flex; align-items: center; justify-content: center; gap: 0.6rem; font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; background: var(--gold); color: var(--black); border: none; padding: 1rem 2rem; cursor: pointer; width: 100%; font-weight: 700; transition: all 0.25s; margin-bottom: 0.5rem; }
.buy-btn:hover { background: #e6b82a; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,162,39,0.35); }
.buy-note { font-size: 0.55rem; letter-spacing: 0.15em; color: var(--muted); text-align: center; margin-bottom: 1.5rem; text-transform: uppercase; }

/* ── SECTION LABEL ── */
.section-label { font-size: 0.55rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem; padding-bottom: 0.4rem; border-bottom: 1px solid rgba(201,162,39,0.1); }

/* ── WHAT DO YOU SEE ── */
.sees-section { margin-bottom: 1.5rem; }
.sees-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.see-item { font-size: 0.58rem; letter-spacing: 0.1em; color: var(--muted); padding: 0.45rem 0.65rem; border: 1px solid rgba(255,255,255,0.05); background: rgba(255,255,255,0.02); display: flex; align-items: center; gap: 0.5rem; line-height: 1.4; }
.see-num { color: rgba(201,162,39,0.5); font-size: 0.5rem; flex-shrink: 0; }

/* ── COLORS ── */
.color-section { margin-bottom: 1.5rem; }
.color-swatches { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.8rem; }
.color-swatch { width: 20px; height: 20px; border-radius: 2px; border: 1px solid rgba(255,255,255,0.1); cursor: pointer; transition: transform 0.2s; position: relative; }
.color-swatch:hover { transform: scale(1.5); z-index: 10; }
.color-swatch .swatch-tip { display: none; position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%); background: var(--dark); color: var(--text); font-size: 0.5rem; white-space: nowrap; padding: 3px 7px; border: 1px solid rgba(201,162,39,0.3); pointer-events: none; z-index: 20; }
.color-swatch:hover .swatch-tip { display: block; }
.color-names { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.color-tag { font-size: 0.52rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border: 1px solid rgba(201,162,39,0.12); padding: 0.22rem 0.55rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.color-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.artwork-meta { font-size: 0.6rem; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.5rem; }
.artwork-nav-row { display: flex; gap: 1rem; }
.artwork-nav-btn { font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.7rem 1.4rem; border: 1px solid rgba(201,162,39,0.3); background: none; color: var(--muted); cursor: pointer; text-decoration: none; transition: all 0.25s; display: inline-block; }
.artwork-nav-btn:hover { border-color: var(--gold); color: var(--gold); }
.artwork-nav-btn.disabled { opacity: 0.3; pointer-events: none; }

/* ── ABOUT ── */
#about-page { padding: 8rem 3rem 6rem; max-width: 900px; margin: 0 auto; }
#about-page h2 { font-family: 'Bebas Neue', sans-serif; font-size: 4rem; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 2rem; }
.about-content p { font-family: 'Crimson Pro', serif; font-size: 1.2rem; line-height: 1.85; color: rgba(232,224,208,0.8); margin-bottom: 1.5rem; font-weight: 300; }

/* ── FOOTER ── */
#site-footer { border-top: 1px solid rgba(201,162,39,0.1); padding: 2rem 3rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.6rem; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; color: var(--gold); letter-spacing: 0.1em; }

/* ── ZOOM ── */
.zoom-overlay { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.96); align-items: center; justify-content: center; }
.zoom-overlay.open { display: flex; }
.zoom-container { position: relative; max-width: 94vw; max-height: 90vh; overflow: hidden; cursor: grab; }
.zoom-container:active { cursor: grabbing; }
.zoom-img { max-width: 94vw; max-height: 90vh; object-fit: contain; transition: transform 0.15s; transform-origin: center; display: block; user-select: none; pointer-events: none; }
.zoom-controls { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.8rem; z-index: 1001; }
.zoom-btn { font-family: 'DM Mono', monospace; font-size: 1.1rem; width: 44px; height: 44px; border: 1px solid rgba(201,162,39,0.4); background: rgba(10,10,10,0.9); color: var(--gold); cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.zoom-btn:hover { background: var(--gold); color: var(--black); }
.zoom-close { position: fixed; top: 1.5rem; right: 2rem; font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); background: none; border: 1px solid rgba(255,255,255,0.1); padding: 0.5rem 1rem; cursor: pointer; z-index: 1001; transition: all 0.2s; }
.zoom-close:hover { color: var(--text); border-color: rgba(255,255,255,0.3); }
.zoom-hint { position: fixed; top: 1.5rem; left: 50%; transform: translateX(-50%); font-size: 0.55rem; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; z-index: 1001; pointer-events: none; }

/* ── SHARE MODAL ── */
.share-modal { display: none; position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,0.8); align-items: center; justify-content: center; }
.share-modal.open { display: flex; }
.share-box { background: var(--dark); border: 1px solid rgba(201,162,39,0.2); padding: 2.5rem; max-width: 400px; width: 90%; }
.share-title { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 0.4rem; }
.share-sub { font-size: 0.6rem; letter-spacing: 0.15em; color: var(--muted); text-transform: uppercase; margin-bottom: 2rem; }
.share-btns { display: flex; flex-direction: column; gap: 0.8rem; }
.share-item { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.2rem; border: 1px solid rgba(255,255,255,0.07); cursor: pointer; transition: all 0.2s; text-decoration: none; color: var(--text); }
.share-item:hover { border-color: var(--gold); background: rgba(201,162,39,0.05); }
.share-icon { width: 20px; height: 20px; flex-shrink: 0; }
.share-label { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; }
.share-close { margin-top: 1.5rem; width: 100%; font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.7rem; border: 1px solid rgba(255,255,255,0.1); background: none; color: var(--muted); cursor: pointer; transition: all 0.2s; }
.share-close:hover { color: var(--text); }

/* ── BUY MODAL ── */
.buy-modal { display: none; position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,0.85); align-items: center; justify-content: center; }
.buy-modal.open { display: flex; }
.buy-box { background: var(--dark); border: 1px solid rgba(201,162,39,0.3); padding: 2.5rem; max-width: 460px; width: 90%; max-height: 92vh; overflow-y: auto; }
.buy-box-title { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 0.4rem; }
.buy-artwork-name { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 0.06em; color: var(--text); margin-bottom: 1.5rem; }
.buy-options { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1.5rem; }
.buy-option { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.2rem; border: 1px solid rgba(255,255,255,0.07); cursor: pointer; transition: all 0.2s; }
.buy-option:hover, .buy-option.selected { border-color: var(--gold); background: rgba(201,162,39,0.06); }
.buy-option-label { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text); }
.buy-option-price { font-size: 0.75rem; color: var(--gold); font-weight: 700; }
.buy-form { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1.5rem; }
.buy-input { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); color: var(--text); padding: 0.8rem 1rem; font-family: 'DM Mono', monospace; font-size: 0.65rem; outline: none; width: 100%; }
.buy-input:focus { border-color: var(--gold); }
.buy-input::placeholder { color: var(--muted); }
.buy-submit { background: var(--gold); color: var(--black); border: none; padding: 1rem; font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; cursor: pointer; width: 100%; font-weight: 700; transition: all 0.2s; }
.buy-submit:hover { background: #e6b82a; }
.buy-modal-close { width: 100%; font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.7rem; border: 1px solid rgba(255,255,255,0.1); background: none; color: var(--muted); cursor: pointer; margin-top: 0.5rem; transition: all 0.2s; }
.buy-modal-close:hover { color: var(--text); }
.buy-success { text-align: center; padding: 2rem 0; }
.buy-success-icon { font-size: 3rem; margin-bottom: 1rem; }
.buy-success h3 { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--gold); letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.buy-success p { font-family: 'Crimson Pro', serif; font-size: 1rem; color: var(--muted); }

/* ── TOAST ── */
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(4rem); background: var(--dark); border: 1px solid rgba(201,162,39,0.3); color: var(--text); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.8rem 1.5rem; z-index: 2000; transition: transform 0.3s ease; pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    #site-nav { padding: 1rem 1.5rem; }
    .artwork-layout { grid-template-columns: 1fr; }
    .artwork-info-panel { padding: 2rem 1.5rem; border-left: none; border-top: 1px solid rgba(201,162,39,0.1); max-height: none; }
    #gallery { padding: 4rem 1rem; }
    .gallery-grid { grid-template-columns: repeat(2,1fr); }
    .sees-grid { grid-template-columns: 1fr; }
    #site-footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .hero-strip { display: none; }
    .artwork-nav-row { flex-direction: column; }
}
