/* ===== VeloriaArt — global styles ===== */

:root {
  --bg: #faf9f6;
  --ink: #1c1c1a;
  --ink-soft: #55534d;
  --line: #e3e0d8;
  --accent: #8a7a5c;
  --max: 1280px;
  --nav-h: 84px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; user-select: none; -webkit-user-drag: none; }

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

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.25rem; font-weight: 500; }

p { color: var(--ink-soft); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 6vw; }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  z-index: 500;
  background: rgba(250, 249, 246, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-nav.scrolled { border-bottom-color: var(--line); }

.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand span { color: var(--accent); }

.nav-links { display: flex; gap: 2.6rem; }
.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 760px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg);
    flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { max-height: 300px; }
  .nav-links a { padding: 1.1rem 6vw; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
}

/* ---------- Hero Slider ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: #111;
}
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.slide.active { opacity: 1; }
.slide img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.82);
}
.hero-copy {
  position: absolute;
  left: 6vw; bottom: 12%;
  color: #faf9f6;
  z-index: 5;
  max-width: 640px;
}
.hero-copy .eyebrow { color: #e7ddc4; }
.hero-copy h1 { color: #fff; }
.hero-copy p { color: #e9e7df; margin-top: 1rem; font-size: 1.05rem; max-width: 480px; }

.hero-dots {
  position: absolute; right: 6vw; bottom: 12%;
  display: flex; flex-direction: column; gap: 0.6rem;
  z-index: 5;
}
.hero-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7);
  background: transparent; cursor: pointer; padding: 0;
}
.hero-dots button.active { background: #fff; }

.scroll-cue {
  position: absolute; bottom: 5%; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.75; z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.scroll-cue::after {
  content: ''; width: 1px; height: 34px; background: #fff; opacity: 0.6;
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: scaleY(0.4); opacity: 0.2; } 50% { transform: scaleY(1); opacity: 0.8; } }

/* ---------- Section shell ---------- */
section { padding: 7rem 0; }
.section-head { max-width: 680px; margin-bottom: 3.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Intro ---------- */
.intro { text-align: center; }
.intro p { font-size: 1.15rem; max-width: 640px; margin: 0 auto; }

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem;
  margin-bottom: 3.5rem;
}
.filter-bar button {
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.25s ease;
}
.filter-bar button:hover { border-color: var(--ink); color: var(--ink); }
.filter-bar button.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Gallery grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.6rem 2rem;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.2rem; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.piece {
  cursor: pointer;
  opacity: 0; transform: translateY(18px);
  animation: rise 0.7s ease forwards;
}
.piece.hidden { display: none; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.piece-frame {
  position: relative;
  overflow: hidden;
  background: #efece4;
  aspect-ratio: 4 / 5;
}
.piece-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s ease;
}
.piece:hover .piece-frame img { transform: scale(1.045); }

.piece-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex; align-items: flex-end;
  padding: 1.4rem;
}
.piece:hover .piece-veil { opacity: 1; }
.piece-veil-text { color: #fff; }
.piece-veil-text .cat { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: #d9d2bd; display: block; margin-bottom: 0.2rem; }
.piece-veil-text .name { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; }

.piece-caption { margin-top: 0.9rem; }
.piece-caption .cat { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.piece-caption .name { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; margin-top: 0.15rem; }

/* ---------- Thematic gallery sections (home) ---------- */
.theme-section:nth-child(even) { background: #f3f1ea; }
.theme-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 3rem; gap: 2rem; flex-wrap: wrap;
}
.theme-head p { max-width: 460px; }
.theme-head .see-all { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* ---------- About ---------- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: center;
}
@media (max-width: 800px) { .about-layout { grid-template-columns: 1fr; gap: 2.5rem; } }
.about-portrait { aspect-ratio: 4/5; overflow: hidden; background: #efece4; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-copy p { font-size: 1.05rem; margin-bottom: 1.3rem; }
.about-copy p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2.5rem;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.2rem;
}
.footer-inner .brand { font-size: 1.1rem; }
.foot-links { display: flex; gap: 1.8rem; }
.foot-links a { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.foot-note { font-size: 0.75rem; color: var(--ink-soft); margin-top: 1.2rem; }

/* ---------- Lightbox (the "full piece" view) ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20, 19, 16, 0.94);
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  position: relative;
  max-width: 1100px; width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 860px) { .lightbox-inner { grid-template-columns: 1fr; gap: 1.5rem; } }

.lightbox-image-wrap { position: relative; }
.lightbox-image-wrap img {
  width: 100%; max-height: 78vh; object-fit: contain;
  background: #0f0e0c;
}
.lightbox-watermark {
  position: absolute; right: 10px; bottom: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
  pointer-events: none;
  user-select: none;
}
.lightbox-info { color: #f2f0ea; }
.lightbox-info .cat { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: #cbb98f; display:block; margin-bottom: 0.8rem; }
.lightbox-info h3 { font-size: 2rem; font-family: 'Cormorant Garamond', serif; margin-bottom: 1rem; }
.lightbox-info p { color: #cac6ba; font-size: 0.95rem; }
.lightbox-close {
  position: absolute; top: -46px; right: 0;
  background: none; border: 0; color: #f2f0ea;
  font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #f2f0ea; font-size: 1.8rem;
  cursor: pointer; opacity: 0.75; transition: opacity 0.2s ease;
  padding: 0.5rem;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: -3.2rem; }
.lightbox-next { right: -3.2rem; }
@media (max-width: 860px) {
  .lightbox-prev { left: 0; top: auto; bottom: -3rem; transform:none; }
  .lightbox-next { right: 0; top: auto; bottom: -3rem; transform:none; }
}

/* ---------- Event lightbox (photo-only, no info panel) ---------- */
.event-lightbox {
  position: fixed; inset: 0;
  background: rgba(20, 19, 16, 0.94);
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 4vh 4vw;
}
.event-lightbox.open { display: flex; }
.event-lightbox-inner {
  position: relative;
  max-width: 900px; width: 100%;
}
.event-lightbox-inner .lightbox-image-wrap img {
  width: 100%; max-height: 86vh; object-fit: contain;
  background: #0f0e0c;
}

/* ---------- Event page copy + photo grid ---------- */
.event-date {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 0.6rem 0 1.2rem;
}
.event-copy { max-width: 720px; margin: 0 auto 1rem; text-align: center; }
.event-photo .piece-frame { aspect-ratio: 3 / 4; cursor: pointer; }

/* ---------- Page hero (non-home pages) ---------- */
.page-hero {
  padding: calc(var(--nav-h) + 5rem) 0 3rem;
  text-align: center;
}
.page-hero p { max-width: 560px; margin: 1rem auto 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
