/* Pro Tattoo – pro-tattoo.pl coming soon
   Design language mirrors pro-tattoo.sk: white surfaces, navy ink, copper-gold accents,
   Pirata One headlines, torn-paper edges, brush textures and line illustrations. */

:root {
  --navy: #273b4c;
  --navy-dark: #1e2e3b;
  --slate: #4c6173;
  --gold: #d2934d;
  --gold-light: #daa76e;
  --line: #e8eaec;
  --paper: #ffffff;

  --font-display: "Pirata One", "Times New Roman", serif;
  --font-body: "Red Hat Display", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5.5vw, 96px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 320ms;

  /* Poland (centre of europe-pl.svg) is placed at this point of the backdrop */
  --focus-x: 70%;
  --focus-y: 47%;
  --map-width: max(118vw, 190dvh);
  --stamp-size: clamp(150px, 19dvh, 200px);

  --hand-right: clamp(24px, 9vw, 180px);
  --hand-height: clamp(220px, 40dvh, 420px);
}

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

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

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

/* ---------- Backdrop map + stamp ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 42% 56% at var(--focus-x) var(--focus-y), #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 42% 56% at var(--focus-x) var(--focus-y), #000 35%, transparent 100%);
}

.backdrop__map {
  position: absolute;
  left: var(--focus-x);
  top: var(--focus-y);
  width: var(--map-width);
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
  animation: fade-in 1.8s var(--ease) both;
}

.stamp {
  position: absolute;
  left: var(--focus-x);
  top: var(--focus-y);
  width: var(--stamp-size);
  height: var(--stamp-size);
  transform: translate(-50%, -50%);
  animation: stamp-in 1.1s var(--ease) 0.5s both;
}

.stamp__ring {
  width: 100%;
  height: 100%;
  animation: spin 36s linear infinite;
}

.stamp__ring text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  fill: var(--navy);
}

.stamp::before {
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: var(--paper);
  box-shadow:
    0 0 0 1.5px var(--gold),
    0 0 0 7px var(--paper),
    0 0 0 8px rgba(210, 147, 77, 0.45),
    0 18px 40px -12px rgba(39, 59, 76, 0.4);
}

.stamp__emblem {
  position: absolute;
  inset: 34%;
  width: 32%;
  height: 32%;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes stamp-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(1.6) rotate(-20deg); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
}

/* ---------- Top bar + language switch ---------- */

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(18px, 3.2dvh, 34px) var(--gutter) 0;
}

.topbar__logo img {
  width: auto;
  height: clamp(38px, 5.4dvh, 50px);
}

.lang {
  display: flex;
  padding: 4px;
  gap: 2px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 50rem;
}

.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  font: 700 13px/1 var(--font-body);
  letter-spacing: 0.06em;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: 50rem;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.lang__btn img {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
}

.lang__btn:hover {
  color: var(--gold);
}

.lang__btn[aria-pressed="true"] {
  color: var(--paper);
  background: var(--navy);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: clamp(12px, 3dvh, 40px) var(--gutter) clamp(56px, 9dvh, 110px);
}

.hero__content {
  width: min(640px, 52vw);
  animation: rise 1s var(--ease) 0.1s both;
}

.tag {
  display: inline-block;
  padding: 6px 16px 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--gold);
  -webkit-mask: url("../assets/img/tag-mask.svg") center / 100% 100% no-repeat;
  mask: url("../assets/img/tag-mask.svg") center / 100% 100% no-repeat;
}

.hero__title {
  margin: 0.14em 0 0.2em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(58px, min(8.4vw, 14dvh), 136px);
  line-height: 0.88;
  color: var(--navy);
}

.hero__title span {
  display: block;
}

.hero__title-accent {
  color: var(--gold);
}

.hero__lead {
  max-width: 32em;
  margin: 0 0 clamp(20px, 3.6dvh, 34px);
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--slate);
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: var(--paper);
  background: var(--gold);
  border-radius: 50rem;
  box-shadow: 0 14px 28px -14px rgba(210, 147, 77, 0.9);
  transition: background-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.button::after {
  content: "";
  width: 7px;
  height: 11px;
  background: currentColor;
  -webkit-mask: url("../assets/img/chevron.svg") center / contain no-repeat;
  mask: url("../assets/img/chevron.svg") center / contain no-repeat;
  transition: transform var(--duration) var(--ease);
}

.button:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.button:hover::after {
  transform: translateX(3px);
}

.hero__note {
  max-width: 19em;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--slate);
}

/* ---------- Sister shops ---------- */

.shops {
  margin-top: clamp(24px, 4.6dvh, 48px);
  padding-top: clamp(16px, 2.6dvh, 24px);
  border-top: 1px solid var(--line);
}

.shops__title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

.shops__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 9px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 50rem;
  transition: border-color var(--duration) var(--ease), color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.chip img {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(17, 29, 39, 0.1);
}

.chip:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-1px);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Footer: torn paper, brush texture, skeleton-hand line art ---------- */

.footer {
  position: relative;
  z-index: 3;
  isolation: isolate;
  overflow-x: clip; /* torn strip is wider than the viewport */
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy-dark);
  font-size: 13px;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../assets/img/texture.webp") center / cover no-repeat;
  mix-blend-mode: color-dodge;
  opacity: 0.45;
}

.footer::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -17px;
  width: max(2120px, 110vw);
  height: 34px;
  background: var(--paper);
  transform: translateX(-50%) scaleY(-1);
  -webkit-mask: url("../assets/img/torn.svg") center / 100% 100% no-repeat;
  mask: url("../assets/img/torn.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}

.footer__hand {
  position: absolute;
  right: var(--hand-right);
  bottom: 0;
  z-index: 1;
  height: var(--hand-height);
  aspect-ratio: 247 / 662;
  background: var(--gold);
  opacity: 0.85;
  -webkit-mask: url("../assets/img/hand-mask.svg") bottom / contain no-repeat;
  mask: url("../assets/img/hand-mask.svg") bottom / contain no-repeat;
  transform-origin: 50% 100%;
  animation: hand-up 1.4s var(--ease) 0.4s both;
  pointer-events: none;
}

@keyframes hand-up {
  from { opacity: 0; transform: translateY(40px) rotate(4deg); }
  to { opacity: 0.85; transform: translateY(0) rotate(0); }
}

.footer__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 28px var(--gutter) 20px;
}

.footer p {
  margin: 0;
}

.footer a {
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.footer a:hover {
  color: var(--gold-light);
}

.footer__copy {
  /* keep clear of the hand illustration (hand width = height * 247 / 662) */
  margin-right: calc(var(--hand-right) + var(--hand-height) * 0.373 + 24px - var(--gutter)) !important;
  color: rgba(255, 255, 255, 0.55);
}

.footer__contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-weight: 600;
  color: var(--paper);
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  :root {
    --focus-x: 76%;
  }
}

/* stacked layout: map + stamp band on top, copy below */
@media (max-width: 860px) {
  :root {
    --focus-x: 50%;
    --focus-y: 50%;
    --map-width: min(250vw, 1700px);
    --stamp-size: clamp(120px, 17dvh, 170px);
  }

  body {
    grid-template-rows: auto minmax(140px, 1fr) auto auto;
  }

  .backdrop {
    position: relative;
    grid-row: 2;
    inset: auto;
    margin: -10px 0 -6px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 40%, transparent 100%);
  }

  .topbar {
    grid-row: 1;
  }

  .hero {
    grid-row: 3;
    padding-top: 0;
    padding-bottom: 22px;
  }

  .footer {
    grid-row: 4;
  }

  .hero__content {
    width: 100%;
  }

  .hero__title {
    font-size: clamp(46px, 12.8vw, 88px);
  }

  .hero__lead {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.45;
  }

  .hero__note {
    display: none;
  }

  .button {
    padding: 12px 22px;
  }

  .shops {
    margin-top: 18px;
    padding-top: 12px;
  }

  .shops__title {
    font-size: 11px;
  }

  .chip {
    padding: 5px 10px 5px 7px;
    font-size: 12px;
  }

  .footer__hand {
    display: none;
  }

  .footer__inner {
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    padding-top: 24px;
    padding-bottom: 14px;
  }

  .footer__copy {
    margin-right: 0 !important;
    font-size: 11px;
  }
}

/* short desktop / laptop screens */
@media (min-width: 861px) and (max-height: 780px) {
  .hero__title {
    font-size: clamp(52px, min(8vw, 12dvh), 120px);
  }

  .hero__lead {
    margin-bottom: 18px;
    font-size: 15px;
  }

  .shops {
    margin-top: 16px;
    padding-top: 12px;
  }

  .hero {
    padding-bottom: 30px;
  }
}

@media (max-width: 860px) and (max-height: 740px) {
  .hero__lead {
    display: none;
  }
}

@media (max-width: 420px) {
  .topbar {
    gap: 12px;
  }

  .topbar__logo img {
    height: 34px;
  }

  .lang__btn {
    gap: 6px;
    padding: 6px 10px 6px 8px;
    font-size: 12px;
  }
}

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