/* =========================================================
   WISARION — Design tokens (brand-wisarion oficial)
   ========================================================= */
:root {
  --red: #f20d1b;
  --red-dark: #8c111b;
  --charcoal: #101012;
  --charcoal-soft: #17171a;
  --charcoal-card: #1c1c20;
  --white: #ffffff;
  --soft-white: #f7f4f0;
  --muted: #a7a6ac;
  --border: rgba(247, 244, 240, 0.09);

  --font-heading: "Inter", "Poppins", sans-serif;
  --font-body: "Open Sans", "Arial Unicode MS", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1160px;
  --shadow-red: 0 10px 30px -8px rgba(242, 13, 27, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--soft-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--white);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--muted); }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(242, 13, 27, 0.55); }
.btn--ghost {
  background: transparent;
  color: var(--soft-white);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--red); color: var(--white); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(16, 16, 18, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .02em;
  color: var(--white);
}
.nav-panel { display: contents; }
.nav { display: flex; gap: 28px; margin: 0 auto; }
.nav a {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
}
.nav a:hover { color: var(--white); }
.nav-cta { flex-shrink: 0; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--soft-white); display: block; }

/* ---------- Eyebrow / section titles ---------- */
.eyebrow {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow--center { text-align: center; }
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  max-width: 720px;
}
.section-lead {
  max-width: 620px;
  font-size: 17px;
}
.services .section-title,
.services .section-lead,
.process .section-title { margin-left: auto; margin-right: auto; text-align: center; }
.services .section-lead { text-align: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 96px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(242,13,27,0.16), transparent 60%),
    radial-gradient(40% 40% at 10% 20%, rgba(140,17,27,0.18), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 760px; }
.eyebrow.hero__eyebrow { }
.hero h1 {
  font-size: clamp(36px, 5.4vw, 58px);
  max-width: 680px;
}
.text-accent { color: var(--red); }
.hero__lead { font-size: 18px; max-width: 560px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 48px; }
.hero__stats { display: flex; gap: 40px; list-style: none; padding: 28px 0 0; margin: 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; gap: 4px; }
.hero__stats strong { font-family: var(--font-heading); font-size: 26px; color: var(--white); }
.hero__stats span { font-size: 13px; color: var(--muted); }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0; }
.trust__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.trust p { margin: 0; font-size: 13px; color: var(--muted); white-space: nowrap; }
.trust__badges { display: flex; gap: 22px; flex-wrap: wrap; }
.trust__badges span {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .03em;
}

/* ---------- Services (categorias) ---------- */
.services { padding: 110px 0; }
.grid { display: grid; gap: 22px; }
.grid--categories { grid-template-columns: repeat(4, 1fr); margin-top: 56px; align-items: start; }
.category-card {
  background: var(--charcoal-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color .2s ease, transform .2s ease;
}
.category-card:hover { border-color: rgba(242,13,27,0.4); transform: translateY(-4px); }
.category-card__icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(242,13,27,0.18), rgba(140,17,27,0.12));
  color: var(--red);
  margin-bottom: 20px;
}
.category-card__icon svg { width: 24px; height: 24px; }
.category-card h3 { font-size: 17.5px; margin-bottom: 16px; }
.category-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.category-card__list li {
  font-size: 14.5px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.category-card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
}

/* ---------- Why / diferenciais ---------- */
.why { padding: 100px 0; background: var(--charcoal-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.why__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: start; }
.why__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.why__list li { display: flex; flex-direction: column; gap: 4px; padding-left: 22px; border-left: 2px solid var(--red); }
.why__list strong { font-family: var(--font-heading); color: var(--white); font-size: 15.5px; }
.why__list span { font-size: 14.5px; color: var(--muted); }
.why__card {
  background: var(--charcoal-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  position: sticky;
  top: 110px;
}
.why__card h3 { font-size: 20px; }
.why__card p { font-size: 14.5px; }

/* ---------- Process ---------- */
.process { padding: 110px 0; }
.grid--steps { grid-template-columns: repeat(4, 1fr); margin-top: 56px; }
.step { padding: 0 6px; }
.step__num {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--red);
  display: block;
  margin-bottom: 14px;
}
.step h3 { font-size: 17px; }
.step p { font-size: 14.5px; }

/* ---------- CTA / contact ---------- */
.cta { padding: 110px 0 100px; background: var(--charcoal-soft); border-top: 1px solid var(--border); }
.cta__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.cta h2 { font-size: clamp(26px, 3.4vw, 34px); }
.cta > .container > p, .cta__inner > p { font-size: 16px; }
.contact-form { margin-top: 36px; display: grid; gap: 14px; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  background: var(--charcoal-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--soft-white);
  font-family: var(--font-body);
  font-size: 14.5px;
  appearance: none;
}
.contact-form select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7a6ac' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}
.contact-form select:invalid { color: var(--muted); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--red); }
.contact-form textarea { resize: vertical; }
.cta__direct { margin-top: 22px; font-size: 14.5px; color: var(--muted); display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta__direct a:hover { color: var(--red); }
.whatsapp-link { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.whatsapp-link svg { width: 22px; height: 22px; }
.whatsapp-link:hover { color: #25D366; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.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;
}

/* ---------- Materiais (prévia na home) ---------- */
.materials-preview { padding: 90px 0; }
.materials-preview__inner {
  background: linear-gradient(135deg, rgba(242,13,27,0.12), rgba(140,17,27,0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
}
.materials-preview__text { max-width: 620px; margin: 0 auto; }
.materials-preview .section-title,
.materials-preview .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 28px; border-top: 1px solid var(--border); }
.footer__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; flex-direction: column; gap: 8px; }
.footer__tagline { margin: 0; font-size: 13.5px; color: var(--muted); font-style: italic; }
.footer p { margin: 0; font-size: 13.5px; }
.logo--footer { font-size: 16px; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { font-size: 13.5px; color: var(--muted); }
.footer__links a:hover { color: var(--white); }
.footer__legal {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 6px 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer__legal p { color: var(--muted); font-size: 12.5px; }

/* ---------- Cookie banner (LGPD) ---------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 100;
  max-width: 720px;
  margin: 0 auto;
  background: var(--charcoal-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: none;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 20px 44px -12px rgba(0,0,0,0.55);
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { margin: 0; font-size: 13.5px; color: var(--muted); flex: 1 1 260px; }
.cookie-banner a { color: var(--soft-white); text-decoration: underline; }
.cookie-banner a:hover { color: var(--red); }
.cookie-banner__actions { flex-shrink: 0; }

/* ==========================================================
   Responsive — testado para phones, phablets, tablets (retrato
   e paisagem), laptops e desktops grandes.
   ========================================================== */

/* Laptops pequenos / tablets em paisagem */
@media (max-width: 1180px) {
  :root { --container: 980px; }
  .grid--categories { grid-template-columns: repeat(2, 1fr); }
}

/* Tablets em retrato (ex: iPad 768–1024) — menu vira hambúrguer
   aqui porque nav + CTA não cabem mais numa linha só. */
@media (max-width: 980px) {
  .grid--steps { grid-template-columns: repeat(2, 1fr); gap: 32px 22px; }
  .why__inner { grid-template-columns: 1fr; }
  .why__card { position: static; }

  .nav-panel { display: none; }
  .burger { display: flex; }
  .header.nav-open .nav-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: absolute;
    top: 76px; left: 0; right: 0;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    background: var(--charcoal-soft);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
  }
  .header.nav-open .nav {
    flex-direction: column;
    gap: 18px;
  }
  .header.nav-open .nav-cta {
    width: 100%;
  }
}

/* Phablets / tablets pequenos */
@media (max-width: 720px) {
  .grid--categories { grid-template-columns: 1fr; }
  .grid--steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 72px; }
  .materials-preview__inner { padding: 36px 26px; }
  .footer__inner { flex-direction: column; }
  .footer__legal { flex-direction: column; gap: 6px; }
}

/* Celulares — empilha e centraliza os botões do hero para evitar
   qualquer desalinhamento visual entre eles. */
@media (max-width: 560px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .hero__stats { justify-content: space-between; gap: 20px 16px; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px 20px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { width: 100%; }
}

/* Celulares pequenos */
@media (max-width: 380px) {
  .container { padding: 0 18px; }
  .hero { padding: 128px 0 64px; }
  .btn { padding: 13px 20px; font-size: 14px; }
}

/* ---------- Blog ---------- */
.blog-preview { padding: 110px 0; background: var(--charcoal-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.blog-preview .section-title, .blog-preview .section-lead { text-align: center; margin-left: auto; margin-right: auto; }
.grid--posts { grid-template-columns: repeat(3, 1fr); margin-top: 56px; }
.post-card {
  background: var(--charcoal-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.post-card:hover { border-color: rgba(242,13,27,0.4); transform: translateY(-4px); }
.post-card__thumb {
  height: 160px;
  background: linear-gradient(135deg, rgba(242,13,27,0.22), rgba(140,17,27,0.14));
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
}
.post-card__thumb svg { width: 32px; height: 32px; }
.post-card__body { padding: 22px 24px 26px; }
.post-card__meta { font-family: var(--font-heading); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.post-card h3 { font-size: 17px; margin-bottom: 8px; }
.post-card p { font-size: 14px; margin-bottom: 14px; }
.post-card__link { font-family: var(--font-heading); font-size: 13.5px; font-weight: 700; color: var(--soft-white); }
.post-card__link:hover { color: var(--red); }
.blog-preview__footer { text-align: center; margin-top: 44px; }

@media (max-width: 980px) { .grid--posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .grid--posts { grid-template-columns: 1fr; } }

/* ---------- Páginas internas (blog, materiais, políticas) ---------- */
.page-hero { padding: 168px 0 64px; text-align: center; }
.page-hero .eyebrow, .page-hero .section-title, .page-hero .section-lead { margin-left: auto; margin-right: auto; }
.page-hero .section-title { text-align: center; }
.page-hero .section-lead { text-align: center; }

.blog-page { padding: 0 0 110px; }

.page-content { padding: 0 0 110px; }
.page-content__inner { max-width: 720px; margin: 0 auto; }
.page-content__updated { font-size: 13.5px; color: var(--muted); margin-bottom: 40px; }
.page-content__inner h2 { font-size: 22px; margin-top: 2em; }
.page-content__inner h2:first-child { margin-top: 0; }
.page-content__inner p, .page-content__inner li { font-size: 15.5px; color: var(--soft-white); }
.page-content__inner ul { padding-left: 20px; margin-bottom: 1.2em; }
.page-content__inner a { color: var(--red); text-decoration: underline; }

/* ---------- Materiais gratuitos ---------- */
.materials-page { padding: 0 0 110px; }
.grid--materials { grid-template-columns: repeat(3, 1fr); }
.material-card {
  background: var(--charcoal-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.material-card__icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(242,13,27,0.18), rgba(140,17,27,0.12));
  color: var(--red);
}
.material-card__icon svg { width: 24px; height: 24px; }
.material-card__icon--img { width: 100%; aspect-ratio: 1 / 1; height: auto; border-radius: var(--radius-sm); overflow: hidden; background: none; }
.material-card__icon--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.material-card h3 { font-size: 17px; margin-bottom: 0; }
.material-card p { font-size: 14px; margin-bottom: 0; flex-grow: 1; }

@media (max-width: 980px) { .grid--materials { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .grid--materials { grid-template-columns: 1fr; } }

/* ---------- Blog archive (home.php / index.php) ---------- */
.blog-archive { padding: 168px 0 100px; }
.post-card__thumb--img { padding: 0; overflow: hidden; }
.post-card__thumb--img img { width: 100%; height: 160px; object-fit: cover; display: block; }
.post-card h3 a { color: var(--white); }
.post-card h3 a:hover { color: var(--red); }

.pagination-wrap { margin-top: 56px; display: flex; justify-content: center; }
.pagination-wrap .nav-links { display: flex; gap: 10px; align-items: center; }
.pagination-wrap a,
.pagination-wrap span {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--soft-white);
}
.pagination-wrap a:hover { border-color: var(--red); color: var(--red); }
.pagination-wrap .current { background: var(--red); border-color: var(--red); color: var(--white); }

/* ---------- Single post / page ---------- */
.single-post { padding: 168px 0 100px; }
.single-post__inner { max-width: 720px; margin: 0 auto; }
.single-post__title { font-size: clamp(28px, 4vw, 42px); margin-top: 8px; }
.single-post__meta { font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.single-post__thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; }
.single-post__thumb img { width: 100%; display: block; }
.single-post__content { font-size: 16.5px; color: var(--soft-white); }
.single-post__content p { color: var(--soft-white); }
.single-post__content h2, .single-post__content h3 { margin-top: 1.6em; }
.single-post__content a { color: var(--red); text-decoration: underline; }
.single-post__content ul, .single-post__content ol { color: var(--soft-white); padding-left: 22px; margin-bottom: 1em; }
.single-post__content img { border-radius: var(--radius); margin: 24px 0; }
.single-post__content blockquote {
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  color: var(--muted);
  font-style: italic;
}
.single-post__cta {
  margin-top: 56px;
  padding: 36px;
  background: var(--charcoal-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.single-post__cta h3 { margin-bottom: 18px; font-size: 20px; }
