/*
Theme Name: Notre Tattoo
Theme URI: https://notre.es
Author: Notre Tattoo Studio
Author URI: https://notre.es
Description: Tema editorial para Notre Tattoo, estudio de tatuaje en Gijón. Conversión a WordPress del prototipo original en React.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: notre-tattoo
Tags: portfolio, one-page, dark, custom-colors, custom-menu, threaded-comments
*/

:root {
  --bg: #0a0a0a;
  --bg-2: #121110;
  --fg: #f5f1ea;
  --fg-dim: #8a8278;
  --line: #1f1d1a;
  --accent: #f5f1ea;
  --grain-opacity: 0.06;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: none; border: none; background: none; color: inherit; }

img { max-width: 100%; display: block; }

::selection { background: var(--fg); color: var(--bg); }

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* Cursor */
.cursor, .cursor-dot {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), width .25s, height .25s, background .25s, border-color .25s;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor {
  width: 32px; height: 32px;
  border: 1px solid var(--fg);
}
.cursor-dot {
  width: 4px; height: 4px;
  background: var(--fg);
}
.cursor.is-hover { width: 80px; height: 80px; background: var(--fg); border-color: var(--fg); }
.cursor.is-image { width: 120px; height: 120px; background: transparent; border: 1px solid var(--fg); }
@media (max-width: 768px) {
  html, body, button, a { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
}

/* Layout */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 768px) { .container { padding: 0 20px; } }

section { position: relative; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.2s cubic-bezier(.2,.8,.2,1), transform 1.2s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .1s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .2s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .3s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .4s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .5s; }

/* Type */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 400;
}
.h-display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.h-display.italic { font-style: italic; }

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: difference;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  letter-spacing: 0.02em;
  font-weight: 400;
}
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--fg);
  transition: width .4s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border: 1px solid var(--fg);
  padding: 10px 18px;
  border-radius: 999px;
  transition: background .3s, color .3s;
}
.nav-cta:hover { background: var(--fg); color: var(--bg); }
@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
}

/* HERO */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 48px 48px;
  overflow: hidden;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-title {
  font-size: clamp(80px, 18vw, 320px);
  display: block;
}
.hero-title .row { display: block; }
.hero-title .row.indent { padding-left: 12vw; }
.hero-title .row.right { text-align: right; }
.hero-bottom {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.hero-bottom p { max-width: 320px; line-height: 1.5; color: var(--fg-dim); font-size: 14px; }
@media (max-width: 768px) {
  .hero { padding: 100px 20px 32px; }
  .hero-title .row.indent { padding-left: 0; }
  .hero-bottom { grid-template-columns: 1fr; gap: 24px; }
}

/* MARQUEE */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 28px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 80px;
  animation: marquee 40s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  font-weight: 300;
}
.marquee-track > span { display: inline-flex; align-items: center; gap: 80px; }
.marquee-track .dot { width: 6px; height: 6px; background: var(--fg-dim); border-radius: 50%; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* SECTION HEADER */
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding: 120px 0 64px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}
.section-head .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--fg-dim); text-transform: uppercase; }
.section-head .title { font-family: var(--serif); font-size: clamp(48px, 7vw, 120px); line-height: 0.95; font-weight: 300; letter-spacing: -0.02em; }
.section-head .title em { font-style: italic; color: var(--fg-dim); }
@media (max-width: 768px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; padding: 80px 0 32px; }
}

/* GALLERY */
.gallery { padding: 64px 0 120px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.tile {
  position: relative;
  overflow: hidden;
  cursor: none;
  display: block;
  border: 0;
  padding: 0;
  text-align: left;
  width: 100%;
}
.tile .ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, #1a1815 0 2px, transparent 2px 18px),
    linear-gradient(180deg, #181614, #0f0e0c);
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1), filter .6s ease;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.tile:hover .ph { transform: scale(1.04); filter: brightness(1.1); }
.tile .meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s, transform .4s;
}
.tile:hover .meta { opacity: 1; transform: translateY(0); }
.tile .meta .artist { font-family: var(--serif); font-style: italic; font-size: 18px; }
.tile .meta .style { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--fg-dim); }

.tile.s-1-4 { grid-column: span 4; aspect-ratio: 3/4; }
.tile.s-1-3 { grid-column: span 3; aspect-ratio: 3/4; }
.tile.s-1-5 { grid-column: span 5; aspect-ratio: 4/5; }
.tile.s-1-6 { grid-column: span 6; aspect-ratio: 4/3; }
.tile.s-1-7 { grid-column: span 7; aspect-ratio: 3/2; }
.tile.tall { aspect-ratio: 2/3; }
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .tile { grid-column: span 1 !important; aspect-ratio: 3/4 !important; }
}

/* ARTISTS */
.artists { padding: 0 0 120px; border-top: 1px solid var(--line); }
.artist-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.5fr 1fr 200px;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  position: relative;
  transition: padding .5s ease, background .5s ease;
}
.artist-row:hover { padding-left: 24px; padding-right: 24px; background: rgba(245,241,234,0.02); }
.artist-row .num { font-family: var(--mono); font-size: 12px; color: var(--fg-dim); }
.artist-row .name { font-family: var(--serif); font-size: clamp(40px, 5vw, 72px); font-weight: 300; letter-spacing: -0.02em; line-height: 1; transition: font-style .4s ease, color .4s ease; }
.artist-row:hover .name { font-style: italic; }
.artist-row .styles { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-dim); line-height: 1.6; }
.artist-row .ig { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; }
.artist-row .arrow {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  margin-left: auto;
  transition: background .4s, color .4s, border-color .4s, transform .4s;
}
.artist-row:hover .arrow { background: var(--fg); color: var(--bg); border-color: var(--fg); transform: rotate(-45deg); }
.artist-preview {
  position: absolute;
  right: 240px;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  width: 220px;
  height: 280px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s, transform .5s cubic-bezier(.2,.8,.2,1);
  z-index: 5;
  background:
    repeating-linear-gradient(45deg, #1a1815 0 2px, transparent 2px 14px),
    linear-gradient(180deg, #181614, #0f0e0c);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 9px; color: var(--fg-dim); letter-spacing: 0.16em; text-transform: uppercase;
}
.artist-row:hover .artist-preview { opacity: 1; transform: translateY(-50%) scale(1); }
@media (max-width: 1024px) {
  .artist-row { grid-template-columns: 40px 1fr 1fr; }
  .artist-row .ig, .artist-row .arrow, .artist-preview { display: none; }
}
@media (max-width: 640px) {
  .artist-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
}

/* STYLES */
.styles-section { padding: 0 0 120px; border-top: 1px solid var(--line); }
.styles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.style-card {
  background: var(--bg);
  padding: 40px 32px 32px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: background .5s ease, color .5s ease;
}
.style-card:hover { background: var(--fg); color: var(--bg); }
.style-card .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; }
.style-card .name { font-family: var(--serif); font-size: 40px; font-weight: 300; line-height: 1; margin-top: 64px; letter-spacing: -0.01em; }
.style-card .name em { font-style: italic; }
.style-card .desc { font-size: 13px; line-height: 1.6; color: var(--fg-dim); margin-top: 16px; }
.style-card:hover .desc { color: rgba(10,10,10,0.7); }
@media (max-width: 1024px) { .styles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .styles-grid { grid-template-columns: 1fr; } }

/* PROCESS */
.process { padding: 0 0 120px; border-top: 1px solid var(--line); }
.process-list { display: flex; flex-direction: column; }
.process-step {
  display: grid;
  grid-template-columns: 120px 1fr 1.5fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.process-step .num {
  font-family: var(--serif);
  font-size: 80px;
  font-weight: 300;
  font-style: italic;
  color: var(--fg-dim);
  line-height: 0.9;
}
.process-step .title { font-family: var(--serif); font-size: 36px; font-weight: 300; line-height: 1.1; letter-spacing: -0.01em; }
.process-step .body { font-size: 14px; line-height: 1.7; color: var(--fg-dim); max-width: 520px; }
@media (max-width: 768px) {
  .process-step { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .process-step .num { font-size: 56px; }
  .process-step .title { font-size: 28px; }
}

/* TESTIMONIALS */
.testimonials { padding: 120px 0; border-top: 1px solid var(--line); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.testi {
  background: var(--bg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 280px;
}
.testi-quote { font-family: var(--serif); font-size: 22px; font-style: italic; line-height: 1.4; font-weight: 300; }
.testi-quote::before { content: '"'; font-size: 60px; line-height: 0; vertical-align: -20px; color: var(--fg-dim); margin-right: 4px; }
.testi-meta { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.testi-meta .who { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; }
.testi-meta .when { font-family: var(--mono); font-size: 10px; color: var(--fg-dim); letter-spacing: 0.16em; }
@media (max-width: 1024px) { .testi-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { padding: 0 0 120px; border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  cursor: none;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.faq-q .text { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); font-weight: 300; }
.faq-q .toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 18px;
  transition: background .3s, color .3s, transform .4s;
  flex-shrink: 0;
}
.faq-item.open .toggle { background: var(--fg); color: var(--bg); transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.2,.8,.2,1), padding .4s ease;
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.7;
  max-width: 720px;
}
.faq-item.open .faq-a { max-height: 300px; padding-top: 16px; }

/* LOCATION */
.location { padding: 0 0 0; border-top: 1px solid var(--line); }
.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.loc-info {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-right: 1px solid var(--line);
}
.loc-info .title { font-family: var(--serif); font-size: clamp(40px, 5vw, 72px); font-weight: 300; line-height: 0.95; letter-spacing: -0.02em; }
.loc-info .title em { font-style: italic; color: var(--fg-dim); }
.loc-block { display: flex; flex-direction: column; gap: 6px; }
.loc-block .label { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--fg-dim); }
.loc-block .val { font-size: 16px; line-height: 1.5; }
.loc-map {
  position: relative;
  min-height: 520px;
  background:
    radial-gradient(circle at 60% 40%, rgba(245,241,234,0.04), transparent 50%),
    repeating-linear-gradient(0deg, #1a1815 0 1px, transparent 1px 60px),
    repeating-linear-gradient(90deg, #1a1815 0 1px, transparent 1px 60px),
    #0f0e0c;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loc-pin {
  position: relative;
  width: 16px; height: 16px;
  background: var(--fg);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(245,241,234,0.1), 0 0 0 16px rgba(245,241,234,0.05);
  animation: pulse 2.4s ease-in-out infinite;
}
.loc-pin::after {
  content: 'NOTRE — 43.5453°N, 5.6619°W';
  position: absolute;
  left: 30px; top: -4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--fg-dim);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(245,241,234,0.1), 0 0 0 16px rgba(245,241,234,0.05); }
  50% { box-shadow: 0 0 0 12px rgba(245,241,234,0.15), 0 0 0 24px rgba(245,241,234,0.08); }
}
@media (max-width: 1024px) {
  .loc-grid { grid-template-columns: 1fr; }
  .loc-info { padding: 48px 24px; border-right: none; border-bottom: 1px solid var(--line); }
  .loc-map { min-height: 320px; }
}

/* FOOTER */
.footer { padding: 80px 0 32px; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}
.footer-mark { font-family: var(--serif); font-size: clamp(60px, 9vw, 140px); font-weight: 300; font-style: italic; line-height: 0.9; letter-spacing: -0.02em; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .label { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--fg-dim); margin-bottom: 8px; }
.footer-col a { font-size: 14px; transition: color .3s; }
.footer-col a:hover { color: var(--fg-dim); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.96);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
  backdrop-filter: blur(8px);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-content {
  width: min(80vw, 800px);
  height: min(80vh, 900px);
  position: relative;
  transform: scale(0.94);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.lightbox.open .lightbox-content { transform: scale(1); }
.lightbox-img {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(45deg, #1a1815 0 2px, transparent 2px 18px),
    linear-gradient(180deg, #1a1815, #0a0a0a);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--fg-dim); text-transform: uppercase;
}
.lightbox-meta {
  position: absolute;
  bottom: -40px; left: 0; right: 0;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-dim);
}
.lightbox-close {
  position: absolute;
  top: 32px; right: 32px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}

/* Side rails */
.rail-left, .rail-right {
  position: fixed;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-dim);
  z-index: 10;
  pointer-events: none;
  white-space: nowrap;
}
.rail-left { left: 16px; transform: translateY(-50%) rotate(-90deg); transform-origin: left center; }
.rail-right { right: 16px; transform: translateY(-50%) rotate(90deg); transform-origin: right center; }
@media (max-width: 1024px) { .rail-left, .rail-right { display: none; } }

/* Screen reader only */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}
