/* ===================================================
   CZEISZPERGER - WHITE CUBE GALLERY THEME
   Modern art gallery aesthetic
   =================================================== */

/* ===== CSS RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'GTStandard-M', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== HAMBURGER MENU TOGGLE ===== */
.menu-toggle {
  position: fixed;
  top: 32px;
  left: 32px;
  z-index: 1000;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 1.5px;
  background: #1a1a1a;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero state - white hamburger */
.hero-visible .menu-toggle span {
  background: #ffffff;
}

/* ===== FULLSCREEN MENU OVERLAY ===== */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 900px) {
  .menu-overlay {
    width: 360px;
    height: auto;
    top: 24px;
    left: 24px;
    right: auto;
    bottom: auto;
    border: 1px solid #eee;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
    align-items: flex-start;
    justify-content: flex-start;
    padding: 40px 32px;
  }
}

.menu-nav {
  list-style: none;
  text-align: center;
  margin: 0;
  padding: 0;
}

.menu-nav li {
  margin: 16px 0;
  overflow: hidden;
}

.menu-nav a {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: 0.08em;
  display: inline-block;
  transition: color 0.3s ease;
}

.menu-nav a:hover {
  color: #888;
}

/* ===== HERO SECTION ===== */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.85);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-logo {
  width: min(320px, 70vw);
  filter: brightness(0) invert(1);
  animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== PAGE HEADER (non-homepage) ===== */
.page-header {
  padding: 80px 24px 32px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0;
}

.page-breadcrumb {
  margin: 12px 0 0 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-breadcrumb a {
  color: #888;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-breadcrumb a:hover {
  color: #1a1a1a;
}

/* ===== INTRO / RICH TEXT SECTION ===== */
.intro {
  padding: 72px 24px 48px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

.intro p {
  font-size: 18px;
  color: #444;
  line-height: 1.8;
  font-weight: 450;
}

/* ===== GALLERY GRID (Products) ===== */
.gallery-section {
  padding: 24px 0 80px;
}

.gallery-header {
  text-align: center;
  margin-bottom: 32px;
}

.gallery-header h2 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 64px;
  padding: 0 64px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  text-align: center;
}

.gallery-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.gallery-item-image {
  position: relative;
  margin-bottom: 24px;
  overflow: hidden;
}

.gallery-item-image img {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  display: block;
  transition: transform 0.6s ease;
}

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

/* Museum-style label */
.gallery-item-label {
  padding: 24px 16px;
  border-left: 1px solid #e0e0e0;
  text-align: left;
  max-width: 280px;
  margin: 0 auto;
}

.gallery-item-title {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 8px 0;
  letter-spacing: 0.01em;
}

.gallery-item-price {
  font-size: 14px;
  color: #666;
  font-weight: 450;
  margin: 0;
}

.gallery-item-price del {
  color: #999;
  margin-right: 8px;
}

.gallery-item-materials {
  font-size: 12px;
  color: #999;
  margin: 4px 0 0 0;
}

/* ===== CONTENT PAGES ===== */
.page-content {
  padding: 60px 24px 120px;
  max-width: 800px;
  margin: 0 auto;
}

.page-content h1,
.page-content h2,
.page-content h3 {
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 48px;
  margin-bottom: 16px;
}

.page-content h1:first-child,
.page-content h2:first-child {
  margin-top: 0;
}

.page-content p {
  color: #444;
  line-height: 1.8;
  margin-bottom: 24px;
}

.page-content img {
  margin: 32px 0;
}

/* ===== IMAGE GALLERY PAGE ===== */
.image-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.image-gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.image-gallery-grid img:hover {
  opacity: 0.9;
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-page {
  padding: 120px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.product-images img {
  width: 100%;
  margin-bottom: 16px;
}

.product-info h1 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 16px 0;
}

.product-price {
  font-size: 24px;
  color: #1a1a1a;
  margin-bottom: 32px;
}

.product-description {
  color: #444;
  line-height: 1.8;
}

/* ===== FOOTER ===== */
.footer {
  padding: 80px 24px;
  text-align: center;
  border-top: 1px solid #eee;
  margin-top: 80px;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 0 0 40px 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: #666;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #1a1a1a;
}

.footer-copyright {
  font-size: 12px;
  color: #999;
  margin: 0;
}

.footer-social {
  margin-bottom: 24px;
}

.footer-social a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  color: #666;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #1a1a1a;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-toggle {
    top: 20px;
    left: 20px;
  }

  .intro {
    padding: 56px 20px 36px;
  }

  .gallery-section {
    padding: 20px 0 64px;
  }

  .gallery-header {
    margin-bottom: 28px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 24px;
  }

  .page-header {
    padding: 72px 20px 28px;
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-page {
    padding: 72px 20px 48px;
  }

  .footer {
    padding: 60px 24px;
    margin-top: 60px;
  }

  .footer-links {
    gap: 24px;
  }
}

/* ===== UTILITY CLASSES ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}
