/* ============ Cores e fontes do cliente: troque aqui ============ */
:root {
  --cor-fundo: #E8E4DB;        /* linho: fundo da página */
  --cor-papel: #F7F5F0;        /* papel: ficha de preços, cartões */
  --cor-fundo-2: #DCD6CA;      /* linho mais escuro: faixa do depoimento */
  --cor-tinta: #23211C;        /* texto e rodapé */
  --cor-tinta-suave: #5C5549;  /* notas e descrições */
  --cor-destaque: #4E5A2B;     /* verde-oliva: botões e faixa de serviços */
  --cor-destaque-escuro: #3D4721;
  --cor-sobre-destaque: #E8E4DB;
  --cor-rodape-suave: #BDB5A6;

  --fonte-titulo: "Rokkitt", "Rockwell", Georgia, serif;
  --fonte-texto: "Literata", Georgia, "Times New Roman", serif;

  --t-nota: 0.875rem;
  --t-texto: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --t-chamada: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --t-titulo: clamp(2rem, 1.45rem + 2.2vw, 3.25rem);

  --margem: clamp(20px, 4vw, 56px);
  --altura-topo: 76px;
}

@font-face {
  font-family: "Rokkitt";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url(assets/fonts/rokkitt-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/literata-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/literata-italic-latin.woff2) format("woff2");
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; -webkit-tap-highlight-color: rgba(78, 90, 43, .18); }
[id] { scroll-margin-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--cor-fundo);
  color: var(--cor-tinta);
  font-family: var(--fonte-texto);
  font-size: var(--t-texto);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--cor-destaque); outline-offset: 3px; }
.no-escuro :focus-visible, .no-escuro:focus-visible { outline-color: var(--cor-sobre-destaque); }
::selection { background: var(--cor-destaque); color: var(--cor-sobre-destaque); }

.so-leitor {
  position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.pular {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--cor-tinta); color: var(--cor-fundo);
  padding: 12px 18px; text-decoration: none;
}
.pular:focus { top: 12px; }

.titulo {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.9;
}

/* Botões: um formato só, cantos retos */
.botao {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--cor-destaque); color: var(--cor-sobre-destaque);
  font-weight: 600; font-size: var(--t-texto); text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
.botao:hover { background: var(--cor-destaque-escuro); }
.botao:active { transform: translateY(1px) scale(.98); }
.botao-pequeno { min-height: 44px; padding: 0 18px; }
.link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 5px; transition: text-underline-offset .2s ease;
}
.link:hover { text-underline-offset: 8px; }

/* ============ Topo ============ */
.topo {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--altura-topo); padding: 0 var(--margem);
}
.marca {
  font-size: var(--t-chamada); text-decoration: none; line-height: 1;
  display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap;
}
.topo nav ul { display: flex; gap: 8px 28px; }
.topo nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; position: relative;
}
.topo nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.topo nav a:hover::after { transform: scaleX(1); }
.topo-acoes { display: flex; align-items: center; gap: 28px; }

/* ============ Palco: texto à esquerda, foto fixa à direita ============ */
.palco { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
.palco-foto { grid-column: 2; grid-row: 1 / span 2; background: var(--cor-destaque); }
.palco-foto-fixa {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: var(--cor-tinta);
}
.palco-foto img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.palco-foto .foto-2 { opacity: 0; }

.abertura {
  grid-column: 1; grid-row: 1;
  display: flex; flex-direction: column;
  min-height: calc(100svh - var(--altura-topo));
  padding: 0 var(--margem) 96px;
}
.fita {
  height: 52px; margin: 0 calc(var(--margem) * -1) 0; overflow: hidden;
  background: var(--cor-papel); color: var(--cor-tinta);
}
.fita svg { display: block; height: 52px; width: auto; }
.abertura-texto {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 8vh, 96px) 0 40px;
}
.abertura h1 { font-size: clamp(2.5rem, 6vw, 6.5rem); text-wrap: balance; }
.abertura .chamada {
  font-size: var(--t-chamada); line-height: 1.45; max-width: 30ch;
  margin-top: 28px;
}
.abertura-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 36px; }
.abertura-rodape { font-size: var(--t-nota); color: var(--cor-tinta-suave); line-height: 1.5; }
.abertura-rodape p + p { margin-top: 2px; }

/* ============ Serviços: ficha de papel com borda de tesoura de picotar ============ */
.servicos {
  grid-column: 1; grid-row: 2;
  background: var(--cor-destaque); color: var(--cor-tinta);
  padding: 96px var(--margem) 104px;
}
.ficha {
  position: relative; max-width: 600px; margin: 0 auto;
  background: var(--cor-papel);
  padding: 56px clamp(20px, 4vw, 52px) 48px;
}
.ficha::before, .ficha::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: var(--cor-papel);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10'%3E%3Cpath d='M0 10L8 0l8 10z'/%3E%3C/svg%3E") 0 0 / 16px 10px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10'%3E%3Cpath d='M0 10L8 0l8 10z'/%3E%3C/svg%3E") 0 0 / 16px 10px repeat-x;
}
.ficha::before { top: -10px; }
.ficha::after { bottom: -10px; transform: scaleY(-1); }
.ficha h2 { font-size: var(--t-titulo); text-align: center; }
.ficha-nota {
  text-align: center; font-size: var(--t-nota); color: var(--cor-tinta-suave);
  max-width: 36ch; margin: 14px auto 36px; line-height: 1.5;
}
.lista-servicos li + li { margin-top: 4px; }
.servico {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 20px;
  padding: 14px 14px; margin: 0 -14px;
  text-decoration: none; transition: background-color .2s ease;
}
.servico:hover { background: var(--cor-fundo); }
.servico:active { background: var(--cor-fundo-2); }
.servico-nome { font-weight: 600; line-height: 1.35; }
.servico:hover .servico-nome { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.servico-preco {
  grid-row: 1 / span 2; grid-column: 2; align-self: center;
  text-align: right; font-weight: 600; white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums; line-height: 1.25;
}
.servico-preco small {
  display: block; font-weight: 400; font-size: var(--t-nota); color: var(--cor-tinta-suave);
}
.servico-desc { font-size: var(--t-nota); color: var(--cor-tinta-suave); line-height: 1.45; }
.ficha-pe {
  margin-top: 36px; text-align: center; font-size: var(--t-nota); line-height: 1.55;
  color: var(--cor-tinta-suave);
}
.ficha-pe .link { color: var(--cor-tinta); font-size: var(--t-texto); }

/* ============ Grade larga (seções depois do palco) ============ */
.largura {
  max-width: 1320px; margin: 0 auto; padding: 0 var(--margem);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
}

/* Sobre */
.sobre { padding: clamp(88px, 10vw, 144px) 0; }
.sobre figure { grid-column: 1 / span 5; }
.sobre figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.sobre-carta { grid-column: 7 / span 5; align-self: center; }
.sobre h2 { font-size: var(--t-titulo); }
.sobre-carta p { max-width: 46ch; }
.sobre h2 + p { margin-top: 32px; }
.sobre-carta p + p { margin-top: 18px; }
.assinatura { margin-top: 32px; }
.assinatura strong { display: block; font-style: italic; font-weight: 400; font-size: var(--t-chamada); }
.assinatura span { font-size: var(--t-nota); color: var(--cor-tinta-suave); }

/* Depoimento */
.depoimento { background: var(--cor-fundo-2); padding: clamp(88px, 12vw, 160px) 0; }
.depoimento figure.foto { grid-column: 1 / span 6; }
.depoimento figure.foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.depoimento .citacao { grid-column: 8 / span 5; margin: 160px 0 0; }
.depoimento blockquote p {
  font-style: italic; font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
  line-height: 1.3; max-width: 30ch;
}
.depoimento .autor { margin-top: 28px; }
.depoimento .autor span { display: block; color: var(--cor-tinta-suave); font-size: var(--t-nota); }

/* Endereço: cartão de visita sobre a foto */
.endereco { position: relative; min-height: 92svh; }
.endereco > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.cartao {
  position: relative; z-index: 1; width: min(420px, 100%);
  margin-left: var(--margem); top: 64px;
  background: var(--cor-papel); padding: 36px 32px 0;
  display: flex; flex-direction: column;
}
.endereco { padding-bottom: 128px; }
.cartao h2 { font-size: var(--t-titulo); }
.cartao address { font-style: normal; margin-top: 20px; line-height: 1.5; }
.cartao dl { margin-top: 22px; font-variant-numeric: tabular-nums lining-nums; }
.cartao dl div { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
.cartao dd { text-align: right; font-weight: 600; }
.cartao-tel { margin-top: 18px; }
.cartao-tel .link { min-height: 44px; }
.cartao .botao { margin: 26px -32px 0; min-height: 56px; }

/* Chamada final */
.final { padding: 24vh 0 18vh; }
.final-texto { grid-column: 7 / span 5; }
.final p { font-size: var(--t-chamada); line-height: 1.45; max-width: 30ch; }
.final .botao { margin-top: 28px; }

/* Rodapé */
.rodape {
  background: var(--cor-tinta); color: var(--cor-fundo);
  padding: 72px 0 56px; overflow: hidden;
}
.rodape .largura { row-gap: 32px; }
.rodape-col { grid-column: span 4; line-height: 1.6; }
.rodape-col p, .rodape-col li { color: var(--cor-rodape-suave); }
.rodape-col a { color: var(--cor-fundo); }
.rodape-col ul a { display: inline-flex; min-height: 44px; align-items: center; }
.rodape-titulo { color: var(--cor-fundo) !important; font-weight: 600; margin-bottom: 6px; }
.rodape-nome {
  grid-column: 1 / -1; margin-top: 56px;
  font-size: clamp(2.4rem, 11vw, 11rem); line-height: .86; color: var(--cor-fundo);
  text-wrap: balance;
}
.rodape-legal {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px;
  font-size: var(--t-nota); color: var(--cor-rodape-suave);
}
.rodape-legal a { color: var(--cor-fundo); }
.rodape-legal .link { min-height: 44px; font-weight: 400; }

/* Selo Willko */
.selo {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  background: var(--cor-tinta); color: var(--cor-fundo);
  padding: 12px max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  font-size: var(--t-nota); line-height: 1.2;
}
.selo a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--cor-fundo); color: var(--cor-tinta); border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: background-color .2s ease;
}
.selo a:hover { background: var(--cor-papel); }
.selo a:focus-visible { outline-color: var(--cor-fundo); }

/* ============ Movimento (só CSS) ============ */
@keyframes surge { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes troca { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes respira { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes fita-corre { from { transform: translateX(-56px); } to { transform: none; } }
@keyframes sobe { from { transform: translateY(40px); } to { transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .abertura h1, .abertura .chamada, .abertura-acoes, .abertura-rodape {
    animation: surge .8s cubic-bezier(.2, .7, .2, 1) both;
  }
  .abertura .chamada { animation-delay: .08s; }
  .abertura-acoes { animation-delay: .16s; }
  .abertura-rodape { animation-delay: .24s; }
  .fita svg { animation: fita-corre 1.2s cubic-bezier(.2, .7, .2, 1) both; }
  .palco-foto img { animation: respira 14s ease-in-out 4 alternate both; }
  .palco-foto .foto-2 { animation: troca 14s ease-in-out 3s 3 both, respira 14s ease-in-out 4 alternate both; }

  @supports (animation-timeline: view()) {
    .entra, .entra-2, .entra-3 {
      animation: sobe linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    .entra-2 { animation-range: entry 10% entry 80%; }
    .entra-3 { animation-range: entry 20% entry 90%; }
  }
}

/* ============ Telas menores ============ */
@media (max-width: 1080px) {
  .topo nav { display: none; }
}
@media (max-width: 900px) {
  :root { --altura-topo: 68px; }
  .marca { font-size: 1.25rem; }
  .palco { grid-template-columns: minmax(0, 1fr); }
  .palco-foto { grid-column: 1; grid-row: 1; }
  .palco-foto-fixa { position: relative; height: 34svh; min-height: 220px; }
  .abertura {
    grid-row: 2; min-height: 0; position: relative; z-index: 1;
    margin: -28px 8px 0; padding: 0 16px 32px; background: var(--cor-fundo);
  }
  .fita { height: 40px; margin: 0 -16px; }
  .fita svg { height: 40px; }
  .abertura-texto { padding: 28px 0 28px; }
  .abertura h1 { font-size: clamp(2.3rem, 11vw, 5rem); }
  .abertura .chamada { margin-top: 16px; }
  .abertura-acoes { gap: 4px 24px; }
  .abertura-acoes { margin-top: 24px; }
  .servicos { grid-row: 3; padding: 72px 10px 80px; margin-top: 32px; }
  .ficha { padding: 44px 18px 36px; }
  .servico { padding: 12px 10px; margin: 0 -10px; gap: 2px 14px; }

  .largura { grid-template-columns: minmax(0, 1fr); }
  .sobre figure { grid-column: 1; width: 82%; }
  .sobre-carta { grid-column: 1; margin-top: 48px; }
  .depoimento figure.foto { grid-column: 1; width: 72%; }
  .depoimento .citacao { grid-column: 1; margin-top: 40px; }

  .endereco { min-height: 0; padding-bottom: 0; }
  .endereco > img { position: relative; height: 62svh; min-height: 300px; }
  .cartao { top: 0; margin: -80px 16px 0; width: auto; padding: 28px 22px 0; }
  .cartao .botao { margin: 24px -22px 0; }

  .final { padding: 18vh 0 14vh; }
  .final-texto { grid-column: 1; }
  .rodape { padding: 56px 0 36px; }
  .rodape-col { grid-column: 1; }
  .rodape-nome { font-size: 16vw; margin-top: 24px; }
}
