/* Hub Smart Home — site estático (réplica do WordPress/Elementor) */
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/worksans-latin.woff2) format("woff2");
}

:root {
  --bg: #111111;
  --bg-2: #181818;
  --bg-3: #1b1b1b;
  --light: #ffffff;
  --light-2: #f4f4f5;
  --text: #ffffff;
  --muted: #cbcbcb;
  --btn: #fafafa;
  --grad: linear-gradient(270deg, #fd22d4 26.69%, #df5a3d 72.37%);
  --wa: #25d366;
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #fff; color: #111; padding: 8px 16px; border-radius: 4px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid #fd22d4; outline-offset: 3px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 180px; height: 40px; padding: 0 28px;
  background: var(--btn); color: #111; border: 0; border-radius: 30px;
  font: 500 15px/1 "Work Sans", sans-serif; letter-spacing: .05em; text-transform: uppercase;
  cursor: pointer; transition: transform .2s ease, background .2s ease;
}
.btn:hover { background: #fff; transform: translateY(-2px); }
.btn--wide { min-width: 300px; }
.btn--sm { min-width: 130px; height: 36px; font-size: 12px; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px 40px;
}
.site-header--solid { position: sticky; background: var(--bg); }
.site-header nav { display: flex; gap: 40px; }
.site-header nav.right { justify-content: flex-end; }
.site-header nav a { font-size: 15px; font-weight: 400; opacity: .92; transition: opacity .2s; }
.site-header nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.site-header .logo img { width: 92px; height: 40px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; justify-self: end; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; border-radius: 2px; }
.menu-toggle span:nth-child(2) { width: 20px; margin-left: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: min(84svh, 56.25vw); min-height: 520px; max-height: 900px;
  background: #0b0b0b; overflow: hidden;
}
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img { object-fit: cover; object-position: 50% 60%; }
.hero::after { /* leve véu para legibilidade do texto */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 100%);
}
.hero__content { position: absolute; z-index: 2; left: 11%; top: 50%; transform: translateY(-50%); max-width: 640px; }
.hero__title {
  font-size: clamp(30px, 3vw, 46px); font-weight: 400; line-height: 1.12; letter-spacing: .01em;
  text-shadow: 0 1px 14px rgba(0,0,0,.4);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: scrollcue 1.8s infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Seções ---------- */
section { position: relative; }
.center { text-align: center; }
.title-xl { font-size: 64px; font-weight: 500; line-height: 1.1; }
.title-lg { font-size: 36px; font-weight: 400; line-height: 1.2; }
.lead { font-size: 18px; font-weight: 400; line-height: 1.45; }
.intro { padding: 70px 20px 40px; }
.intro .title-lg { margin-top: 4px; font-size: 30px; }
.intro .lead { max-width: 500px; margin: 12px auto 0; }

/* Carrossel genérico */
.carousel { position: relative; }
.carousel__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; gap: 0;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item { flex: 0 0 auto; scroll-snap-align: start; }
.carousel--marquee .carousel__track { overflow: hidden; scroll-snap-type: none; touch-action: pan-y; cursor: grab; }
.carousel--marquee .carousel__track:active { cursor: grabbing; }
.carousel__strip { display: flex; width: 100%; will-change: transform; user-select: none; }
.carousel__strip img { -webkit-user-drag: none; }
.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: rgba(17,17,17,.72); color: #fff; cursor: pointer; backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12); transition: background .2s;
}
.carousel__arrow:hover { background: rgba(40,40,40,.9); }
.carousel__arrow svg { width: 22px; height: 22px; }
.carousel__arrow--prev { left: 12px; }
.carousel__arrow--next { right: 12px; }

.products { padding: 56px 0 110px; }
.products .carousel__item { width: calc(100% / 7); }
.product { display: flex; flex-direction: column; align-items: center; gap: 30px; padding: 0 12px; text-align: center; }
.product { padding-top: 6px; }
.product img { width: 200px; height: 200px; object-fit: contain; transition: transform .3s; }
.products .carousel__arrow { top: 100px; }
.product:hover img { transform: scale(1.05); }
.product span { font-size: 16px; min-height: 48px; }

/* Soluções (v1.2) — 2 colunas, anel em CSS, texto nunca sobre a imagem */
.sol { padding: clamp(80px, 9vw, 130px) 24px; overflow: hidden; }
.sol--light { background: #fff; color: #1a1a1a; }
.sol--gray { background: var(--light-2); color: #1a1a1a; }
.sol--dark { background: var(--bg-2); color: #fff; }
.sol__inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 6vw, 96px);
}
.sol--flip .sol__text { order: 2; }
.sol__eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin-bottom: 18px; }
.sol__title {
  font-size: clamp(48px, 6.2vw, 92px); font-weight: 300; line-height: .98; letter-spacing: -.01em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .08em; /* evita cortar descendentes (ç, g) no background-clip */
}
.sol__desc { margin-top: 22px; font-size: 19px; font-weight: 400; line-height: 1.5; max-width: 470px; opacity: .85; }
.sol__points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.sol__points li { position: relative; padding-left: 28px; font-size: 16px; }
.sol__points li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 0 3px rgba(253, 34, 212, .12);
}
.sol__chips { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sol__chips a {
  display: inline-block; padding: 8px 16px; border-radius: 30px; font-size: 14px;
  border: 1px solid rgba(0, 0, 0, .14); transition: border-color .2s, background .2s;
}
.sol--dark .sol__chips a { border-color: rgba(255, 255, 255, .2); }
.sol__chips a:hover { border-color: #fd22d4; background: rgba(253, 34, 212, .06); }
.sol__cta { margin-top: 34px; gap: 10px; }
.sol--light .sol__cta, .sol--gray .sol__cta { background: #111; color: #fff; }
.sol--light .sol__cta:hover, .sol--gray .sol__cta:hover { background: #2a2a2a; }
.sol__stage { position: relative; aspect-ratio: 1; display: grid; place-items: center; max-width: 560px; width: 100%; justify-self: center; }
.sol__ring {
  position: absolute; inset: 6%; border-radius: 50%; padding: clamp(22px, 3vw, 38px);
  background: conic-gradient(from 200deg, #df5a3d, #fd22d4, #df5a3d);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.sol__stage::before { /* halo suave dentro do anel */
  content: ""; position: absolute; inset: 22%; border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 34, 212, .14), transparent 70%);
}
.sol--dark .sol__stage::before { background: radial-gradient(circle, rgba(253, 34, 212, .22), transparent 70%); }
.sol__img {
  position: relative; z-index: 1; width: 78%; height: auto; max-height: 78%; object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .18));
  transition: transform .6s ease;
}
.sol--dark .sol__img { filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)); }
.sol__stage:hover .sol__img { transform: translateY(-8px); }
.sol__stage:hover .sol__ring { transform: rotate(40deg); }

/* Marcas */
.brands { padding: 130px 40px 110px; }
.brands h2 { margin-bottom: 70px; font-size: 52px; }
.brands__grid { max-width: 1240px; margin: 0 auto; }
.brands__grid .carousel__item { width: 150px; }
.brand img { width: 150px; height: 150px; object-fit: contain; filter: grayscale(1) brightness(1.7); opacity: .85; transition: opacity .2s, filter .2s, transform .2s; }
.brand:hover img { transform: scale(1.04); }
.brand:hover img { opacity: 1; filter: grayscale(1) brightness(2.4); }

/* Onde comprar */
.store { display: grid; grid-template-columns: 1fr 1fr; min-height: 855px; }
.store__media { background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.store__media img { width: 564px; max-width: 90%; }
.store__text { display: flex; flex-direction: column; justify-content: center; padding: 60px 100px; max-width: 720px; }
.store__text .logo { width: 120px; margin-bottom: 40px; }
.store__text .logo--amazon { width: 100px; }
.store__text h2 { font-size: 48px; font-weight: 400; color: #cbcbcb; line-height: 1.1; }
.store__text .btn { align-self: flex-start; }
.store__text p { margin: 50px 0 60px; font-size: 16px; line-height: 1.5; max-width: 520px; }

/* Comunidade */
.community { padding: 120px 80px; }
.community__box {
  max-width: var(--max); margin: 0 auto; background: var(--bg-2); border-radius: 20px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 20px;
  padding: 80px 20px;
}
.community__title { padding-left: 20px; }
.community__title img { width: 360px; }
.community__phone { justify-self: center; width: 300px; }
.community__cta { display: flex; flex-direction: column; gap: 36px; padding-right: 60px; }
.community__cta p { font-size: 18px; line-height: 1.6; }

/* Blog (externo) */
.blog { padding: 80px 50px 150px; }
.blog .lead { max-width: 500px; margin: 16px auto 70px; }
.blog__grid { max-width: 1340px; margin: 0 auto; }
.post-card { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 539 / 800; max-height: 650px; background: #1b1b1b; }
.post-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.post-card:hover img { transform: scale(1.03); }

/* Contato */
.contact { padding: 150px 20px 150px; }
.contact h2 { font-size: 64px; font-weight: 500; line-height: 1; }
.contact .btn { margin-top: 60px; }

/* Footer */
.site-footer {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: 20px 150px 26px 30px; /* direita livre para o .wa-float (right 75 + 50) */
}
.social { display: flex; gap: 20px; }
.social a { width: 44px; height: 44px; border-radius: 50%; background: #1b1b1b; display: grid; place-items: center; transition: background .2s; }
.social a:hover { background: #2a2a2a; }
.social svg { width: 20px; height: 20px; fill: #fff; }
.site-footer .logo img { width: 92px; height: 40px; }
.legal { display: flex; justify-content: flex-end; align-items: center; gap: 14px; text-align: right; font-size: 10px; line-height: 1.6; letter-spacing: .04em; }
.legal .agency img { width: 34px; }
.photo-credit { grid-column: 1 / -1; text-align: center; font-size: 10px; color: #8a8a8a; letter-spacing: .03em; }
.photo-credit a { text-decoration: underline; text-underline-offset: 2px; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 75px; bottom: 60px; z-index: 60;
  width: 50px; height: 50px; border-radius: 50%; background: var(--wa);
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.35);
  animation: fadeInUp 1.2s both; transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float img { width: 50px; height: 50px; }

/* Modais (contato / menu mobile) */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(0,0,0,.6); align-items: center; justify-content: center; padding: 20px;
}
.modal.is-open { display: flex; }
.modal__box {
  position: relative; width: 100%; max-width: 560px; background: var(--bg-2); border-radius: 20px;
  padding: 70px 40px 60px; text-align: center; animation: fadeInUp .8s both;
}
.modal__box h2 { font-size: 36px; font-weight: 400; margin-bottom: 40px; }
.modal__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.modal__close { position: absolute; top: 18px; right: 18px; background: none; border: 0; cursor: pointer; padding: 6px; }
.modal__close img { width: 22px; }

.menu-panel { align-items: flex-end; padding: 0; }
.menu-panel .modal__box {
  max-width: none; height: 100%; border-radius: 0; background: var(--bg);
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  padding: 24px 24px 40px; animation: slideInUp .8s both;
}
.menu-panel__top { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 60px; }
.menu-panel__top img.welcome { width: 194px; }
.menu-panel nav { display: flex; flex-direction: column; gap: 28px; }
.menu-panel nav a { font-size: 28px; font-weight: 400; }

@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 40px, 0); } to { opacity: 1; transform: none; } }
@keyframes slideInUp { from { transform: translate3d(0, 100%, 0); } to { transform: none; } }

/* Animação de entrada (equivalente ao fadeIn do Elementor) */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float, .modal__box { animation: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1366px) {
  .store__text { padding: 60px; }
}
@media (max-width: 1024px) {
  .site-header nav { gap: 24px; }
  .products .carousel__item { width: calc(100% / 4); }
  .store { grid-template-columns: 1fr; min-height: 0; }
  .store__media { min-height: 420px; }
  .store__media img { width: auto; max-height: 360px; }
  .store .store__text { order: -1; margin: 0 !important; padding: 80px 30px 40px; }
  .sol__inner { grid-template-columns: 1fr; }
  .sol__stage { max-width: 440px; order: -1; }
  .sol--flip .sol__text { order: 0; }
  .community { padding: 80px 20px; }
  .community__box { grid-template-columns: 1fr; text-align: center; padding: 60px 24px; }
  .community__title { padding: 0; justify-self: center; }
  .community__cta { padding: 0; align-items: center; }
  .community__cta .btn { width: 100%; max-width: 300px; }
}
@media (max-width: 767px) {
  .site-header { grid-template-columns: auto 1fr; padding: 16px 14px; }
  .site-header nav { display: none; }
  .site-header .logo { justify-self: start; }
  .site-header .logo img { width: 70px; height: 32px; }
  .menu-toggle { display: block; }
  .hero { height: 78svh; min-height: 540px; max-height: 720px; }
  .hero__content { left: 20px; right: 20px; top: auto; bottom: 90px; transform: none; }
  .hero__title { font-size: 32px; }
  .hero__ctas { flex-direction: column; margin-top: 24px; }
  .hero__ctas .btn { width: 100%; }
  .hero__scroll { display: none; }
  .hero::after { background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.15) 100%); }
  .title-xl { font-size: 36px; }
  .intro .title-lg { font-size: 18px; }
  .intro .lead { font-size: 14px; }
  .products { padding: 60px 0 70px; }
  .products .carousel__arrow { top: 80px; width: 38px; height: 38px; }
  .products .carousel__item { width: 50%; }
  .product { gap: 20px; }
  .product img { width: 150px; height: 150px; }
  .product span { font-size: 14px; }
  .brands { padding: 100px 0 40px; }
  .brands h2 { margin-bottom: 40px; font-size: 32px; }
  .brands__grid .carousel__item { width: 33.333%; display: flex; justify-content: center; }
  .brand img { width: 92px; height: 92px; }
  .brands .carousel__arrow { width: 34px; height: 34px; }
  .brands__grid { padding: 0 44px; }
  .brands .carousel__arrow--prev { left: 4px; }
  .brands .carousel__arrow--next { right: 4px; }
  .sol { padding: 64px 20px 72px; }
  .sol__desc { font-size: 17px; }
  .sol__stage { max-width: 320px; }
  .sol__cta { width: 100%; }
  .store__media { min-height: 340px; }
  .store__media img { max-height: 290px; }
  .store__text .btn { align-self: stretch; }
  .store__text h2 { font-size: 36px; }
  .store__text p { margin: 40px 0; }
  .blog { padding: 60px 0 120px; }
  .blog .lead { font-size: 14px; padding: 0 16px; margin-bottom: 50px; }
  .blog .carousel__track { gap: 10px; }
  .blog__grid .carousel__item { width: 75%; scroll-snap-align: center; }
  .blog__grid .carousel__item:first-child { margin-left: 12.5%; }
  .blog__grid .carousel__item:last-child { margin-right: 12.5%; }
  .contact { padding: 100px 16px 100px; }
  #blog-t { font-size: 32px; }
  .contact h2 { font-size: 36px; }
  .contact .btn { width: 100%; max-width: 300px; }
  .site-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 20px 30px 100px; } /* base livre para o .wa-float */
  .legal { flex-direction: column; justify-content: center; text-align: center; }
  .wa-float { right: 24px; bottom: 24px; }
  .modal__box h2 { font-size: 28px; }
}
@media (min-width: 768px) {
  .brands__grid .carousel__arrow, .blog .carousel__arrow { display: none; }
  .brands .carousel__track { overflow: visible; flex-wrap: wrap; justify-content: center; gap: 30px 60px; }
  .blog .carousel__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .blog .carousel__item { width: auto; }
}

/* ---------- Blog (blog.hubsmarthome.com.br) — tema claro v1.4 ---------- */
/* Neutros claros (guia de marca Hub, estilo Apple) + destaque rosa/laranja do site. Cabeçalho e rodapé seguem escuros. */
.blog-light {
  --b-bg: #f5f5f7; --b-card: #fff; --b-ink: #1d1d1f; --b-ink-2: #3a3a3c; --b-muted: #6e6e73;
  --b-line: rgba(0,0,0,.1); --b-link: #b0127f; --b-soft: #fcebf6;
  --b-shadow: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --b-shadow-hi: 0 2px 6px rgba(0,0,0,.06), 0 12px 28px rgba(0,0,0,.08);
  background: var(--b-bg); color: var(--b-ink); letter-spacing: .005em;
}
.blog-light :focus-visible { outline-color: var(--b-link); }
.blog-light .site-header, .blog-light .modal, .blog-light .site-footer { color: #fff; letter-spacing: .02em; }
.blog-light .site-footer { background: #111; }
.blog-main { max-width: 1200px; margin: 0 auto; padding: 48px 24px 80px; min-height: 60vh; }
.blog-main > h1 { font-size: 34px; font-weight: 500; margin-bottom: 24px; }
.blog-main > .post-body { font-size: 17px; }
.blog-main .post-body a, .blog-main > p a { color: var(--b-link); text-decoration: underline; }

/* Capas por tema */
.cover { position: relative; display: grid; place-items: center; aspect-ratio: 5 / 2; background: linear-gradient(var(--ang, 135deg), var(--c1), var(--c2)); color: var(--ink); overflow: hidden; }
.cover::before { content: ""; position: absolute; height: 72%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.55); }
.cover svg { position: relative; width: 44px; height: 44px; }
.cards .card:nth-child(3n+2) .cover { --ang: 200deg; }
.cards .card:nth-child(3n) .cover { --ang: 290deg; }
.cover--blue   { --c1: #eaf3ff; --c2: #cfe3ff; --ink: #0068db; }
.cover--violet { --c1: #f1ecff; --c2: #dcd2ff; --ink: #5b34c4; }
.cover--teal   { --c1: #e2f7f6; --c2: #c3edea; --ink: #0a7373; }
.cover--amber  { --c1: #fff5e3; --c2: #ffe1ae; --ink: #9a5b00; }
.cover--red    { --c1: #ffecea; --c2: #ffd2cd; --ink: #c4001a; }
.cover--green  { --c1: #e8f7ec; --c2: #c9edd3; --ink: #1f7a36; }
.cover--pink   { --c1: #fcebf6; --c2: #f6cbe8; --ink: #b0127f; }
.cover--gray   { --c1: #f2f2f5; --c2: #e1e1e6; --ink: #48484a; }

/* Hero do índice */
.blog-hero { max-width: 760px; padding: 16px 0 8px; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--b-link); }
.blog-hero h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 500; line-height: 1.05; letter-spacing: -.02em; margin: 10px 0 16px; }
.blog-hero__lead { font-size: 19px; line-height: 1.55; color: var(--b-ink-2); max-width: 620px; }
.section-t { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }

/* Cartões */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--b-card); border: 1px solid var(--b-line); border-radius: 18px; overflow: hidden; box-shadow: var(--b-shadow); transition: transform .24s ease, box-shadow .24s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--b-shadow-hi); }
.card:focus-within { box-shadow: var(--b-shadow-hi), 0 0 0 3px rgba(176,18,127,.35); }
.card .cover svg { transition: transform .4s ease; }
.card:hover .cover svg { transform: scale(1.06); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.card__cat { display: inline-flex; align-self: flex-start; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; background: var(--c1); color: var(--ink); }
.card__cat--blue { --c1: #eaf3ff; --ink: #0068db; } .card__cat--violet { --c1: #f1ecff; --ink: #5b34c4; }
.card__cat--teal { --c1: #e2f7f6; --ink: #0a7373; } .card__cat--amber { --c1: #fff5e3; --ink: #9a5b00; }
.card__cat--red { --c1: #ffecea; --ink: #c4001a; } .card__cat--green { --c1: #e8f7ec; --ink: #1f7a36; }
.card__cat--pink { --c1: #fcebf6; --ink: #b0127f; } .card__cat--gray { --c1: #f2f2f5; --ink: #48484a; }
.card__t { margin-top: 12px; font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.card__t a { color: var(--b-ink); }
.card__t a::after { content: ""; position: absolute; inset: 0; } /* cartão inteiro clicável */
.card__t a:focus-visible { outline: none; }
.card__x { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--b-ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--b-muted); }
.badge-pillar { padding: 2px 9px; border-radius: 20px; background: var(--b-ink); color: #fff; font-size: 12px; font-weight: 500; }
.badge-review { display: inline-block; padding: 2px 9px; border-radius: 20px; background: var(--b-soft); color: var(--b-link); font-size: 12px; font-weight: 500; }
.post-head .badge-review { margin-bottom: 12px; }
.card.is-hidden { display: none; }

/* Destaques ("Comece por aqui") */
.featured { margin-top: 48px; }
.featured__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; margin-top: 18px; }
.card--big .cover { aspect-ratio: 2 / 1; }
.card--big .cover svg { width: 84px; height: 84px; }
.card--big .card__body { padding: 24px 28px 28px; }
.card--big .card__t { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
.card--big .card__x { font-size: 16px; -webkit-line-clamp: 4; }
.featured__list { list-style: none; margin: 0; padding: 6px 0; background: var(--b-card); border: 1px solid var(--b-line); border-radius: 18px; box-shadow: var(--b-shadow); display: flex; flex-direction: column; }
.featured__list li + li { border-top: 1px solid var(--b-line); }
.featured__list li { flex: 1; display: flex; }
.featured__list a { flex: 1; display: flex; align-items: center; gap: 16px; padding: 14px 22px; font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--b-ink); transition: background .2s; }
.featured__list a:hover { background: rgba(0,0,0,.03); }
.featured__list small { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 400; color: var(--b-muted); }
.featured__ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--c1), var(--c2)); color: var(--ink); }
.featured__ic svg { width: 24px; height: 24px; }

/* Biblioteca + filtros */
.library { margin-top: 64px; }
.library__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.library__count { font-size: 14px; color: var(--b-muted); }
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 28px; }
.blog-cats a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--b-line); border-radius: 30px; background: var(--b-card); font-size: 14px; color: var(--b-ink); transition: border-color .2s, background .2s, color .2s; }
.blog-cats a:hover { border-color: rgba(0,0,0,.28); }
.blog-cats a[aria-pressed="true"] { background: var(--b-ink); border-color: var(--b-ink); color: #fff; }
.blog-cats a[aria-pressed="true"] .chip-ic { color: #fff; }
.blog-cats span { color: var(--b-muted); }
.blog-cats a[aria-pressed="true"] span { color: rgba(255,255,255,.7); }
.chip-ic { width: 18px; height: 18px; color: var(--ink); }
.chip-ic--blue { --ink: #0068db; } .chip-ic--violet { --ink: #5b34c4; } .chip-ic--teal { --ink: #0a7373; } .chip-ic--amber { --ink: #9a5b00; }
.chip-ic--red { --ink: #c4001a; } .chip-ic--green { --ink: #1f7a36; } .chip-ic--pink { --ink: #b0127f; } .chip-ic--gray { --ink: #48484a; }

/* Página de tema */
.cat-hero { display: flex; align-items: center; gap: 28px; margin-bottom: 36px; }
.cat-hero__cover { flex: none; width: 140px; aspect-ratio: 1; border-radius: 22px; }
.cat-hero__cover svg { width: 56px; height: 56px; }
.cat-hero h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 500; line-height: 1.1; letter-spacing: -.015em; }
.cat-hero p { margin-top: 8px; color: var(--b-ink-2); font-size: 17px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--b-muted); margin-bottom: 14px; }
.crumbs a { color: var(--b-ink-2); }
.crumbs a:hover { color: var(--b-link); text-decoration: underline; }

/* Post */
.read-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.post { max-width: 1060px; margin: 0 auto; }
.post-head { max-width: 720px; padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--b-line); }
.post h1 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 18px; font-size: 14px; color: var(--b-muted); }
.post-meta time + span::before { content: "·"; margin-right: 14px; color: #b8b8bf; }
.post-layout { display: grid; grid-template-columns: minmax(0, 720px) 260px; justify-content: space-between; gap: 56px; }
.post-main { grid-column: 1; grid-row: 1; min-width: 0; }
.toc { grid-column: 2; grid-row: 1; align-self: start; position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; font-size: 14px; }
.toc summary { list-style: none; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--b-muted); margin-bottom: 10px; cursor: pointer; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--b-line); }
.toc a { display: block; margin-left: -2px; padding: 7px 0 7px 14px; border-left: 2px solid transparent; line-height: 1.4; color: var(--b-ink-2); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--b-ink); }
.toc a.is-active { color: var(--b-link); border-left-color: var(--b-link); font-weight: 500; }

.post-body { font-size: 18px; line-height: 1.75; color: var(--b-ink-2); }
.post-body > :first-child { margin-top: 0; }
.post-body .lead { font-size: 20px; line-height: 1.6; color: var(--b-ink); margin-bottom: 24px; }
.post-body h2 { scroll-margin-top: 90px; margin: 48px 0 14px; font-size: 27px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--b-ink); }
.post-body h3 { margin: 32px 0 10px; font-size: 20px; font-weight: 600; line-height: 1.35; color: var(--b-ink); }
.post-body p { margin: 0 0 20px; }
.post-body a { color: var(--b-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-body a:hover { text-decoration-thickness: 2px; }
.post-body strong, .post-body b { color: var(--b-ink); font-weight: 600; }
.post-body ul, .post-body ol { padding-left: 24px; margin: 0 0 22px; }
.post-body li { margin-bottom: 8px; padding-left: 4px; }
.post-body li::marker { color: var(--b-muted); }
.post-body hr { border: 0; border-top: 1px solid var(--b-line); margin: 40px 0; }
.post-body table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 26px; font-size: 15px; line-height: 1.5; background: var(--b-card); border: 1px solid var(--b-line); border-radius: 14px; overflow: hidden; }
.post-body th, .post-body td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--b-line); }
.post-body tr:last-child td { border-bottom: 0; }
.post-body th { background: #fafafc; color: var(--b-ink); font-weight: 600; }
.post-body blockquote, .post-body .callout { margin: 0 0 24px; padding: 18px 22px; border-left: 3px solid var(--b-link); background: var(--b-soft); border-radius: 0 14px 14px 0; font-size: 17px; color: var(--b-ink); }
.post-body .callout > :last-child, .post-body blockquote > :last-child { margin-bottom: 0; }
.post-faq { margin-top: 56px; }
.post-faq h2 { scroll-margin-top: 90px; font-size: 27px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 16px; }
.post-faq details { background: var(--b-card); border: 1px solid var(--b-line); border-radius: 14px; margin-bottom: 10px; }
.post-faq summary { list-style: none; position: relative; padding: 18px 52px 18px 20px; cursor: pointer; font-size: 17px; font-weight: 500; color: var(--b-ink); }
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 300; color: var(--b-muted); transition: transform .2s; }
.post-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.post-faq details p { margin: 0; padding: 0 20px 20px; color: var(--b-ink-2); font-size: 16px; line-height: 1.65; }
.post-cta { margin-top: 48px; padding: 32px; border-radius: 18px; background: linear-gradient(135deg, #fff1ea, #fce6f7); border: 1px solid rgba(176,18,127,.15); }
.post-cta__t { font-size: 22px; font-weight: 600; color: var(--b-ink); }
.post-cta p { color: var(--b-ink-2); margin: 6px 0 20px; }
.btn--dark { background: var(--b-ink, #1d1d1f); color: #fff; }
.btn--dark:hover { background: #000; }
.post-tags { margin-top: 36px; color: var(--b-muted); font-size: 14px; }
.post-tags a { color: var(--b-link); text-decoration: underline; }
.post-related { max-width: 1060px; margin: 72px auto 0; padding-top: 40px; border-top: 1px solid var(--b-line); }
.post-related .cards { margin-top: 18px; }
.back-link { display: inline-block; margin-top: 32px; color: var(--b-ink-2); font-size: 15px; font-weight: 500; }
.back-link:hover { color: var(--b-link); }

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { grid-column: 1; position: static; max-height: none; margin-bottom: 32px; padding: 14px 18px; background: var(--b-card); border: 1px solid var(--b-line); border-radius: 14px; }
  .toc summary { margin: 0; display: flex; justify-content: space-between; }
  .toc summary::after { content: "+"; font-size: 18px; font-weight: 400; letter-spacing: 0; }
  .toc[open] summary { margin-bottom: 10px; }
  .toc[open] summary::after { content: "–"; }
  .post-main { grid-row: 2; }
  .post-head { max-width: none; }
}
@media (max-width: 760px) {
  .blog-main { padding: 28px 16px 60px; }
  .blog-hero__lead { font-size: 17px; }
  .featured__grid, .cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .featured__list a { padding: 12px 16px; font-size: 15px; }
  .library { margin-top: 48px; }
  .blog-cats { flex-wrap: nowrap; overflow-x: auto; margin: 14px -16px 22px; padding: 0 16px 4px; scrollbar-width: none; }
  .blog-cats::-webkit-scrollbar { display: none; }
  .blog-cats a { flex: none; }
  .cat-hero { flex-direction: column; align-items: flex-start; gap: 18px; }
  .cat-hero__cover { width: 88px; }
  .cat-hero__cover svg { width: 40px; height: 40px; }
  .post-body { font-size: 17px; }
  .post-body .lead { font-size: 18px; }
  .post-body h2 { font-size: 23px; margin-top: 40px; }
  .post-body table { display: block; overflow-x: auto; }
  .post-cta { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .card .cover svg { transition: none; }
  .card:hover { transform: none; }
}
