/* Post War Gems — Style */

:root {
  --bg: #fafaf8;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --border: #e5e5e0;
  --accent: #1a1a1a;
  --white: #ffffff;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  --max-width: 1400px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem var(--spacing-md);
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
}

.hero-content {
  max-width: 720px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: var(--spacing-md);
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Gallery */
.gallery-section {
  padding: 0 var(--spacing-md) var(--spacing-xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.filters {
  display: flex;
  gap: 0.25rem;
}

.filter {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: color 0.2s ease;
  border-radius: 2px;
}

.filter:hover {
  color: var(--text);
}

.filter.active {
  color: var(--text);
  background: var(--border);
}

#artist-select {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border-radius: 2px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236b6b6b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

#artist-select:focus {
  outline: none;
  border-color: var(--text);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--border);
}

.gallery-item {
  position: relative;
  background: var(--bg);
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay .artist {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: #fff;
  margin-bottom: 0.125rem;
}

.gallery-item-overlay .title-year {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.8);
}

.gallery-item.hidden {
  display: none;
}

/* About */
.about-section {
  padding: var(--spacing-xl) var(--spacing-md);
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-content {
  max-width: 640px;
  margin: 0 auto;
}

.about-content h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: var(--spacing-md);
}

.about-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

.about-content strong {
  color: var(--text);
  font-weight: 500;
}

/* Contact */
.contact-section {
  padding: var(--spacing-xl) var(--spacing-md);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact-section h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: var(--spacing-sm);
}

.contact-intro {
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
  font-size: 0.9375rem;
}

.inquiry-form {
  text-align: left;
}

.form-group {
  margin-bottom: var(--spacing-sm);
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  border-radius: 2px;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--text);
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover {
  background: #333;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: var(--spacing-md);
  border-top: 1px solid var(--border);
}

.site-footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  cursor: pointer;
}

.modal-content {
  position: relative;
  display: flex;
  background: var(--bg);
  max-width: 1100px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 2px;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: rgba(0,0,0,0.8);
}

.modal-image {
  flex: 1;
  min-width: 0;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-image img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.modal-details {
  flex: 0 0 360px;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
}

.modal-details h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.modal-title {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--border);
}

.modal-type {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.modal-price {
  font-size: 1.0625rem;
  color: var(--text);
  margin-bottom: var(--spacing-sm);
}

.modal-description {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
  flex: 1;
}

.inquire-piece {
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header {
    padding: 1rem var(--spacing-sm);
  }

  nav {
    gap: 1rem;
  }

  .hero {
    min-height: 50vh;
    padding: 6rem var(--spacing-sm) var(--spacing-lg);
  }

  .gallery-section {
    padding: 0 var(--spacing-sm) var(--spacing-lg);
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .gallery-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-content {
    flex-direction: column;
    max-height: 95vh;
  }

  .modal-image {
    padding: 1rem;
  }

  .modal-image img {
    max-height: 40vh;
  }

  .modal-details {
    flex: auto;
    padding: 1.5rem;
  }

  .about-section,
  .contact-section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
}
