/* ============================================
   BLACKSACRED TATTOO LOUNGE — Design Tokens + Styles
   Sanctuaire d'Encre — noir absolu + or antique + parchemin
   ============================================ */

/* --- PRIMITIVE TOKENS --- */
:root {
  --black-950: #0A0A0A;
  --black-900: #1A1A1A;
  --black-850: #2A2A2A;
  --black-800: #242424;
  --gold-500: #B8973A;
  --gold-400: #D4AF5A;
  --parchment-100: #E8E0D4;
  --parchment-500: #9A9080;

  /* --- SEMANTIC TOKENS --- */
  --surface-base: var(--black-950);
  --surface-card: var(--black-900);
  --surface-elevated: var(--black-800);
  --text-primary: var(--parchment-100);
  --text-secondary: var(--parchment-500);
  --accent: var(--gold-500);
  --accent-hover: var(--gold-400);
  --border-subtle: var(--black-850);

  /* --- COMPONENT TOKENS --- */
  --nav-bg: rgba(10,10,10,0.95);
  --nav-blur: 16px;
  --hero-overlay: rgba(10,10,10,0.6);
  --card-bg: var(--surface-card);
  --card-hover-bg: var(--surface-elevated);
  --cta-border: var(--accent);
  --cta-hover-bg: var(--accent);
  --cta-hover-text: var(--surface-base);

  /* --- SPACING --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  --radius-sm: 2px;
  --radius-md: 4px;
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--surface-base);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- NAV --- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(var(--nav-blur));
  -webkit-backdrop-filter: blur(var(--nav-blur));
  border-bottom: 1px solid rgba(42,42,42,0.5);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 0.12em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  font-weight: 500 !important;
  font-size: 12px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--surface-base) !important;
  transform: translateY(-1px);
}

/* Burger */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.burger-btn span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10,10,10,0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
}

.mobile-menu.is-open { display: flex; }

.mobile-menu a {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  transition: color 0.25s ease;
}

.mobile-menu a:hover { color: var(--accent); }

.mobile-cta {
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 12px 32px;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger-btn { display: flex; }
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--surface-base) 0%,
    rgba(10,10,10,0.75) 40%,
    rgba(10,10,10,0.5) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-6);
}

.hero-title {
  font-size: clamp(32px, 8vw, 72px);
  letter-spacing: 0.15em;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.hero-subtitle {
  font-size: clamp(13px, 2vw, 18px);
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-10);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 16px 40px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.35s ease, color 0.35s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.hero-cta:hover {
  background: var(--accent);
  color: var(--surface-base);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(184,151,58,0.2);
}

/* Sacred geometry fragment in hero */
.sacred-frag--hero {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: clamp(200px, 40vw, 400px);
  height: auto;
  opacity: 0.6;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: pulse-line 2.5s ease-in-out infinite;
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.2; transform: scaleY(0.6); }
  50% { opacity: 0.8; transform: scaleY(1); }
}

/* --- SACRED GEOMETRY SEPARATORS --- */
.sacred-separator {
  padding: var(--space-8) var(--space-6);
  display: flex;
  justify-content: center;
}

.sacred-separator--footer {
  padding: var(--space-4) var(--space-6);
}

.sacred-sep-svg {
  width: clamp(280px, 50vw, 600px);
  height: auto;
  opacity: 0.5;
}

/* Sacred path animation (stroke-dashoffset) */
.sacred-path {
  fill: none;
  stroke-dasharray: var(--path-length, 1000);
  stroke-dashoffset: var(--path-length, 1000);
  transition: stroke-dashoffset 1.5s ease-out;
}

.sacred-path.is-drawn {
  stroke-dashoffset: 0;
}

/* --- SECTIONS --- */
.section {
  position: relative;
  padding: clamp(80px, 10vh, 120px) var(--space-6);
}

@media (max-width: 768px) {
  .section { padding: var(--space-12) var(--space-4); }
}

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

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

.section-title {
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

/* --- ARTISTS --- */
.artists-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

@media (max-width: 768px) {
  .artists-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}

.artist-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.artist-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.artist-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.artist-block:hover .artist-photo img {
  transform: scale(1.03);
}

.artist-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.tag {
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(184,151,58,0.3);
  color: var(--accent);
  background: rgba(184,151,58,0.08);
}

.artist-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

.artist-link:hover { color: var(--accent); }

/* --- GALLERY / MASONRY --- */
.gallery-filters {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-filters::-webkit-scrollbar { display: none; }

.filter-pill {
  white-space: nowrap;
  padding: 8px 24px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-subtle);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.filter-pill:hover,
.filter-pill:focus-visible {
  border-color: rgba(184,151,58,0.4);
  color: var(--text-primary);
}

.filter-pill.is-active {
  background: rgba(184,151,58,0.1);
  color: var(--accent);
  border-color: var(--accent);
}

.masonry {
  columns: 3;
  column-gap: 6px;
}

@media (max-width: 1024px) { .masonry { columns: 2; } }
@media (max-width: 640px) { .masonry { columns: 2; } }

.masonry-item {
  break-inside: avoid;
  margin-bottom: 6px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.masonry-item:hover img,
.masonry-item:focus-within img {
  transform: scale(1.03);
}

.masonry-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.masonry-item:hover .masonry-overlay,
.masonry-item:focus-within .masonry-overlay {
  opacity: 1;
}

.masonry-overlay-style {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,10,10,0.96);
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  color: var(--text-primary);
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- REVIEWS --- */
.reviews-score {
  text-align: center;
  margin-bottom: var(--space-12);
}

.reviews-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-3);
}

.reviews-number {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.reviews-stars {
  display: flex;
  gap: var(--space-1);
}

.star-svg {
  width: 28px;
  height: 28px;
}

.star-svg-sm {
  width: 16px;
  height: 16px;
}

.reviews-count {
  font-size: 14px;
  letter-spacing: 0.04em;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

.review-card {
  background: var(--surface-elevated);
  padding: var(--space-8);
  border-left: 2px solid var(--accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
}

.review-text {
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.review-author {
  font-size: 13px;
  font-weight: 500;
  font-style: normal;
  color: var(--text-secondary);
}

/* --- CONTACT --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-10); }
}

.contact-block {
  margin-bottom: var(--space-8);
}

.contact-phone {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  transition: color 0.25s ease;
}

.contact-phone:hover { color: var(--accent); }

.contact-hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-6);
  font-size: 14px;
}

.contact-hours dt { color: var(--text-secondary); font-weight: 400; }
.contact-hours dd { color: var(--text-primary); }

.social-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.social-link:hover {
  border-color: rgba(184,151,58,0.3);
  background: rgba(184,151,58,0.05);
}

.social-link span:first-of-type {
  font-weight: 500;
  font-size: 14px;
}

.contact-cta-wrapper {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 16px 32px;
  background: var(--accent);
  color: var(--surface-base);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(184,151,58,0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 16px 32px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--surface-base);
  transform: translateY(-2px);
}

/* --- FOOTER --- */
.site-footer {
  padding: var(--space-6) var(--space-6) var(--space-8);
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
}

.footer-logo {
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

/* --- FOCUS --- */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-line { animation: none; opacity: 0.4; }
  .sacred-path {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }
}

/* --- FADE UP --- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* --- SELECTION --- */
::selection {
  background: rgba(184,151,58,0.3);
  color: var(--text-primary);
}