/* Tapeçaria SS — pedra, tinta e linha de costura */

:root {
  --stone: #ECEAE4;
  --paper: #F7F6F2;
  --ink: #17181A;
  --ink-soft: #4C4F54;
  --rule: #CDCAC1;
  --thread: #C8321E;
  --thread-on-dark: #E2513B;
  --whats: #1B7A41;
  --whats-strong: #15633A;
  --panel-muted: #B4B6B9;

  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(56px, 8vw, 112px);
  --radius: 4px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --stitch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='2'%3E%3Crect width='10' height='2' rx='1' fill='%23C8321E'/%3E%3C/svg%3E");
  --quilt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='92'%3E%3Cpath d='M0 0L56 92M56 0L0 92' fill='none' stroke='%232B2E32' stroke-width='1.5' stroke-linecap='round' stroke-dasharray='5.77 5'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

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

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.2em; height: 1.2em; flex: none; }

.wrap {
  width: min(100% - 2 * var(--gutter), 1200px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* Letreiro: condensado, caixa alta */
.display {
  font-stretch: 66%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

h2.display { font-size: clamp(2.1rem, 4.6vw, 3.75rem); }

.label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Aviso de demonstração */
.demo-note {
  background: var(--ink);
  color: var(--panel-muted);
  font-size: 0.8125rem;
  text-align: center;
  padding: 8px var(--gutter);
}

/* Etiqueta costurada */
.tag {
  position: relative;
  display: inline-block;
  padding: 9px 22px 8px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 2px;
  font-stretch: 70%;
  font-weight: 800;
  font-size: 1.3125rem;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag::before,
.tag::after {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  border-left: 2px dashed var(--thread-on-dark);
}
.tag::before { left: 8px; }
.tag::after { right: 8px; }
.tag--small { font-size: 0.9375rem; padding: 7px 18px 6px; margin-right: 10px; }
.tag--small::before { left: 6px; }
.tag--small::after { right: 6px; }

/* Cabeçalho */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 20px;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  text-decoration: none;
}
.brand__sub { font-size: 0.75rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.02em; }
.nav { display: none; gap: 28px; margin-left: auto; font-size: 0.9375rem; font-weight: 500; }
.nav a { text-decoration: none; padding-block: 12px; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--thread); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--small { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }
.btn--whats { background: var(--whats); color: #fff; }
.btn--whats:hover { background: var(--whats-strong); }
.btn--line { border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn .icon { transition: transform 0.15s ease; }
.btn--line:hover .icon { transform: translateX(3px); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding-block: clamp(20px, 3.5vw, 48px) var(--section); }
.hero__title { font-size: clamp(2.7rem, 9.4vw, 7.25rem); line-height: 0.98; }
.stitched {
  font-style: normal;
  text-decoration: underline dashed var(--thread);
  text-decoration-thickness: 0.045em;
  text-underline-offset: 0.13em;
  text-decoration-skip-ink: none;
}
.hero__body {
  display: grid;
  gap: 36px;
  margin-top: clamp(24px, 3.5vw, 44px);
}
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); max-width: 34rem; color: var(--ink-soft); }
.hero__pitch .actions { margin-top: 28px; }

.rating {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 22px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
a.rating:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; }
.rating--static { margin-top: 0; }
.stars { color: var(--thread); letter-spacing: 0.12em; }

.hero__photos { display: flex; align-items: flex-start; gap: 10px; }
.photo img { width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--rule); }
.photo figcaption { margin-top: 8px; font-size: 0.8125rem; line-height: 1.35; color: var(--ink-soft); }
/* flex-grow proporcional à razão de aspecto: as duas fotos ficam com a mesma altura */
.photo--wheel { flex: 0.8 1 0; min-width: 0; }
.photo--wheel img { aspect-ratio: 4 / 5; object-position: 50% 42%; }
.photo--sofa { flex: 1.3333 1 0; min-width: 0; }
.photo--sofa img { aspect-ratio: 4 / 3; }

/* Costura dupla entre seções */
.seam {
  height: 8px;
  border: 0;
  margin-block: 0;
  background: var(--stitch) 0 0 repeat-x, var(--stitch) 0 100% repeat-x;
}

/* Seções */
.section { padding-block: var(--section); }
.section--tight { padding-top: 0; }
.section--last { padding-top: 0; }
.section__head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head > p { max-width: 24rem; color: var(--ink-soft); }

/* Serviços: lista de balcão, cada linha abre o WhatsApp com o pedido */
.ledger__group { border-top: 2px solid var(--ink); padding-top: 14px; }
.ledger__group + .ledger__group { margin-top: 40px; }
.ledger__rows { margin-top: 10px; }
.ledger__rows li + li { border-top: 1px solid var(--rule); }
.row {
  display: grid;
  gap: 6px;
  padding: 20px 0;
  text-decoration: none;
  transition: background-color 0.15s ease, padding 0.15s ease;
}
.row__name { font-size: clamp(1.75rem, 3vw, 2.375rem); }
.row__desc { color: var(--ink-soft); max-width: 32rem; }
.row__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--whats);
}
.row__go .icon { transition: transform 0.15s ease; }
.row:hover .row__go .icon { transform: translateX(4px); }
.row:hover .row__name { text-decoration: underline dashed var(--thread); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Como funciona: três nós na mesma linha */
.steps { display: grid; margin-top: clamp(32px, 5vw, 56px); }
.steps li {
  position: relative;
  padding: 26px 24px 28px 0;
  background: var(--stitch) 0 0 repeat-x;
}
.steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
}
.steps__n { display: block; font-size: 3.25rem; color: var(--ink); }
.steps h3 { margin-top: 10px; font-size: 1.125rem; font-weight: 700; }
.steps p { margin-top: 4px; color: var(--ink-soft); max-width: 20rem; }

/* Trabalhos */
.work { display: grid; gap: 36px; }
.work__text p { margin-top: 18px; color: var(--ink-soft); max-width: 22rem; }
.work__text .btn { margin-top: 24px; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.slot {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  aspect-ratio: 4 / 5;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(23, 24, 26, 0.045) 9px 10px), var(--paper);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
}
.work__slots figcaption { margin-top: 8px; font-size: 0.8125rem; line-height: 1.35; color: var(--ink-soft); }

/* Avaliações */
.reviews { display: grid; gap: 40px; }
.review figcaption { margin-top: 14px; font-size: 0.9375rem; font-weight: 700; }
.review figcaption::before { content: "— "; color: var(--thread); }
.review--lead blockquote p {
  font-size: clamp(1.3125rem, 2.3vw, 1.875rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.reviews__short { display: grid; gap: 0; align-content: start; }
.reviews__short .review { border-top: 1px solid var(--rule); padding-block: 22px; }
.reviews__short .review:last-child { border-bottom: 1px solid var(--rule); }
.reviews__short blockquote p { font-size: 1.3125rem; font-weight: 500; line-height: 1.3; }
.reviews__short figcaption { margin-top: 6px; }

/* Contato: painel de courvin preto, costura em losango */
.panel {
  position: relative;
  display: grid;
  gap: 40px;
  padding: clamp(40px, 7vw, 88px) clamp(28px, 6vw, 80px);
  background: var(--quilt) 0 0 / 56px 92px, var(--ink);
  color: var(--paper);
  border-radius: 6px;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px dashed var(--thread-on-dark);
  border-radius: 3px;
  pointer-events: none;
}
.panel > * { position: relative; }
.panel h2.display { font-size: clamp(2.5rem, 6vw, 4.75rem); }
.panel__main p { margin-top: 18px; max-width: 28rem; color: var(--panel-muted); }
.panel__main .actions { margin-top: 30px; }
.panel .btn--line { border-color: var(--paper); }
.panel .btn--line:hover { background: var(--paper); color: var(--ink); }
.panel__info { display: grid; gap: 22px; align-content: start; }
.panel__info .label { color: var(--panel-muted); margin-bottom: 4px; }
.panel__info a { text-underline-offset: 4px; text-decoration-color: var(--thread-on-dark); }
.panel :focus-visible { outline-color: var(--paper); }

/* Rodapé */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 28px 36px;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.footer p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 4px; }
.footer a { text-underline-offset: 4px; }

/* Barra fixa de orçamento, só no celular */
.dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 10;
  box-shadow: 0 6px 20px rgba(23, 24, 26, 0.28);
  transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
}
.dock.is-hidden { transform: translateY(140%); opacity: 0; visibility: hidden; }
body { padding-bottom: 76px; }

@media (min-width: 600px) {
  .row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto;
    align-items: center;
    gap: 24px;
    padding: 22px 12px 22px 0;
  }
  .row:hover { background: var(--paper); padding-left: 12px; padding-right: 0; }
  .row__go { margin-top: 0; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reviews__short { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
  .reviews__short .review { border-bottom: 1px solid var(--rule); }
}

@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .nav { display: flex; }
  .hero__title > span { display: block; }
  .hero__body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: end; }
  .hero__photos { gap: 12px; }
  .section__head { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); justify-content: space-between; align-items: end; gap: 48px; }
  .section__head > p { justify-self: end; }
  .ledger__group { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px; padding-top: 0; }
  .ledger__group > .label { padding-top: 24px; }
  .ledger__rows { margin-top: 0; }
  .ledger__group + .ledger__group { margin-top: 0; }
  .work { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: end; }
  .slots { gap: 12px; }
  .reviews { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 88px); }
  .reviews__short { grid-template-columns: 1fr; }
  .reviews__short .review:not(:last-child) { border-bottom: 0; }
  .panel { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
