/* ==========================================================================
   Ali Hawkes Tattoo — stylesheet
   ========================================================================== */

:root {
  --black: #000000;
  --white: #ffffff;
  --link: #7F00FF;
  --link-hover: #56009c;   /* darker shade of the brand violet, for hover/active */
  --link-tint: #efe0ff;    /* light tint, used for subtle fills */

  --font-display: 'Manufacturing Consent', 'UnifrakturMaguntia', Georgia, serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1280px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --edge: clamp(1.25rem, 5vw, 4rem);

  --ease: cubic-bezier(.16,.84,.44,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); text-decoration: none; transition: color .2s var(--ease); }
a:hover, a:focus-visible { color: var(--link-hover); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--edge);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 1rem 1.5rem;
  z-index: 999;
}
.skip-link:focus { left: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}

h3 { font-family: var(--font-body); font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.section-title {
  font-size: clamp(2.75rem, 9vw, 6rem);
  margin-bottom: .3em;
}
.section-title.center { text-align: center; }

.section-intro {
  max-width: 40ch;
  font-size: 1.15rem;
}
.section-intro.center { margin-inline: auto; text-align: center; }

.lede { font-size: 1.25rem; font-weight: 600; }

/* Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .95em 1.9em;
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .85rem;
  text-decoration: none;
  border: 2px solid var(--black);
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .2s var(--ease), border-color .25s var(--ease);
}

.btn-accent {
  background: var(--link);
  border-color: var(--link);
  color: var(--white);
}
.btn-accent:hover, .btn-accent:focus-visible {
  background: var(--link-hover);
  border-color: var(--link-hover);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

/* ==========================================================================
   Header / nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .85rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--black);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.2vw, 2.25rem);
  line-height: 1;
  white-space: nowrap;
}
.brand:hover { color: var(--black); }
.brand-logo { width: 75px; height: 75px; object-fit: contain; flex-shrink: 0; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.nav-brand { display: none; }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin: 0;
  padding: 0;
}

.site-nav a:not(.btn) {
  color: var(--black);
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .08em;
  position: relative;
  padding-bottom: 4px;
}
.site-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--link);
  transition: right .25s var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--link); }
.site-nav a:not(.btn):hover::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.15) 70%, rgba(0,0,0,.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: clamp(2.5rem, 8vw, 5rem);
  width: 100%;
}

.eyebrow {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .18em;
  font-size: .8rem;
  color: var(--white);
  margin-bottom: 1rem;
  opacity: .85;
}

.hero-title {
  font-size: clamp(4rem, 15vw, 11rem);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: .3em;
}
.hero-title span { display: block; }

.hero-sub {
  max-width: 42ch;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--white);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}
.hero .btn-ghost {
  color: var(--white);
  border-color: var(--white);
}
.hero .btn-ghost:hover, .hero .btn-ghost:focus-visible {
  background: var(--white);
  color: var(--black);
}

.scroll-cue {
  position: absolute;
  right: clamp(1.25rem, 5vw, 4rem);
  bottom: 2rem;
  z-index: 1;
  width: 28px;
  height: 46px;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 999px;
  display: none;
}
@media (min-width: 700px) { .scroll-cue { display: block; } }
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--white);
  border-radius: 2px;
  animation: cue 1.8s infinite var(--ease);
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0; }
  100% { opacity: 0; }
}

/* Reveal-on-load hero text */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: rise .8s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * .12s + .15s);
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee {
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
  padding-block: .85rem;
}
.marquee-track {
  display: inline-flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  padding-right: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-25%); }
}

/* ==========================================================================
   Scroll reveal (generic)
   ========================================================================== */

.reveal-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   About
   ========================================================================== */

.about { padding-block: clamp(4rem, 10vw, 8rem); background: #fafafa; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}
@media (min-width: 860px) {
  .about-grid { grid-template-columns: .85fr 1.15fr; }
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}

.about-copy .section-title { margin-bottom: .2em; }

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  padding: 0;
  margin: 1.75rem 0 0;
}
.tag-list li {
  border: 2px solid var(--black);
  border-radius: 999px;
  padding: .5em 1.1em;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.tag-list li:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

/* ==========================================================================
   Work / gallery
   ========================================================================== */

.work { padding-block: clamp(4rem, 10vw, 8rem); background: var(--white); }
.work .section-title { margin-bottom: .15em; }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(.75rem, 2vw, 1.5rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery-item:nth-child(3n+2) { margin-top: clamp(0px, 4vw, 2.5rem); }
}

.gallery-item {
  position: relative;
  margin: 0;
}

.gallery-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}
.gallery-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0) 55%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.gallery-btn:hover::after, .gallery-btn:focus-visible::after, .gallery-btn:active::after { opacity: 1; }

.gallery-btn img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery-btn:hover img, .gallery-btn:focus-visible img, .gallery-btn:active img { transform: scale(1.06); }

.gallery-item figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: .6rem;
  font-weight: 800;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.gallery-item figcaption span {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #555;
  font-size: .8rem;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { padding-block: clamp(4rem, 10vw, 8rem); background: var(--white); }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
}
@media (min-width: 860px) {
  .faq-grid { grid-template-columns: .8fr 1.2fr; align-items: start; }
  .faq-intro { position: sticky; top: 6rem; }
}

.accordion-item {
  border-top: 2px solid var(--black);
}
.accordion-item:last-child { border-bottom: 2px solid var(--black); }

.accordion-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 0;
  font-weight: 800;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}
.accordion-item summary::-webkit-details-marker { display: none; }

.accordion-item .icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 2px solid var(--black);
  border-radius: 999px;
  position: relative;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.accordion-item .icon::before, .accordion-item .icon::after {
  content: '';
  position: absolute;
  background: var(--black);
  top: 50%; left: 50%;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.accordion-item .icon::before { width: 12px; height: 2px; transform: translate(-50%,-50%); }
.accordion-item .icon::after { width: 2px; height: 12px; transform: translate(-50%,-50%); }

.accordion-item[open] summary { color: var(--link); }
.accordion-item[open] .icon { background: var(--link); border-color: var(--link); }
.accordion-item[open] .icon::before, .accordion-item[open] .icon::after { background: var(--white); }
.accordion-item[open] .icon::after { transform: translate(-50%,-50%) rotate(90deg) scaleY(0); }

.accordion-body {
  padding-bottom: 1.6rem;
  max-width: 62ch;
  animation: accordion-in .35s var(--ease);
}
@keyframes accordion-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Aftercare
   ========================================================================== */

.aftercare { padding-block: clamp(4rem, 10vw, 8rem); background: #fafafa; }
.aftercare .lede { max-width: 62ch; margin-bottom: 3rem; }

.aftercare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
}
@media (min-width: 760px) { .aftercare-grid { grid-template-columns: 1fr 1fr; } }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.check-list li {
  position: relative;
  padding-left: 2.1rem;
  font-weight: 600;
}
.check-list.steps { counter-reset: step; }
.check-list.steps li { counter-increment: step; }
.check-list.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -.05em;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: var(--link);
  color: var(--white);
  font-size: .75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-list.dont li::before {
  content: '\2715';
  position: absolute;
  left: 0; top: 0;
  color: var(--black);
  font-weight: 800;
}

.aftercare-note {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 2px solid var(--black);
  font-weight: 700;
}

.aftercare-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--black);
  font-size: 1.1rem;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact { padding-block: clamp(4rem, 10vw, 8rem); background: var(--black); color: var(--white); }
.contact .section-title { color: var(--white); }
.contact .lede { max-width: 46ch; }
.contact a { color: var(--white); }
.contact a:hover, .contact a:focus-visible { color: var(--link); }
.contact .btn-accent { margin-top: 1.75rem; margin-bottom: 2.5rem; }
.contact .btn-accent:hover { color: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem 1.5rem;
  margin: 0;
}
/* Mobile: show Phone above Email, since it's the studio's phone number */
.contact-details div:nth-child(1) { order: 1; } /* Studio */
.contact-details div:nth-child(2) { order: 3; } /* Email */
.contact-details div:nth-child(3) { order: 2; } /* Phone */
.contact-details div:nth-child(4) { order: 4; } /* Instagram */
@media (min-width: 560px) {
  .contact-details { grid-template-columns: repeat(2, 1fr); }
  .contact-details div { order: initial; }
}
.contact-details dt {
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .1em;
  font-weight: 800;
  opacity: .6;
  margin-bottom: .35rem;
}
.contact-details dd { margin: 0; font-weight: 700; }

.contact-map {
  display: block;
  border-radius: 4px;
  overflow: hidden;
}
.contact-map img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  filter: grayscale(1) invert(.85) contrast(.9) brightness(1.25);
  transition: transform .5s var(--ease);
}
.contact-map:hover img, .contact-map:focus-visible img, .contact-map:active img { transform: scale(1.05); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--black);
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,.15);
  position: relative;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 2.5rem;
}
.footer-inner .brand { color: var(--white); }
.footer-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  margin: 0;
  padding: 0;
}
.footer-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.footer-nav a:hover { color: var(--link); }
.footer-copy {
  width: 100%;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: .8rem;
  opacity: .7;
}

.to-top {
  position: fixed;
  right: clamp(1rem, 4vw, 2.5rem);
  bottom: clamp(1rem, 4vw, 2.5rem);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--link);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .25s var(--ease);
  z-index: 90;
}
.to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--link-hover); }

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.show { opacity: 1; }

.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 4px;
  transform: scale(.96);
  transition: transform .3s var(--ease);
}
.lightbox.show img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lightbox-close:hover { background: var(--white); color: var(--black); }

/* ==========================================================================
   Mobile nav
   ========================================================================== */

@media (max-width: 960px) {
  .nav-toggle { display: flex; }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0,0,0,.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s var(--ease);
  }
  .nav-backdrop.show { opacity: 1; pointer-events: auto; }

  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(272px, 70vw);
    height: 100vh;
    height: 100dvh;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem var(--edge);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    box-shadow: -8px 0 30px rgba(0,0,0,.12);
  }
  .site-nav.open { transform: translateX(0); }

  .nav-brand {
    display: inline-flex;
    margin-bottom: 1.25rem;
  }
  .nav-brand img { width: 145px; height: auto; object-fit: contain; }

  .site-nav ul {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }
  .site-nav ul a { font-size: 1.1rem; }
  .nav-cta { margin-top: 2rem; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
