/* ============================================
   TABS VACILIO — Premium Tattoo Artist Site
   Dark streetwear × manga editorial
   ============================================ */

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

:root {
  --bg: #080808;
  --bg2: #111111;
  --text: #F0EEE8;
  --accent: #4ECCA3;
  --red: #E63946;
  --muted: #666666;
  --divider: #1C1C1C;
  --grain-opacity: 0.035;
}

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

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Film grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }

p { font-weight: 300; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: #fff; }

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

.section {
  padding: 100px 0;
}

.section-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 40px 0;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.4s ease, padding 0.4s ease;
}

.nav.scrolled {
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom: 1px solid var(--divider);
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.25em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo:hover { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 8, 8, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 999;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1.2rem; color: var(--text); }
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero.loaded .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 50%, rgba(8,8,8,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-content h1 {
  margin-bottom: 16px;
}

.hero-content h1 .accent { color: var(--accent); }

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 32px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  padding: 14px 40px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: all 0.35s ease;
  text-transform: uppercase;
}
.btn:hover {
  background: var(--accent);
  color: var(--bg);
}

.btn--solid {
  background: var(--accent);
  color: var(--bg);
}
.btn--solid:hover {
  background: transparent;
  color: var(--accent);
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0, 0.25, 1), filter 0.4s ease;
  filter: brightness(0.85) saturate(0.9);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1) saturate(1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  border-color: var(--accent);
  box-shadow: inset 0 0 30px rgba(78, 204, 163, 0.1);
}

@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

/* --- Masonry Gallery --- */
.masonry-grid {
  columns: 3;
  column-gap: 8px;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0, 0.25, 1), filter 0.4s ease;
  filter: brightness(0.85) saturate(0.9);
}
.masonry-item:hover img {
  transform: scale(1.05);
  filter: brightness(1) saturate(1);
}
.masonry-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  pointer-events: none;
}
.masonry-item:hover::after {
  border-color: var(--accent);
  box-shadow: inset 0 0 30px rgba(78, 204, 163, 0.1);
}

@media (max-width: 768px) { .masonry-grid { columns: 2; } }
@media (max-width: 480px) { .masonry-grid { columns: 1; } }

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.lightbox.active { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border: 1px solid var(--divider);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2rem;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  line-height: 1;
  transition: color 0.3s;
}
.lightbox-close:hover { color: var(--accent); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: none;
  padding: 20px;
  transition: color 0.3s;
  font-weight: 200;
}
.lightbox-nav:hover { color: var(--accent); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* --- About Page --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-portrait {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: brightness(0.9);
  border: 1px solid var(--divider);
}
.about-text p { margin-bottom: 20px; color: rgba(240, 238, 232, 0.85); }

.stats-row {
  display: flex;
  gap: 48px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--accent);
  display: block;
}
.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-row { gap: 32px; }
}

/* --- Booking Form --- */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg2);
  border: 1px solid var(--divider);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  border-radius: 0;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.flash-card {
  background: var(--bg2);
  border: 1px solid var(--divider);
  padding: 32px;
  margin-bottom: 24px;
}
.flash-card h3 { color: var(--accent); margin-bottom: 12px; }
.flash-card .price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: var(--text);
}
.flash-card .price-note {
  font-size: 0.85rem;
  color: var(--muted);
}

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

/* --- Testimonials --- */
.testimonial-card {
  background: var(--bg2);
  border: 1px solid var(--divider);
  padding: 40px;
  margin-bottom: 24px;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-family: 'Bebas Neue', sans-serif;
  font-size: 6rem;
  color: var(--accent);
  opacity: 0.15;
  position: absolute;
  top: 8px;
  left: 24px;
  line-height: 1;
}
.testimonial-text {
  font-style: italic;
  font-weight: 300;
  margin-bottom: 20px;
  color: rgba(240, 238, 232, 0.85);
  position: relative;
  z-index: 1;
}
.testimonial-author {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 120px 24px;
  background: var(--bg2);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { color: var(--muted); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* --- Footer --- */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--divider);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.2em;
  color: var(--text);
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  font-size: 0.75rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 160px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--divider);
}
.page-header h1 { margin-bottom: 12px; }
.page-header p { color: var(--muted); font-size: 1rem; }

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0, 0.25, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-60 { margin-top: 60px; }
.mb-40 { margin-bottom: 40px; }
.text-muted { color: var(--muted); }

/* Red accent — used sparingly */
.accent-red { color: var(--red); }

/* Selection */
::selection { background: var(--accent); color: var(--bg); }
