/* Fiber & Beauties - shared styles beyond Tailwind utilities */

:root {
  --plum:        #2E1542;
  --plum-deep:   #1E0E2E;
  --purple:      #6B3FA0;
  --purple-soft: #8E63C4;
  --gold:        #D8A93A;
  --gold-soft:   #EFCB6B;
  --ink:         #2A1B3D;
  --mist:        #F6F1FB;
}

html { scroll-behavior: smooth; }

body { background: var(--mist); }

/* Display serif for headings - elegant/luxury feel */
.font-display {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  letter-spacing: 0.01em;
}

/* Thin gold rule used as a section accent */
.gold-rule {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border: 0;
}

/* Nav link with animated gold underline on hover */
.nav-link {
  position: relative;
  padding: 4px 2px;
  color: rgba(255,255,255,0.82);
  transition: color 0.2s ease-in-out;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 2px;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }
.nav-link--active { color: #fff; }
.nav-link--active::after { transform: scaleX(1); }

/* Letter-spaced eyebrow label */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Gallery item: image with caption, click to open lightbox */
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  background: #efe7f6;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 12px 32px -8px rgba(46,21,66,0.20);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease-out;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 22px 48px -10px rgba(46,21,66,0.32);
}
.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 20px 18px;
  color: #fff;
  background: linear-gradient(to top, rgba(30,14,46,0.86), rgba(30,14,46,0));
}
.gallery-item .caption .title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}
.gallery-item .caption .caprow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}
.gallery-item .caption .meta {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.gallery-item .caption .price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

/* Lightbox (MD-Regulation-1 Chapter 9 standard) */
.lb {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  background: rgba(20, 9, 32, 0.92);
  backdrop-filter: blur(6px);
}
.lb.is-open { display: flex; }
.lb__frame {
  position: relative;
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  cursor: zoom-in;
}
.lb__img {
  display: block;
  max-width: 92vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  transition: transform 0.12s ease-out;
  pointer-events: none;
}
.lb__caption {
  text-align: center;
  color: #fff;
  margin-top: 14px;
}
.lb__caption .t {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
}
.lb__hint {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(239,203,107,0.85);
  margin-top: 4px;
}
.lb__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(12px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 2;
}
.lb__btn:hover { background: rgba(255,255,255,0.26); }
.lb__prev { left: 2vw; }
.lb__next { right: 2vw; }
.lb__close {
  position: absolute;
  top: 3vh;
  right: 3vw;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(12px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
}
.lb__close:hover { background: rgba(255,255,255,0.26); }
@media (max-width: 640px) {
  .lb__btn { width: 42px; height: 42px; font-size: 18px; }
}
