/* storefront.css — gallery, painting detail, artist, and shared nav/footer */

/* ─── Site Header ─────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  background: rgba(14, 12, 11, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-logo:hover {
  color: var(--accent);
  transition: color 0.2s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link-active {
  color: var(--fg);
}

.nav-link-contact {
  color: var(--accent);
  font-weight: 500;
}

.nav-link-contact:hover {
  color: var(--accent-light);
}

/* ─── Site Footer ─────────────────────────────────────────────────────────── */

.site-footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer-brand {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
}

.site-footer-info {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ─── Shared: section-label ───────────────────────────────────────────────── */

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

/* ─── Shared: buttons ─────────────────────────────────────────────────────── */

.btn-primary {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* ─── Page hero (gallery / artist) ───────────────────────────────────────── */

.page-hero {
  padding: 10rem 2rem 5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 40%, rgba(196, 112, 63, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.25rem;
}

.page-hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.8;
}

/* ─── Gallery grid ────────────────────────────────────────────────────────── */

.gallery-section {
  padding: 5rem 2rem;
}

.gallery-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-empty {
  padding: 6rem 0;
  text-align: center;
  color: var(--fg-muted);
}

.painting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

/* Painting card */
.painting-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.painting-card:hover {
  transform: translateY(-4px);
}

.painting-card:hover .painting-card-image::after {
  opacity: 1;
}

.painting-card-image {
  aspect-ratio: 4 / 3;
  background: var(--surface-light);
  position: relative;
  overflow: hidden;
}

.painting-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(196, 112, 63, 0.12);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.painting-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.painting-card:hover .painting-card-image img {
  transform: scale(1.03);
}

.painting-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-light);
  position: relative;
}

/* Placeholder uses a large initial with the accent color */
.placeholder-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  user-select: none;
}

.painting-card-edition-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: rgba(14, 12, 11, 0.8);
  padding: 0.35rem 0.65rem;
  backdrop-filter: blur(4px);
}

.painting-card-sold {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: rgba(14, 12, 11, 0.85);
  padding: 0.35rem 0.65rem;
}

.painting-card-info {
  padding: 1.75rem;
  border-top: 1px solid var(--border);
}

.painting-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.painting-card-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;

  /* Clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.painting-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.painting-card-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
}

.painting-card-limit {
  font-size: 0.78rem;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
}

/* Gallery CTA */
.gallery-cta {
  padding: 6rem 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
}

.gallery-cta-inner {
  max-width: 500px;
  margin: 0 auto;
}

.gallery-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.gallery-cta p {
  color: var(--fg-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* ─── Painting detail ─────────────────────────────────────────────────────── */

.painting-detail {
  padding-top: 5rem; /* offset for fixed header */
  min-height: 100vh;
}

.painting-detail-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: calc(100vh - 5rem);
}

.painting-detail-image {
  position: sticky;
  top: 5rem;
  height: calc(100vh - 5rem);
  overflow: hidden;
  background: var(--surface);
}

.painting-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3rem;
}

.painting-detail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-light);
}

.placeholder-mark-lg {
  font-family: var(--font-display);
  font-size: 12rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  user-select: none;
}

.painting-detail-info {
  padding: 5rem 4rem;
  border-left: 1px solid var(--border);
}

.back-link {
  font-size: 0.82rem;
  color: var(--fg-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--accent);
}

.painting-detail-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.painting-detail-desc {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.painting-detail-pricing {
  margin-bottom: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.painting-detail-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.35rem;
}

.painting-detail-edition-info {
  font-size: 0.85rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.sold-out-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  padding: 0.6rem 1.25rem;
  margin-bottom: 3rem;
}

.painting-story {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.painting-story .section-label {
  margin-bottom: 1.25rem;
}

.painting-story p {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.9;
  font-style: italic;
}

/* ─── Artist page ─────────────────────────────────────────────────────────── */

.artist-page-hero {
  padding: 10rem 2rem 5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.artist-page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 20% 60%, rgba(196, 112, 63, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.artist-page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.artist-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.artist-page-tagline {
  font-size: 1rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.artist-page-body {
  padding: 6rem 2rem;
  border-bottom: 1px solid var(--border);
}

.artist-page-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 6rem;
  align-items: start;
}

.artist-page-bio h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.artist-page-bio p {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.artist-page-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 0.5rem;
}

.artist-stat {
  border-left: 2px solid var(--border);
  padding-left: 1.5rem;
}

.artist-stat-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.2rem;
}

.artist-stat-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

/* Philosophy pullquote */
.artist-page-philosophy {
  padding: 8rem 2rem;
  background: var(--surface);
  text-align: center;
}

.artist-page-philosophy-inner {
  max-width: 800px;
  margin: 0 auto;
}

.artist-page-philosophy blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--fg);
  margin-bottom: 2rem;
}

.artist-page-philosophy-sub {
  font-size: 0.82rem;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
}

/* Process section */
.artist-page-process {
  padding: 6rem 2rem;
  border-bottom: 1px solid var(--border);
}

.artist-page-process-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.artist-page-process h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3.5rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.process-number {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.25rem;
  letter-spacing: 0.1em;
}

.process-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.process-item p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.75;
}

/* Contact CTA */
.artist-page-contact {
  padding: 6rem 2rem;
  text-align: center;
}

.artist-page-contact-inner {
  max-width: 480px;
  margin: 0 auto;
}

.artist-page-contact h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.artist-page-contact p {
  color: var(--fg-muted);
  margin-bottom: 2rem;
}

/* ─── 404 ─────────────────────────────────────────────────────────────────── */

.not-found {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem;
}

.not-found-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.not-found h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.not-found p {
  font-size: 1.1rem;
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
}

/* ─── Landing page nav injection ──────────────────────────────────────────── */
/* Adds the nav to the existing landing page sections */

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(14, 12, 11, 0.0);
  transition: background 0.3s ease;
}

.landing-nav.scrolled {
  background: rgba(14, 12, 11, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.landing-nav-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.landing-nav-link {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.landing-nav-link:hover {
  color: var(--fg);
}

.landing-nav-link-cta {
  color: var(--accent);
  font-weight: 500;
}

.landing-nav-link-cta:hover {
  color: var(--accent-light);
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .painting-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .painting-detail-inner {
    grid-template-columns: 1fr;
  }

  .painting-detail-image {
    position: relative;
    top: 0;
    height: 60vw;
    max-height: 500px;
  }

  .painting-detail-info {
    padding: 3rem 2rem;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .artist-page-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .painting-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 1.25rem;
  }

  .site-header {
    padding: 1rem 1.25rem;
  }

  .painting-detail-info {
    padding: 2.5rem 1.5rem;
  }

  .artist-page-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .site-footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
