/* ============================================================
   BRUNIN TATTOO STUDIO — style.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #111111;
  --surface:      #181818;
  --surface-2:    #1e1e1e;
  --sidebar-bg:   #141414;
  --white:        #ffffff;
  --muted:        #888888;
  --dim:          #aaaaaa;
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    32px;
  --display:      'Cinzel', 'Playfair Display', Georgia, serif;
  --body:         'Inter', system-ui, sans-serif;
  --sidebar-w:    400px;
  --ease:         0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ============================================================
   ROOT LAYOUT
   ============================================================ */
.layout {
  display: flex;
  min-height: 100vh;
  align-items: flex-start;
}

/* Main fills everything except the sidebar */
.main {
  flex: 1;
  min-width: 0;
}

/* ============================================================
   RIGHT SIDEBAR — fixed, full height
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--sidebar-bg);
  border-left: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  overflow-y: auto;
  flex-shrink: 0;
}

/* ============================================================
   SPOTLIGHT (shared between sidebar and mobile)
   ============================================================ */
.spotlight-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  width: 100%;
}

/* Big image area — tall dark block with centered placeholder icon */
.spotlight-img {
  width: 100%;
  /* tall: roughly 65% of a 260px-wide sidebar = nice tall card */
  aspect-ratio: 3 / 4;
  background-color: #1c1c1c;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.placeholder-icon {
  color: rgba(255,255,255,0.22);
}

/* Body below image */
.spotlight-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 14px 18px;
}

/* Description text */
.spotlight-text {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--dim);
  line-height: 1.65;
}

/* CTA button — dark, matches screenshot */
.btn-agendar-spot {
  width: 100%;
  background: #2a2a2a;
  color: var(--white);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background var(--ease), transform var(--ease);
}

.btn-agendar-spot:hover {
  background: #333333;
  transform: translateY(-2px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 580px;
  overflow: hidden;
  background-color: #111;
  background-size: cover;
  background-position: center top;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.38) 50%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: 1;
}

/* Top bar inside hero */
.hero-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 36px;
}

.badge-studio {
  background: rgba(255,255,255,0.11);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.20);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  display: inline-flex;
}

.btn-nav {
  background: var(--white);
  color: #111;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 26px;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: opacity var(--ease), transform var(--ease);
}

.btn-nav:hover { opacity: 0.88; transform: translateY(-1px); }

/* Hero text block */
.hero-content {
  position: absolute;
  bottom: 80px;
  left: 44px;
  z-index: 10;
  max-width: 500px;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.8);
  text-transform: uppercase;
}

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  margin-bottom: 32px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  letter-spacing: 0.03em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.badge-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
  padding: 10px 20px;
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  cursor: pointer;
}

.badge-location:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.02) translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.badge-city {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.icon-pin {
  animation: floatPin 2.5s ease-in-out infinite;
  color: #fff;
}

@keyframes floatPin {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

.btn-hero-agendar {
  background: var(--white);
  color: #050505;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 24px;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: all var(--ease);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-hero-agendar:hover {
  background: #e2e2e2;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

/* ============================================================
   CATEGORIES
   ============================================================ */
.categories {
  background: var(--bg);
  padding: 52px 36px 56px;
}

.section-header { margin-bottom: 26px; }

.section-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

/* Masonry */
.masonry {
  columns: 3 220px;
  column-gap: 14px;
}

.card {
  display: inline-block;
  width: 100%;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  break-inside: avoid;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
}

.card:hover .card-img { transform: scale(1.04); }

.card--tall .card-img,   .card-tall .card-img   { height: 300px; }
.card--medium .card-img, .card-medium .card-img { height: 220px; }
.card--short .card-img,  .card-short .card-img  { height: 165px; }

.card-img {
  width: 100%;
  height: 200px; /* Dimensão padrão de segurança caso a classe de layout não exista */
  background-size: cover;
  background-position: center;
  background-color: #222;
  transition: transform 0.38s ease;
}

.card-label {
  padding: 10px 14px 12px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
}

/* ============================================================
   ARTES PARA VOCÊ
   ============================================================ */
.artes-section {
  background: var(--bg);
  padding: 0 36px 56px;
}

.artes-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.artes-title {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.artes-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--ease);
}

.artes-link:hover { color: var(--white); }

/* Layout: Mobile stacked, Desktop side-by-side */
.artes-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 769px) {
  .artes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.arte-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
  cursor: pointer;
}

.arte-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
  border-radius: var(--radius-lg);
  transition: transform 0.40s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.40s ease;
}

.arte-card:hover .arte-img {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0,0,0,0.50);
}

.arte-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 2px;
}

.arte-name {
  font-family: var(--body);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}

.arte-sub {
  font-size: 14px;
  font-weight: 400;
  color: var(--dim);
}

/* ============================================================
   PROCESSO CRIATIVO CAROUSEL
   ============================================================ */
.processo-section {
  background: var(--bg);
  padding: 0 36px 64px;
}

.processo-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.processo-header-text { flex: 1; }

.processo-title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.processo-desc {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
  max-width: 380px;
}

/* Arrow buttons */
.processo-nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
  padding-top: 4px;
}

.proc-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
  flex-shrink: 0;
}

.proc-btn:hover { background: #2e2e2e; transform: scale(1.08); }
.proc-btn:disabled { opacity: 0.32; cursor: default; transform: none; }

/* Viewport clips the track */
.processo-viewport {
  overflow: hidden;
  border-radius: var(--radius-md);
}

/* Sliding track — flex row */
.processo-track {
  display: flex;
  gap: 16px;
  transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Each slide — responsive width */
.proc-slide {
  flex: 0 0 calc(33.333% - 11px); /* 3 per row desktop */
  min-width: 0;
}

/* Card with image + gradient overlay */
.proc-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  cursor: pointer;
}

.proc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.40s ease;
}

.proc-card:hover .proc-img { transform: scale(1.06); }

.proc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.18) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 18px 22px;
}

.proc-card-title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 6px;
}

.proc-card-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Dot indicators */
.proc-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 20px;
}

.proc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
  border: none;
  padding: 0;
}

.proc-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

/* ============================================================
   MOBILE FEATURED — hidden on desktop
   ============================================================ */
.mobile-featured {
  display: none;
  padding: 0 20px 56px;
  background: var(--bg);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {

  /* Hide desktop sidebar */
  .sidebar { display: none; }

  /* Show mobile featured block */
  .mobile-featured { display: block; }

  /* Hero full width */
  .hero-content {
    left: 28px;
    right: 28px;
    max-width: 100%;
  }

  .categories { padding-left: 24px; padding-right: 24px; }

  /* Carousel: 2 per row on tablet */
  .proc-slide { flex: 0 0 calc(50% - 8px); }
  .processo-section { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 768px) {
  .hero-topbar { padding: 20px 20px; }
  .hero-content { left: 20px; right: 20px; bottom: 48px; }

  .categories { padding: 40px 16px 36px; }

  .masonry { columns: 2 140px; column-gap: 10px; }
  .masonry .card { margin-bottom: 10px; }
  .card--tall   .card-img { height: 220px; }
  .card--medium .card-img { height: 170px; }
  .card--short  .card-img { height: 130px; }

  .mobile-featured { padding: 0 16px 48px; }

  /* Carousel: 1 per row on mobile */
  .proc-slide { flex: 0 0 calc(100% - 0px); }
  .processo-section { padding-left: 16px; padding-right: 16px; padding-bottom: 48px; }
  .processo-header { flex-direction: column; gap: 14px; }
  .artes-section { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 380px) {
  .masonry { columns: 1; }
}

/* ============================================================
   CATEGORY FULL PAGE
   ============================================================ */
.category-page {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
}

.category-page.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.page-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 24px 36px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--ease);
}

.btn-back:hover {
  color: var(--white);
}

.page-title {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  color: var(--white);
}

.page-content {
  padding: 40px 36px 80px;
  flex: 1;
}

.page-gallery {
  columns: 3 300px;
  column-gap: 16px;
}

.page-gallery img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  break-inside: avoid;
  background: var(--surface-2);
  display: block;
}

/* Prevent body scrolling */
body.modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-topbar { padding: 18px 24px; gap: 20px; }
  .page-content { padding: 32px 24px 60px; }
  .page-gallery { columns: 2 150px; column-gap: 12px; }
  .page-gallery img { margin-bottom: 12px; border-radius: var(--radius-sm); }
}
