/* =========================================
   1. BASE VARIABLES & WARM PARCHMENT THEME
   ========================================= */
:root {
  --bg-color: #EDE9E0;       /* Soft warm parchment (easy on the eyes, zero glare) */
  --surface-alt: #E3DEC9;    /* Muted linen card/form surface */
  --nav-bg: #1E1D1B;         /* Deep charcoal contrasting top banner */
  --nav-text: #F5F2EB;       /* Warm ivory banner text */
  --text-main: #1C1B19;      /* Rich ink black */
  --text-muted: #5C5952;     /* Warm slate gray */
  --border-color: #D6D0C4;   /* Subtle warm border */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

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

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

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

/* =========================================
   2. CONTRASTING NAVIGATION BANNER & FOOTER
   ========================================= */
.navbar {
  position: sticky;
  top: 0;
  background-color: var(--nav-bg);
  color: var(--nav-text);
  border-bottom: 1px solid #2E2C29;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.15rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  color: var(--nav-text);
}

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

.nav-links a {
  text-decoration: none;
  color: rgba(245, 242, 235, 0.72);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #FFFFFF;
  font-weight: 500;
}

.nav-ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 0.35rem;
  transition: transform 0.25s ease, color 0.25s ease;
}

.nav-ig:hover {
  transform: translateY(-2px);
  color: #FFFFFF;
}

.lang-toggle {
  background: transparent;
  color: var(--nav-text);
  border: 1px solid rgba(245, 242, 235, 0.35);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lang-toggle:hover {
  border-color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.08);
}

.footer {
  border-top: 1px solid var(--border-color);
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
}

/* =========================================
   3. HERO & SHARED BUTTONS
   ========================================= */
.hero {
  max-width: 760px;
  margin: 2rem auto 2rem;
  padding: 0 2rem;
  text-align: center;
}

.hero h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.hero p {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
}

.buy-btn {
  display: inline-block;
  text-align: center;
  width: 100%;
  padding: 0.8rem 1.25rem;
  background-color: var(--nav-bg);
  color: var(--nav-text);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--nav-bg);
  cursor: pointer;
  transition: all 0.25s ease;
}

.buy-btn:hover {
  background-color: transparent;
  color: var(--text-main);
}

.buy-btn.disabled {
  background-color: transparent;
  color: var(--text-muted);
  border-color: var(--border-color);
  pointer-events: none;
}

/* =========================================
   4. PORTFOLIO & SHOP GALLERY GRID + MOTION
   ========================================= */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
  padding: 0 1.5rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.5rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

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

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

.gallery-grid {
  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.75rem;
}

.art-card {
  display: flex;
  flex-direction: column;
}

/* Subtle Gallery Shadow & Slow Ambient Drift */
@keyframes slowGalleryDrift {
  0% {
    transform: scale(1.0) translate(0%, 0%);
  }
  50% {
    transform: scale(1.07) translate(-1.5%, -1%);
  }
  100% {
    transform: scale(1.0) translate(0%, 0%);
  }
}

.image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--surface-alt);
  border-radius: 3px;
  box-shadow: 0 12px 28px rgba(28, 27, 25, 0.14), 0 3px 8px rgba(28, 27, 25, 0.08);
  cursor: zoom-in;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.image-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(28, 27, 25, 0.2), 0 6px 14px rgba(28, 27, 25, 0.1);
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowGalleryDrift 22s ease-in-out infinite;
  will-change: transform;
}

/* Stagger drift timing so cards don't move identically */
.art-card:nth-child(2n) .image-wrapper img {
  animation-duration: 26s;
  animation-delay: -5s;
}

.art-card:nth-child(3n) .image-wrapper img {
  animation-duration: 30s;
  animation-delay: -11s;
}

.image-wrapper:hover img {
  animation-play-state: paused;
}

.art-info {
  margin-top: 1rem;
}

.art-info h3,
.shop-title-row h3 {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-main);
}

.art-info span {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Shop Specific */
.badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: var(--nav-bg);
  color: var(--nav-text);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  z-index: 2;
}

.badge-sold {
  background: #6B665E;
  color: #FFFFFF;
}

.shop-info {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.shop-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.price {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}

.sold-text {
  color: var(--text-muted);
  text-decoration: line-through;
}

.shop-details {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0.35rem 0 1.1rem;
  flex-grow: 1;
}

/* =========================================
   5. COMMISSIONS PAGE
   ========================================= */
.commissions-container {
  max-width: 1120px;
  margin: 0 auto 5rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: start;
}

.commission-guide h2,
.commission-form-box h2 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.process-list {
  list-style: none;
  margin-bottom: 2.75rem;
}

.process-list li {
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.process-list strong {
  color: var(--text-main);
  font-weight: 500;
}

.rate-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.pricing-list {
  list-style: none;
  border-top: 1px solid var(--border-color);
}

.pricing-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.pricing-list strong {
  font-weight: 500;
}

.commission-form-box {
  background: var(--surface-alt);
  padding: 2.25rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 26px rgba(28, 27, 25, 0.08);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--nav-bg);
}

/* =========================================
   6. ABOUT & PROCESS PAGE
   ========================================= */
.about-container {
  max-width: 1120px;
  margin: 2rem auto 5rem;
  padding: 0 2rem;
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
  margin-bottom: 5rem;
}

.bio-text {
  width: 100%;
  padding-top: 0.5rem;
}

.bio-image,
.step-image {
  width: 100%;
  background-color: var(--surface-alt);
  border-radius: 3px;
  box-shadow: 0 12px 28px rgba(28, 27, 25, 0.14);
  overflow: hidden;
}

.bio-image {
  aspect-ratio: 4 / 5;
}

.step-image {
  aspect-ratio: 1 / 1;
  margin-bottom: 1rem;
}

.bio-image img,
.step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.bio-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-align: center;
}

.bio-text p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 1.1rem;
  text-align: justify;
  hyphens: auto;
}

.bio-text strong {
  color: var(--text-main);
  font-weight: 500;
}

.bio-actions {
  margin: 1.75rem auto 0;
  max-width: 320px;
}

.process-section {
  border-top: 1px solid var(--border-color);
  padding-top: 4.5rem;
  margin-bottom: 5rem;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

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

.step-num {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.process-step h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0.25rem 0 0.5rem;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.exhibitions-section {
  border-top: 1px solid var(--border-color);
  padding-top: 4rem;
  max-width: 780px;
  margin: 0 auto;
}

.exhibitions-section h2 {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.75rem;
}

.exhibition-list {
  list-style: none;
}

.exhibition-list li {
  display: flex;
  gap: 2.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-color);
  align-items: baseline;
}

.ex-year {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.ex-details {
  display: flex;
  flex-direction: column;
}

.ex-details strong {
  font-weight: 500;
  font-size: 0.96rem;
}

.ex-details span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =========================================
   7. SMOOTH FULL-SCREEN LIGHTBOX TRANSITION
   ========================================= */
.lightbox {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(18, 17, 16, 0.94);
  backdrop-filter: blur(6px);
  z-index: 1000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.38s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
  transform: scale(0.92) translateY(14px);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.lightbox.open img {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.lightbox p {
  color: #F5F2EB;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 1.1rem;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.08s, opacity 0.35s ease 0.08s;
}

.lightbox.open p {
  transform: translateY(0);
  opacity: 1;
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: #F5F2EB;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.close-btn:hover {
  transform: rotate(90deg);
  opacity: 0.75;
}

/* =========================================
   8. RESPONSIVE / MOBILE ADJUSTMENTS
   ========================================= */
@media (max-width: 820px) {
  .commissions-container,
  .bio-grid,
  .process-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-container {
    flex-direction: column;
    gap: 0.75rem;
  }
  .nav-links {
    gap: 1.25rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .exhibition-list li {
    gap: 1.25rem;
  }
}