/* Payne Gráfica Digital */

:root {
  --bordo: #BA1638;
  --bordo-escuro: #731328;
  --rosado: #FBEAEC;
  --ink: #28171B;
  --ink-suave: #665157;
  --cinza: #FAF5F5;
  --linha: #EBDCDD;
  --branco: #fff;

  --font: "DM Sans", system-ui, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 3.5vw, 40px);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 112px; }

body {
  margin: 0;
  background: var(--branco);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

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

.block { margin-top: clamp(48px, 7vw, 88px); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  z-index: 100;
}
.skip:focus { left: 8px; }

/* Tipografia */
h1 {
  max-width: 14ch;
  font-size: clamp(2.75rem, 4.5vw, 4.25rem);
  font-weight: 500;
  line-height: 1.01;
  letter-spacing: -.055em;
}
h1 strong { color: var(--bordo-escuro); font-weight: 780; }
h2 {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.045em;
}
h3 {
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.3;
}

/* Botões em pílula */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 26px;
  background: var(--bordo);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid var(--bordo);
  border-radius: 999px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--bordo-escuro); border-color: var(--bordo-escuro); }

.btn-light { background: #fff; color: var(--bordo); border-color: #fff; }
.btn-light:hover { background: var(--rosado); border-color: var(--rosado); }

.btn-outline {
  background: #fff;
  color: var(--bordo-escuro);
  border-color: var(--linha);
}
.btn-outline:hover {
  background: var(--rosado);
  border-color: var(--bordo);
}

/* Profundidade suave, sem desfocar textos ou imagens de produto. */
.header { background: var(--cinza); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header {
    background: rgba(250, 245, 245, .84);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    backdrop-filter: blur(20px) saturate(1.2);
  }
  .header .site-nav { background: rgba(255, 255, 255, .7); }
  .hero-photo .photo-link {
    background: rgba(255, 255, 255, .8);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    backdrop-filter: blur(14px) saturate(1.15);
    border: 1px solid rgba(255, 255, 255, .75);
  }
}

/* Cabeçalho */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(115, 19, 40, .06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.header .wordmark { margin-right: auto; color: var(--bordo-escuro); }
.site-nav {
  display: flex;
  align-items: center;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--linha);
  border-radius: 999px;
}
.site-nav a {
  padding: 9px clamp(12px, 1.4vw, 24px);
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--bordo); background: var(--rosado); }

.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--bordo);
  line-height: 1;
}
.wordmark-icon { flex: none; }
.wordmark-text {
  display: flex;
  flex-direction: column;
}
.wordmark-name {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: .02em;
}
.wordmark-sub {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--ink-suave);
  margin-top: 3px;
}

.search {
  display: flex;
  align-items: center;
  width: min(100%, 360px);
  height: 48px;
  padding: 0 6px 0 20px;
  background: var(--cinza);
  border: 2px solid transparent;
  border-radius: 999px;
  transition: border-color .15s ease, background-color .15s ease;
}
.search:focus-within { border-color: var(--bordo); background: #fff; }
.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  outline: none;
}
.search input::placeholder { color: var(--ink-suave); }
.search button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--bordo);
  color: #fff;
  cursor: pointer;
}
.search button svg { width: 18px; height: 18px; stroke-width: 2.2; }

/* Apresentação */
.intro { background: var(--cinza); }
.hero {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  align-items: center;
  gap: clamp(36px, 5vw, 76px);
  padding-top: clamp(28px, 5vw, 68px);
  padding-bottom: clamp(58px, 7vw, 98px);
}
.hero-tag {
  display: inline-block;
  margin-bottom: 24px;
  padding: 6px 14px;
  background: var(--rosado);
  color: var(--bordo-escuro);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 700;
}
.hero-lead {
  margin-top: 20px;
  max-width: 43ch;
  color: var(--ink-suave);
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
}
.hero-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 20px;
  color: var(--bordo-escuro);
  font-size: .875rem;
  font-weight: 650;
}
.hero-topics a { text-decoration: none; }
.hero-topics a:hover { text-decoration: underline; }
.hero-topics a::before { content: "✓" / ""; margin-right: 6px; color: var(--bordo); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.hero-actions .btn { gap: 9px; }
.hero-photo { position: relative; margin-inline: 10px; }
.hero-photo img {
  width: 100%;
  aspect-ratio: 1.11;
  object-fit: cover;
  border-radius: var(--r-lg);
  background: var(--rosado);
}
.photo-link {
  position: absolute;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 17px;
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--bordo-escuro);
  box-shadow: 0 12px 30px rgba(95, 20, 37, .15);
  font-size: .875rem;
  font-weight: 750;
  text-decoration: none;
}
.photo-link:hover { background: var(--rosado); }
.photo-link:first-of-type { left: -16px; bottom: 20%; }
.photo-link:last-of-type { right: -16px; bottom: -15px; }

/* Clientes e soluções */
.client-strip { border-bottom: 1px solid var(--linha); }
.client-inner { padding-top: 24px; padding-bottom: 30px; }
.client-inner h2 {
  color: var(--ink-suave);
  font-size: .875rem;
  letter-spacing: 0;
  text-align: center;
}
.clients {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  text-align: center;
  color: var(--bordo-escuro);
  font-size: clamp(.9rem, 1.5vw, 1.2rem);
  font-weight: 750;
}
.solutions {
  padding: clamp(50px, 7vw, 96px) 0;
  background: var(--rosado);
}
.solutions h2 { text-align: center; }
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}
.solution-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--linha);
  border-radius: var(--r-md);
  background: #fff;
  text-decoration: none;
}
.solution-card:hover { border-color: var(--bordo); }
.solution-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--rosado);
  color: var(--bordo);
}
.solution-card h3 { font-size: 1.25rem; }
.solution-card p { margin: 8px 0 22px; color: var(--ink-suave); }
.solution-link { margin-top: auto; color: var(--bordo); font-weight: 700; }

/* Catálogo */
.catalog { padding-top: clamp(50px, 7vw, 96px); }
.catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.catalog-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.catalog-nav a {
  padding: 7px 14px;
  border: 1px solid var(--linha);
  border-radius: 999px;
  color: var(--bordo-escuro);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}
.catalog-nav a:hover { background: var(--rosado); border-color: var(--bordo); }
.catalog .block { margin-top: clamp(30px, 5vw, 56px); }
.catalog .vitrine h2 { font-size: clamp(1.375rem, 2.3vw, 2rem); }

/* Vitrines de produtos */
.vitrine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.vitrine-nav { display: flex; gap: 8px; }
.vitrine-nav button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--linha);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.vitrine-nav button:hover { background: var(--bordo); border-color: var(--bordo); color: #fff; }

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 16px) / 5);
  gap: 16px;
  margin-top: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }

.card { scroll-snap-align: start; }
.card a {
  display: block;
  height: 100%;
  text-decoration: none;
}
.card-img {
  overflow: hidden;
  background: var(--cinza);
  border-radius: var(--r-md);
}
.card-img img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .25s ease;
}
.card a:hover .card-img img { transform: scale(1.04); }
.card h3 { margin-top: 14px; }
.card p {
  margin-top: 2px;
  font-size: .875rem;
  color: var(--ink-suave);
}
.card-cta {
  display: inline-block;
  margin-top: 10px;
  font-size: .875rem;
  font-weight: 700;
  color: var(--bordo);
  border-bottom: 2px solid transparent;
}
.card a:hover .card-cta { border-bottom-color: var(--bordo); }

/* Busca sem resultado */
.empty {
  padding: clamp(28px, 5vw, 56px);
  background: var(--cinza);
  border-radius: var(--r-lg);
  text-align: center;
}
.empty p { max-width: 52ch; margin: 12px auto 24px; color: var(--ink-suave); }

/* Design e sites */
.studio {
  margin-top: clamp(56px, 8vw, 104px);
  padding: clamp(48px, 7vw, 88px) 0;
  background: #43101E;
  color: #fff;
}
.studio-lead { margin-top: 10px; color: rgba(255, 255, 255, .72); max-width: 56ch; }
.studio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.studio-card {
  display: flex;
  flex-direction: column;
  background: #62182B;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.studio-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.studio-body { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; flex: 1; }
.studio-body h3 {
  font-size: 1.5rem;
  font-weight: 750;
}
.studio-body ul { margin: 16px 0 28px; }
.studio-body li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .88);
}
.studio-body li:last-child { border-bottom: 0; }
.studio-body .btn { align-self: flex-start; margin-top: auto; }
.studio :focus-visible { outline-color: #fff; }

/* Como funciona */
.steps {
  counter-reset: passo;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.steps li {
  counter-increment: passo;
  padding: 24px;
  background: var(--cinza);
  border-radius: var(--r-md);
}
.steps li::before {
  content: counter(passo);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  background: var(--bordo);
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
}
.steps p { margin-top: 8px; font-size: .9375rem; color: var(--ink-suave); }

/* Chamada final */
.cta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: clamp(48px, 7vw, 88px);
  padding: clamp(32px, 5vw, 64px);
  background: linear-gradient(115deg, var(--bordo-escuro), var(--bordo) 70%);
  color: #fff;
  border-radius: var(--r-lg);
}
.cta h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; }
.cta p { margin-top: 14px; max-width: 48ch; color: rgba(255, 255, 255, .86); }
.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  justify-self: end;
}
.cta-link { font-weight: 600; text-underline-offset: 4px; }
.cta :focus-visible { outline-color: #fff; }

/* Rodapé */
.footer {
  margin-top: clamp(48px, 7vw, 88px);
  background: var(--cinza);
  font-size: .9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.wordmark-footer { margin: 0; }
.footer-slogan { margin-top: 14px; color: var(--ink-suave); max-width: 26ch; }
.footer h3 { font-size: .9375rem; font-weight: 750; margin-bottom: 12px; }
.footer li { padding: 5px 0; color: var(--ink-suave); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--bordo); text-decoration: underline; }
.footer-base {
  padding-top: 18px;
  padding-bottom: 18px;
  border-top: 1px solid var(--linha);
  color: var(--ink-suave);
  font-size: .8125rem;
}

/* Botão flutuante */
.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: var(--bordo);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 24px -8px rgba(78, 11, 22, .6);
  transition: transform .15s ease, background-color .15s ease;
}
.fab:hover { background: var(--bordo-escuro); transform: translateY(-2px); }
.fab svg { width: 26px; height: 26px; }

/* Movimento discreto e profundidade, preservando a identidade da Payne. */
.header {
  transition: box-shadow .25s ease, border-color .25s ease;
}
.header.is-scrolled {
  border-bottom-color: rgba(115, 19, 40, .1);
  box-shadow: 0 8px 28px rgba(67, 16, 30, .06);
}
.intro { position: relative; isolation: isolate; overflow: clip; }
.intro::before {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: 10%;
  right: 8%;
  width: clamp(200px, 32vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(186, 22, 56, .1);
  filter: blur(60px);
}
.btn {
  transition: transform .24s ease, box-shadow .24s ease,
    background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: scale(.98); }
.photo-link, .solution-card, .studio-card {
  transition: transform .32s cubic-bezier(.22, 1, .36, 1),
    box-shadow .32s ease, border-color .25s ease, background-color .25s ease;
}
.card-img img { transition: transform .55s cubic-bezier(.22, 1, .36, 1); }
.card-cta { transition: transform .25s ease, border-color .25s ease; }
.site-nav a, .catalog-nav a { transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.btn:focus-visible { transform: translateY(-2px); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(115, 19, 40, .14); }
  .photo-link:hover { transform: translateY(-3px); }
  .solution-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(115, 19, 40, .08); }
  .studio-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, .14); }
  .card a:hover .card-cta { transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn, .photo-link, .solution-card, .studio-card, .card-img img, .card-cta, .fab { transform: none !important; }
}

/* Responsivo */
@media (max-width: 1080px) {
  .rail { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 145px; }
  .header-inner { flex-wrap: wrap; }
  .site-nav {
    order: 3;
    flex: 1 1 100%;
    justify-content: center;
    padding: 3px;
  }
  .header .btn { min-height: 42px; padding: 8px 16px; font-size: .9375rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-photo img { aspect-ratio: 1.35; }
  .rail { grid-auto-columns: calc((100% - 2 * 16px) / 2.6); }
  .studio-grid, .cta { grid-template-columns: 1fr; }
  .cta-actions { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .header-inner { gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .header .wordmark { gap: 6px; }
  .header .wordmark-icon { width: 36px; }
  .header .wordmark-name { font-size: 1.5rem; }
  .header .wordmark-sub { letter-spacing: .1em; }
  .site-nav { justify-content: space-around; }
  .site-nav a { padding: 7px 6px; font-size: .8125rem; }
  .hero { gap: 26px; }
  .hero-tag { margin-bottom: 16px; }
  .hero-actions { margin-top: 22px; }
  .hero-actions .btn { flex: 1 1 auto; padding-inline: 15px; }
  .hero-photo { margin-inline: 4px; }
  .photo-link { gap: 8px; padding: 10px; font-size: .75rem; }
  .photo-link:first-of-type { left: -8px; bottom: 18%; }
  .photo-link:last-of-type { right: -8px; bottom: -12px; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .solution-grid, .steps { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 65%; }
  .vitrine-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 360px) {
  .header .btn { padding-inline: 9px; font-size: .875rem; }
  .site-nav a { padding-inline: 4px; font-size: .75rem; }
}
