/* ===== NORI — Layout System ===== */
/* Asymmetric grid, organic flow       */
/* =================================== */

/* ——— Navigation ——— */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: difference;
  color: #fff;
  transition: background 0.6s var(--ease-out-expo);
}

.site-nav.scrolled {
  background: rgba(250, 245, 238, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-primary);
  mix-blend-mode: normal;
  padding: var(--space-md) var(--space-xl);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.5s var(--ease-out-expo);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  position: absolute;
  transition: all 0.4s var(--ease-in-out);
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

/* ——— Hero Section ——— */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(31, 24, 16, 0.6) 0%,
    rgba(31, 24, 16, 0.3) 50%,
    rgba(31, 24, 16, 0.1) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--space-xl);
  max-width: 800px;
}

.hero-tag {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-lg);
  animation: fadeUp 1s var(--ease-out-expo) 0.3s both;
}

.hero-title {
  color: #fff;
  margin-bottom: var(--space-lg);
  animation: fadeUp 1s var(--ease-out-expo) 0.5s both;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  animation: fadeUp 1s var(--ease-out-expo) 0.7s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 1rem 2.5rem;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.6s var(--ease-out-expo);
  background: transparent;
  width: fit-content;
  animation: fadeUp 1s var(--ease-out-expo) 0.9s both;
}

.hero-cta:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  gap: var(--space-md);
}

/* ——— Section Common ——— */
.section {
  padding: var(--space-3xl) 0;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.section-header {
  margin-bottom: var(--space-2xl);
}

/* ——— Asymmetric Grid Gallery ——— */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-md);
}

.gallery-grid > *:nth-child(5n+1) {
  grid-column: 1 / 3;
  grid-row: span 2;
}

.gallery-grid > *:nth-child(5n+2) {
  grid-column: 3 / 4;
}

.gallery-grid > *:nth-child(5n+3) {
  grid-column: 1 / 2;
}

.gallery-grid > *:nth-child(5n+4) {
  grid-column: 2 / 4;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out-expo);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31,24,16,0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  color: #fff;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.gallery-item-sub {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ——— 3D Configurator Section ——— */
.configurator-section {
  background: var(--clay-950);
  color: var(--text-inverse);
  overflow: hidden;
}

.configurator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

#configurator-canvas {
  width: 100%;
  height: 600px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clay-900);
}

.configurator-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.configurator-controls h2 {
  color: var(--text-inverse);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.control-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clay-400);
}

.color-swatches {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch.active {
  border-color: var(--cream);
  box-shadow: 0 0 0 3px var(--clay-950), 0 0 0 5px var(--cream);
}

.size-options {
  display: flex;
  gap: var(--space-sm);
}

.size-btn {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--clay-600);
  background: transparent;
  color: var(--clay-300);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  border-radius: var(--radius-sm);
}

.size-btn:hover {
  border-color: var(--cream);
  color: #fff;
}

.size-btn.active {
  background: rgba(255,255,255,0.08);
  border-color: var(--cream);
  color: #fff;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 1rem 2.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.5s var(--ease-out-expo);
  border-radius: var(--radius-sm);
  width: fit-content;
}

.btn-primary:hover {
  background: var(--accent-hover);
  gap: var(--space-md);
  transform: translateY(-1px);
}

/* ——— Product Grid ——— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-light);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(31, 24, 16, 0.08);
  border-color: var(--clay-200);
}

.product-card-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out-expo);
}

.product-card:hover .product-card-image img {
  transform: scale(1.04);
}

.product-card-body {
  padding: var(--space-lg);
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
}

.product-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.product-card-price {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--accent);
  font-family: var(--font-display);
}

/* ——— Values / Story Section ——— */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.value-card {
  padding: var(--space-xl);
  border-top: 1px solid var(--border);
}

.value-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--clay-200);
  margin-bottom: var(--space-md);
}

.value-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
}

.value-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--clay-950);
  color: var(--clay-300);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: var(--space-sm);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--clay-400);
  max-width: 300px;
}

.footer-col-title {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay-400);
  margin-bottom: var(--space-md);
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col-links a {
  font-size: 0.85rem;
  color: var(--clay-300);
  transition: color 0.3s;
}

.footer-col-links a:hover {
  color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid var(--clay-800);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--clay-500);
}

/* ——— Animations ——— */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Mobile ——— */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid > *:nth-child(5n+1) { grid-column: 1 / 3; grid-row: span 1; }
  .gallery-grid > *:nth-child(5n+2) { grid-column: 1 / 2; }
  .gallery-grid > *:nth-child(5n+3) { grid-column: 2 / 3; }
  .gallery-grid > *:nth-child(5n+4) { grid-column: 1 / 3; }
  
  .configurator-layout {
    grid-template-columns: 1fr;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(250,245,238,0.97);
    backdrop-filter: blur(20px);
    font-size: 1.2rem;
    gap: var(--space-xl);
  }

  .nav-links.open { display: flex; }

  .menu-toggle { display: block; }

  .hero-content { padding: 0 var(--space-lg); }

  .hero-cta { padding: 0.8rem 2rem; }

  .section { padding: var(--space-2xl) 0; }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .gallery-grid > * { grid-column: 1 !important; grid-row: auto !important; }

  .product-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}
