/* ============================================================
   Vanesa Andrić — art portfolio & store
   Dark, gallery-first theme.
   ============================================================ */

:root {
    --bg:        #0b0b0d;
    --bg-soft:   #121216;
    --bg-card:   #16161b;
    --line:      #26262e;
    --text:      #ece9e4;
    --text-dim:  #9a978f;
    --accent:    #c9a66b;   /* warm gold, echoes charcoal-on-warm-paper */
    --accent-dim:#8f7a4e;
    --danger:    #e07a5f;
    --ok:        #8bb174;
    --radius:    14px;
    --maxw:      1200px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Ambient page background: warm radial glow (Option A) + edge vignette (Option C).
   Fixed, behind everything, no layout impact. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(1000px 600px at 50% 6%, rgba(201,166,107,0.22), transparent 62%),
        radial-gradient(700px 500px at 85% 40%, rgba(90,120,180,0.10), transparent 60%),
        radial-gradient(120% 100% at 50% 45%, transparent 42%, rgba(0,0,0,0.72) 100%);
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .brand-name, .display {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11,11,13,0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand-name { font-size: 1.5rem; color: var(--text); }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a {
    font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-dim); transition: color 0.2s;
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav .nav-ig { color: var(--accent); }

/* Hamburger button — hidden on desktop, shown on mobile */
.nav-toggle {
    display: none; background: none; border: 0; cursor: pointer;
    width: 40px; height: 40px; padding: 8px; flex-direction: column;
    justify-content: center; gap: 5px;
}
.nav-toggle span {
    display: block; height: 2px; width: 100%; background: var(--text);
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    padding: 96px 0 72px;
    text-align: center;
    border-bottom: 1px solid var(--line);
    /* glow now comes from the page-level body::before, so the hero stays transparent */
    background: transparent;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05; }
.hero .tagline {
    margin-top: 14px; font-style: italic; color: var(--accent);
    font-family: 'Cormorant Garamond', serif; font-size: clamp(1.1rem, 2.4vw, 1.5rem);
}
.hero .intro { margin: 22px auto 0; max-width: 560px; color: var(--text-dim); }

/* ---------- Section headings ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; }
.section-head h2 { font-size: 2rem; }
.section-head .muted { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Gallery grid ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}
.card,
.card-media,
.card-media img {
    border-radius: 0 !important;   /* sharp 90° corners — force over any override */
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-dim); }
.card-media { position: relative; aspect-ratio: 4 / 5; background: #0f0f12; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.card-title { font-size: 1.2rem; }
.card-price { color: var(--accent); font-weight: 500; }

.badge {
    position: absolute; top: 12px; left: 12px;
    font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 5px 10px; border-radius: 0; backdrop-filter: blur(4px);
}
.badge-available { background: rgba(139,177,116,0.18); color: var(--ok); border: 1px solid rgba(139,177,116,0.35); }
.badge-sold { background: rgba(224,122,95,0.18); color: var(--danger); border: 1px solid rgba(224,122,95,0.35); }
.badge-reserved { background: rgba(201,166,107,0.18); color: var(--accent); border: 1px solid rgba(201,166,107,0.35); }

/* ---------- Empty state ---------- */
.empty {
    text-align: center; padding: 80px 20px; color: var(--text-dim);
    border: 1px dashed var(--line); border-radius: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 22px; border-radius: 0; cursor: pointer;
    font-size: 0.9rem; letter-spacing: 0.03em; border: 1px solid transparent;
    transition: all 0.2s ease; font-family: inherit;
}
.btn-primary { background: var(--accent); color: #1a140a; font-weight: 500; }
.btn-primary:hover { background: #d8b878; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-dim); color: var(--accent); }
.btn[disabled], .btn.is-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ---------- Artwork detail ---------- */
.detail { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; padding: 56px 0; }
.detail-img { border: 1px solid var(--line); border-radius: 0; overflow: hidden; background: #0f0f12; }
.detail-img img { width: 100%; display: block; }
.detail-info h1 { font-size: 2.6rem; line-height: 1.1; }
.detail-meta { color: var(--text-dim); margin-top: 8px; }
.detail-price { font-size: 1.6rem; color: var(--accent); margin: 22px 0; font-family: 'Cormorant Garamond', serif; }
.detail-desc { color: var(--text); margin: 18px 0; white-space: pre-line; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.back-link { color: var(--text-dim); font-size: 0.85rem; }
.back-link:hover { color: var(--accent); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.form label { font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim); display: block; margin-bottom: 6px; }
.form input, .form textarea, .form select {
    width: 100%; padding: 12px 14px; background: var(--bg-soft);
    border: 1px solid var(--line); border-radius: 0; color: var(--text);
    font-family: inherit; font-size: 0.95rem;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent-dim); }
.form textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--text-dim); }

.alert { padding: 13px 16px; border-radius: 0; font-size: 0.9rem; }
.alert-ok { background: rgba(139,177,116,0.14); color: var(--ok); border: 1px solid rgba(139,177,116,0.3); }
.alert-err { background: rgba(224,122,95,0.14); color: var(--danger); border: 1px solid rgba(224,122,95,0.3); }
.hidden { display: none; }

/* ---------- Commissions ---------- */
.prose { max-width: 680px; color: var(--text); }
.prose p { margin-bottom: 14px; color: var(--text-dim); }
.prose strong { color: var(--text); }

/* ---------- Reels ---------- */
.reels-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; justify-items: center; }
.reel-item { width: 100%; max-width: 400px; }
.reel-item .instagram-media { margin: 0 auto !important; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .brand-name { font-size: 1.3rem; }
.footer-tag { font-style: italic; color: var(--accent); font-family: 'Cormorant Garamond', serif; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--text-dim); font-size: 0.82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .detail { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }

    /* Show hamburger, collapse nav into a dropdown panel */
    .nav-toggle { display: flex; }
    .header-inner { position: relative; }
    .nav {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: rgba(11,11,13,0.98); backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--line);
        max-height: 0; overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav.is-open { max-height: 320px; }
    .nav a {
        padding: 16px 24px; border-top: 1px solid var(--line);
        font-size: 0.85rem;
    }
    .nav a:first-child { border-top: 0; }

    /* Tighter hero on phones */
    .hero { padding: 56px 0 44px; }
    .hero .intro { font-size: 0.95rem; }

    .section { padding: 44px 0; }
    .section-head { margin-bottom: 22px; }
    .section-head h2 { font-size: 1.6rem; }

    .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
    .card-title { font-size: 1.05rem; }
    .card-body { padding: 12px 14px 16px; }

    .about-copy { font-size: 1rem; }
}

@media (max-width: 420px) {
    .wrap { padding: 0 16px; }
    .brand-name { font-size: 1.2rem; }
    .hero h1 { font-size: 2.2rem; }
    .gallery { grid-template-columns: 1fr 1fr; }
    .detail-info h1 { font-size: 2rem; }
    .detail-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- About page ---------- */
.about-copy {
    max-width: 680px; color: var(--text-dim); font-size: 1.05rem; line-height: 1.8;
    white-space: pre-line;
}
.about-columns { display: flex; flex-direction: column; gap: 40px; }
.about-block { max-width: 720px; }
.about-label {
    font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 12px;
}
