/* ─── SeeBeyondArt — Main Stylesheet ───────────────────────────────────────── */

:root {
  --sba-dark:    #0d0d0d;
  --sba-gold:    #c9a84c;
  --sba-cream:   #f8f4ef;
  --sba-mid:     #4a4a4a;
  --sba-light:   #f0ece6;
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { font-family: var(--font-sans); background: #fff; color: var(--sba-dark); }

/* ─── Navbar ─────────────────────────────────────────────────────────────── */
.sba-navbar {
  background: var(--sba-dark);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sba-nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  margin-right: 8px;
  vertical-align: middle;
  object-fit: cover;
}

.sba-brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-see    { color: #fff; }
.brand-beyond { color: var(--sba-gold); }
.brand-art    { color: rgba(255,255,255,0.55); }

.sba-search { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: #fff; }
.sba-search::placeholder { color: rgba(255,255,255,0.4); }
.sba-search:focus { background: rgba(255,255,255,0.12); color: #fff; border-color: var(--sba-gold); box-shadow: none; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.sba-hero {
  background: var(--sba-dark);
  color: #fff;
  padding: 6rem 1rem 5rem;
  text-align: center;
}
.sba-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
}
.sba-hero-title .highlight { color: var(--sba-gold); }
.sba-hero-logo {
  max-width: min(680px, 90vw);
  width: 100%;
  border-radius: 16px;
}

.sba-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 1.25rem auto 0;
}

/* ─── Sections ───────────────────────────────────────────────────────────── */
.sba-section-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
}
.sba-page-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
}

/* ─── Artwork Cards ──────────────────────────────────────────────────────── */
.sba-artwork-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--sba-cream);
  transition: transform 0.2s, box-shadow 0.2s;
}
.sba-artwork-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

.sba-artwork-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; background: #e8e4df; }
.sba-artwork-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.sba-artwork-card:hover .sba-artwork-img { transform: scale(1.04); }

.sba-artwork-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s;
}
.sba-artwork-card:hover .sba-artwork-overlay { opacity: 1; }

.sba-artwork-card-sm {
  border-radius: 6px; overflow: hidden; background: var(--sba-cream);
  transition: transform 0.2s, box-shadow 0.2s;
}
.sba-artwork-card-sm:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.sba-artwork-img-sm { aspect-ratio: 1/1; object-fit: cover; display: block; }

/* ─── Artwork Detail ─────────────────────────────────────────────────────── */
.sba-artwork-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
}
.sba-artwork-viewer { position: relative; background: var(--sba-cream); border-radius: 8px; overflow: hidden; }
.sba-main-image { display: block; }

.sba-tabs .nav-link { color: var(--sba-mid); border-bottom: 2px solid transparent; padding-bottom: 0.5rem; }
.sba-tabs .nav-link.active { color: var(--sba-dark); border-bottom-color: var(--sba-gold); background: none; }
.sba-tab-content { min-height: 120px; }

/* ─── Guided Discovery ───────────────────────────────────────────────────── */
.sba-discovery-section { border-top: 1px solid #e8e4df; padding-top: 3rem; }
.sba-discovery-layout { min-height: 600px; }

.sba-sticky-viewer {
  position: sticky;
  top: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--sba-cream);
}
.sba-disc-highlight {
  position: absolute;
  border: 3px solid var(--sba-gold);
  border-radius: 4px;
  box-shadow: 0 0 0 2000px rgba(0,0,0,0.45);
  transition: all 0.5s ease;
  pointer-events: none;
}

.sba-steps-scroll { max-height: 85vh; overflow-y: auto; padding-right: 4px; }

.sba-step-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 8px;
  border: 2px solid transparent;
  background: var(--sba-cream);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.sba-step-card:hover,
.sba-step-card.active {
  border-color: var(--sba-gold);
  background: #fff;
}

.sba-step-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--sba-dark); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
}
.sba-step-card.active .sba-step-num { background: var(--sba-gold); }
.sba-step-body h5 { font-family: var(--font-serif); font-size: 1rem; margin-bottom: 0.4rem; }
.sba-step-meta { margin-top: 0.5rem; }

/* ─── Recently Added Grid ────────────────────────────────────────────────── */
.sba-recent-section { background: #fff; }

.sba-recent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 8px;
}

.sba-recent-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  display: block;
  background: var(--sba-cream);
  text-decoration: none;
}

.sba-recent-card--featured {
  grid-column: span 2;
  grid-row: span 2;
}

.sba-recent-img-wrap {
  width: 100%; height: 100%;
}

.sba-recent-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.sba-recent-card:hover .sba-recent-img-wrap img {
  transform: scale(1.05);
}

.sba-recent-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 50%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.sba-recent-card:hover .sba-recent-overlay,
.sba-recent-card--featured .sba-recent-overlay {
  opacity: 1;
}

.sba-recent-title {
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.sba-recent-card--featured .sba-recent-title {
  font-size: 1.25rem;
}

.sba-recent-artist {
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .sba-recent-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
}

@media (max-width: 480px) {
  .sba-recent-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 130px;
  }
}

/* ─── Concept section ────────────────────────────────────────────────────── */
.sba-concept { background: var(--sba-cream); }
.sba-feature-card { background: #fff; border-radius: 8px; height: 100%; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.sba-footer { background: var(--sba-dark); color: rgba(255,255,255,0.6); border-top: 1px solid rgba(255,255,255,0.08); }
.sba-brand-sm { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; }

/* ─── Utilities ──────────────────────────────────────────────────────────── */
.x-small { font-size: 0.72rem; }
