/* Design reference: Figma "Tattoo Salon Landing Page UI" (frame HOME PAGE, 13:2979, 1150 × 2907).
   On desktop every element is placed at its Figma coordinates, scaled by --u
   (1 Figma px → --u CSS px), so the page matches the mockup at any width up to 1440px. */
/* Angel Rhapsody (used in the mockup) is not freely licensed; Grenze Gotisch is the
   closest open condensed blackletter. */
@font-face {
  font-family: "Grenze Gotisch";
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/grenze-gotisch.woff2") format("woff2");
}

:root {
  --bg: #12100c;
  --surface: #1e1c17;
  --glass: rgba(42, 39, 34, .5);
  --cream: #fff4eb;
  --cream-2: #f2e4da;
  --accent: #db9f6a;
  --accent-ink: #483524;
  --text-soft: rgba(255, 244, 235, .8);
  --text-mute: rgba(255, 255, 255, .4);
  --font-display: "Grenze Gotisch", "Old English Text MT", serif;
  --font-body: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --u: calc(min(100vw, 1440px) / 1150);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 500;
  background: var(--bg) url("../img/bg-texture.webp") center top / max(100vw, 1150px) auto repeat-y;
  color: var(--cream);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

h1, h2, .price, .hero-card strong, .quote cite {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

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

/* ---------- Desktop: Figma stage ---------- */
.page {
  position: relative;
  width: calc(1150 * var(--u));
  height: calc(2907 * var(--u));
  margin: 0 auto;
}
.abs, .abs-in {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w, auto) * var(--u));
  height: calc(var(--h, auto) * var(--u));
}
/* elements without --w / --h size to content */
.abs:not([style*="--w"]), .abs-in:not([style*="--w"]) { width: auto; }
.abs:not([style*="--h"]), .abs-in:not([style*="--h"]) { height: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 calc(10.78 * var(--u)) / 1 var(--font-body);
  letter-spacing: calc(1.13 * var(--u));
  text-transform: uppercase;
  padding: calc(11.98 * var(--u)) calc(19.16 * var(--u));
  border: 0;
  border-radius: calc(7.19 * var(--u));
  cursor: pointer;
  transition: filter .2s;
}
.btn:hover { filter: brightness(1.1); }

.section-title {
  font-size: calc(38.32 * var(--u));
  letter-spacing: calc(-.77 * var(--u));
  text-align: center;
}

/* Header */
.nav-bar {
  z-index: 5;
  background: var(--glass);
  backdrop-filter: blur(3px);
  border-radius: calc(19.16 * var(--u));
}
.nav { height: 100%; display: flex; align-items: center; justify-content: center; gap: calc(71.9 * var(--u)); }
.nav-group { display: flex; gap: calc(31.14 * var(--u)); }
.nav-group a, .footer-col a, .footer-bottom a, .footer-bottom p {
  font-size: calc(10.78 * var(--u));
  font-weight: 700;
  letter-spacing: calc(.86 * var(--u));
  text-transform: uppercase;
  color: var(--text-soft);
  white-space: nowrap;
  transition: color .2s;
}
.nav-group a:hover, .footer-col a:hover, .footer-bottom a:hover { color: var(--accent); }
.nav-logo img { width: calc(41.91 * var(--u)); height: calc(41.91 * var(--u)); }
.nav-toggle, .mobile-nav { display: none; }

/* Hero */
.hero-title {
  font-size: calc(67.06 * var(--u));
  letter-spacing: calc(-1.34 * var(--u));
  line-height: .9;
}
.btn-book { display: flex; align-items: center; gap: calc(4.4 * var(--u)); }
.btn-book .dia { width: calc(8.98 * var(--u)); height: calc(8.98 * var(--u)); padding: calc(.5 * var(--u)); }
.btn-book-body { position: relative; width: calc(191.58 * var(--u)); height: 100%; margin-left: calc(-8 * var(--u)); margin-right: calc(-8 * var(--u)); }
.btn-book-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.btn-book-shade { position: absolute; top: 0; height: 100%; width: calc(73.65 * var(--u)); }
.btn-book-shade.l { left: calc(20.35 * var(--u)); }
.btn-book-shade.r { left: calc(98.18 * var(--u)); }
.btn-book-label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--bg);
  font-weight: 700;
  font-size: calc(14.37 * var(--u));
  letter-spacing: calc(1.51 * var(--u));
  text-transform: uppercase;
  white-space: nowrap;
}
.btn-book:hover .btn-book-body { filter: brightness(1.08); }

.hours { display: flex; gap: calc(15.3 * var(--u)); }
.hours-icon {
  width: calc(31.14 * var(--u)); height: calc(31.14 * var(--u));
  border-radius: calc(4.79 * var(--u));
  background: var(--accent); color: var(--bg);
  display: grid; place-items: center; flex: none;
}
.hours-icon svg { width: calc(14.37 * var(--u)); height: calc(14.37 * var(--u)); }
.hours dl {
  display: grid; grid-template-columns: auto auto;
  column-gap: calc(9 * var(--u)); row-gap: calc(7 * var(--u));
  font-size: calc(10.78 * var(--u)); letter-spacing: calc(-.22 * var(--u));
  margin-top: calc(.6 * var(--u));
}
.hours dt { color: var(--accent); }
.hours dd { color: #fff; }

.hero-girl { overflow: hidden; }
.hero-girl img { position: absolute; left: 0; top: -.59%; width: 105.22%; height: 100.59%; max-width: none; }
.hero-dot { background: #fff; border-radius: 50%; }
.hero-card {
  display: flex; gap: calc(22 * var(--u));
  background: var(--cream);
  color: var(--bg);
  border-radius: calc(14.37 * var(--u));
  padding: calc(19.16 * var(--u)) calc(16 * var(--u)) 0 calc(19.16 * var(--u));
}
.hero-card small {
  display: block;
  font-size: calc(10.78 * var(--u)); font-weight: 700;
  letter-spacing: calc(.65 * var(--u));
  text-transform: uppercase;
  color: rgba(18, 16, 12, .5);
  margin-bottom: calc(10 * var(--u));
}
.hero-card strong { font-size: calc(19.16 * var(--u)); font-weight: 600; letter-spacing: calc(.4 * var(--u)); white-space: nowrap; line-height: 1; }
.hero-card sup, .price sup { font-size: .75em; vertical-align: baseline; }

/* Full-bleed bands: span the whole window, not just the centred stage */
.logos, .footer-bg { left: calc(50% - 50vw); width: 100vw; }

/* Logos */
.logos {
  background: var(--glass);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
}
.logos-row { width: calc(728.1 * var(--u)); display: flex; justify-content: space-between; align-items: center; }
.logos-row img { width: calc(var(--w) * var(--u)); height: calc(28.74 * var(--u)); }

/* Bento */
.tile h2, .bento h2 { font-size: calc(38.32 * var(--u)); letter-spacing: calc(-.77 * var(--u)); line-height: 1.05; }
.process-dots { object-fit: cover; }
.tile h2 { z-index: 1; }
.process-fade { background: linear-gradient(var(--surface), rgba(30, 28, 23, 0)); }
.process-artist { object-fit: cover; }
.tile-cream { background: var(--cream); color: var(--bg); border-radius: calc(19.16 * var(--u)); }
.tile-cream .price {
  position: absolute; right: calc(23.2 * var(--u)); bottom: calc(19 * var(--u));
  font-size: calc(19.16 * var(--u)); letter-spacing: calc(1.15 * var(--u));
}
.tile-photo { border-radius: calc(19.16 * var(--u)) calc(19.16 * var(--u)) 0 0; overflow: hidden; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; }
.tile-photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 41.7%;
  background: linear-gradient(rgba(30, 28, 23, 0), var(--surface) 90.8%);
}
.tile-rated p { font-size: calc(10.78 * var(--u)); line-height: 1.5; letter-spacing: calc(-.22 * var(--u)); color: var(--text-mute); }

/* Testimonials */
.avatar.lg { padding: calc(2.45 * var(--u)); }
.avatar:not(.lg) { padding: calc(2.44 * var(--u)); }
.quote-nav.prev img { transform: rotate(180deg); }
.quote-nav { background: none; border: 0; cursor: pointer; transition: transform .2s; }
.quote-nav img { width: 100%; height: 100%; }
.quote-nav:hover { transform: scale(1.06); }
.quote {
  background: var(--surface);
  border-radius: calc(19.16 * var(--u));
  padding: calc(31.14 * var(--u)) calc(31.14 * var(--u)) 0;
}
.quote cite { display: block; font-style: normal; font-size: calc(19.16 * var(--u)); letter-spacing: calc(-.38 * var(--u)); line-height: 1; }
.quote p { margin-top: calc(14 * var(--u)); font-size: calc(11.98 * var(--u)); line-height: 1.5; letter-spacing: calc(-.24 * var(--u)); color: #fff; }

/* FAQ */
.faq .section-title { margin-bottom: calc(22.5 * var(--u)); }
.faq details { border-bottom: calc(1.2 * var(--u)) solid rgba(255, 244, 235, .2); }
.faq summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: calc(19.16 * var(--u)) calc(21 * var(--u)) calc(19.16 * var(--u)) calc(14.4 * var(--u));
  font-size: calc(14.37 * var(--u)); font-weight: 700; text-transform: uppercase;
  line-height: 1.35;
  color: #fff;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none;
  width: calc(19.16 * var(--u)); height: calc(19.16 * var(--u));
  background: url("../img/add.svg") center / contain no-repeat;
}
.faq details[open] summary::after { background-image: url("../img/add-open.svg"); }
.faq details p, .faq ol {
  font-size: calc(11.98 * var(--u)); line-height: 1.5; letter-spacing: calc(-.24 * var(--u));
  color: #fff;
  padding: 0 calc(21 * var(--u)) calc(19.16 * var(--u)) calc(14.4 * var(--u));
}
.faq ol { padding-left: calc(32.4 * var(--u)); margin-top: calc(-1 * var(--u)); }
.faq b { font-weight: 900; }

/* Newsletter + footer */
.footer-bg { background: var(--surface); }
.dia-lg { padding: calc(.75 * var(--u)); }
.newsletter { color: var(--bg); }
.newsletter-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.newsletter h2 { font-size: calc(38.32 * var(--u)); letter-spacing: calc(-.77 * var(--u)); line-height: 1.05; }
.newsletter-form { display: flex; gap: calc(7.2 * var(--u)); }
.newsletter-form input {
  width: calc(206.57 * var(--u));
  background: var(--cream-2); border: 0; border-radius: calc(7.19 * var(--u));
  padding: calc(11.98 * var(--u)) calc(19.16 * var(--u));
  font: 500 calc(10.78 * var(--u)) var(--font-body); color: var(--accent-ink);
}
.newsletter-form input::placeholder { color: var(--accent-ink); opacity: 1; }
.newsletter-form input:focus { outline: 2px solid var(--accent); }
.form-note { font-size: calc(10.78 * var(--u)); color: var(--accent-ink); }

.footer-col {
  display: flex; flex-direction: column; justify-content: space-between;
  border-left: calc(1.8 * var(--u)) solid rgba(255, 244, 235, .2);
  padding-left: calc(31.1 * var(--u));
}
.social { display: flex; gap: calc(19.16 * var(--u)); }
.social img { width: calc(19.16 * var(--u)); height: calc(19.16 * var(--u)); }
.social a:hover { filter: brightness(1.15); }
.footer-bottom {
  display: flex; align-items: center; gap: calc(40 * var(--u));
  border-top: calc(.6 * var(--u)) solid rgba(255, 244, 235, .2);
  padding-top: calc(19.16 * var(--u));
}
.footer-bottom p { margin-left: auto; color: rgba(255, 244, 235, .4); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Mobile / tablet: stacked layout ---------- */
@media (max-width: 899px) {
  :root { --u: 1.25px; }
  body { background-size: 160% auto; }
  .page { width: auto; height: auto; padding: 0 16px 0; display: flex; flex-direction: column; }
  .abs, .abs-in { position: relative; left: auto; top: auto; width: auto; height: auto; }

  .nav-bar { order: 0; margin-top: 16px; position: sticky; top: 8px; height: 64px; }
  .nav { justify-content: space-between; padding: 0 20px; }
  .nav-group { display: none; }
  .nav-logo img { width: 36px; height: 36px; }
  .nav-toggle { display: block; background: none; border: 0; cursor: pointer; padding: 8px; }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--cream); margin: 5px 0; }
  .mobile-nav.open {
    display: flex; flex-direction: column; gap: 18px;
    background: var(--surface); border-radius: 20px;
    margin-top: 8px; padding: 24px;
    text-transform: uppercase; font-weight: 700; letter-spacing: 1px; font-size: 14px;
  }

  .hero { display: flex; flex-direction: column; padding-top: 40px; }
  .hero-title { font-size: 56px; max-width: 340px; }
  .btn-book { margin-top: 32px; height: 56px; width: max-content; }
  .btn-book-body { width: 220px; }
  .btn-book-shade.l { left: 23px; } .btn-book-shade.r { left: 113px; }
  .btn-book-label { font-size: 16px; }
  .hours { margin-top: 28px; }
  .hero-visual { position: relative; margin: 32px -16px 0; aspect-ratio: 562 / 610; }
  .hero-visual .abs { position: absolute; }
  .hero-shape { left: 0; top: 0; width: 92.5%; height: 87.1%; }
  .hero-girl { left: .7%; top: .1%; width: 100%; height: 100%; }
  .hero-line, .hero-dot, .hero-pointer { display: none; }
  .hero-card { left: auto !important; right: 16px; top: auto !important; bottom: 24px; height: auto; padding: 16px 20px; }

  .logos { margin: 0 -16px; padding: 24px 16px; }
  .logos-row { width: 100%; flex-wrap: wrap; justify-content: center; gap: 20px 28px; }
  .logos-row img { height: 26px; width: auto; }

  .bento { display: flex; flex-direction: column; gap: 16px; margin-top: 64px; }
  .bento-bg { display: none; }
  .tile { border-radius: 20px; overflow: hidden; }
  .tile-process { background: var(--surface); padding: 32px 28px 0; }
  .process-photo { position: relative; height: 340px; margin: 24px -28px 0; }
  .process-photo .abs { position: absolute; }
  .process-dots { left: 0; top: 0; width: 100%; height: 100%; }
  .process-fade { left: 0; top: 0; width: 100%; height: 40%; }
  .process-artist { left: 50%; bottom: 0; top: auto; transform: translateX(-50%); width: 250px; height: 340px; }
  .tile-cream { min-height: 240px; display: grid; place-items: center; }
  .tile-cream .abs-in { width: 130px; height: auto; }
  .tile-rated { background: var(--surface); display: flex; flex-direction: column; gap: 16px; padding-bottom: 28px; }
  .tile-rated > :not(.tile-photo) { margin: 0 28px; }
  .tile-photo { height: 220px; border-radius: 0; }
  .tile-rated .btn { align-self: flex-start; }

  .testimonials { display: flex; flex-direction: column; align-items: center; margin-top: 72px; }
  .avatars { display: flex; align-items: center; gap: 10px; margin: 28px 0 20px; }
  .avatar { width: 56px; height: 56px; }
  .avatar.lg { width: 96px; height: 96px; }
  .quote { width: 100%; padding: 28px 24px 26px; height: auto; }
  .quote-nav { width: 44px; height: 44px; }
  .quote-nav.prev { order: 5; margin-top: 16px; }
  .quote-nav.next { order: 6; margin-top: -44px; margin-left: 110px; }
  .quote-nav.prev { margin-right: 110px; }

  .faq { margin-top: 72px; margin-bottom: 150px; }
  .faq summary { font-size: 15px; }

  .site-footer { display: flex; flex-direction: column; align-items: center; gap: 28px; margin: 0 -16px; padding: 0 16px 32px; background: var(--surface); }
  .footer-bg, .dia-lg { display: none; }
  .newsletter { width: 100%; margin-top: -110px; background: var(--cream); border-radius: 20px; padding: 28px 22px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
  .newsletter-bg { display: none; }
  .newsletter-art { width: 130px; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-form input { width: 100%; }
  .footer-col { flex-direction: row; gap: 20px; border: 0; padding: 0; height: auto; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; width: 100%; }
  .footer-bottom p { margin: 0; }
  .footer-bottom a, .footer-bottom p { white-space: normal; }
}
