/* ============================================
   Ketevan Shalamberidze — Portfolio & Shop
   Layout: classic horizontal top nav bar
   Style: minimal — single typeface, black/white/gray, flat surfaces
   ============================================ */

:root {
  --cream: #ffffff;
  --cream-dark: #fafafa;
  --charcoal: #111111;
  --charcoal-soft: #757575;
  --rust: #111111;
  --rust-dark: #000000;
  --border: #e4e4e2;
  --white: #ffffff;

  --font-head: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--charcoal-soft);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.section-head p {
  color: var(--charcoal-soft);
  font-size: 1.05rem;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}
.btn-primary:hover { background: var(--white); color: var(--charcoal); }

.btn-outline {
  background: transparent;
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--white); }

.btn-outline.on-dark {
  border-color: var(--white);
  color: var(--white);
}
.btn-outline.on-dark:hover { background: var(--white); color: var(--charcoal); }

/* ============================================
   Header — classic horizontal top nav bar
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.nav .brand-box { justify-self: start; }
.nav .nav-links { justify-self: center; }
.nav .nav-social { justify-self: end; }

.brand-box {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--charcoal-soft);
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--charcoal); }

.nav-links a.active {
  color: var(--charcoal);
  font-weight: 700;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-social a {
  display: flex;
  color: var(--charcoal-soft);
  transition: color 0.15s ease;
}
.nav-social a:hover { color: var(--charcoal); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--charcoal);
}

/* Mobile dropdown menu (shown < 900px) */

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-social { display: none; }
  .nav-toggle { display: flex; grid-column: 3; justify-self: end; }
}

/* ---------- Main content column ---------- */

.main {
  min-height: 100vh;
}

/* ---------- Hero ---------- */

.hero {
  height: 65vh;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Artwork blocks ---------- */

.art {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--cream-dark);
}

.art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.art-caption {
  position: relative;
  z-index: 2;
  padding: 18px;
  color: var(--white);
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  width: 100%;
}

.art-caption .art-title { font-weight: 600; font-size: 1rem; margin-bottom: 2px; }
.art-caption .art-meta { font-size: 0.8rem; opacity: 0.85; }

.art-placeholder { background: #ececea; }

/* ---------- Grids ---------- */

.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ============================================
   Full-bleed gallery grid (edge-to-edge, small gap)
   ============================================ */

.gallery-intro {
  padding: 56px 0 32px;
  scroll-margin-top: 71px;
}

.fullbleed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 88px;
  background: var(--cream);
}

@media (max-width: 1080px) {
  .fullbleed-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .fullbleed-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .fullbleed-grid { grid-template-columns: 1fr; }
}

.fb-item {
  cursor: pointer;
}

.fb-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.fb-item .art {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  transition: transform 0.5s ease;
}

.fb-item:hover .art { transform: scale(1.06); }

.fb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.6);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

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

.fb-overlay .fb-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.fb-overlay .fb-meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

/* ---------- Gallery filters ---------- */

.filters {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}
.filter-btn {
  padding: 0 0 4px;
  border: none;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--charcoal-soft);
  cursor: pointer;
}
.filter-btn.active,
.filter-btn:hover {
  color: var(--charcoal);
  border-bottom-color: var(--charcoal);
}

/* ---------- Shop cards ---------- */

.shop-card { background: var(--white); border: 1px solid var(--border); }
.shop-info { padding: 20px; }
.shop-info h3 { font-size: 1.1rem; margin-bottom: 4px; }
.shop-meta { font-size: 0.85rem; color: var(--charcoal-soft); margin-bottom: 12px; }
.shop-price { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--charcoal); margin-bottom: 16px; }
.shop-status {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal-soft);
  margin-bottom: 10px;
}
.shop-status.sold { color: var(--charcoal); }

/* ---------- About page ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-portrait { aspect-ratio: 4/3; }

.exhibitions-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 800px) {
  .exhibitions-grid { grid-template-columns: 1fr; }
}

.exhibitions-list { margin-top: 24px; }

.exh-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.exh-year {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 58px;
  white-space: nowrap;
  font-size: 0.95rem;
  line-height: 1.65;
}
.exh-year-num { font-weight: 700; color: var(--charcoal); }
.exh-dash { font-weight: 400; color: var(--charcoal-soft); }
.exh-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--charcoal-soft);
}
.exh-body .exh-location { margin-top: 2px; }
.exh-body strong { font-weight: 700; color: #4a4a4a; }

.exhibitions-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: sticky;
  top: 100px;
}
.exhibitions-photos .art { aspect-ratio: 4 / 3; }
@media (max-width: 800px) {
  .exhibitions-photos { position: static; margin-top: 8px; }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 8px;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--charcoal);
  font-size: 1rem;
}
.contact-info-item .contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  color: var(--charcoal-soft);
  transition: all 0.15s ease;
}
.contact-info-item:hover .contact-icon {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 0;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--charcoal);
}

.form-note {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  margin-top: 10px;
}

.info-block { margin-bottom: 28px; }
.info-block h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--charcoal-soft); margin-bottom: 8px; }

.social-links { display: flex; gap: 16px; }
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  color: var(--charcoal-soft);
  transition: all 0.15s ease;
}
.social-links a:hover { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }

.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a {
  display: flex;
  color: #b8b8b8;
  transition: color 0.15s ease;
}
.footer-social a:hover { color: var(--white); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 40px 20px;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  max-width: 1000px;
  width: 100%;
  color: var(--white);
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.lightbox-inner .art {
  aspect-ratio: auto;
  height: 70vh;
  background: transparent;
  justify-content: center;
  flex: 1 1 60%;
  min-width: 0;
}
.lightbox-inner .art img { width: auto; max-width: 100%; max-height: 100%; object-fit: contain; margin: 0; }
.lightbox-text {
  flex: 1 1 40%;
  padding-top: 8px;
}

@media (max-width: 760px) {
  .lightbox-inner { flex-direction: column; align-items: stretch; }
  .lightbox-inner .art { height: 45vh; }
  .lightbox-inner .art img { margin: 0 auto; }
}
.lightbox-close {
  position: absolute;
  top: 28px;
  right: 32px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-arrow:hover { background: rgba(255, 255, 255, 0.15); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

@media (max-width: 640px) {
  .lightbox-arrow { width: 40px; height: 40px; font-size: 1.5rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 36px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 { color: var(--white); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.footer-grid p, .footer-grid a { color: #b8b8b8; font-size: 0.88rem; margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid #333333;
  padding-top: 16px;
  font-size: 0.78rem;
  color: #888888;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
