/* ============================================
   HOME PAGE — /home/
   ============================================ */

/* Push content below fixed header */
main { padding-top: 70px; }

/* ── 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;
  background-image: url('/media/hero.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* parallax */
  z-index: 0;
}

/* Dark overlay so text reads clearly */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 9, 0.52);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 40px;
}

.hero-logo {
  width: 475px;
  max-width: 80vw;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(0,0,0,0.6));
  margin-bottom: 16px;
}

.hero-location {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 28px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: clamp(14px, 1.6vw, 19px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,243,238,0.75);
  font-weight: 300;
  max-width: 560px;
}

.hero-chevron {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(245,243,238,0.5);
  transition: color var(--transition), transform var(--transition);
  animation: bounce 2.5s ease-in-out infinite;
}
.hero-chevron:hover { color: var(--white); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0);   }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── SERVICES ── */
.services-section {
  padding: 100px 80px 60px;
  background: var(--dark);
}

.services-header {
  text-align: center;
  margin-bottom: 64px;
}

.services-compass {
  width: 180px;
  height: auto;
  margin: 24px auto 0;
  opacity: 0.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--faint);
  border: 1px solid var(--faint);
}

/* Two razor shaves centered below the 3-column grid */
.services-grid--razor {
  grid-template-columns: repeat(2, 1fr);
  max-width: 66.66%;
  margin: 2px auto 0;
  border-top: none;
}

.service-card {
  background: var(--dark);
  padding: 36px 32px;
  transition: background var(--transition);
}
.service-card:hover { background: #1a1a1a; }

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 12px;
}

.service-name {
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1.2;
}

.service-note {
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--purple);
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 700;
  display: block;
  margin-top: 6px;
}

.service-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 3px;
}

.service-price {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--purple);
  letter-spacing: 0.04em;
}

.service-time {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 300;
}

.service-desc {
  font-size: 16px;
  letter-spacing: 0.03em;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.65;
}

.services-footer {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.scissors-wrap {
  display: flex;
  justify-content: center;
  margin-top: 56px;
  opacity: 0.35;
}
.scissors { width: 220px; height: auto; }
.scissors-flip .scissors { transform: scaleX(-1); }

/* ── ABOUT ── */
.about-section {
  padding: 100px 80px;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

/* Subtle purple bloom top-right */
.about-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(174,0,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image-wrap {
  position: relative;
}

.about-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 300px 300px 12px 12px; /* rounded top like the Wix version */
  display: block;
}

.about-text .section-title {
  margin-bottom: 32px;
}

.about-text p {
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 20px;
}
.about-text p:last-child { margin-bottom: 0; }

/* ── STAFF ── */
.staff-section {
  padding: 100px 80px 60px;
  background: var(--dark);
}

.staff-header {
  text-align: center;
  margin-bottom: 64px;
}

/* Employees: 4 across. Owners: 2 centered below */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.staff-grid .staff-card:nth-child(5),
.staff-grid .staff-card:nth-child(6) {
  grid-column: auto;
}

/* Owners row — centered 2-up */
.staff-owners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 560px;
  margin: 24px auto 0;
}

/* Card flip */
.staff-card {
  perspective: 1200px;
  height: 420px;
  cursor: pointer;
  /* isolation fixes bleed-through on some browsers */
  isolation: isolate;
}

.staff-card-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.staff-card:hover .staff-card-inner {
  transform: rotateY(180deg);
}

.staff-front,
.staff-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* Larger radius = rounder portrait shape */
  border-radius: 140px 140px 16px 16px;
  overflow: hidden;
  /* Force GPU compositing to prevent bleed */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.staff-front {
  background: #1a1a1a;
}

.staff-front img {
  width: 100%;
  height: calc(100% - 52px);
  object-fit: cover;
  object-position: top;
  display: block;
}

.staff-name {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  background: #1a1a1a;
}

.staff-back {
  background: var(--black);
  border: 1px solid rgba(174,0,255,0.3);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  /* Purple glow on back face */
  box-shadow: inset 0 0 60px rgba(174,0,255,0.08);
}

.staff-back-logo {
  width: 80px;
  height: auto;
  opacity: 0.5;
}

.staff-back-name {
  font-family: var(--font-display);
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  text-align: center;
}

.staff-back-rule {
  width: 40px;
  height: 1px;
  background: var(--purple);
  opacity: 0.6;
}

.staff-cta {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

/* ── GALLERY ── */
.gallery-section {
  padding: 100px 80px 60px;
  background: var(--black);
}

.gallery-header {
  text-align: center;
  margin-bottom: 56px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

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

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

.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(174,0,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9,9,9,0.94);
  z-index: 0;
}

.lightbox-img-wrap {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  touch-action: pinch-zoom;
}

.lightbox-close {
  position: absolute;
  top: 24px; right: 36px;
  z-index: 2;
  font-size: 44px;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.lightbox-close:hover { color: var(--white); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 2;
  font-size: 22px;
  font-family: var(--font-display);
  letter-spacing: 0;
  color: var(--white);
  background: rgba(9,9,9,0.75);
  border: 1px solid rgba(245,243,238,0.25);
  width: 64px; height: 64px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  user-select: none;
}
.lightbox-prev { left: 36px; }
.lightbox-next { right: 36px; }
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--white);
  border-color: var(--purple);
  background: rgba(174,0,255,0.25);
  box-shadow: 0 0 24px rgba(174,0,255,0.4);
  transform: translateY(-50%) scale(1.08);
}

/* Smooth image transition on nav */
.lightbox-img-wrap img {
  transition: opacity 0.2s ease;
}
.lightbox-img-wrap img.fading {
  opacity: 0;
}

/* ── TATTOO ── */
.tattoo-section {
  padding: 100px 80px;
  background: var(--dark);
}

.tattoo-announce {
  text-align: center;
  margin-bottom: 72px;
}

.tattoo-sub {
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 300;
  margin-top: 16px;
}

.tattoo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.tattoo-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tattoo-logo {
  width: 160px;
  height: auto;
}

.tattoo-bio p {
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 16px;
}
.tattoo-bio p:last-child { margin-bottom: 0; }

.tattoo-learn-label {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--purple);
}

.tattoo-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Lord Tattoo — centered single-column layout */
.tattoo-inner--centered {
  display: flex;
  justify-content: center;
}
.tattoo-inner--centered .tattoo-left {
  align-items: center;
  text-align: center;
  max-width: 480px;
}
.tattoo-inner--centered .tattoo-links {
  justify-content: center;
}

.tattoo-logo--lord {
  width: 200px;
  height: auto;
  border-radius: 8px;
}

.tattoo-photo {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* ============================================
   MOBILE — Home Page
   ============================================ */
@media (max-width: 768px) {

  main { padding-top: 60px; }

  /* ── Hero ── */
  .hero-bg { background-attachment: scroll; }
  .hero-logo { width: 280px; }
  .hero-location { font-size: 16px; }
  .hero-tagline  { font-size: 13px; }

  /* ── Services ── */
  .services-section { padding: 60px 24px 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid--razor { grid-template-columns: 1fr; max-width: 100%; margin-top: 2px; }
  .services-compass { width: 120px; }

  /* ── About ── */
  .about-section { padding: 60px 24px; }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-img {
    height: 400px;
    border-radius: 180px 180px 8px 8px;
  }
  .about-text p { font-size: 18px; }

  /* ── Staff ── */
  .staff-section { padding: 60px 24px 40px; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .staff-owners { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .staff-card { height: 300px; }
  .staff-back-name { font-size: 24px; }
  .staff-back-logo { width: 56px; }

  /* ── Gallery ── */
  .gallery-section { padding: 60px 24px 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 3px; }

  /* Lightbox arrows */
  .lightbox-prev { left: 12px; width: 48px; height: 48px; }
  .lightbox-next { right: 12px; width: 48px; height: 48px; }

  /* ── Tattoo ── */
  .tattoo-section { padding: 60px 24px; }
  .tattoo-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .tattoo-right { order: -1; }
  .tattoo-photo { height: 360px; }
  .tattoo-links { flex-direction: column; }
  .tattoo-links .btn { text-align: center; justify-content: center; }
  .tattoo-logo { align-self: center; }

  /* Scissors */
  .scissors { width: 160px; }
}

/* ── Staff card back button width fix ── */
@media (max-width: 768px) {
  .staff-back .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
