/* Char's Charcuterie — Gallery & Public Pages */

/* ─── Banner Hero (extended for full-width portal) ─── */

.banner {
  display: block;
  padding: 0;
}

.banner-inner {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  align-items: center;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 48px 20px 48px;
  position: relative;
  z-index: 1;
}

.board {
  justify-self: center;
  align-self: center;
  height: 280px;
  width: auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
  transition: transform 0.4s ease;
}
.board:hover {
  transform: scale(1.03) rotate(1deg);
}

/* ─── Navigation ─── */

.gallery-nav {
  background: var(--banner-black);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.nav-links {
  display: flex;
  gap: 0;
}

.nav-link {
  display: block;
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-white);
  opacity: 0.6;
  transition: opacity 0.2s, background 0.2s;
  border-bottom: 2px solid transparent;
}
.nav-link:hover {
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.04);
}
.nav-link.active {
  opacity: 1;
  border-bottom-color: var(--wood-mid);
}

/* ─── Gallery Grid ─── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding-top: 8px;
}

/* ─── Item Card ─── */

.item-card {
  position: relative;
  background: #fff;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.item-card.sold {
  opacity: 0.65;
  filter: grayscale(0.35);
}
.item-card.sold:hover {
  opacity: 0.8;
  filter: grayscale(0.15);
}

.card-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e8e4de, #d4cfc6);
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.item-card:hover .card-image {
  transform: scale(1.04);
}

.card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  opacity: 0.4;
}

/* ─── SOLD Ribbon ─── */

.sold-ribbon {
  position: absolute;
  top: 18px;
  right: -35px;
  background: var(--sold-red);
  color: var(--ink-white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 40px;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(176, 65, 58, 0.35);
  z-index: 2;
}

/* ─── Card Body ─── */

.card-body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}

.card-description {
  font-size: 13px;
  opacity: 0.7;
  line-height: 1.45;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.card-price {
  font-weight: 600;
  font-size: 15px;
  color: var(--wood-dark);
}

.card-cta {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wood-mid);
  font-weight: 400;
}

/* ─── Section Titles ─── */

.section-title {
  font-family: var(--font-script);
  font-size: 42px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 20px;
  color: var(--banner-black);
}

/* ─── About Section ─── */

.about-section {
  background: var(--banner-black);
  color: var(--ink-white);
}

.about-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.about-section .section-title {
  color: var(--ink-white);
}

.about-body {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.88;
}

/* ─── Footer ─── */

.site-footer {
  background: var(--banner-black-2);
  color: var(--ink-white);
  padding: 32px 0 24px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.footer-script {
  font-size: 28px;
  line-height: 1;
}

.footer-sub {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

.footer-contact {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 13px;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-link:hover {
  opacity: 1;
}

.footer-copy {
  font-size: 12px;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ─── Empty State ─── */

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

/* ─── Responsive ─── */

@media (max-width: 640px) {
  .banner-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 16px 32px;
    gap: 24px;
  }
  .board {
    height: auto;
    max-height: 220px;
  }
  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  .nav-link {
    padding: 10px 14px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .card-body {
    padding: 12px 14px 16px;
  }
  .card-title {
    font-size: 14px;
  }
  .card-description {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }
  .card-price {
    font-size: 13px;
  }
  .card-cta {
    font-size: 11px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-contact {
    justify-content: center;
  }
}

@media (max-width: 460px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .card-title {
    font-size: 15px;
  }
  .card-description {
    font-size: 13px;
  }
}
