/* Татьяна Шапиро — Modern Art Portfolio Stylesheet */
:root {
  --bg-primary: #fcfbf9;
  --bg-surface: #ffffff;
  --bg-card: #f7f6f2;
  --bg-dark: #121212;
  --text-main: #1c1c1a;
  --text-muted: #6b6964;
  --text-light: #949089;
  --accent: #2c2b29;
  --accent-gold: #a88a58;
  --border-subtle: #eae7e1;
  --border-hover: #1c1c1a;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 16px 36px rgba(0,0,0,0.08);
  --font-serif: 'Cormorant Garamond', Garamond, Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Navigation — High-End Fine Art Gallery Aesthetic */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(252, 251, 249, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}

.brand {
  display: flex;
  flex-direction: column;
  letter-spacing: normal;
  padding-right: 2rem;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #1a1918;
  text-transform: uppercase;
  line-height: 1.15;
  transition: var(--transition);
}

.brand:hover .brand-title {
  color: #55524d;
}

.brand-subtitle {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #9c9890;
  margin-top: 3px;
}

nav.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.85rem;
  align-items: center;
}

nav.main-nav a {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 400;
  color: #7a7770;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.25s ease;
  white-space: nowrap;
}

nav.main-nav a:hover {
  color: #1a1918;
}

nav.main-nav a.active {
  color: #1a1918;
  font-weight: 500;
}

nav.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: #1a1918;
}

nav.main-nav a:hover::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #a8a49c;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition);
}

/* Header right block & language switcher */
.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  padding-left: 1.25rem;
}

.lang-btn {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #9c9890;
  padding: 0.25rem 0.45rem;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: #1a1918;
}

.lang-btn.active {
  color: #1a1918;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.04);
}


/* Gallery Header (Artist Statement & Category Context) */
.gallery-header {
  padding: 3rem 0 2rem 0;
  text-align: center;
}

.gallery-statement {
  max-width: 740px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 300;
  line-height: 2;
  color: #383633;
  letter-spacing: 0.015em;
  padding: 0 1rem;
}

.gallery-header {
  padding: 3.5rem 0 3rem 0;
  text-align: center;
}

/* Polished Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  padding-bottom: 6rem;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  padding-bottom: 5rem;
}

.artwork-card {
  position: relative;
  background: var(--bg-surface);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

.artwork-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,0,0,0.15);
}

.artwork-img-box {
  position: relative;
  width: 100%;
  padding-top: 100%; /* square ratio */
  background: var(--bg-card);
  overflow: hidden;
}

.artwork-img-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform 0.5s ease;
}

.artwork-card:hover .artwork-img-box img {
  transform: scale(1.03);
}

/* .artwork-badge removed per user request */

.artwork-meta {
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid var(--border-subtle);
  background: #fff;
}

.artwork-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #1a1918;
  line-height: 1.35;
}

.artwork-details {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* About Section */
.about-section {
  padding: 6rem 0;
  background-color: #f7f5f0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
}

.about-photo-wrapper {
  position: relative;
}

.about-photo {
  width: 100%;
  max-width: 480px;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--text-light);
}

.about-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--text-main);
  line-height: 1.2;
}

.about-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
}

.about-body {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* Exhibitions Timeline */
.exhibitions-section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  margin-top: 0.4rem;
}

.timeline {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 1.5px;
  background: var(--border-subtle);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-main);
  box-shadow: 0 0 0 4px var(--bg-primary);
}

.timeline-year {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Contact Section */
.contact-section {
  padding: 6rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-desc {
  color: var(--text-muted);
  line-height: 1.7;
}

.whatsapp-card {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: #25d366;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  width: fit-content;
  transition: var(--transition);
}

.whatsapp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  color: #fff;
}

.email-card {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  color: var(--text-main);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  width: fit-content;
  transition: var(--transition);
}

.email-card:hover {
  transform: translateY(-2px);
  border-color: var(--text-main);
  box-shadow: var(--shadow-sm);
  color: var(--text-main);
}

.email-icon {
  width: 22px;
  height: 22px;
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--bg-primary);
  padding: 2.5rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background: #fff;
  color: var(--text-main);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text-main);
  box-shadow: 0 0 0 3px rgba(28, 28, 26, 0.08);
}

.submit-btn {
  background: var(--text-main);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
}

.submit-btn:hover {
  background: #000;
  transform: translateY(-2px);
}

.form-status {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  display: none;
}
.form-status.success {
  display: block;
  background: #e6f7ec;
  color: #1e7e34;
  border: 1px solid #c3e6cb;
}
.form-status.error {
  display: block;
  background: #fdf0f0;
  color: #b02a37;
  border: 1px solid #f5c2c7;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(14, 14, 14, 0.96);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-modal.open {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 85vw;
  max-height: 75vh;
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  border-radius: 2px;
}

.lightbox-caption-box {
  margin-top: 1.25rem;
  text-align: center;
  color: #fff;
  max-width: 800px;
}

.lightbox-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.lightbox-details {
  font-size: 0.85rem;
  color: #a8a6a1;
}

.lightbox-counter {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7d7a75;
  margin-top: 0.4rem;
}

/* Lightbox controls */
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.75;
  transition: var(--transition);
  padding: 0.5rem;
}

.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }

/* Footer */
footer.site-footer {
  background: #181716;
  color: #949089;
  padding: 4rem 0 2rem 0;
  font-size: 0.88rem;
  border-top: 1px solid #2a2927;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-bottom: 1px solid #2a2927;
  padding-bottom: 2.5rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-serif);
  color: #f5f4f0;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: #6e6b66;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 80;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 992px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-photo {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  nav.main-nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-subtle);
    display: none;
  }
  nav.main-nav.open {
    display: block;
  }
  nav.main-nav ul {
    flex-direction: column;
    gap: 1.25rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .header-right { gap: 0.75rem; }
  .header-inner { height: 74px; }
  .lang-switcher { padding-left: 0.5rem; }
  .brand-title { font-size: 1.35rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-close { top: 1rem; right: 1rem; }
  .hero-title { font-size: 2.1rem; }
}
