/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #1a1a1a;
  --white: #fefefe;
  --off-white: #f9f6f4;
  --pink: #f5e6e0;
  --gray: #888;
  --font-main: 'Cormorant Garamond', 'Georgia', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--black);
  background: var(--off-white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--black); text-decoration: none; }

/* === Header === */
header {
  display: flex;
  align-items: center;
  padding: 1.5rem 2.5rem;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
  font-size: 1.65rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-right: 2.5rem;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

nav > a, .dropdown > a {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

nav > a:hover, nav > a.active,
.dropdown:hover > a {
  border-bottom-color: var(--black);
}

/* Dropdown */
.dropdown { position: relative; }

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 160px;
  padding: 0.6rem 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 200;
}

.dropdown:hover .dropdown-content { display: block; }

.dropdown-content a {
  display: block;
  padding: 0.4rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 300;
  transition: background 0.15s;
}

.dropdown-content a:hover { background: var(--pink); }

.social-icon {
  margin-left: auto;
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.social-icon:hover { opacity: 1; }

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
  z-index: 200;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* === Fade-in animations === */
.fade-in {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* === Hero === */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* === Placeholder Art Boxes === */
.placeholder-art {
  background: linear-gradient(135deg, #2a2a2a 0%, #4a4a4a 50%, #3a3a3a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-placeholder {
  width: 100%;
  height: 75vh;
}

/* === Page Titles === */
.page-title {
  text-align: center;
  padding: 3rem 2rem 1rem;
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.page-subtitle {
  text-align: center;
  font-size: 1rem;
  font-weight: 300;
  color: var(--gray);
  margin-bottom: 2rem;
}

/* === Gallery Grid === */
.gallery-section {
  padding: 2rem 2.5rem 4rem;
}

.gallery-section h2 {
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img,
.gallery-item .placeholder-art {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img,
.gallery-item:hover .placeholder-art {
  transform: scale(1.05);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s;
  pointer-events: none;
}

.gallery-item:hover::after {
  background: rgba(0,0,0,0.05);
}

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

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

.caption h3 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.caption p {
  font-size: 0.8rem;
  font-weight: 300;
  opacity: 0.85;
}

/* === Artist Page === */
.artist-page {
  padding: 4rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.artist-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.artist-photo img,
.artist-photo .placeholder-art {
  width: 100%;
  display: block;
}

.artist-bio h1 {
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.artist-bio p {
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* === Download Bar === */
.download-bar {
  text-align: center;
  padding: 0 2.5rem 2rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.8rem;
  border: 1px solid var(--black);
  font-family: var(--font-main);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}

.download-btn:hover {
  background: var(--black);
  color: var(--white);
}

.download-btn:hover svg {
  stroke: var(--white);
}

/* === Available / For Sale === */
.sale-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  padding: 0 2.5rem 4rem;
}

.sale-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.sale-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.sale-card img,
.sale-card .placeholder-art {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.sale-card:hover img {
  transform: scale(1.05);
}

.sale-card-info {
  padding: 1.2rem 1.4rem;
}

.sale-card-info h3 {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.sale-card-info .medium {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 300;
  margin-bottom: 0.3rem;
}

.sale-card-info .dimensions {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 300;
  margin-bottom: 0.6rem;
}

.sale-card-info .price {
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.sale-card-info .inquire-btn {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.5rem 1.6rem;
  border: 1px solid var(--black);
  font-family: var(--font-main);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  background: transparent;
  color: var(--black);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.sale-card-info .inquire-btn:hover {
  background: var(--black);
  color: var(--white);
}

/* === Contact === */
.contact-page {
  padding: 4rem 2.5rem;
  max-width: 600px;
}

.contact-page h1 {
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.contact-page p {
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 0.8rem;
}

.contact-page a {
  border-bottom: 1px solid rgba(0,0,0,0.2);
  transition: border-color 0.2s;
}

.contact-page a:hover {
  border-bottom-color: var(--black);
}

.contact-form {
  margin-top: 2.5rem;
  max-width: 500px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(0,0,0,0.15);
  background: var(--white);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 300;
  transition: border-color 0.2s;
}

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

.form-group textarea {
  resize: vertical;
}

/* === Video === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 2rem;
  padding: 0 2.5rem 4rem;
}

.video-item {
  aspect-ratio: 16/9;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* === Commissions === */
.commissions-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2.5rem 4rem;
}

.commissions-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.commissions-gallery-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.commission-img {
  overflow: hidden;
}

.commission-title {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  margin-top: 0.8rem;
  color: var(--black);
}

.commission-img img,
.commission-img .placeholder-art {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.commissions-text {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.commissions-text p {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.inquire-btn-lg {
  display: inline-block;
  padding: 0.7rem 2.5rem;
  border: 1px solid var(--black);
  font-family: var(--font-main);
  font-size: 1rem;
  letter-spacing: 0.08em;
  background: transparent;
  color: var(--black);
  transition: background 0.2s, color 0.2s;
}

.inquire-btn-lg:hover {
  background: var(--black);
  color: var(--white);
}

/* === Oma Page === */
.oma-hero {
  max-width: 700px;
  margin: 0 auto 3rem;
  padding: 0 2.5rem;
}

.oma-hero img {
  width: 100%;
  display: block;
}

.oma-stories {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2.5rem 4rem;
}

.oma-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.oma-story:last-child {
  border-bottom: none;
}

.oma-story:nth-child(even) {
  direction: rtl;
}

.oma-story:nth-child(even) > * {
  direction: ltr;
}

.oma-story-image img {
  width: 100%;
  display: block;
}

.oma-story-text h2 {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.oma-story-text p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .oma-story {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .oma-story:nth-child(even) {
    direction: ltr;
  }

  .oma-hero { padding: 0 1.2rem; }
  .oma-stories { padding: 0 1.2rem 3rem; }
}

/* === Video Section === */
.video-section {
  padding: 0 2.5rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.video-container video {
  width: 100%;
  display: block;
  background: #000;
}

/* === Lightbox === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-main);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  font-weight: 300;
  font-family: var(--font-main);
  padding: 0.6rem 0.8rem;
  opacity: 0.35;
  transition: opacity 0.25s;
  z-index: 1010;
  user-select: none;
  line-height: 1;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 0.75;
}

@media (max-width: 768px) {
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-prev,
  .lightbox-next {
    font-size: 1.6rem;
    padding: 0.5rem 0.6rem;
  }
}

/* === Footer === */
footer {
  text-align: center;
  padding: 2rem;
  margin-top: auto;
}

footer a {
  opacity: 0.5;
  transition: opacity 0.2s;
  display: inline-flex;
}

footer a:hover { opacity: 1; }

.footer-copyright {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--gray);
  letter-spacing: 0.03em;
  margin-top: 0.8rem;
}

/* === Mobile === */
@media (max-width: 768px) {
  header {
    padding: 1rem 1.2rem;
    flex-wrap: wrap;
  }

  .logo { font-size: 1.35rem; }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding-top: 1rem;
  }

  nav.open { display: flex; }

  nav > a, .dropdown > a {
    padding: 0.7rem 0;
    border-bottom: none;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
  }

  .dropdown:hover .dropdown-content,
  .dropdown .dropdown-content {
    display: block;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .social-icon { display: none; }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .sale-grid {
    grid-template-columns: 1fr;
    padding: 0 1.2rem 3rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
    padding: 0 1.2rem 3rem;
  }

  .gallery-section { padding: 1.5rem 1.2rem 3rem; }

  .contact-page { padding: 2.5rem 1.2rem; }

  .artist-page { padding: 2.5rem 1.2rem; }

  .artist-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .download-bar { padding: 0 1.2rem 1.5rem; }

  .commissions-section { padding: 1rem 1.2rem 3rem; }

  .commissions-gallery {
    grid-template-columns: 1fr;
  }
}
