/* ==========================================================================
   Site Pronto — /sitepronto/
   Vitrine de modelos de site por área de atuação.

   Depende de /shared/brand.css: tokens (--tofy-*), .tofy-container, .tofy-btn,
   .tofy-label e .tofy-tag vêm de lá e não são redefinidos aqui.

   A linha TOFY é branca em qualquer aparelho: esta folha não tem — e não pode
   ganhar — bloco @media (prefers-color-scheme: dark).
   Ver docs/CONSTRUCAO-DE-PAGINAS.md, seção 1.
   ========================================================================== */

/* ── Base ──────────────────────────────────────────────────────────────── */
body {
  margin: 0;
  background: var(--tofy-paper);
  color: var(--tofy-ink-soft);
  font-family: var(--tofy-font);
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  left: -9999px;
  z-index: 100;
  background: var(--tofy-ink);
  color: var(--tofy-paper);
  padding: 12px 18px;
  border-radius: var(--tofy-radius-sm);
  font-size: 14px;
  text-decoration: none;
}
.skip:focus { left: 16px; top: 16px; }

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

/* ── Cabeçalho ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--tofy-surface);
  border-bottom: 1px solid var(--tofy-line);
}
.sp-header {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--tofy-ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .18em;
  font-size: 14px;
}
.wordmark svg { width: 26px; height: 26px; flex: none; }

.sp-nav { display: flex; align-items: center; gap: 22px; }
.sp-nav a {
  color: var(--tofy-text-2);
  text-decoration: none;
  font-size: 14.5px;
  transition: color .2s var(--tofy-ease);
}
.sp-nav a:hover { color: var(--tofy-ink); }
.sp-nav__cta { font-size: 14px; }
.sp-nav__cta:hover { color: #fff; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.sp-hero {
  border-bottom: 1px solid var(--tofy-line-soft);
  padding: clamp(52px, 8vw, 104px) 0 clamp(44px, 6vw, 76px);
}
.sp-hero__inner { max-width: 780px; }

.sp-hero h1 {
  margin: 14px 0 0;
  color: var(--tofy-ink);
  font-size: clamp(34px, 6.2vw, 62px);
  line-height: 1.06;
  letter-spacing: -.02em;
  font-weight: 700;
}
.sp-hero__lead {
  margin: 20px 0 0;
  max-width: 56ch;
  font-size: clamp(16px, 1.7vw, 18.5px);
  line-height: 1.6;
}

.sp-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 30px 0 0;
}
.sp-price__value {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--tofy-ink);
  font-size: clamp(38px, 6vw, 54px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}
.sp-price__cur {
  font-size: .48em;
  font-weight: 600;
  color: var(--tofy-accent);
}
.sp-price__note {
  font-family: var(--tofy-mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tofy-muted);
}

.sp-hero__hint {
  margin: 26px 0 0;
  font-size: 15px;
  color: var(--tofy-text-2);
}

/* ── Grade de modelos ──────────────────────────────────────────────────── */
.sp-models { padding: clamp(48px, 7vw, 84px) 0 clamp(56px, 8vw, 96px); }

.sp-models__head { max-width: 620px; margin-bottom: clamp(30px, 4vw, 46px); }
.sp-models__head h2 {
  margin: 0 0 12px;
  color: var(--tofy-ink);
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.18;
  letter-spacing: -.015em;
  font-weight: 700;
}
.sp-models__head p { margin: 0; font-size: 16px; line-height: 1.6; }

.sp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  height: 100%;
  box-sizing: border-box;
  padding: 24px 22px 20px;
  background: var(--tofy-surface);
  border: 1px solid var(--tofy-line);
  border-radius: var(--tofy-radius);
  text-decoration: none;
  transition: border-color .22s var(--tofy-ease),
              transform .22s var(--tofy-ease),
              box-shadow .22s var(--tofy-ease);
}

/* Só o card que virou <a> reage — o <article> "Em breve" fica quieto. */
a.sp-card:hover {
  border-color: var(--tofy-accent-line);
  transform: translateY(-2px);
  box-shadow: var(--tofy-shadow);
}

/* Card do modelo que já existe: duas colunas, com a captura da página.
   O destaque é proposital — é o único que dá para visitar. */
.sp-grid__wide { grid-column: span 2; }

.sp-card--ready { padding: 0; overflow: hidden; }
.sp-card__shot {
  display: block;
  background: var(--tofy-surface-2);
  border-bottom: 1px solid var(--tofy-line);
}
.sp-card__shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}
.sp-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 22px 22px;
}
.sp-card--ready:hover .sp-card__shot img { opacity: .94; }

.sp-card__ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: 12px;
  background: var(--tofy-accent-tint);
  color: var(--tofy-accent);
}
.sp-card__ico svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sp-card h3 {
  margin: 0;
  color: var(--tofy-ink);
  font-size: 17px;
  line-height: 1.28;
  letter-spacing: -.01em;
  font-weight: 600;
}
.sp-card p {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.55;
  color: var(--tofy-text-2);
}
.sp-card .tofy-tag { margin-top: 6px; }

.sp-note {
  margin: clamp(28px, 4vw, 40px) 0 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--tofy-text-2);
}
.sp-note a { color: var(--tofy-accent); }

/* ── Rodapé ────────────────────────────────────────────────────────────── */
.sp-footer {
  background: var(--tofy-surface);
  border-top: 1px solid var(--tofy-line);
  padding: clamp(40px, 5vw, 60px) 0 0;
}
.sp-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}
.sp-footer__grid p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--tofy-text-2);
}
.sp-footer__grid nav,
.sp-footer__grid > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.sp-footer strong {
  color: var(--tofy-ink);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.sp-footer__grid a:not(.wordmark) {
  color: var(--tofy-text-2);
  text-decoration: none;
  font-size: 14px;
  width: fit-content;
  transition: color .2s var(--tofy-ease);
}
.sp-footer__grid a:not(.wordmark):hover { color: var(--tofy-ink); }

.sp-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--tofy-line-soft);
  font-size: 13px;
  color: var(--tofy-muted);
}

/* ── WhatsApp flutuante ────────────────────────────────────────────────── */
.sp-whats {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 22px rgba(17, 17, 20, .22);
  transition: transform .22s var(--tofy-ease);
}
.sp-whats svg { width: 27px; height: 27px; }
.sp-whats:hover { transform: scale(1.06); }

/* ── Telas menores ─────────────────────────────────────────────────────── */
/* Acima de 861px nada muda: a gaveta de shared/tofy-mobile.css assume o
   cabeçalho abaixo disso e esconde o .sp-nav por conta própria. */
@media (max-width: 860px) {
  .sp-hero h1 br { display: none; }
}

@media (max-width: 700px) {
  .sp-footer__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}

/* No celular os links do rodapé são a navegação de verdade: ganham área
   vertical para o toque, sem mudar o tamanho do texto. O espaçamento da
   coluna é reduzido na mesma medida, então o bloco não cresce. */
@media (max-width: 860px) {
  .sp-footer__grid nav,
  .sp-footer__grid > div:last-child { gap: 0; }
  .sp-footer__grid a:not(.wordmark) { padding-block: 9px; }
  .sp-footer strong { margin-bottom: 6px; }
}

@media (max-width: 560px) {
  /* Com uma coluna só, "ocupar duas" não existe: o card voltaria a
     transbordar a grade. */
  .sp-grid__wide { grid-column: auto; }
}

@media (max-width: 460px) {
  .sp-grid { grid-template-columns: 1fr; }
  .sp-footer__grid { grid-template-columns: 1fr; }
  .sp-footer__bottom { flex-direction: column; }
  .sp-whats { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
