/* ───────────────────────────────────────────────────────────────────────────
   Snake River Forge — single stylesheet
   Palette: warm off-white background, near-black text, oxblood accent.
─────────────────────────────────────────────────────────────────────────── */
:root {
    --bg:        #faf8f5;
    --surface:   #ffffff;
    --text:      #1c1a18;
    --muted:     #6b645c;
    --line:      #e6e1da;
    --accent:    #8a3b2e;   /* oxblood */
    --accent-dk: #6e2e23;
    --max:       1180px;
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow    { max-width: 720px; }
.center    { text-align: center; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .02em;
    padding: 12px 26px;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--text); }
.btn-outline:hover { background: var(--text); color: var(--bg); }
.btn-disabled { background: transparent; color: var(--muted); border-color: var(--line); cursor: default; }

.link-arrow { font-weight: 600; }

/* ── Header / nav ────────────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 248, 245, .92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand-logo { width: 44px; height: 44px; object-fit: contain; }
.brand-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; letter-spacing: .01em; }

.site-nav { display: flex; gap: 30px; }
.site-nav a {
    color: var(--text);
    font-weight: 500;
    font-size: .98rem;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a.active { border-bottom-color: var(--accent); }

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle-btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-toggle-btn span { width: 24px; height: 2px; background: var(--text); display: block; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; }
.hero-media {
    height: 68vh; min-height: 420px;
    background: linear-gradient(180deg, #2a2622, #4a3f37);
    background-image: url("../img/hero.jpg");
    background-size: cover; background-position: center;
}
.hero-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    background:
        linear-gradient(90deg, rgba(20,14,10,.78) 0%, rgba(20,14,10,.45) 45%, rgba(20,14,10,.15) 100%),
        linear-gradient(180deg, rgba(20,14,10,0) 55%, rgba(20,14,10,.45) 100%);
}
.hero-title {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4rem);
    max-width: 16ch;
    margin-bottom: .6em;
    text-shadow: 0 2px 12px rgba(0,0,0,.45);
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.intro { padding: 80px 0; text-align: center; }
.intro p { font-size: 1.25rem; color: var(--muted); font-family: var(--serif); margin-bottom: 1em; }

.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.section-sub { color: var(--muted); margin-top: -.4em; }

.page-head { padding: 60px 0 10px; }
.featured  { padding: 20px 0 90px; }
.store     { padding: 30px 0 90px; }
.about     { padding: 20px 0 90px; }

.featured .section-title, .store .section-title { text-align: center; margin-bottom: 40px; }
.center { margin-top: 40px; }

/* ── Product grid ────────────────────────────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}
.product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.08); transform: translateY(-3px); }
.product-card[role="button"] { cursor: pointer; }
.product-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.product-image { position: relative; aspect-ratio: 4 / 3; background: #efeae3; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.badge-sold {
    position: absolute; top: 12px; left: 12px;
    background: var(--text); color: #fff;
    font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 2px;
}
.product-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-name { font-size: 1.5rem; margin-bottom: .15em; }
.product-blurb { color: var(--muted); font-size: .95rem; margin: 0 0 18px; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }

/* ── Prose (About) ───────────────────────────────────────────────────────── */
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose p  { color: var(--muted); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.footer-inner {
    display: flex; flex-wrap: wrap; gap: 24px;
    justify-content: space-between; align-items: flex-start;
    padding: 50px 24px 30px;
}
.footer-tagline { color: var(--muted); margin: .3em 0 0; max-width: 32ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--text); font-weight: 500; font-size: .95rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { padding: 20px 24px 40px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }

/* ── Product modal + carousel ────────────────────────────────────────────── */
body.modal-open { overflow: hidden; }

.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,14,10,.6); backdrop-filter: blur(2px); }

.modal-dialog {
    position: relative;
    background: var(--surface);
    width: min(880px, 92vw);
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 5px;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
    z-index: 1;
}
.modal-close {
    position: absolute; top: 10px; right: 14px; z-index: 3;
    width: 38px; height: 38px;
    background: rgba(255,255,255,.85);
    border: 1px solid var(--line); border-radius: 50%;
    font-size: 1.5rem; line-height: 1; color: var(--text);
    cursor: pointer;
}
.modal-close:hover { background: #fff; color: var(--accent); }

/* Gallery */
.modal-gallery { position: relative; display: flex; align-items: center; background: #efeae3; }
.gallery-stage { flex: 1; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.85);
    border: 1px solid var(--line); border-radius: 4px;
    font-size: 1.2rem; color: var(--text); cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.gallery-arrow:hover { background: #fff; color: var(--accent); }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }

.gallery-dots { display: flex; justify-content: center; gap: 8px; padding: 14px 0 4px; }
.gallery-dot {
    width: 9px; height: 9px; padding: 0;
    border: 1px solid var(--accent); border-radius: 50%;
    background: transparent; cursor: pointer;
}
.gallery-dot.active { background: var(--accent); }

/* Body / text */
.modal-body { padding: 24px 30px 34px; }
.modal-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.modal-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.modal-price { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--accent); }

.modal-specs {
    display: grid; grid-template-columns: max-content 1fr;
    column-gap: 18px; row-gap: 6px;
    margin: 18px 0 0; padding: 18px 0 0;
    border-top: 1px solid var(--line);
    font-size: .95rem;
}
.modal-specs dt { color: var(--muted); font-weight: 600; }
.modal-specs dd { margin: 0; }

.modal-details { margin-top: 18px; color: var(--muted); line-height: 1.7; }
.modal-actions { margin-top: 24px; }

@media (max-width: 560px) {
    .modal-body { padding: 20px 20px 28px; }
    .gallery-arrow { width: 40px; height: 40px; }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
    .nav-toggle-btn { display: flex; }
    .site-nav {
        display: none;
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        padding: 8px 24px 16px;
    }
    .nav-toggle:checked ~ .site-nav { display: flex; }
    .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .site-nav a.active { border-bottom-color: var(--line); color: var(--accent); }
    .footer-inner { flex-direction: column; }
}

.footer-links a.footer-social { display: inline-flex; align-items: center; color: #1c1a18; }
.footer-links a.footer-social:hover { color: var(--accent); }
