/* ─────────────────────────────────────────────────────────
   collection.css  —  shared styles for all collection pages
   natur-elle.art
   ───────────────────────────────────────────────────────── */

/* ─── TOKENS ──────────────────────────────────────────── */
:root {
  --cream:       #F5F0E8;
  --cream-dark:  #EDE6D8;
  --sage:        #A8C5A0;
  --sage-light:  #D4E6CE;
  --sage-mist:   #EAF2E7;
  --forest:      #3D5A38;
  --forest-deep: #2A3F25;
  --stone:       #9E8E7E;
  --stone-light: #C8B8A8;
  --charcoal:    #2C2C2C;
  --white:       #FFFFFF;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius:     2px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img  { display: block; max-width: 100%; height: auto; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ─── LANGUAGE TOGGLE ─────────────────────────────────── */
body.lang-en .fr, body.lang-en .ru { display: none !important; }
body.lang-fr .en, body.lang-fr .ru { display: none !important; }
body.lang-ru .fr, body.lang-ru .en { display: none !important; }

/* ─── LANGUAGE SWITCHER ───────────────────────────────── */
.lang-switcher { display: flex; align-items: center; }
.lang-opt {
  background: none;
  border: 1px solid var(--stone-light);
  border-right: none;
  color: var(--stone);
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  padding: 5px 9px;
  cursor: pointer;
  border-radius: 0;
  transition: all var(--transition);
}
.lang-opt:first-child { border-radius: 20px 0 0 20px; }
.lang-opt:last-child  { border-radius: 0 20px 20px 0; border-right: 1px solid var(--stone-light); }
.lang-opt.active { background: var(--sage); border-color: var(--sage) !important; color: var(--white); }
.lang-opt:not(.active):hover { background: var(--forest); border-color: var(--forest); color: var(--white); }

/* ─── HEADER ──────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(245, 240, 232, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.header-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--forest);
  transition: color var(--transition);
}
.header-logo em { font-style: italic; }
.header-logo:hover { color: var(--sage); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.header-nav a:hover { color: var(--forest); }
.back-arrow { transition: transform var(--transition); }
.header-nav a:hover .back-arrow { transform: translateX(-3px); }

.lang-btn {
  background: none;
  border: 1px solid var(--stone-light);
  color: var(--stone);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  cursor: pointer;
  border-radius: 20px;
  transition: all var(--transition);
}
.lang-btn:hover { background: var(--sage); border-color: var(--sage); color: var(--white); }

/* ─── COLLECTION HERO ─────────────────────────────────── */
.coll-hero {
  position: relative;
  height: 58vh;
  min-height: 380px;
  margin-top: 72px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.coll-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.68) saturate(0.82);
  transform: scale(1.03);
  transition: transform 8s ease-out;
}
.coll-hero-img.loaded { transform: scale(1); }
.coll-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20,30,16,0.88) 0%,
    rgba(20,30,16,0.22) 65%
  );
}
.coll-hero-content {
  position: relative;
  padding: 52px 80px;
  color: var(--white);
  max-width: 820px;
}
.coll-num {
  font-size: 0.67rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 12px;
}
.coll-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  margin-bottom: 18px;
}
.coll-desc {
  font-size: 0.94rem;
  color: rgba(255,255,255,0.70);
  font-weight: 300;
  line-height: 1.72;
  max-width: 500px;
}

/* ─── ARTWORKS SECTION ────────────────────────────────── */
.artworks {
  padding: 96px 64px;
  background: var(--cream);
}
.artworks-header {
  max-width: 1400px;
  margin: 0 auto 52px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--cream-dark);
  padding-bottom: 20px;
}
.artworks-header-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  color: var(--forest);
}
.artworks-count {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}

.artworks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ─── ARTWORK CARD ────────────────────────────────────── */
.artwork-card {
  background: var(--white);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.artwork-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 52px rgba(0,0,0,0.10);
}
.artwork-img-wrap {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream-dark);
}
.artwork-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.artwork-card:hover .artwork-img-wrap img { transform: scale(1.05); }

.artwork-body {
  padding: 22px 26px 26px;
  border-top: 1px solid var(--cream-dark);
}
.artwork-num {
  font-size: 0.63rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 7px;
}
.artwork-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 300;
  font-style: italic;
  color: var(--forest);
  line-height: 1.2;
  margin-bottom: 9px;
}
.artwork-caption {
  font-size: 0.82rem;
  color: var(--stone);
  line-height: 1.65;
  font-weight: 300;
}

/* ─── COLLECTION NAV ──────────────────────────────────── */
.coll-nav {
  background: var(--sage-mist);
  padding: 64px 64px;
  text-align: center;
}
.coll-nav-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 28px;
}
.coll-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
}
.coll-nav-links a {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 300;
  color: var(--forest);
  transition: color var(--transition);
  position: relative;
}
.coll-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 100%;
  height: 1px;
  background: var(--sage);
  transition: right var(--transition);
}
.coll-nav-links a:hover { color: var(--forest); }
.coll-nav-links a:hover::after { right: 0; }
.coll-nav-links a.active {
  color: var(--stone-light);
  pointer-events: none;
}
.coll-nav-links a.active::after { display: none; }

/* ─── FOOTER ──────────────────────────────────────────── */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.5);
  padding: 56px 48px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
}
.footer-brand em { font-style: italic; color: var(--sage); }
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--sage-light); }
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

/* ─── REVEAL ON SCROLL ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible            { opacity: 1; transform: translateY(0); }
.reveal-delay-1            { transition-delay: 0.10s; }
.reveal-delay-2            { transition-delay: 0.20s; }
.reveal-delay-3            { transition-delay: 0.30s; }
.reveal-delay-4            { transition-delay: 0.40s; }
.reveal-delay-5            { transition-delay: 0.50s; }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .artworks-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .header        { padding: 0 24px; }
  .header-nav    { gap: 20px; }
  .coll-hero-content { padding: 40px 32px; }
  .artworks      { padding: 64px 24px; }
  .coll-nav      { padding: 48px 24px; }
  .coll-nav-links { gap: 28px; }
}
@media (max-width: 600px) {
  .artworks-grid { grid-template-columns: 1fr; }
  .coll-nav-links { gap: 20px; }
  .footer        { padding: 40px 24px; }
  .footer-inner  { flex-direction: column; align-items: flex-start; gap: 20px; }
}
