/* ═══════════════════════════════════════════════════════════
   LICHTA — Shared Design System
   bg: #F1EFE7  |  accent: #212121
   TAN NIMBUS + DM Sans + JetBrains Mono
═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'TAN NIMBUS';
  src: url('fonts/TAN-NIMBUS.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:            #F1EFE7;
  --bg-card:       rgba(33,33,33,0.04);
  --bg-card-hover: rgba(33,33,33,0.07);
  --accent:        #212121;
  --border:        rgba(33,33,33,0.10);
  --border-strong: rgba(33,33,33,0.22);
  --text-primary:  #212121;
  --text-secondary:#7A746E;
  --text-muted:    #ADA89F;
  --font-display:  'TAN NIMBUS', 'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text-primary); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--accent); color: var(--bg); }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(33,33,33,0.18); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Scroll Progress ── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--accent); z-index: 10000; transition: width 0.1s linear;
}

/* ── Navbar ── */
#navbar {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 1000;
  transition: all 0.45s cubic-bezier(0.16,1,0.3,1);
}
.nav-inner {
  max-width: 100%; margin: 0 auto; padding: 12px 40px;
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.45s cubic-bezier(0.16,1,0.3,1);
}
#navbar.scrolled .nav-inner {
  max-width: 860px;
  background: rgba(241,239,231,0.9);
  border: 1px solid rgba(33,33,33,0.09);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-radius: 100px; padding: 10px 28px;
}
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2.25rem; }
.nav-links a { font-size: 0.82rem; font-weight: 500; color: var(--text-secondary); text-decoration: none; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  padding: 0.5rem 1.25rem; background: var(--accent) !important;
  color: var(--bg) !important; border-radius: 100px;
  font-weight: 600 !important; transition: opacity 0.2s ease !important;
}
.nav-cta:hover { opacity: 0.8 !important; }

/* ── Hamburger ── */
.nav-burger {
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text-primary); border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile Menu ── */
#mobile-menu {
  position: fixed; inset: 0; z-index: 998;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2.75rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16,1,0.3,1);
}
#mobile-menu.open { opacity: 1; pointer-events: auto; }
.mob-menu-logo {
  height: 22px; width: auto; opacity: 0.45;
  position: absolute; top: 2rem; left: 50%; transform: translateX(-50%);
}
.mob-link {
  font-family: var(--font-body); font-size: 2.5rem; font-weight: 700;
  letter-spacing: -0.04em; color: var(--text-primary); text-decoration: none;
  transition: opacity 0.2s ease;
}
.mob-link:hover, .mob-link:active { opacity: 0.5; }
.mob-cta {
  margin-top: 0.5rem;
  padding: 0.9rem 2.5rem; border-radius: 100px;
  background: var(--accent); color: var(--bg);
  font-size: 1rem; font-weight: 600; text-decoration: none;
  transition: opacity 0.2s ease;
}
.mob-cta:hover, .mob-cta:active { opacity: 0.82; }

/* ── Focus styles ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── Buttons ── */
.btn-dark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2rem; border-radius: 100px;
  background: var(--accent); color: var(--bg);
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
  letter-spacing: 0.01em; transition: opacity 0.2s ease;
}
.btn-dark:hover { opacity: 0.82; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.75rem; border-radius: 100px;
  border: 1px solid var(--border); color: var(--text-secondary);
  font-size: 0.875rem; font-weight: 500; text-decoration: none;
  background: transparent; transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-ghost:hover { border-color: var(--border-strong); color: var(--text-primary); }
.btn-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 1rem; font-weight: 500; color: var(--text-muted);
  text-decoration: none; letter-spacing: 0.02em;
  transition: color 0.2s ease, gap 0.2s ease;
}
.btn-back:hover { color: var(--text-primary); gap: 0.75rem; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border); padding: 2.5rem 2rem;
}
.foot-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.foot-logo img { height: 22px; width: auto; opacity: 0.65; }
.foot-center {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted);
}
.foot-right { font-size: 0.75rem; color: var(--text-muted); }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ── Product Page: Hero ── */
.prod-hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-top: 80px; /* nav clearance */
  position: relative;
}

/* ── Product CTA button (compact) ── */
.prod-hero-text .btn-dark {
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
  align-self: flex-start;
}

/* ── Product scroll cue ── */
.prod-scroll-cue {
  position: absolute; bottom: 2.5rem; right: 4rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  opacity: 1; transition: opacity 0.5s ease;
  pointer-events: none;
}
.prod-scroll-cue.hidden { opacity: 0; }
.prod-scroll-cue-line {
  width: 1px; height: 36px;
  background: var(--border); position: relative; overflow: hidden;
}
.prod-scroll-cue-line::after {
  content: '';
  position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--text-secondary);
  animation: prodScrollLine 1.8s cubic-bezier(0.4,0,0.6,1) infinite;
}
@keyframes prodScrollLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}
.prod-scroll-cue-text {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); white-space: nowrap;
}
.prod-hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 4rem 5rem 5rem;
  position: relative;
}
.prod-hero-img {
  position: relative; overflow: hidden;
  background: rgba(33,33,33,0.04);
}
.prod-hero-img img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center;
}

.prod-num {
  font-family: var(--font-mono); font-size: 1.05rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.prod-num::before { content: ''; display: block; width: 32px; height: 1px; background: var(--text-muted); }

.prod-hero-name {
  font-family: var(--font-body);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 700; letter-spacing: -0.04em; line-height: 0.88;
  color: var(--text-primary); margin-bottom: 1rem;
}

.prod-hero-tagline {
  font-size: 0.78rem; font-weight: 500;
  color: var(--text-muted); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 2rem;
}

.prod-hero-desc {
  font-size: 1rem; color: var(--text-secondary);
  line-height: 1.75; font-weight: 400; max-width: 420px;
  margin-bottom: 2.5rem;
}

.prod-price-row {
  display: flex; align-items: baseline; gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.prod-price-label {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted);
}
.prod-price {
  font-family: var(--font-body); font-size: 2rem;
  font-weight: 700; letter-spacing: -0.03em; color: var(--text-primary);
}

.prod-colors-row {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 2rem;
}
.prod-color-label {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); margin-right: 0.25rem;
}
.c-dot {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid rgba(33,33,33,0.15);
}

/* ── Specs Bar ── */
.specs-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.specs-bar-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.spec-item {
  padding: 2rem 2rem;
  border-right: 1px solid var(--border);
}
.spec-item:last-child { border-right: none; }
.spec-label {
  font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); display: block; margin-bottom: 0.5rem;
}
.spec-val {
  font-size: 0.9rem; font-weight: 500; color: var(--text-primary);
  line-height: 1.4;
}

/* ── Gallery ── */
.gallery-section {
  padding: 6rem 2rem;
  max-width: 1120px; margin: 0 auto;
}
.gallery-eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 2.5rem;
}
.gallery-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}
.gallery-grid.single { grid-template-columns: 1fr; max-width: 700px; }
.gallery-grid.three { grid-template-columns: repeat(3, 1fr); }
.gallery-grid.five {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
}
.gallery-grid.five .g-item:nth-child(4) { grid-column: 1; }
.gallery-grid.five .g-item:nth-child(5) { grid-column: 2; }

.g-item {
  border-radius: 14px; overflow: hidden;
  background: rgba(33,33,33,0.04);
}
.g-item img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.g-item:hover img { transform: scale(1.03); }
.g-item.tall img { aspect-ratio: 3/4; }
.g-item.wide { grid-column: span 2; }
.g-item.wide img { aspect-ratio: 16/7; }

/* ── WhatsApp button ── */
.btn-wa {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2rem; border-radius: 100px;
  background: #25D366; color: #fff;
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
  letter-spacing: 0.01em; transition: opacity 0.2s ease;
}
.btn-wa:hover { opacity: 0.88; }

/* ── Lightbox ── */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10,9,8,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
  cursor: zoom-out;
}
.lightbox-overlay.open { opacity: 1; pointer-events: auto; }
.lightbox-overlay img {
  max-width: 92vw; max-height: 90vh; object-fit: contain;
  border-radius: 8px; cursor: default;
  transform: scale(0.95);
  transition: transform 0.32s cubic-bezier(0.16,1,0.3,1);
}
.lightbox-overlay.open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.75rem;
  font-size: 2rem; line-height: 1; color: rgba(255,255,255,0.65);
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); transition: color 0.2s ease;
}
.lightbox-close:hover { color: #fff; }
.g-item img { cursor: zoom-in; }

/* ── Collection CTA ── */
.collection-cta {
  border-top: 1px solid var(--border);
  padding: 6rem 2rem; text-align: center;
}
.collection-cta-inner { max-width: 600px; margin: 0 auto; }
.collection-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 0.9; margin-bottom: 1.25rem;
  color: var(--text-primary);
}
.collection-cta h2 em { font-style: italic; color: rgba(33,33,33,0.3); }
.collection-cta p {
  font-size: 0.95rem; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 2.5rem;
}
.btn-row { display: flex; gap: 1rem; align-items: center; justify-content: center; }

/* ── Also in collection ── */
.also-section {
  padding: 5rem 4rem;
  background: rgba(33,33,33,0.025);
  border-top: 1px solid var(--border);
}
.also-eyebrow {
  font-family: var(--font-mono); font-size: 0.85rem;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 2.5rem;
}
.also-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.also-item {
  text-decoration: none; display: flex; flex-direction: column; gap: 0;
}
.also-img-wrap {
  position: relative; overflow: hidden; border-radius: 3px; aspect-ratio: 3/4;
}
.also-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s cubic-bezier(0.25,0.46,0.45,0.94);
}
.also-item:hover .also-img-wrap img { transform: scale(1.05); }
.also-overlay {
  position: absolute; inset: 0;
  background: rgba(33,33,33,0);
  display: flex; align-items: flex-end; padding: 1.1rem 1.2rem;
  transition: background .35s ease;
}
.also-item:hover .also-overlay { background: rgba(33,33,33,0.18); }
.also-ver {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: .1em; text-transform: uppercase; color: #fff;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.also-item:hover .also-ver { opacity: 1; transform: translateY(0); }
.also-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 0.1rem 0;
}
.also-name {
  font-family: var(--font-body); font-size: 0.9rem;
  font-weight: 500; letter-spacing: -0.01em; color: var(--text-primary);
}
.also-arrow {
  font-size: 0.85rem; color: var(--text-muted);
  transition: transform .25s ease, color .25s ease;
}
.also-item:hover .also-arrow { transform: translateX(5px); color: var(--text-primary); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .prod-hero { grid-template-columns: 1fr; min-height: auto; }
  .prod-hero-img { aspect-ratio: 4/3; height: auto; order: -1; }
  .prod-hero-text { padding: 3rem 2rem 4rem; }
  .gallery-grid.five { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid.five .g-item:nth-child(4),
  .gallery-grid.five .g-item:nth-child(5) { grid-column: auto; }
  .gallery-grid.three { grid-template-columns: repeat(2, 1fr); }
  .specs-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .spec-item:nth-child(even) { border-right: none; }
  .spec-item { border-bottom: 1px solid var(--border); }
  .spec-item:last-child { border-bottom: none; }
}
@media (max-width: 900px) {
  .also-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .also-section { padding: 3.5rem 2rem; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .gallery-grid, .gallery-grid.five, .gallery-grid.three { grid-template-columns: 1fr; }
  .g-item.wide { grid-column: auto; }
  .g-item.wide img { aspect-ratio: 4/3; }
  .foot-center { display: none; }
  .btn-row { flex-direction: column; }
  .prod-hero-name { font-size: clamp(3.5rem, 14vw, 5rem); }
}
@media (max-width: 480px) {
  .foot-inner { flex-direction: column; gap: 0.75rem; text-align: center; }
  .foot-logo { display: flex; justify-content: center; }
}
