/* Bree Bree Tattoo Art - Brenda Gois
   Tema único escuro. Cantos retos em tudo. Um acento: o magenta do emblema. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0a0a0b;
  --ink-raised: #131215;
  --ink-high: #1c1a1f;
  --line: #2e2b32;
  --paper: #f1eef2;
  --soft: #c9c4cd;
  --mute: #a39da8;
  --magenta: #e722b8;
  --magenta-hi: #f257cb;

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section: clamp(4.5rem, 10vw, 9rem);
  --header-h: 72px;

  /* camadas */
  --z-header: 20;
  --z-float: 60;
  --z-chat: 70;
  --z-menu: 80;
}

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

html {
  background: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
::selection { background: var(--magenta); color: var(--ink); }

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

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  padding: .75rem 1rem; background: var(--paper); color: var(--ink); font-weight: 600;
}
.skip:focus { top: .75rem; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }

/* Tipografia */
.display {
  font-stretch: 62%;
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.005em;
  text-wrap: balance;
}
h1.display { font-size: clamp(3.4rem, 9.4vw, 8.25rem); }
h2.display { font-size: clamp(2.6rem, 6.4vw, 5.5rem); }
.lead { font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.4; color: var(--paper); }
.prose p { max-width: 62ch; color: var(--soft); }
.prose p + p { margin-top: 1.1em; }
.note { font-size: .875rem; color: var(--mute); }

.link { text-decoration: underline; text-decoration-color: var(--magenta); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.link:hover { color: var(--magenta-hi); }

/* Botão: um rótulo, um estilo */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .8rem 1.5rem;
  border: 0; background: var(--magenta); color: var(--ink);
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .18s ease, transform .1s ease;
}
.btn:hover { background: var(--magenta-hi); }
.btn:active { transform: translateY(1px); }

/* Cabeçalho */
.header { position: relative; z-index: var(--z-header); }
.header .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: auto; height: 46px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name strong { font-size: 1.125rem; font-weight: 650; }
.brand-name span { font-size: .8125rem; color: var(--mute); }
.nav { display: none; gap: 2rem; }
.nav a { padding-block: .75rem; font-size: .9375rem; color: var(--soft); text-decoration: none; }
.nav a:hover { color: var(--paper); text-decoration: underline; text-decoration-color: var(--magenta); text-decoration-thickness: 2px; text-underline-offset: .4em; }
.header .btn { display: none; min-height: 46px; padding-block: .6rem; font-size: .9375rem; }
.menu-btn { min-height: 44px; padding: 0 .25rem; border: 0; background: none; font-size: 1rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--magenta); text-decoration-thickness: 2px; text-underline-offset: .35em; }

.mobile-menu { position: fixed; inset: 0; z-index: var(--z-menu); display: none; flex-direction: column; padding: 0 var(--gutter) 1.5rem; background: var(--ink); overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-top { height: var(--header-h); flex: none; display: flex; align-items: center; justify-content: space-between; }
.mobile-links { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .25rem; }
.mobile-links a { padding: .5rem 0; font-stretch: 62%; font-weight: 700; font-size: 3rem; line-height: 1.05; text-decoration: none; }

/* Hero: a foto vertical fica em moldura vertical, sem ampliar nem distorcer */
.hero { padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.hero-photo { margin-inline: calc(var(--gutter) * -1); }
.hero-photo img { width: 100%; height: 58svh; min-height: 300px; max-height: 620px; object-fit: cover; object-position: 50% 18%; }
.hero-copy { position: relative; margin-top: -3.2rem; }
.hero-copy::before { content: ""; position: absolute; inset: -5rem calc(var(--gutter) * -1) auto; height: 8.2rem; background: linear-gradient(to top, var(--ink) 34%, transparent); pointer-events: none; }
.hero-copy > * { position: relative; }
.hero-styles { font-size: .9375rem; color: var(--soft); }
.hero h1 { margin-top: .6rem; }
.hero-sub { max-width: 34ch; margin-top: 1.25rem; color: var(--soft); }
.hero .btn { margin-top: 1.75rem; }

/* Seções */
.section { padding-block: var(--section); }
.section--raised { background: var(--ink-raised); }
.section-head { margin-bottom: clamp(2.25rem, 5vw, 4rem); }

.manifesto h2 span, .booking h2 span { display: block; }
.manifesto-copy { margin-top: clamp(2rem, 5vw, 4rem); display: grid; gap: 1.5rem; }
.manifesto-copy p { max-width: 44ch; font-size: 1.125rem; color: var(--soft); }

.strip { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding-inline: .5rem; }
.strip figure:first-child { grid-column: 1 / -1; }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.styles { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; color: var(--mute); }
.works { display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem .75rem; }
.work:first-child { grid-column: 1 / -1; }
.work img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: var(--ink-high); }
.work h3 { margin-top: .9rem; font-size: 1.125rem; font-weight: 600; line-height: 1.25; }
.work p { font-size: .875rem; color: var(--mute); }
.works-more { margin-top: clamp(2.5rem, 5vw, 4rem); }

.about { display: grid; gap: 2.5rem; }
.about-photo img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.about .lead { margin: 1.25rem 0 1.5rem; max-width: 26ch; }
.about-facts { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 62ch; color: var(--paper); }

.steps { display: grid; gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; margin-bottom: .5rem; font-stretch: 62%; font-weight: 700; font-size: 2.5rem; line-height: 1; color: var(--magenta); }
.steps h3 { font-size: 1.375rem; font-weight: 650; line-height: 1.2; }
.steps p { margin-top: .4rem; max-width: 30ch; color: var(--soft); }

.large { display: grid; gap: 2.5rem; }
.large-photo img { width: 100%; aspect-ratio: 1392 / 1268; object-fit: cover; }
.large .prose { margin-top: 1.5rem; }
.large-types { margin: 1.75rem 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.5rem; max-width: 30rem; color: var(--paper); }

.proof .lead { max-width: 30ch; margin-top: 1.75rem; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.25; }
.proof .prose { margin: 1.5rem 0 1.75rem; }

.faq { display: grid; gap: 2.5rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; list-style: none; font-size: 1.1875rem; font-weight: 600; line-height: 1.3; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--magenta); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { max-width: 62ch; padding-bottom: 1.4rem; color: var(--soft); }

.booking { text-align: center; }
.booking p { max-width: 52ch; margin: 1.5rem auto 2rem; color: var(--soft); }
.booking .note { margin: 1.5rem auto 0; }

/* Rodapé */
.footer { padding-block: clamp(3rem, 6vw, 5rem) 6.5rem; border-top: 1px solid var(--line); font-size: .9375rem; }
.footer-top { display: flex; flex-direction: column; gap: 1.5rem; padding-bottom: 2.5rem; }
.footer-top img { align-self: flex-start; width: auto; height: 150px; }
.footer-top p { max-width: 18ch; font-stretch: 62%; font-weight: 700; font-size: 1.75rem; line-height: 1.05; }
.footer-cols { display: grid; gap: 2.25rem; padding-block: 2.5rem; border-top: 1px solid var(--line); }
.footer-cols h2 { margin-bottom: .75rem; font-size: .875rem; font-weight: 500; color: var(--mute); }
.footer-cols li + li { margin-top: .85rem; }
.footer-cols address { font-style: normal; color: var(--soft); }
.footer-cols address strong { display: block; color: var(--paper); font-weight: 600; }
.footer-cols a { display: inline-block; padding-block: .3rem; }
.footer-cols .btn { margin-top: 1rem; padding-block: .8rem; }
.footer-bottom { display: flex; flex-direction: column; gap: .4rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--mute); }

/* Botão flutuante: só aparece depois que o botão do hero sai da tela */
.float-cta { position: fixed; right: 1rem; bottom: 1rem; z-index: var(--z-float); box-shadow: 0 10px 30px rgb(0 0 0 / .55); }
.float-cta[hidden], .chat.open + .float-cta { display: none; }

/* Briefing */
.chat { position: fixed; right: 1rem; bottom: 5.25rem; z-index: var(--z-chat); width: min(390px, calc(100vw - 1rem)); height: min(650px, calc(100svh - 6.5rem)); display: none; grid-template-rows: auto 3px 1fr auto; background: var(--ink-raised); border: 1px solid var(--line); box-shadow: 0 28px 80px rgb(0 0 0 / .7); }
.chat.open { display: grid; }
.chat-head { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.chat-head img { width: auto; height: 38px; }
.chat-who { flex: 1; min-width: 0; line-height: 1.25; }
.chat-who strong { display: block; font-weight: 650; }
.chat-who span { font-size: .875rem; color: var(--mute); }
.chat-close { min-width: 44px; min-height: 44px; border: 0; background: none; font-size: .9375rem; text-decoration: underline; text-underline-offset: .3em; }
.chat-progress { background: var(--line); }
.chat-progress span { display: block; width: 0; height: 100%; background: var(--magenta); transition: width .35s ease; }
.chat-body { padding: 1.1rem .9rem; overflow-y: auto; overscroll-behavior: contain; }
.message { max-width: 86%; margin-bottom: .6rem; padding: .7rem .85rem; font-size: .9375rem; line-height: 1.45; }
.message.bot { background: var(--ink-high); color: var(--paper); }
.message.user { margin-left: auto; background: var(--paper); color: var(--ink); }
.chat-step { margin: 1rem 0 .5rem; font-size: .8125rem; color: var(--mute); }
.chat-compose { padding: .75rem; border-top: 1px solid var(--line); }
.quick-replies { display: grid; gap: .5rem; }
.quick-reply { min-height: 46px; padding: .6rem .8rem; border: 1px solid var(--line); background: var(--ink); color: var(--paper); font-size: .9375rem; line-height: 1.3; text-align: left; transition: border-color .15s ease; }
.quick-reply:hover, .quick-reply:focus-visible { border-color: var(--magenta); }
.chat-form { display: flex; align-items: flex-end; gap: .5rem; }
.chat-input { flex: 1; min-height: 48px; max-height: 110px; padding: .7rem .75rem; resize: none; border: 1px solid #5a5560; border-radius: 0; background: var(--ink); color: var(--paper); font: inherit; font-size: 1rem; line-height: 1.4; }
.chat-input::placeholder { color: var(--mute); opacity: 1; }
.chat-input:focus-visible { outline: 2px solid var(--magenta); outline-offset: 0; }
.chat-send { min-height: 48px; padding: 0 1rem; border: 0; background: var(--magenta); color: var(--ink); font-weight: 650; }
.chat-send:disabled { background: var(--ink-high); color: var(--mute); cursor: not-allowed; }
.chat-compose .btn { width: 100%; }
.chat-note { margin-top: .6rem; font-size: .8125rem; line-height: 1.4; color: var(--mute); text-align: center; }

/* Páginas simples: 404 e política de privacidade */
.page { padding-block: clamp(3rem, 8vw, 6rem) var(--section); }
.page h1.display { font-size: clamp(2.8rem, 7vw, 5.5rem); max-width: 14ch; }
.page .prose { margin-top: 2rem; }
.page .prose h2 { margin: 2.25rem 0 .6rem; font-size: 1.375rem; font-weight: 650; line-height: 1.25; }
.page .prose ul { max-width: 62ch; padding-left: 1.2rem; list-style: disc; color: var(--soft); }
.page .prose li + li { margin-top: .4rem; }
.page .btn { margin-top: 2rem; }

@media (max-width: 420px) {
  .chat { right: .5rem; bottom: 4.9rem; }
  .float-cta { right: .5rem; bottom: .5rem; }
}

@media (min-width: 700px) {
  .strip { grid-template-columns: repeat(3, 1fr); gap: .75rem; padding-inline: var(--gutter); max-width: 1320px; margin-inline: auto; }
  .strip figure:first-child { grid-column: auto; }
  .strip figure:nth-child(2) { margin-top: 4rem; }
  .manifesto-copy { grid-template-columns: repeat(2, minmax(0, 26rem)); gap: 3rem; justify-content: end; }
  .works { grid-template-columns: 1.35fr 1fr 1fr; gap: 1.25rem; align-items: end; }
  .work:first-child { grid-column: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; }
  .footer-top { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .footer-top p { text-align: right; }
  .footer-cols { grid-template-columns: 1fr 1.4fr 1fr; gap: 3rem; }
  .footer-bottom { flex-direction: row; justify-content: space-between; gap: 2rem; }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .header .btn { display: inline-flex; }
  .menu-btn { display: none; }

  .hero { padding-top: 1rem; }
  .hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; gap: clamp(2rem, 4vw, 4rem); }
  .hero-photo { order: 2; margin: 0; }
  .hero-photo img { height: auto; max-height: calc(100dvh - var(--header-h) - 5rem); min-height: 0; aspect-ratio: 4 / 5; object-position: 50% 30%; }
  .hero-copy { margin: 0; padding-bottom: .5rem; }
  .hero-copy::before { content: none; }
  .hero-sub { font-size: 1.1875rem; }

  .about { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: center; gap: clamp(3rem, 7vw, 7rem); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .large { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: clamp(3rem, 6vw, 6rem); }
  .large-photo { order: 2; }
  .faq { grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
  .footer { padding-bottom: clamp(3rem, 6vw, 5rem); }
}

/* Um único momento de movimento: a entrada do hero */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-photo { animation: rise .8s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-copy { animation-delay: .12s; }
  .message { animation: rise .25s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .chat-progress span { transition: none; }
}
