/* Onnet - site público. Tokens: um fundo, uma tinta, um destaque. Uma família de fonte. */
:root {
  --ink: #0e1726;
  --bg: #ffffff;
  --tint: #f1f4f9;
  --accent: #ff8a1f;
  --accent-ink: #b35400;
  --orange: #ff8a1f;
  --on-accent: #0e1726;
  --muted: #4a5568;
  --muted-dark: #b9c3d6;
  --focus: #0e1726;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 23, 38, .10);
  --t-display: clamp(2.5rem, 5.2vw, 4.75rem);
  --t-h2: clamp(2rem, 3.6vw, 3rem);
  --t-h3: 1.5rem;
  --t-body: 1.125rem;
  --t-small: .9375rem;
  --gap-sec: clamp(72px, 10vw, 160px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hero :focus-visible, .top :focus-visible, .escuro :focus-visible, .rd :focus-visible { --focus: #ff8a1f; }
section[id] { scroll-margin-top: 16px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: #fff; color: var(--ink); padding: 12px 18px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border: 0; border-radius: 12px;
  background: var(--accent); color: var(--on-accent);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  touch-action: manipulation;
  transition: transform .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 44px; padding: 8px 20px; font-size: var(--t-small); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-cheio { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.seta { display: inline-block; transition: transform .18s ease; }
.btn:hover .seta, .port-link:hover .seta { transform: translateX(4px); }

/* Topo */
.top { background: var(--ink); color: #fff; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-block: 14px; }
.logo { font-size: var(--t-h3); font-weight: 800; letter-spacing: -.03em; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.logo .net { color: var(--orange); }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; font-size: var(--t-small); font-weight: 500; text-decoration: none; transition: opacity .18s ease; }
.menu a:hover { opacity: .7; }

/* Capa */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: #fff; min-height: clamp(580px, 82vh, 780px); display: flex; align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 700px); }
h1 { font-size: var(--t-display); line-height: 1; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; max-width: 14ch; }
h1 .dest { color: var(--orange); }
.sem-capa h1 { max-width: 18ch; }
.lead { margin-top: 24px; max-width: 46ch; color: var(--muted-dark); }
.acoes { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Itens de serviço da capa, em fichas com check */
.chips { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 14px; border-radius: 99px; background: rgba(255, 255, 255, .1); font-weight: 500; }
.chips svg { flex: none; width: 18px; height: 18px; color: var(--orange); }
.hero .acoes { margin-top: 32px; }
.hero .btn { min-height: 58px; padding: 0 32px; border-radius: 99px; }
.hero .btn:not(.btn-ghost) { box-shadow: 0 10px 32px rgba(255, 138, 31, .38); }
.hero .btn-ghost { background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }

/* Mosaico de sites ao fundo da capa (como no tenhaseusite): três colunas desencontradas e véu escuro atrás do texto */
.hero-mosaico { position: absolute; z-index: 0; top: -8%; bottom: -8%; left: 34%; right: -3%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; pointer-events: none; }
.mos-col { display: flex; flex-direction: column; gap: 18px; }
.mos-col:nth-child(1) { transform: translateY(-4%); }
.mos-col:nth-child(2) { transform: translateY(9%); }
.mos-col:nth-child(3) { transform: translateY(-9%); }
.mos-col .frame { flex: none; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 30%, rgba(14, 23, 38, .82) 48%, rgba(14, 23, 38, .22) 78%, rgba(14, 23, 38, .12) 100%); }

/* Moldura de navegador com a captura do site */
.frame { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.frame-bar { background: #e6ebf3; color: #3a4558; font-size: var(--t-small); padding: 6px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--tint); }
.frame.vazio .frame-nome { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 16px; background: var(--tint); font-size: var(--t-h3); font-weight: 800; text-align: center; letter-spacing: -.02em; }

/* Seções */
.sec { padding-block: var(--gap-sec); }
.tint { background: var(--tint); }
.escuro { background: var(--ink); color: #fff; }
.sec-cab { margin-bottom: clamp(32px, 5vw, 64px); max-width: 640px; }
h2 { font-size: var(--t-h2); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; }
h3 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.sec-cab p { margin-top: 16px; }
.vazio-msg { color: var(--muted); }

/* Portfólio */
.port { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px); }
.port-link { display: block; text-decoration: none; }
.port-link .frame { transition: transform .2s ease; margin-bottom: 20px; }
.port-link:hover .frame { transform: translateY(-4px); }
.port-link p { margin-top: 6px; color: var(--muted); }
.visitar { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--accent-ink); }

/* Serviços */
.serv { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.serv-cab { position: sticky; top: 32px; margin-bottom: 0; }
.serv-lista { display: grid; gap: 16px; }
.serv-item { background: #fff; border-radius: 18px; padding: 28px 32px; }
.serv-item p { margin-top: 8px; color: var(--muted); }

/* Empresas */
.emp { display: flex; flex-wrap: wrap; gap: 28px clamp(32px, 5vw, 72px); }
.emp li { display: flex; flex-direction: column; }
.emp-nome { font-size: var(--t-h2); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; text-decoration: none; transition: opacity .18s ease; }
a.emp-nome:hover { opacity: .55; }
.emp-seg { margin-top: 4px; font-size: var(--t-small); color: var(--muted); }

/* Contato */
.cont { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.cont .lead { margin-top: 20px; }
.cont-dados { margin-top: 40px; display: grid; gap: 20px; }
.cont-dados li { display: flex; flex-direction: column; font-size: var(--t-h3); font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.cont-dados span { font-size: var(--t-small); font-weight: 500; color: var(--muted-dark); }
.cont-dados a { text-decoration: none; }
.cont-dados a:hover { text-decoration: underline; text-underline-offset: 4px; }

.form { background: #fff; color: var(--ink); border-radius: 22px; padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 20px; }
.campo { display: grid; gap: 8px; }
.campo label { font-size: var(--t-small); font-weight: 700; }
.campo input, .campo textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border: 0; border-radius: 10px;
  background: var(--tint); color: var(--ink); font: inherit; resize: vertical;
}
.campo input::placeholder, .campo textarea::placeholder { color: #5b6577; opacity: 1; }
.campo input:focus-visible, .campo textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.armadilha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aviso { padding: 14px 16px; border-radius: 10px; font-weight: 500; }
.aviso.ok { background: #e7f6ec; color: #14532d; }
.aviso.erro { background: #fdecec; color: #7f1d1d; }

/* Rodapé */
.rodape { background: var(--ink); color: var(--muted-dark); font-size: var(--t-small); padding-block: 28px; }
.rodape-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.rodape a { display: inline-flex; align-items: center; min-height: 44px; }

/* Tablet e celular */
@media (max-width: 960px) {
  .serv, .cont { grid-template-columns: minmax(0, 1fr); }
  .hero-mosaico { left: -14%; right: -14%; opacity: .5; }
  .hero::after { background: rgba(14, 23, 38, .78); }
  .serv-cab { position: static; }
  h1, .sem-capa h1 { max-width: 16ch; }
}
@media (max-width: 720px) {
  .wrap { width: min(1200px, 100% - 32px); }
  .menu { order: 3; width: 100%; margin-left: -14px; }
  .port { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
  .chips li { min-height: 44px; padding-right: 16px; font-size: var(--t-small); }
  .hero .btn { min-height: 54px; padding: 0 26px; }
  .frame-bar { padding: 4px 10px; }
  .serv-item { padding: 22px 22px; }
}

/* ---------- WhatsApp ---------- */
:root { --wa: #0f7a3d; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa svg { flex: none; }
.btn-claro { background: var(--tint); color: var(--ink); }
.wa-bloco { display: grid; gap: 10px; }
.wa-ou { text-align: center; font-size: var(--t-small); color: var(--muted); }
.wa-fab {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 30;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(14, 23, 38, .28);
  touch-action: manipulation; transition: transform .18s ease;
}
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab:hover { transform: scale(1.07); }

/* ---------- Blog ---------- */
.h2 { font-size: var(--t-h2); line-height: 1.05; max-width: none; letter-spacing: -.03em; }
.pagina { padding-block: clamp(48px, 7vw, 96px) var(--gap-sec); }
.blog-cab { margin-bottom: clamp(32px, 5vw, 56px); }
.post-capa { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--tint); transition: transform .2s ease; }
.post-capa.sem { display: flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em; }
.post-card { display: grid; gap: 16px; text-decoration: none; align-content: start; }
.post-card:hover .post-capa { transform: translateY(-4px); }
.post-txt time { font-size: var(--t-small); color: var(--muted); }
.post-txt h3 { margin-top: 4px; text-wrap: balance; }
.post-txt p { margin-top: 8px; color: var(--muted); }
.blog-home { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 64px); align-items: start; }
.blog-home .destaque { grid-row: 1 / span 2; }
.blog-home .destaque h3 { font-size: var(--t-h2); line-height: 1.08; letter-spacing: -.03em; }
.blog-home .post-card:not(.destaque) { grid-template-columns: minmax(0, 190px) minmax(0, 1fr); align-items: center; gap: 20px; }
.blog-mais { margin-top: clamp(32px, 4vw, 48px); }
.blog-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 40px); }
.paginas { display: flex; gap: 8px; margin-top: 56px; flex-wrap: wrap; }
.paginas a { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--tint); text-decoration: none; font-weight: 700; }
.paginas a.atual { background: var(--ink); color: #fff; }

/* Artigo e textos longos */
.artigo { width: min(760px, 100% - 48px); }
.trilha { font-size: var(--t-small); color: var(--muted); margin-bottom: 24px; }
.trilha a { text-decoration: none; color: var(--accent-ink); }
.artigo-cab h1 { font-size: var(--t-h2); line-height: 1.08; letter-spacing: -.03em; max-width: none; }
.meta { margin-top: 12px; font-size: var(--t-small); color: var(--muted); }
.artigo-capa { margin-top: 32px; }
.texto { max-width: 68ch; line-height: 1.7; }
.artigo .texto { margin-top: 32px; max-width: none; }
.texto > * + * { margin-top: 1.1em; }
.texto h1 + * { margin-top: 1em; }
.texto h2 { margin-top: 2em; font-size: var(--t-h3); line-height: 1.2; letter-spacing: -.02em; }
.texto h3 { margin-top: 1.6em; font-size: var(--t-body); }
.texto a { color: var(--accent-ink); text-underline-offset: 3px; }
.corpo ul, .privacidade ul { list-style: disc; padding-left: 1.4em; }
.corpo ol { list-style: decimal; padding-left: 1.4em; }
.corpo li + li, .privacidade li + li { margin-top: .4em; }
.corpo code { background: var(--tint); padding: 1px 6px; border-radius: 6px; font-size: .9em; overflow-wrap: anywhere; }
.corpo blockquote { margin-inline: 0; background: var(--tint); border-radius: var(--radius); padding: 18px 22px; }
.compartilhar { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.compartilhar span { font-weight: 700; margin-right: 8px; }
.compartilhar a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--tint); text-decoration: none; font-size: var(--t-small); font-weight: 700; }
.artigo-cta { margin-top: 56px; background: var(--ink); color: #fff; border-radius: 22px; padding: clamp(24px, 4vw, 40px); }
.artigo-cta h2 { font-size: var(--t-h3); }
.artigo-cta p { margin-top: 8px; color: var(--muted-dark); }
.artigo-cta .acoes { margin-top: 24px; }
.outros { margin-top: var(--gap-sec); }
.outros h2 { margin-bottom: 28px; }

/* ---------- Rodapé (estrutura do tenhaseusite: marca, navegação, sites, últimas do blog, barra legal) ---------- */
.rd {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640' viewBox='0 0 640 640' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='2'%3E%3Ccircle cx='540' cy='540' r='110'/%3E%3Ccircle cx='540' cy='540' r='200'/%3E%3Ccircle cx='540' cy='540' r='290'/%3E%3Ccircle cx='540' cy='540' r='380'/%3E%3C/svg%3E") no-repeat right bottom / min(640px, 100%);
  color: var(--muted-dark); font-size: var(--t-small);
}
.rd-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding-block: clamp(56px, 7vw, 96px) 48px; }
.rd .logo { color: #fff; }
.rd-marca p { margin-top: 16px; max-width: 38ch; }
.rd-cta { margin-top: 20px; }
.rd-marca .rd-wa { margin-top: 16px; }
.rd-wa a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; color: #fff; text-decoration: none; }
.rd-wa svg { width: 22px; height: 22px; }
.rd h3 { color: #fff; font-size: var(--t-body); margin-bottom: 14px; }
.rd-col ul { display: grid; gap: 2px; }
.rd-col a { display: inline-flex; align-items: center; min-height: 36px; color: inherit; text-decoration: none; }
.rd-col a:hover, .rd-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.rd-col .rd-dois { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.rd-col .rd-blog { gap: 14px; }
.rd-blog a { min-height: 0; line-height: 1.4; }
.rd-blog small { display: block; margin-top: 2px; opacity: .8; }
.rd-barra { background: rgba(0, 0, 0, .28); padding-block: 14px; }
.rd-barra-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 24px; align-items: center; }
.rd-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.rd-links a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }

@media (max-width: 1080px) {
  .rd-grid { grid-template-columns: 1fr 1fr; }
  .blog-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .blog-home { grid-template-columns: minmax(0, 1fr); }
  .blog-home .destaque { grid-row: auto; }
}
@media (max-width: 720px) {
  .artigo { width: min(760px, 100% - 32px); }
  .wa-fab { width: 52px; height: 52px; }
  .wa-fab svg { width: 26px; height: 26px; }
  .rd-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .rd-barra { padding-bottom: 76px; }
  .blog-grade { grid-template-columns: minmax(0, 1fr); }
  .blog-home .post-card:not(.destaque) { grid-template-columns: minmax(0, 120px) minmax(0, 1fr); gap: 14px; }
}

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