/* =============================================
   FARBSTICH TATTOO – DESIGN SYSTEM
   Dark premium aesthetic for tattoo studio
   ============================================= */

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

:root {
  --ink:       #0a0a0a;
  --ink-soft:  #141414;
  --ink-mid:   #1e1e1e;
  --ink-light: #2a2a2a;
  --gold:      #c8a96e;
  --gold-dim:  #9a7c4f;
  --cream:     #f0ebe3;
  --cream-dim: #b8b0a5;
  --white:     #ffffff;
  --border:    rgba(200, 169, 110, 0.15);
  --border-sub:rgba(255,255,255,0.06);

  --ff-serif:  'Playfair Display', Georgia, serif;
  --ff-sans:   'Space Grotesk', 'Inter', system-ui, sans-serif;
  --ff-logo:   'Cinzel', serif;

  --nav-h: 80px;
  --max-w: 1280px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--ff-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

/* --- CUSTOM CURSOR --- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transition: opacity 0.3s;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  top: -3px; left: -3px;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid var(--gold);
  top: -16px; left: -16px;
  transition: transform 0.12s var(--ease-out), opacity 0.3s, width 0.2s, height 0.2s;
}
body:hover .cursor-dot,
body:hover .cursor-ring { opacity: 1; }

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

/* --- UTILITIES --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(24px, 5vw, 80px); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
strong { font-weight: 500; color: var(--gold); }

/* --- TYPOGRAPHY --- */
.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}
.section-eyebrow {
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-header {
  margin-bottom: clamp(40px, 6vw, 80px);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 32px;
  border-radius: 2px;
  font-family: var(--ff-sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-out);
  cursor: none;
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(200,169,110,0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 12px 28px;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 60px);
  z-index: 1000;
  transition: background 0.4s var(--ease-out), border-bottom 0.4s;
}
.nav.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--ff-logo);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-logo:hover { color: var(--gold); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}
.nav-link {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 0.3s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { width: 100%; }
.nav-insta { display: flex; align-items: center; }
.nav-insta::after { display: none; }
.insta-icon {
  width: 18px; height: 18px;
  transition: color 0.3s, transform 0.3s;
}
.nav-insta:hover .insta-icon,
.footer-insta:hover .insta-icon { color: var(--gold); transform: scale(1.15); }
.footer-insta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1px;
  background: var(--cream);
  transition: all 0.3s;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.28) saturate(0.6);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,0.88) 0%,
    rgba(10,10,10,0.5) 50%,
    rgba(10,10,10,0.78) 100%
  );
}

/* --- HERO VIDEO BUTTON --- */
.hero-video-btn {
  position: absolute;
  bottom: 40px;
  right: clamp(24px, 5vw, 80px);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10,10,10,0.55);
  border: 1px solid rgba(200,169,110,0.35);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.2s var(--ease-out);
  padding: 0;
}
.hero-video-btn:hover {
  background: rgba(200,169,110,0.12);
  border-color: var(--gold);
  transform: scale(1.08);
}
.hero-video-btn svg {
  width: 16px;
  height: 16px;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 clamp(24px, 10vw, 160px);
  padding-top: var(--nav-h);
  max-width: 780px;
}
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.3s var(--ease-out) forwards;
}
.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.5s var(--ease-out) forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--cream-dim);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.7s var(--ease-out) forwards;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s 0.9s var(--ease-out) forwards;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: clamp(24px, 10vw, 160px);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  opacity: 0;
  animation: fadeIn 1s 1.4s forwards;
}
.scroll-line {
  width: 40px; height: 1px;
  background: var(--gold-dim);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--gold);
  animation: scrollLine 2s 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { left: -100%; }
  100% { left: 100%; }
}

/* =============================================
   SERVICES
   ============================================= */
.services {
  padding: clamp(60px, 8vw, 120px) 0;
  background: var(--ink-soft);
  border-top: 1px solid var(--border-sub);
  border-bottom: 1px solid var(--border-sub);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-sub);
}
.service-card {
  background: var(--ink-soft);
  padding: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px);
  transition: background 0.3s;
}
.service-card:hover { background: var(--ink-mid); }
.service-icon {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: block;
}
.service-card h3 {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--cream);
}
.service-card p {
  font-size: 0.9rem;
  color: var(--cream-dim);
  line-height: 1.7;
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  padding: clamp(80px, 12vw, 180px) 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: saturate(0.6) contrast(1.1);
}
.about-img-deco {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 60%; height: 60%;
  border: 1px solid var(--gold);
  z-index: -1;
  opacity: 0.3;
}
.about-text { display: flex; flex-direction: column; gap: 1.5rem; }
.about-desc {
  font-size: 1rem;
  color: var(--cream-dim);
  line-height: 1.8;
}
.about-facts {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border-sub);
  border-bottom: 1px solid var(--border-sub);
}
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact-num {
  font-family: var(--ff-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.fact-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--cream-dim);
  text-transform: uppercase;
}
.about-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =============================================
   GALLERY
   ============================================= */
.gallery {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--ink-soft);
}
.gallery-grid {
  columns: 3;
  column-gap: 4px;
  margin-bottom: clamp(40px, 5vw, 80px);
}
.gallery-item {
  break-inside: avoid;
  overflow: hidden;
  position: relative;
  background: var(--ink-mid);
  margin-bottom: 4px;
  cursor: none;
}
.gallery-real-img {
  width: 100%;
  display: block;
  filter: saturate(0.65) contrast(1.05);
  transition: transform 0.6s var(--ease-out), filter 0.4s;
}
.gallery-item:hover .gallery-real-img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1);
}
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay span {
  font-size: 1.8rem;
  color: var(--gold);
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,5,5,0.96);
  backdrop-filter: blur(8px);
}
.lb-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 92vw;
  max-height: 92vh;
}
.lb-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 80vw;
  max-height: 88vh;
}
.lb-img {
  max-width: 80vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 2px;
  transition: opacity 0.3s;
  display: block;
}
.lb-loader {
  position: absolute;
  width: 32px; height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.lb-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--cream);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: none;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.lb-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.lb-close {
  position: absolute;
  top: -48px; right: 0;
  background: none;
  border: none;
  color: var(--cream-dim);
  font-size: 2rem;
  cursor: none;
  line-height: 1;
  transition: color 0.2s;
}
.lb-close:hover { color: var(--gold); }
.lb-counter {
  position: absolute;
  bottom: -36px;
  left: 50%; transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--cream-dim);
  white-space: nowrap;
}
.gallery-note {
  text-align: center;
  padding: clamp(40px, 5vw, 60px);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.gallery-note p {
  color: var(--cream-dim);
  font-size: 1rem;
  line-height: 1.7;
}

/* =============================================
   PROCESS
   ============================================= */
.process {
  padding: clamp(80px, 12vw, 160px) 0;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border-sub);
}
.process-step {
  padding: clamp(28px, 3vw, 48px) clamp(20px, 2.5vw, 36px);
  border-right: 1px solid var(--border-sub);
  position: relative;
}
.process-step:last-child { border-right: none; }
.step-num {
  font-family: var(--ff-serif);
  font-size: 4rem;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1.5rem;
}
.step-content h3 {
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.75rem;
}
.step-content p {
  font-size: 0.87rem;
  color: var(--cream-dim);
  line-height: 1.7;
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--ink-soft);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2.5rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.contact-icon {
  font-size: 1.2rem;
  color: var(--gold);
  margin-top: 2px;
  flex-shrink: 0;
}
.contact-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
  display: block;
  margin-bottom: 4px;
}
.contact-value {
  font-size: 1rem;
  color: var(--cream);
  transition: color 0.3s;
  line-height: 1.5;
  display: block;
}
a.contact-value:hover { color: var(--gold); }

/* FORM */
.contact-form-wrap {
  background: var(--ink-mid);
  border: 1px solid var(--border-sub);
  padding: clamp(28px, 4vw, 48px);
}
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.form-group input,
.form-group textarea {
  background: var(--ink-light);
  border: 1px solid var(--border-sub);
  border-radius: 2px;
  padding: 14px 16px;
  color: var(--cream);
  font-family: var(--ff-sans);
  font-size: 0.95rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s;
  resize: vertical;
  cursor: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #444; }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}
.form-note {
  font-size: 0.78rem;
  color: #555;
  text-align: center;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: clamp(40px, 5vw, 60px) 0;
  border-top: 1px solid var(--border-sub);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--ff-logo);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--cream-dim);
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  font-size: 0.75rem;
  color: #444;
  letter-spacing: 0.05em;
}

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

[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-step:nth-child(2) { border-right: none; }
  .process-step:nth-child(1),
  .process-step:nth-child(2) { border-bottom: 1px solid var(--border-sub); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10,10,10,0.97);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-sub);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 14px 0; }
  .nav-toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img { aspect-ratio: 3/2; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step { border-right: none; border-bottom: 1px solid var(--border-sub); }
  .process-step:last-child { border-bottom: none; }
  .about-facts { gap: 1.5rem; flex-wrap: wrap; }

  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .gallery-grid { columns: 1; }
}
