/* TecnoFlex Etiquetas — site
   Ideia visual: a folha de etiquetas no liner (papel siliconado), com faca de corte,
   marcas de corte e linhas de cota — o mesmo vocabulário das artes de produção. */

:root {
  --red: #C8232C;
  --red-dk: #A11B23;
  --slate: #36444F;
  --ink: #1E272F;
  --muted: #56636E;
  --liner: #E8EDF1;
  --liner-dk: #DCE3E9;
  --die: #A9B6C2;
  --paper: #FFFFFF;
  --wa: #25D366;
  --wa-dk: #1DA851;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --r-sm: 8px;
  --r-md: 14px;
  --shadow-lift: 0 18px 30px -12px rgba(30, 39, 47, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-variation-settings: "wdth" 100;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0 0 .6em; line-height: 1.05; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 4.4vw, 3.75rem); font-weight: 800; font-variation-settings: "wdth" 114; letter-spacing: -.012em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 750; font-variation-settings: "wdth" 110; letter-spacing: -.008em; }
h3, .h3 { font-size: 1.3rem; font-weight: 700; font-variation-settings: "wdth" 106; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 56ch; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 720px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .7rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.icon { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; }
.icon svg { width: 100%; height: 100%; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.35rem;
  border-radius: var(--r-sm); border: 2px solid transparent;
  font-weight: 650; font-variation-settings: "wdth" 104; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dk); }
.btn--line { border-color: var(--slate); color: var(--slate); background: transparent; }
.btn--line:hover { background: var(--slate); color: #fff; }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .95rem; }
.btn--lg { min-height: 56px; padding: .9rem 1.8rem; font-size: 1.1rem; }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

/* ---------- Topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--liner-dk);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 550; color: var(--slate); font-size: .98rem; }
.nav a:not(.btn):hover { color: var(--red); }
.nav__ig { display: inline-flex; align-items: center; gap: .35rem; }
.nav__ig .icon { width: 1.3em; height: 1.3em; }
.navtoggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--slate); }
.navtoggle .icon { width: 28px; height: 28px; }

@media (max-width: 940px) {
  .navtoggle { display: inline-flex; }
  .nav {
    position: absolute; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--liner-dk);
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--liner); font-size: 1.05rem; }
  .nav .btn { margin-top: 1rem; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero__where { display: flex; align-items: center; gap: .4rem; margin-top: 1.4rem; color: var(--muted); font-size: .95rem; }
.hero__where .icon { color: var(--red); }

.sheet { margin: 0; position: relative; padding: 34px 0 0; }
.sheet__custom { border-radius: var(--r-md); width: 100%; }
.sheet__liner {
  --pad: 7%;
  --gap: 4%;
  position: relative;
  aspect-ratio: 1;
  background: var(--liner);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--liner-dk);
}
.sheet__grid {
  position: absolute; inset: var(--pad);
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  gap: var(--gap);
}
.slot { position: relative; border-radius: 50%; }
.slot::before {
  content: ""; position: absolute; inset: -3%;
  border: 1.5px dashed var(--die); border-radius: 50%;
}
.slot img {
  position: relative; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(30, 39, 47, .18));
}
.slot--empty::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-linear-gradient(-45deg, transparent 0 7px, rgba(169, 182, 194, .22) 7px 8px);
}
.sheet__peel {
  position: absolute; width: 29%; right: -7%; bottom: -11%;
  transform: rotate(-13deg);
  filter: drop-shadow(0 16px 18px rgba(30, 39, 47, .32));
  animation: peel 1.1s cubic-bezier(.2, .7, .2, 1) .5s both;
  z-index: 2;
}
.sheet__peel img { width: 100%; }
@keyframes peel {
  from { transform: translate(-46%, -52%) rotate(0deg); filter: drop-shadow(0 1px 1px rgba(30, 39, 47, .18)); }
  to   { transform: rotate(-13deg); filter: drop-shadow(0 16px 18px rgba(30, 39, 47, .32)); }
}

.cropmark { position: absolute; width: 22px; height: 22px; pointer-events: none; }
.cropmark::before, .cropmark::after { content: ""; position: absolute; background: var(--slate); }
.cropmark::before { width: 100%; height: 1px; top: 50%; }
.cropmark::after { width: 1px; height: 100%; left: 50%; }
.cropmark--tl { top: -11px; left: -11px; }
.cropmark--tr { top: -11px; right: -11px; }
.cropmark--bl { bottom: -11px; left: -11px; }
.cropmark--br { bottom: -11px; right: -11px; }

.dim { position: absolute; color: var(--slate); font-size: .8rem; font-variation-settings: "wdth" 90; }
.dim--x {
  top: -30px; left: var(--pad); width: calc((100% - 2 * var(--pad) - 2 * var(--gap)) / 3);
  height: 14px; border-inline: 1px solid currentColor;
  display: flex; justify-content: center; align-items: center;
}
.dim--x::before { content: ""; position: absolute; inset: 50% 0 auto; height: 1px; background: currentColor; }
.dim--x span { position: relative; background: #fff; padding: 0 .4rem; line-height: 1; }

@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; }
  .sheet { max-width: 460px; width: 92%; margin-inline: auto; }
}

/* ---------- Seções ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding-top: 1.5rem; }
.section--liner { background: var(--liner); }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1rem 3rem; align-items: end; margin-bottom: 2.2rem; }
.section__head h2 { margin: 0; }
.section__head p { margin: 0; color: var(--muted); max-width: 52ch; }
@media (max-width: 760px) { .section__head { grid-template-columns: 1fr; } }

/* ---------- Filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.chip {
  border: 1.5px solid var(--liner-dk); background: #fff; border-radius: 999px;
  padding: .45rem 1rem; font-size: .95rem; font-weight: 550; cursor: pointer; color: var(--slate);
}
.chip:hover { border-color: var(--slate); }
.chip.is-on { background: var(--slate); border-color: var(--slate); color: #fff; }

/* ---------- Cards de produto ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--liner-dk); border-radius: var(--r-md); overflow: hidden;
}
.card[hidden] { display: none; }
.card__media { display: block; aspect-ratio: 1; background: var(--liner); padding: 11%; }
.card__media img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(30, 39, 47, .15)); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.3rem 1.35rem; }
.card__cat { margin: 0 0 .3rem; font-size: .85rem; font-weight: 600; color: var(--red); }
.card__title { margin: 0 0 .5rem; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__text { color: var(--muted); font-size: .98rem; }
.card__foot { margin-top: auto; padding-top: .5rem; }

/* Linha de cota: |—— 60 × 60 mm ——| */
.measure {
  display: flex; align-items: center; gap: .6rem;
  margin: 0 0 1rem; font-size: .85rem; color: var(--slate); font-variation-settings: "wdth" 92;
}
.measure::before, .measure::after {
  content: ""; flex: 1; height: 11px; min-width: 14px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}
.measure::before { border-left: 1px solid currentColor; }
.measure::after { border-right: 1px solid currentColor; }
.measure span { white-space: nowrap; }
.measure--lg { font-size: .95rem; max-width: 420px; margin-top: .4rem; }

.price { font-size: 1.35rem; font-weight: 750; margin: 0 0 .8rem; font-variation-settings: "wdth" 108; }
.price small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.price--lg { font-size: 1.9rem; }

/* ---------- Trabalhos ---------- */
.works { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 860px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }
.work__btn {
  display: block; width: 100%; aspect-ratio: 4 / 3; padding: 7%;
  background: #fff; border: 1px solid var(--liner-dk); border-radius: 10px; cursor: zoom-in;
}
.work__btn img { width: 100%; height: 100%; object-fit: contain; }
.work__btn:hover { border-color: var(--slate); }
.work__cap { margin: .6rem 0 0; font-size: .92rem; line-height: 1.35; }
.work__cap span { display: block; color: var(--muted); }

.lightbox { border: 0; padding: 1.25rem; border-radius: var(--r-md); max-width: min(92vw, 860px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(30, 39, 47, .78); }
.lightbox img { max-height: 76vh; width: auto; margin: 0 auto; }
.lightbox__cap { text-align: center; margin: .8rem 0 0; font-weight: 600; }
.lightbox__close { position: absolute; top: .4rem; right: .4rem; background: #fff; border: 0; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; display: grid; place-items: center; }
.lightbox[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.97); } }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.prose p { max-width: 64ch; }
.timeline__rule {
  position: relative; display: flex; justify-content: space-between; align-items: center;
  padding: 2.2rem 0; color: var(--slate);
}
.timeline__rule::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 26px; transform: translateY(-50%);
  border-inline: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}
.timeline__end { position: relative; top: 2.4rem; font-weight: 600; font-size: .95rem; }
.timeline__value {
  position: relative; background: #fff; padding: 0 1rem;
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; font-variation-settings: "wdth" 125;
  color: var(--red); line-height: 1;
}
.timeline__note { color: var(--muted); margin-top: 2.2rem; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ---------- Dúvidas ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 2rem 4rem; }
.qa { border-bottom: 1px solid var(--die); }
.qa:first-child { border-top: 1px solid var(--die); }
.qa summary {
  list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-weight: 650; font-size: 1.08rem; font-variation-settings: "wdth" 104;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: .3rem; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--red), var(--red)) center / 100% 2px no-repeat,
              linear-gradient(var(--red), var(--red)) center / 2px 100% no-repeat;
  transition: transform .2s;
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa__a { padding: 0 0 1.2rem; color: var(--muted); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.facts { margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--liner-dk); }
.facts dt { color: var(--muted); font-size: .95rem; }
.facts dd { margin: 0; font-weight: 550; }
.contact__map { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--liner-dk); aspect-ratio: 4 / 3.4; background: var(--liner); }
.contact__map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: .15rem; }
}

/* ---------- Produto ---------- */
.crumbs { padding-top: 1.4rem; font-size: .92rem; color: var(--muted); }
.crumbs a { color: var(--slate); }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.pdp__media { position: relative; background: var(--liner); border-radius: 6px; aspect-ratio: 1; padding: 10%; margin-top: 12px; }
.pdp__media img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(30, 39, 47, .18)); }
.pdp__desc { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--liner-dk); }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--liner-dk); padding-top: 3rem; font-size: .98rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer__lead { color: var(--muted); margin-top: 1rem; max-width: 34ch; }
.footer__h { font-size: 1rem; font-variation-settings: "wdth" 100; margin-bottom: .7rem; }
.footer address { font-style: normal; }
.footer a { text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.footer a:hover { color: var(--red); }
.footer__legal { background: var(--slate); color: #fff; padding: 1.1rem 0; font-size: .9rem; }
.footer__legal p { margin: 0; text-align: center; }
.footer__legal a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; display: inline; }
.footer__legal a:hover { color: #fff; opacity: .85; }
.heart { display: inline-block; color: #FF4D5A; animation: beat 1.1s ease-in-out infinite; transform-origin: center; }
@keyframes beat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.28); }
  30% { transform: scale(1); }
  45% { transform: scale(1.18); }
  60% { transform: scale(1); }
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 10px 24px -6px rgba(29, 168, 81, .6);
}
.wa-float .icon { width: 34px; height: 34px; }
.wa-float::before, .wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa); animation: ring 2s ease-out infinite;
}
.wa-float::after { animation-delay: 1s; }
.wa-float:hover { background: var(--wa-dk); }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sheet__peel { animation: none; }
  .heart, .wa-float::before, .wa-float::after { animation-duration: 3s; animation-iteration-count: 2; }
  .lightbox[open] { animation: none; }
}
