/* Google Fonts loaded via non-blocking <link> in each page's <head> */

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
  /* Earthy Theme (Default) */
  --primary-color: #2c1810;
  --secondary-color: #5c3d2e;
  --accent-color: #8b5a2b;
  --accent-gold: #c9a961;
  --accent-rust: #a0522d;
  --light-bg: #f5f0e8;
  --cream-deep: #ede4d3;
  --text-color: #2c1810;
  --text-light: #7a6a5a;
  --border-color: #d9cfc3;
  --card-bg: #ffffff;
  --hover-bg: #faf8f5;

  /* Nightclub Theme variables (defined here, applied via body.nightclub) */
  --nightclub-primary: #0a0a0a;
  --nightclub-secondary: #111111;
  --nightclub-accent: #ff006e;
  --nightclub-cyan: #00d9ff;
  --nightclub-text: #00d9ff;
  --glow-soft: 0 0 10px;
  --glow-strong: 0 0 25px;

  /* Spacing scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 60px;
  --space-2xl: 80px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.4s ease;
  --transition-slow: 0.6s ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08), 0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.1), 0 20px 50px rgba(0,0,0,0.12);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.12), 0 24px 60px rgba(0,0,0,0.15);

  /* Typography — overridden per theme by render.js when the admin picks
     different fonts. Fallback chains live in the var value so consumers
     don't have to re-specify them. */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.nightclub {
  --primary-color: #0a0a0a;
  --secondary-color: #111111;
  --accent-color: #ff006e;
  --accent-gold: #00d9ff;
  --light-bg: #0a0a0a;
  --cream-deep: #141414;
  --text-color: #00d9ff;
  --text-light: rgba(0, 217, 255, 0.7);
  --border-color: rgba(0, 217, 255, 0.3);
  --card-bg: #141414;
  --hover-bg: #1e1e1e;
  --font-heading: 'Orbitron', monospace;
}

/* ============================================================
   Reset & Base
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--light-bg);
  color: var(--text-color);
  transition: background-color 0.5s ease, color 0.5s ease;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  /* Defaults to the body text color when no explicit heading color is set.
     Admin override via --heading-color (per theme, from render.js). */
  color: var(--heading-color, var(--text-color));
}

/* Product-specific headings can be a different color than page headings.
   Falls back to --heading-color when --product-heading-color isn't set. */
.featured-item h3,
.product-details h3,
.product-page-title {
  color: var(--product-heading-color, var(--heading-color, var(--text-color)));
}

body.nightclub h1,
body.nightclub h2,
body.nightclub h3,
body.nightclub h4 {
  font-family: var(--font-heading);
}

/* ============================================================
   Navigation
   ============================================================ */
.navbar {
  background-color: rgba(44, 24, 16, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--light-bg);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  transition: background-color 0.5s ease, box-shadow 0.3s ease;
}

body.nightclub .navbar {
  background-color: rgba(10, 10, 10, 0.95);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.2), 0 2px 20px rgba(0,0,0,0.5);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  transition: color 0.5s ease;
}

body.nightclub .nav-logo {
  color: var(--nightclub-cyan);
  text-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
}

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  color: rgba(245, 240, 232, 0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-gold);
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-gold);
}

body.nightclub .nav-link {
  color: rgba(0, 217, 255, 0.8);
}

body.nightclub .nav-link::after {
  background-color: var(--nightclub-cyan);
}

body.nightclub .nav-link:hover,
body.nightclub .nav-link.active {
  color: #ff006e;
  text-shadow: 0 0 15px #ff006e, 0 0 35px rgba(255,0,110,0.6);
}

.nightclub .ritual-glow {
  color: #ff006e;
  text-shadow: 0 0 15px #ff006e, 0 0 35px rgba(255,0,110,0.6);
}

.theme-switch {
  background: none;
  border: 1px solid rgba(245, 240, 232, 0.4);
  color: rgba(245, 240, 232, 0.85);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 15px;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 4px;
}

.theme-switch:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(201, 169, 97, 0.1);
}

body.nightclub .theme-switch {
  border-color: rgba(0, 217, 255, 0.5);
  color: var(--nightclub-cyan);
}

body.nightclub .theme-switch:hover {
  border-color: var(--nightclub-accent);
  color: var(--nightclub-accent);
  box-shadow: 0 0 12px rgba(255, 0, 110, 0.4);
  background: rgba(255, 0, 110, 0.1);
}

.theme-switch.spinning {
  animation: spin-toggle 0.4s ease;
}

@keyframes spin-toggle {
  0%   { transform: rotate(0deg); }
  50%  { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg); }
}

/* ============================================================
   Main Layout
   ============================================================ */
main {
  min-height: calc(100vh - 80px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  background-image: linear-gradient(
      135deg,
      rgba(44, 24, 16, 0.82) 0%,
      rgba(92, 61, 46, 0.78) 100%
    ),
    url('https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--light-bg);
  min-height: calc(100vh - 95px);
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background-color 0.5s ease;
  overflow: hidden;
}

body.nightclub .hero {
  background-image: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.80) 0%,
      rgba(10, 0, 30, 0.75) 100%
    ),
    url('https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?auto=format&fit=crop&w=1920&q=80');
  background-attachment: fixed;
}

.hero-content {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Hero logo rendered as a CSS mask so its color is themeable (matches
   the .site-watermark technique). The PNG provides the silhouette;
   --logo-color fills it. --logo-scale (1 = default 280px wide) lets the
   admin resize it from the floating panel. */
.logo {
  width: calc(280px * var(--logo-scale, 1));
  aspect-ratio: 1 / 1;
  margin-bottom: 30px;
  background-color: var(--logo-color, var(--accent-gold));
  -webkit-mask-image: url('/assets/logo.png');
          mask-image: url('/assets/logo.png');
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  transition: background-color 0.5s ease, width 0.3s ease;
}



/* Body watermark — full logo in bottom-left corner, fully visible */
.site-watermark {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 760px;
  height: 760px;
  background-color: #2c1810;
  -webkit-mask-image: url('/assets/logo.png');
  mask-image: url('/assets/logo.png');
  /* contain fits the whole logo inside the element — no cropping */
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  opacity: 0.13;
  pointer-events: none;
  z-index: 0;
}
body.nightclub .site-watermark {
  background-color: #ffffff;
  opacity: 0.09;
}

.hero h1 {
  font-size: 60px;
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  animation: fadeInUp 0.9s ease both;
}

.tagline {
  font-size: 18px;
  opacity: 0.9;
  font-weight: 300;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.9s ease 0.2s both;
}

body.nightclub .hero h1 {
  color: var(--nightclub-cyan);
  text-shadow: 0 0 30px rgba(0, 217, 255, 0.7), 0 0 60px rgba(0, 217, 255, 0.3);
  font-size: 52px;
}

body.nightclub .tagline {
  color: rgba(0, 217, 255, 0.85);
  text-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(245, 240, 232, 0.6);
  font-size: 24px;
  animation: bounce 2s ease infinite;
  cursor: pointer;
}

body.nightclub .scroll-indicator {
  color: rgba(0, 217, 255, 0.6);
}

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

/* ============================================================
   Page Header (inner pages)
   ============================================================ */
.page-header {
  position: relative;
  z-index: 1;
  background-image: linear-gradient(
      135deg,
      rgba(44, 24, 16, 0.85) 0%,
      rgba(92, 61, 46, 0.80) 100%
    ),
    url('https://images.unsplash.com/photo-1474440692490-2e83ae13ba29?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--light-bg);
  padding: 80px 20px;
  text-align: center;
  transition: background-color 0.5s ease;
}

body.nightclub .page-header {
  background-image: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(10, 0, 30, 0.80) 100%
    ),
    url('https://images.unsplash.com/photo-1518709268805-4e9042af2176?auto=format&fit=crop&w=1920&q=80');
  background-attachment: fixed;
}

.page-header h1 {
  font-size: 48px;
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  animation: fadeInUp 0.7s ease both;
}

.page-header p {
  font-size: 16px;
  opacity: 0.9;
  font-weight: 300;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.7s ease 0.15s both;
}

body.nightclub .page-header h1 {
  color: var(--nightclub-cyan);
  text-shadow: 0 0 25px rgba(0, 217, 255, 0.6);
}

body.nightclub .page-header p {
  color: rgba(0, 217, 255, 0.8);
}

/* ============================================================
   About Section
   ============================================================ */
.about {
  padding: var(--space-2xl) 20px;
}

.about h2 {
  font-size: 40px;
  margin-bottom: var(--space-lg);
  text-align: center;
  font-weight: 600;
  letter-spacing: 1px;
}

.about h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent-gold);
  margin: 16px auto 0;
  transition: background 0.5s ease;
}

body.nightclub .about h2::after {
  background: var(--nightclub-cyan);
  box-shadow: 0 0 10px var(--nightclub-cyan);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
  align-items: start;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--text-light);
  font-size: 16px;
}

.featured-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.featured-item {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
}

.featured-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

body.nightclub .featured-item {
  border-color: rgba(0, 217, 255, 0.15);
}

body.nightclub .featured-item:hover {
  box-shadow: 0 0 25px rgba(0, 217, 255, 0.3), var(--shadow-hover);
  border-color: rgba(0, 217, 255, 0.4);
}

.featured-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--card-bg);
  padding: 12px;
  box-sizing: border-box;
  transition: transform var(--transition-slow);
}

.featured-item:hover img {
  transform: scale(1.07);
}

.featured-item h3 {
  padding: 14px 16px 6px;
  font-size: 15px;
  font-weight: 600;
}

.featured-item .price {
  padding: 0 16px 14px;
  font-weight: 600;
  color: var(--accent-gold);
  font-size: 15px;
  transition: color 0.5s ease;
}

body.nightclub .featured-item .price {
  color: var(--nightclub-accent);
}

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section {
  text-align: center;
  margin-top: var(--space-lg);
}

.cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--light-bg);
  padding: 16px 48px;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gold);
  transform: translateX(-101%);
  transition: transform var(--transition-base);
}

.cta-button span {
  position: relative;
  z-index: 1;
}

.cta-button:hover::before {
  transform: translateX(0);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  color: var(--primary-color);
}

body.nightclub .cta-button {
  background: var(--nightclub-accent);
  color: #0a0a0a;
  box-shadow: 0 0 20px rgba(255, 0, 110, 0.4);
}

body.nightclub .cta-button::before {
  background: var(--nightclub-cyan);
}

body.nightclub .cta-button:hover {
  box-shadow: 0 0 35px rgba(0, 217, 255, 0.5);
  color: #0a0a0a;
}

/* ============================================================
   Shop / Products Grid
   ============================================================ */
.shop {
  padding: var(--space-xl) 20px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: var(--space-lg);
}

/* Skeleton Loader */
.skeleton-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.skeleton-image {
  height: 260px;
  background: linear-gradient(90deg, var(--hover-bg) 25%, var(--cream-deep) 50%, var(--hover-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}

.skeleton-text {
  padding: 20px;
}

.skeleton-line {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--hover-bg) 25%, var(--cream-deep) 50%, var(--hover-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  margin-bottom: 10px;
}

.skeleton-line.short { width: 50%; }
.skeleton-line.medium { width: 75%; }

body.nightclub .skeleton-image,
body.nightclub .skeleton-line {
  background: linear-gradient(90deg, #141414 25%, #1e1e1e 50%, #141414 75%);
  background-size: 200% 100%;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Featured tag — front-end product cards */
.featured-tag {
  display: inline-block;
  background: var(--accent-gold);
  color: var(--primary-color);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}
body.nightclub .featured-tag {
  background: #ff006e;
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
}

/* Product Card */
.product-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-gold);
}

body.nightclub .product-card {
  border-color: rgba(0, 217, 255, 0.15);
}

body.nightclub .product-card:hover {
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.3), var(--shadow-hover);
  border-color: var(--nightclub-cyan);
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* Match the card background so letterbox gaps from object-fit: contain
     (woodworking products vary widely in aspect) blend invisibly. */
  background: var(--card-bg);
  overflow: hidden;
  position: relative;
  /* Inner padding gives the image a "framed" look — card-bg shows around
     the photo like a matte border (white in earthy, dark in nightclub). */
  padding: 12px;
  box-sizing: border-box;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

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

.product-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 24, 16, 0);
  transition: background var(--transition-base);
}

.product-card:hover .product-image-overlay {
  background: rgba(44, 24, 16, 0.15);
}

body.nightclub .product-card:hover .product-image-overlay {
  background: rgba(0, 217, 255, 0.05);
}

.no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hover-bg);
  color: var(--text-light);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.product-details {
  padding: 22px;
}

.product-details h3 {
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.description {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 18px;
  line-height: 1.6;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.price {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
  transition: color 0.5s ease;
}

body.nightclub .price {
  color: var(--nightclub-accent);
  text-shadow: 0 0 10px rgba(255, 0, 110, 0.4);
  font-family: var(--font-heading);
  font-size: 18px;
}

.paypal-button {
  flex: 1;
}

/* ============================================================
   Gallery (Past Works)
   ============================================================ */
.gallery {
  padding: var(--space-xl) 20px;
}

.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 1;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-hover);
}

body.nightclub .gallery-item {
  border-color: rgba(0, 217, 255, 0.15);
}

body.nightclub .gallery-item:hover {
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.35), var(--shadow-hover);
  border-color: rgba(0, 217, 255, 0.5);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(20, 10, 5, 0.92), rgba(20, 10, 5, 0));
  color: white;
  padding: 28px 20px 20px;
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

body.nightclub .gallery-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(255, 0, 110, 0.05));
}

.gallery-overlay h3 {
  font-size: 17px;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

body.nightclub .gallery-overlay h3 {
  color: var(--nightclub-cyan);
}

.gallery-overlay p {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.5;
}

/* ============================================================
   Modal (Glassmorphism)
   ============================================================ */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease;
}

body.nightclub .modal {
  background-color: rgba(0, 0, 0, 0.92);
}

.modal.open {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: scaleIn 0.3s ease;
}

.modal-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}

body.nightclub .modal-content img {
  box-shadow: 0 0 60px rgba(0, 217, 255, 0.15), 0 20px 80px rgba(0,0,0,0.6);
}

.modal-caption {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: 20px 16px 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: 0.5px;
}

body.nightclub .modal-caption {
  font-family: var(--font-heading);
  color: var(--nightclub-cyan);
  text-shadow: 0 0 12px rgba(0, 217, 255, 0.6);
  font-size: 16px;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 28px;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
  line-height: 1;
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255,255,255,0.5);
}

body.nightclub .modal-nav:hover {
  border-color: var(--nightclub-cyan);
  color: var(--nightclub-cyan);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
}

.modal-prev { left: -70px; }
.modal-next { right: -70px; }

.close {
  position: absolute;
  top: -44px;
  right: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
  line-height: 1;
}

.close:hover {
  color: white;
  transform: rotate(90deg);
}

body.nightclub .close:hover {
  color: var(--nightclub-cyan);
  text-shadow: 0 0 12px var(--nightclub-cyan);
}

/* ============================================================
   Empty States
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 16px;
  letter-spacing: 0.5px;
}


/* ============================================================
   Footer
   ============================================================ */
footer {
  position: relative;
  background-image: linear-gradient(
      to bottom,
      rgba(20, 8, 4, 0.92) 0%,
      rgba(44, 24, 16, 0.97) 100%
    ),
    url('https://images.unsplash.com/photo-1474440692490-2e83ae13ba29?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--light-bg);
  padding: var(--space-xl) 20px var(--space-lg);
  margin-top: var(--space-xl);
  transition: background-color 0.5s ease;
}

body.nightclub footer {
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.94) 0%,
      rgba(5, 0, 15, 0.97) 100%
    ),
    url('https://images.unsplash.com/photo-1499856871958-5b9627545d1a?auto=format&fit=crop&w=1920&q=80');
  background-attachment: fixed;
  border-top: 1px solid rgba(0, 217, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(0, 217, 255, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 32px;
}

.footer-section h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

body.nightclub .footer-section h4 {
  font-family: var(--font-heading);
  color: var(--nightclub-cyan);
  font-size: 14px;
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
}

.footer-section p,
.footer-section a {
  font-size: 14px;
  color: rgba(245, 240, 232, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
  line-height: 1.8;
}

body.nightclub .footer-section p,
body.nightclub .footer-section a {
  color: rgba(0, 217, 255, 0.65);
}

.footer-section a:hover {
  color: var(--accent-gold);
}

body.nightclub .footer-section a:hover {
  color: var(--nightclub-accent);
  text-shadow: 0 0 10px rgba(255, 0, 110, 0.6);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 240, 232, 0.12);
  font-size: 12px;
  color: rgba(245, 240, 232, 0.45);
  letter-spacing: 1px;
}

body.nightclub .footer-bottom {
  border-top-color: rgba(0, 217, 255, 0.15);
  color: rgba(0, 217, 255, 0.4);
}

/* ============================================================
   Scroll Animations
   ============================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid children */
.stagger-child:nth-child(1) { transition-delay: 0ms; }
.stagger-child:nth-child(2) { transition-delay: 80ms; }
.stagger-child:nth-child(3) { transition-delay: 160ms; }
.stagger-child:nth-child(4) { transition-delay: 240ms; }
.stagger-child:nth-child(5) { transition-delay: 320ms; }
.stagger-child:nth-child(6) { transition-delay: 400ms; }
.stagger-child:nth-child(7) { transition-delay: 480ms; }
.stagger-child:nth-child(8) { transition-delay: 560ms; }

/* ============================================================
   Section Title Accent
   ============================================================ */
.section-title {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: var(--accent-gold);
  margin: 14px auto 0;
  transition: background 0.5s ease;
}

body.nightclub .section-title::after {
  background: var(--nightclub-cyan);
  box-shadow: 0 0 8px var(--nightclub-cyan);
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    padding: 80px 20px;
    background-attachment: scroll;
  }

  .page-header {
    background-attachment: scroll;
  }

  footer {
    background-attachment: scroll;
  }

  .hero h1 {
    font-size: 38px;
  }

  body.nightclub .hero h1 {
    font-size: 28px;
  }

  .tagline {
    font-size: 15px;
  }

  .page-header h1 {
    font-size: 32px;
  }

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

  .products-grid,
  .masonry-gallery {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }

  .featured-works {
    grid-template-columns: 1fr;
  }

  .modal-content {
    max-width: 96%;
  }

  .modal-prev { left: -50px; }
  .modal-next { right: -50px; }

  .close {
    top: -40px;
    right: 4px;
  }

  .nav-menu {
    gap: 14px;
  }

  .nav-link {
    font-size: 11px;
  }

  .nav-logo {
    font-size: 17px;
  }

  .section-title,
  .about h2 {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 30px;
  }

  body.nightclub .hero h1 {
    font-size: 22px;
  }

  .products-grid,
  .masonry-gallery {
    grid-template-columns: 1fr;
  }

  .modal-prev,
  .modal-next {
    display: none;
  }

  .nav-menu {
    gap: 10px;
  }

  .theme-switch {
    padding: 5px 10px;
  }
}

/* ============================================================
   Accessibility — focus-visible & reduced motion
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

body.nightclub :focus-visible {
  outline-color: var(--nightclub-cyan);
  box-shadow: 0 0 12px var(--nightclub-cyan);
}

a:focus-visible,
button:focus-visible {
  outline-offset: 4px;
}

/* Theme keyboard hint — appears briefly when theme toggles via "T" key */
.theme-hint {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(44, 24, 16, 0.92);
  color: var(--accent-gold);
  padding: 12px 18px;
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-body);
  border: 1px solid var(--accent-gold);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(10px);
}

.theme-hint.show {
  opacity: 1;
  transform: translateY(0);
}

body.nightclub .theme-hint {
  background: rgba(10, 10, 10, 0.92);
  color: var(--nightclub-cyan);
  border-color: var(--nightclub-cyan);
  box-shadow: 0 0 25px rgba(0, 217, 255, 0.4);
}

/* Honor user's "reduce motion" OS setting */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero,
  .page-header,
  footer {
    background-attachment: scroll;
  }

  .fade-in-up {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Legal Pages
   ============================================================ */
.legal-page {
  background: var(--light-bg, #f5f0e8);
  padding: 60px 20px 80px;
}

.legal-page .container {
  max-width: 860px;
  margin: 0 auto;
}

.legal-draft-notice {
  background: rgba(201, 169, 110, 0.15);
  border: 1px solid var(--accent-gold, #c9a96e);
  border-radius: 4px;
  padding: 14px 20px;
  margin-bottom: 40px;
  font-size: 13px;
  color: var(--text-color, #2c1810);
  line-height: 1.6;
}

body.nightclub .legal-draft-notice {
  background: rgba(0, 217, 255, 0.08);
  border-color: var(--nightclub-cyan);
  color: var(--nightclub-text);
}

.legal-draft-notice strong {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-placeholder {
  background: rgba(201, 169, 110, 0.25);
  border-radius: 3px;
  padding: 1px 6px;
  font-style: italic;
  font-weight: 600;
  color: #8b4513;
}

body.nightclub .legal-placeholder {
  background: rgba(255, 0, 110, 0.2);
  color: var(--nightclub-accent);
}

.legal-page h1 {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 600;
  color: var(--text-color, #2c1810);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

body.nightclub .legal-page h1 {
  font-family: var(--font-heading);
  color: var(--nightclub-cyan);
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

.legal-effective {
  font-size: 13px;
  color: var(--text-light, #8b7355);
  margin-bottom: 40px;
  letter-spacing: 0.04em;
}

.legal-page h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-color, #2c1810);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.3);
  letter-spacing: 0.5px;
}

body.nightclub .legal-page h2 {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--nightclub-cyan);
  border-bottom-color: rgba(0, 217, 255, 0.2);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.legal-page h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-color, #2c1810);
  margin: 24px 0 8px;
}

body.nightclub .legal-page h3 {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--nightclub-cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.legal-page p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-color, #2c1810);
  margin-bottom: 16px;
}

body.nightclub .legal-page p {
  color: var(--nightclub-text);
}

.legal-page ul,
.legal-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-color, #2c1810);
  margin-bottom: 6px;
}

body.nightclub .legal-page li {
  color: var(--nightclub-text);
}

.legal-page a {
  color: var(--accent-color, #8b6914);
  text-decoration: underline;
}

.legal-page a:hover {
  color: var(--accent-gold, #c9a96e);
}

.legal-toc {
  background: rgba(44, 24, 16, 0.04);
  border-left: 3px solid var(--accent-gold, #c9a96e);
  padding: 20px 24px;
  margin-bottom: 40px;
  border-radius: 0 4px 4px 0;
}

body.nightclub .legal-toc {
  background: rgba(0, 217, 255, 0.05);
  border-left-color: var(--nightclub-cyan);
}

.legal-toc p {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.legal-toc ol {
  margin-bottom: 0;
}

.legal-toc li {
  font-size: 14px;
  margin-bottom: 4px;
}

.legal-contact-box {
  background: rgba(44, 24, 16, 0.04);
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 6px;
  padding: 24px 28px;
  margin-top: 40px;
}

body.nightclub .legal-contact-box {
  background: rgba(0, 217, 255, 0.05);
  border-color: rgba(0, 217, 255, 0.2);
}

.legal-contact-box p {
  margin-bottom: 6px;
}

.legal-contact-box p:last-child {
  margin-bottom: 0;
}

/* 404 page */
.not-found-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: var(--light-bg, #f5f0e8);
}

.not-found-section h1 {
  font-family: var(--font-heading);
  font-size: 100px;
  font-weight: 700;
  color: var(--accent-gold, #c9a96e);
  line-height: 1;
  margin-bottom: 16px;
}

body.nightclub .not-found-section h1 {
  color: var(--nightclub-cyan);
  text-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
}

.not-found-section h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--text-color, #2c1810);
  margin-bottom: 16px;
}

body.nightclub .not-found-section h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--nightclub-text);
}

.not-found-section p {
  font-size: 16px;
  color: var(--text-light, #8b7355);
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

body.nightclub .not-found-section p {
  color: rgba(0, 217, 255, 0.65);
}
