/* ==========================================================================
   ANYA MINKO - Artist Portfolio
   A refined, gallery-aesthetic website
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables - Edit these to change the site's look
   -------------------------------------------------------------------------- */
:root {
  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Colors - Warm, gallery-inspired palette */
  --color-bg: #FDFBF7;
  --color-bg-alt: #F5F1E8;
  --color-text: #2C2C2C;
  --color-text-muted: #6B6B6B;
  --color-accent: #8B4513;
  --color-accent-hover: #A0522D;
  --color-border: #E5E0D5;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* Layout */
  --max-width: 1200px;
  --nav-height: 80px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  margin-bottom: 1.5em;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header--hidden {
  transform: translateY(-100%);
}

.header--shadow {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.7;
}

/* Desktop Navigation */
.nav {
  display: none;
}

.nav__list {
  display: flex;
  gap: var(--space-md);
}

.nav__link {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-xs) 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-text);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Mobile Menu Button */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle__line {
  width: 100%;
  height: 1.5px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle--open .menu-toggle__line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle--open .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.menu-toggle--open .menu-toggle__line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.mobile-nav--open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__link {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  color: var(--color-text);
  padding: var(--space-xs) var(--space-sm);
  transition: color 0.2s ease;
}

.mobile-nav__link:hover,
.mobile-nav__link--active {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Main Content
   -------------------------------------------------------------------------- */
.main {
  min-height: 100vh;
  padding-top: var(--nav-height);
}

/* --------------------------------------------------------------------------
   About Page
   -------------------------------------------------------------------------- */
.about {
  padding: var(--space-xl) 0;
}

.about__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.about__title {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.about__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.about__image-container {
  position: relative;
  overflow: hidden;
}

.about__image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: grayscale(10%);
  transition: filter 0.5s ease, transform 0.5s ease;
}

.about__image-container:hover .about__image {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.about__text {
  max-width: 600px;
}

.about__text p {
  font-size: 1.05rem;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Exhibitions Section
   -------------------------------------------------------------------------- */
.exhibitions {
  background: var(--color-bg-alt);
  padding: var(--space-lg) 0;
  margin-top: var(--space-lg);
}

.exhibitions__title {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.exhibitions__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.exhibitions__item {
  font-size: 0.95rem;
  color: var(--color-text);
  padding-left: var(--space-sm);
  border-left: 2px solid transparent;
  transition: border-color 0.2s ease, padding-left 0.2s ease;
}

.exhibitions__item:hover {
  border-left-color: var(--color-accent);
  padding-left: calc(var(--space-sm) + 4px);
}

.exhibitions__year {
  color: var(--color-accent);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Gallery Page
   -------------------------------------------------------------------------- */
.gallery {
  padding: var(--space-lg) 0;
}

.gallery__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.gallery__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
}

.gallery__item-title {
  color: white;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.gallery__item-info {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Available Paintings Page
   -------------------------------------------------------------------------- */
.paintings {
  padding: var(--space-lg) 0;
}

.paintings__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

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

.painting-card__image {
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

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

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

.painting-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.painting-card__details {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.painting-card__price {
  font-weight: 600;
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Contact Page
   -------------------------------------------------------------------------- */
.contact {
  padding: var(--space-xl) 0;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}

.contact__header {
  text-align: center;
}

.contact__title {
  margin-bottom: var(--space-sm);
}

.contact__subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: center;
}

.contact__link {
  font-size: 1.1rem;
  color: var(--color-text);
  transition: color 0.2s ease;
}

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

.contact__social {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.contact__social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact__social-link:hover {
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.contact__social-link:hover svg {
  fill: white;
}

.contact__social-link svg {
  width: 20px;
  height: 20px;
  fill: var(--color-text);
  transition: fill 0.2s ease;
}

/* --------------------------------------------------------------------------
   Commissions Page
   -------------------------------------------------------------------------- */
.commissions {
  padding: var(--space-xl) 0;
}

.commissions__content {
  max-width: 700px;
  margin: 0 auto;
}

.commissions__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.commissions__text {
  margin-bottom: var(--space-lg);
}

.commissions__process {
  background: var(--color-bg-alt);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}

.commissions__process-title {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.commissions__steps {
  counter-reset: step;
}

.commissions__step {
  position: relative;
  padding-left: var(--space-lg);
  padding-bottom: var(--space-md);
  border-left: 1px solid var(--color-border);
}

.commissions__step:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.commissions__step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -12px;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.commissions__step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.commissions__step-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-bg-alt);
  padding: var(--space-lg) 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer__text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

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

.lightbox__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}

.lightbox__close:hover {
  border-color: white;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .nav {
    display: block;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .about__content {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
  }
  
  .contact__inner {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  
  .contact__header {
    text-align: left;
  }
  
  .contact__info {
    text-align: left;
  }
  
  .contact__social {
    justify-content: flex-start;
  }
}

@media (min-width: 1024px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
