/* ==========================================================================
   Copperhead Tattoo Parlor — styles
   Palette pulled from the shop's mural + original site:
   copper #BF7951 · rust #A24115 · teal-dark #213431 · ink #131c1a · bone #EFE5D3
   ========================================================================== */

/* The exact fonts from the original Wix site (recovered from its ufonts bundle).
   Bosox SemiBold = the western slab lettering the owner liked. */
@font-face {
  font-family: "Bosox";
  src: url("../assets/fonts/bosox-semibold.woff2") format("woff2");
  font-weight: 300 700; /* single face serves all requested weights */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Teko Light";
  src: url("../assets/fonts/teko-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --copper: #bf7951;
  --copper-light: #d99b73;
  --rust: #a24115;
  --teal: #213431;
  --teal-panel: rgba(26, 39, 36, 0.88);
  --ink: #131c1a;
  --bone: #efe5d3;
  --bone-dim: #cfc4b0;
  --font-display: "Bosox", "Smokum", serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --font-cond: "Barlow Condensed", var(--font-body);
}

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

html { scroll-behavior: smooth; }

/* Anchor targets land below the fixed nav instead of underneath it */
[id] { scroll-margin-top: 4.5rem; }

body {
  font-family: var(--font-body);
  color: var(--bone);
  background-color: var(--ink);
  /* The shop's mural — kept per the owner's request, fixed behind everything */
  background-image: linear-gradient(rgba(19, 28, 26, 0.55), rgba(19, 28, 26, 0.55)), url("../assets/mural-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--copper); color: var(--ink);
  padding: 0.6rem 1rem; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 3px; }

/* ---------- Copper texture text (recreates the Wix video-mask headings) ---------- */
.copper-text {
  background-image: url("../assets/copper-texture.jpg");
  background-size: 220% auto;
  background-position: 0% 45%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.55));
  animation: copper-flow 22s ease-in-out infinite alternate;
}

@keyframes copper-flow {
  from { background-position: 0% 45%; }
  to   { background-position: 100% 55%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8rem 1.7rem;
  border-radius: 3px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.btn--copper {
  background: var(--copper);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.btn--copper:hover { background: var(--copper-light); transform: translateY(-2px); }
.btn--ghost {
  border: 2px solid var(--bone);
  color: var(--bone);
}
.btn--ghost:hover { background: var(--bone); color: var(--ink); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-scrolled {
  background: var(--teal-panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}
.nav nav {
  max-width: 1100px; margin: 0 auto; padding: 0.7rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--copper);
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}
.nav__links {
  display: flex; align-items: center; gap: 1.6rem; list-style: none;
}
.nav__links a {
  font-family: var(--font-cond);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--copper-light); }
.nav__ig { display: inline-flex; align-items: center; }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(1) contrast(1.05) brightness(0.62);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19, 28, 26, 0.35) 0%, rgba(19, 28, 26, 0.1) 45%, rgba(19, 28, 26, 0.85) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: 5rem 1.5rem 3rem; }
.hero__kicker {
  font-family: var(--font-cond);
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 0.8rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4rem, 13vw, 9.5rem);
  line-height: 0.85;
  text-transform: uppercase;
}
.hero__sub { font-size: 0.52em; letter-spacing: 0.06em; }
.hero__tag {
  margin: 1.4rem auto 2.2rem;
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--bone);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--bone-dim);
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1rem;
}
.section__lede {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 3rem;
  color: var(--bone);
  font-size: 1.1rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* ---------- Artists ---------- */
.artists__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* an odd card out wraps to its own row, centered */
  gap: 1.8rem;
}
.artist-card {
  flex: 1 1 260px;
  max-width: 340px;
  background: var(--teal-panel);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(191, 121, 81, 0.25);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.artist-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  border-color: rgba(191, 121, 81, 0.6);
}
.artist-card__media { display: block; overflow: hidden; aspect-ratio: 4 / 5; }
.artist-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.artist-card:hover .artist-card__media img { transform: scale(1.05); }
.artist-card__body { padding: 1.2rem 1.4rem 1.5rem; text-align: center; }
.artist-card__body h3 {
  font-family: var(--font-cond);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
}
.artist-card__name { color: inherit; text-decoration: none; }
.artist-card__name:hover { color: var(--copper-light); }
.artist-card__role {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0.2rem 0 0.9rem;
}
.artist-card__ig {
  display: inline-block;
  font-family: var(--font-cond);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--bone);
  text-decoration: none;
  border: 1px solid rgba(239, 229, 211, 0.4);
  border-radius: 3px;
  padding: 0.45rem 1rem;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.artist-card__ig:hover {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--ink);
}

/* ---------- Artist pages ---------- */
.artist-hero {
  padding: 9rem 0 3rem;
  text-align: center;
  background: rgba(19, 28, 26, 0.55);
}
.artist-hero__name { font-size: clamp(3rem, 8vw, 5.5rem); }
.artist-hero .hero__cta { margin-top: 1.6rem; }

.section--work { background: rgba(19, 28, 26, 0.45); }
.inline-link { color: var(--copper-light); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  max-width: 880px;
  margin: 0 auto;
}
.work-grid__tile {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(191, 121, 81, 0.25);
  aspect-ratio: 1 / 1;
  background: var(--teal-panel);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.work-grid__tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.work-grid__tile:hover { transform: translateY(-4px); border-color: rgba(191, 121, 81, 0.6); }
.work-grid__tile:hover img { transform: scale(1.06); }
.work-grid__more { text-align: center; margin-top: 2.2rem; }

@media (max-width: 600px) {
  .work-grid { gap: 0.5rem; }
}

/* ---------- The Parlor ---------- */
.section--parlor { background: rgba(19, 28, 26, 0.6); }
.parlor__grid {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 3.5rem;
  align-items: center;
}
.parlor__sign img {
  transform: rotate(-3deg);
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.55));
  transition: transform 0.3s ease;
}
.parlor__sign:hover img { transform: rotate(-1deg) scale(1.02); }
.parlor__copy .section__title { text-align: left; }
.parlor__copy p { margin-bottom: 1.1rem; font-size: 1.08rem; max-width: 36rem; }

/* ---------- Booking ---------- */
.section--booking { background: rgba(19, 28, 26, 0.45); }
.booking__panel {
  background: var(--teal-panel);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(191, 121, 81, 0.25);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  max-width: 620px;
  margin: 2rem auto 0;
  padding: 2.4rem 2rem;
  text-align: center;
}
.booking__address {
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 0.9rem;
}
.booking__hours {
  color: var(--bone-dim);
  font-size: 0.98rem;
  margin-bottom: 1.8rem;
}
.booking__address strong {
  font-family: var(--font-cond);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
}
.booking__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.section--faq { background: rgba(19, 28, 26, 0.6); }
.faq__list { max-width: 680px; margin: 2rem auto 0; }
.faq__list details {
  border-bottom: 1px solid rgba(191, 121, 81, 0.3);
  padding: 1rem 0.2rem;
}
.faq__list summary {
  font-family: var(--font-cond);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--bone);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+";
  color: var(--copper);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 0.8rem 0 0.4rem; color: var(--bone-dim); }

/* ---------- Footer ---------- */
.footer {
  background: rgba(10, 16, 14, 0.92);
  border-top: 1px solid rgba(191, 121, 81, 0.35);
  padding: 1.6rem 0;
}
.footer__inner {
  display: flex; align-items: center; justify-content: center;
  gap: 1.6rem; flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--bone-dim);
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.footer__ig { color: var(--copper); display: inline-flex; transition: color 0.15s ease; }
.footer__ig:hover { color: var(--copper-light); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .copper-text, .hero__scroll { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  body { background-attachment: scroll; } /* fixed bg janks on mobile */

  .nav__toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav__toggle span {
    width: 26px; height: 2.5px;
    background: var(--bone);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--teal-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav__links.is-open { max-height: 22rem; box-shadow: 0 14px 24px rgba(0,0,0,0.5); }
  .nav__links li { width: 100%; text-align: center; }
  .nav__links a { display: block; padding: 0.9rem 0; }
  .nav__ig { justify-content: center; padding: 0.9rem 0 1.1rem; }

  .section { padding: 4rem 0; }
  .parlor__grid { grid-template-columns: 1fr; gap: 2rem; }
  .parlor__sign { max-width: 320px; margin: 0 auto; }
  .parlor__copy .section__title { text-align: center; }
  .parlor__copy p { text-align: center; margin-inline: auto; }
}
