/* Silva Salakian Fine Jewelry — custom refinements */

:root {
  --gold: #b8956c;
  --gold-light: #d4b896;
  --ink: #1a1714;
  --stone: #f7f4ef;
  --stone-dark: #ebe6dc;
  --muted: #6b645c;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--ink);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: "Cormorant Garamond", Georgia, serif;
}

/* Subtle gold hairline rule */
.rule-gold {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold) 20%,
    var(--gold) 80%,
    transparent
  );
}

/* Nav */
.site-nav {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(247, 244, 239, 0.94);
  border-bottom: 1px solid rgba(184, 149, 108, 0.22);
  box-shadow: 0 1px 0 rgba(26, 23, 20, 0.03);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.45rem 0.7rem 0.55rem;
  transition: color 0.2s ease;
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.1rem;
  height: 1.5px;
  background: var(--gold);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link:hover::after {
  transform: scaleX(0.55);
  opacity: 0.45;
}

/* Current page — gold line underneath */
.nav-link.is-active,
.nav-link[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.nav-link.is-active::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  opacity: 1;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold) 12%,
    var(--gold-light) 50%,
    var(--gold) 88%,
    transparent
  );
}

.nav-link.is-active:hover,
.nav-link[aria-current="page"]:hover {
  color: var(--ink);
}

.nav-link.is-active:hover::after,
.nav-link[aria-current="page"]:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Mobile menu button */
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: -0.35rem;
  border: 1px solid rgba(26, 23, 20, 0.12);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.menu-btn:hover {
  background: rgba(26, 23, 20, 0.05);
}

.menu-btn[aria-expanded="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.menu-btn-icon {
  width: 1.15rem;
  height: 1.15rem;
}

/* Portfolio cards */
.collection-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s ease;
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -20px rgba(26, 23, 20, 0.25);
}

.collection-card .overlay {
  background: linear-gradient(
    to top,
    rgba(26, 23, 20, 0.72) 0%,
    rgba(26, 23, 20, 0.15) 45%,
    transparent 70%
  );
  pointer-events: none;
}

/* Subtle image hover — light scale only */
.pan-frame {
  position: relative;
  overflow: hidden;
}

.pan-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.pan-frame:hover img {
  transform: scale(1.04);
}

.lightbox-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  text-align: left;
}

/* Ken Burns — varied cinematic moves (cycle every 6 products) */
.ken-burns-frame {
  position: relative;
  overflow: hidden;
}

.ken-burns-frame .ken-burns-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.22);
  will-change: transform;
  animation: kbDriftRight 11s ease-in-out infinite alternate;
}

article:nth-child(6n + 1) .ken-burns-img {
  animation-name: kbDriftRight;
  animation-duration: 10s;
}

article:nth-child(6n + 2) .ken-burns-img {
  animation-name: kbDriftLeft;
  animation-duration: 11s;
}

article:nth-child(6n + 3) .ken-burns-img {
  animation-name: kbDriftUp;
  animation-duration: 12s;
}

article:nth-child(6n + 4) .ken-burns-img {
  animation-name: kbZoomIn;
  animation-duration: 13s;
}

article:nth-child(6n + 5) .ken-burns-img {
  animation-name: kbDiagonal;
  animation-duration: 11s;
}

article:nth-child(6n) .ken-burns-img {
  animation-name: kbPullBack;
  animation-duration: 14s;
}

/* Slow pan left → right */
@keyframes kbDriftRight {
  0% {
    transform: scale(1.22) translate(-5%, 0%);
  }
  100% {
    transform: scale(1.28) translate(5%, -1.5%);
  }
}

/* Slow pan right → left */
@keyframes kbDriftLeft {
  0% {
    transform: scale(1.22) translate(5%, 1%);
  }
  100% {
    transform: scale(1.28) translate(-5%, -1%);
  }
}

/* Gentle vertical rise */
@keyframes kbDriftUp {
  0% {
    transform: scale(1.25) translate(0%, 5%);
  }
  100% {
    transform: scale(1.3) translate(0%, -5%);
  }
}

/* Push in on a corner */
@keyframes kbZoomIn {
  0% {
    transform: scale(1.15) translate(3%, 2%);
  }
  100% {
    transform: scale(1.35) translate(-3%, -2%);
  }
}

/* Diagonal sweep */
@keyframes kbDiagonal {
  0% {
    transform: scale(1.22) translate(-5%, 4%);
  }
  100% {
    transform: scale(1.3) translate(5%, -4%);
  }
}

/* Start tight, ease out slightly (pull back) */
@keyframes kbPullBack {
  0% {
    transform: scale(1.35) translate(2%, -2%);
  }
  100% {
    transform: scale(1.18) translate(-2%, 2%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ken-burns-frame .ken-burns-img {
    animation: none;
    transform: scale(1.05);
  }
}

/* Fullscreen image lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 8, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: zoom-out;
}

.lightbox-figure {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lightboxIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.is-open .lightbox-figure {
  animation: lightboxIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes lightboxIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: min(82vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  background: #1a1714;
}

.lightbox-caption {
  margin-top: 1rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(12, 10, 8, 0.35);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(184, 149, 108, 0.55);
  border-color: rgba(255, 255, 255, 0.6);
}

body.lightbox-open {
  overflow: hidden;
}

/* Auto-scrolling collection bar */
.marquee-bar {
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 3%,
    #000 97%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 3%,
    #000 97%,
    transparent
  );
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 55s linear infinite;
}

.marquee-bar:hover .marquee-track {
  animation-play-state: paused;
}

/* Footer marquee — no extra bottom line (footer has its own top border) */
.footer-marquee-bar {
  border-bottom: none;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.marquee-group a {
  white-space: nowrap;
  padding: 0 1.1rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.marquee-group a:hover {
  color: var(--gold);
}

.marquee-dot {
  color: rgba(26, 23, 20, 0.18);
  font-size: 0.55rem;
  user-select: none;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* Modal */
.modal-backdrop {
  background: rgba(26, 23, 20, 0.55);
  backdrop-filter: blur(6px);
}

.modal-panel {
  max-height: min(90vh, 920px);
  animation: modalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Form */
.field {
  width: 100%;
  border: 1px solid rgba(26, 23, 20, 0.15);
  background: #fff;
  padding: 0.9rem 1rem;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 149, 108, 0.15);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.btn-gold:hover {
  background: var(--gold);
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  padding: 0.95rem 2rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

/* Specs list */
.specs li {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.7;
}

/* Mobile menu panel */
.mobile-menu {
  display: none;
  border-top: 1px solid rgba(26, 23, 20, 0.08);
  background: rgba(247, 244, 239, 0.98);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.mobile-menu.open {
  display: block;
  max-height: 22rem;
  opacity: 1;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem 1.15rem 1.25rem;
}

.mobile-menu .nav-link {
  width: 100%;
  justify-content: flex-start;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  padding: 0.85rem 1.1rem 0.95rem;
  border-radius: 0;
}

.mobile-menu .nav-link::after {
  left: 1.1rem;
  right: auto;
  width: 2.25rem;
  bottom: 0.45rem;
}

.mobile-menu .nav-link.is-active,
.mobile-menu .nav-link[aria-current="page"] {
  color: var(--ink);
  background: transparent;
  font-weight: 600;
}

.mobile-menu .nav-link.is-active::after,
.mobile-menu .nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  opacity: 1;
}

@media (min-width: 768px) {
  .menu-btn,
  .mobile-menu {
    display: none !important;
  }
}

/* Hero */
.hero-bg {
  animation: hero-ken 22s ease-in-out infinite alternate;
}

@keyframes hero-ken {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1.12);
  }
}

/* Heavy dark wash so white type always reads on jewelry photos */
.hero-scrim {
  background:
    linear-gradient(
      180deg,
      rgba(12, 10, 8, 0.65) 0%,
      rgba(12, 10, 8, 0.35) 28%,
      rgba(12, 10, 8, 0.55) 55%,
      rgba(12, 10, 8, 0.88) 100%
    ),
    linear-gradient(
      90deg,
      rgba(12, 10, 8, 0.55) 0%,
      rgba(12, 10, 8, 0.2) 55%,
      transparent 100%
    );
}

.hero-copy {
  max-width: 40rem;
  padding: 1.75rem 1.5rem 1.75rem 0;
}

@media (min-width: 768px) {
  .hero-copy {
    padding: 2.25rem 2.5rem 2.25rem 0;
  }
}

.hero-copy h1,
.hero-copy .hero-lede,
.hero-copy .hero-credentials p {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 4px 24px rgba(0, 0, 0, 0.65),
    0 0 40px rgba(0, 0, 0, 0.4);
}

.hero-credentials-line {
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f0d4a8 30%, #f0d4a8 70%, transparent);
  flex-shrink: 0;
  opacity: 0.95;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    animation: none;
  }
}

/* About pull quote */
.pull-quote {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
}

/* Selection */
::selection {
  background: rgba(184, 149, 108, 0.28);
}
