/*
Theme Name: Gama Blog
Theme URI: https://gama.etc.br
Author: Gama
Description: Tema enxuto do blog da Gama, sem Elementor, alinhado ao site em codigo.
Version: 1.0
*/

/* ===========================================================================
   GAMA — Sistema de design (mesmos valores do site em código)
   Paleta vermelho Gama · Parkinsans (display) + DM Sans (texto)
   =========================================================================== */

:root {
  /* Cores primárias */
  --red:        #de0048;
  --red-hover:  #c20040;
  --red-dim:    rgba(222, 0, 72, 0.07);
  --red-glow:   rgba(222, 0, 72, 0.18);
  --red-light:  #ff6b94;

  /* Neutros */
  --dark:       #111111;
  --mid:        #444444;
  --white:      #ffffff;
  --light:      #f6f6f6;
  --bg:         #f6f6f6;
  --surface:    #ffffff;

  /* Bordas e texto sobre fundo claro */
  --border:     rgba(17, 17, 17, 0.08);
  --text-main:  #111111;
  --text-sub:   rgba(17, 17, 17, 0.5);
  --text-faint: rgba(17, 17, 17, 0.3);

  /* Texto sobre fundo escuro */
  --on-dark:        rgba(255, 255, 255, 0.65);
  --on-dark-sub:    rgba(255, 255, 255, 0.55);
  --on-dark-faint:  rgba(255, 255, 255, 0.45);
  --on-dark-border: rgba(255, 255, 255, 0.10);

  /* Tipografia */
  --font-display: 'Parkinsans', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Layout */
  --container: 1180px;
  --leitura:   760px;   /* largura da coluna de texto do post */
  --radius:    18px;
  --radius-sm: 12px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);

  --skin-bg:      #ffffff;
  --skin-bg-soft: #f1f1f3;
}

/* ---------------------------------------------------------------------------
   Reset
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-main);
  background: var(--skin-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
strong, b { font-weight: 600; }

/* Ícones em SVG (no lugar da fonte de ícones: menos um download) */
.ico {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

/* Pular para o conteúdo — só aparece no teclado */
.pular {
  position: absolute;
  left: -9999px;
  z-index: 200;
}
.pular:focus {
  left: 16px; top: 16px;
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   Tipografia e layout
   --------------------------------------------------------------------------- */
.label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-faint);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.section { padding: clamp(48px, 7vw, 88px) 0; }

/* ---------------------------------------------------------------------------
   Botões
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 22px;
  border-radius: 100px;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-hover); }
.btn--ghost { border: 1px solid var(--border); color: var(--text-main); }
.btn--ghost:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }

/* ---------------------------------------------------------------------------
   Header
   --------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.logo img { display: block; width: auto; height: 30px; }
/* O SVG é preto: no fundo escuro do rodapé ele vira branco */
.logo--light img { height: 26px; filter: brightness(0) invert(1); }

.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav__link {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.2px;
  color: var(--text-main);
  transition: color .2s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--red); }

.nav-toggle { display: none; color: var(--text-main); }
.nav-toggle .ico { width: 26px; height: 26px; }
.nav-toggle .ico--fechar { display: none; }
.nav-toggle[aria-expanded="true"] .ico--menu { display: none; }
.nav-toggle[aria-expanded="true"] .ico--fechar { display: block; }

/* Submenu */
.nav__item { position: relative; display: inline-flex; }
.nav__link--pai {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.2px;
  color: var(--text-main);
  cursor: pointer;
  transition: color .2s var(--ease);
}
.nav__link--pai:hover, .nav__link--pai.is-active { color: var(--red); }
.nav__link--pai .ico--seta { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.nav__item:hover .ico--seta,
.nav__item:focus-within .ico--seta { transform: rotate(180deg); }

.nav__sub {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 60;
  display: flex;
  flex-direction: column;
  min-width: 190px;
  margin-top: 10px;
  padding: 8px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 26px 50px -26px rgba(17, 17, 17, .35);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
/* Ponte invisível: o mouse não perde o menu no caminho */
.nav__item::after {
  content: '';
  position: absolute;
  top: 100%; left: 0;
  width: 100%; height: 14px;
}
.nav__item:hover .nav__sub,
.nav__item:focus-within .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav__sublink {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__sublink:hover { background: var(--red-dim); color: var(--red); }

/* ---------------------------------------------------------------------------
   Abertura (mesma da página "Na mídia")
   --------------------------------------------------------------------------- */
.cs-hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--on-dark);
  padding: clamp(48px, 7vw, 84px) 0 clamp(56px, 7vw, 80px);
}
.cs-hero__glow {
  position: absolute;
  top: -30%; right: -10%;
  width: 640px; height: 640px;
  background: radial-gradient(circle, var(--red-glow), transparent 65%);
  pointer-events: none;
}
.cs-hero__inner { position: relative; z-index: 1; }
.cs-hero__label { display: block; color: var(--red-light); }
.cs-hero__title {
  max-width: 900px;
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.9vw, 48px);
  letter-spacing: -1.4px;
  line-height: 1.08;
  color: var(--white);
}
.cs-hero__title em { color: var(--red-light); font-style: normal; }
.cs-hero__lead {
  max-width: 720px;
  margin-top: 22px;
  font-size: clamp(15.5px, 1.7vw, 18px);
  line-height: 1.65;
  color: var(--on-dark-sub);
}
.cs-hero__lead strong { color: var(--white); font-weight: 600; }
.cs-hero__lead strong em { font-style: normal; color: var(--red-light); }

.blog-lista { padding-top: clamp(32px, 4vw, 48px); background: var(--skin-bg); }
.blog-vazio { color: var(--text-sub); font-size: 17px; }

/* ---------------------------------------------------------------------------
   Cards da listagem
   --------------------------------------------------------------------------- */
.posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px -28px rgba(17, 17, 17, .26);
  border-color: rgba(222, 0, 72, .25);
}
.post-card__link { display: flex; flex-direction: column; height: 100%; }

.post-card__cover {
  position: relative;
  display: grid;
  place-items: center;
  height: 190px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 10%, var(--red-glow), transparent 60%),
    var(--dark);
}
.post-card__cover::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000, transparent 80%);
}
/* A imagem destacada ocupa a capa inteira, seja qual for a proporção original */
.post-card__cover img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.post-card:hover .post-card__cover img { transform: scale(1.05); }

/* Sem imagem destacada: marca gráfica no lugar */
.post-card__mark {
  position: relative;
  display: grid; place-items: center;
  width: 62px; height: 62px;
  border-radius: 18px;
  background: rgba(255, 107, 148, .14);
  border: 1px solid rgba(255, 107, 148, .3);
  color: var(--red-light);
  transition: transform .3s var(--ease);
}
.post-card__mark svg { width: 28px; height: 28px; fill: currentColor; }
.post-card:hover .post-card__mark { transform: scale(1.08); }

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 26px 26px;
}
.post-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.4px;
  line-height: 1.3;
  color: var(--text-main);
}
.post-card__body > p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-sub);
}
.post-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 12.5px;
  color: var(--text-faint);
}
.post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  font-size: 13px;
  color: var(--red);
  transition: gap .25s var(--ease);
}
.post-card__more .ico { width: 16px; height: 16px; }
.post-card:hover .post-card__more { gap: 9px; }

/* ---------------------------------------------------------------------------
   Paginação
   --------------------------------------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 5vw, 64px);
}
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.pagination a.page-numbers:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}
.pagination .page-numbers.current {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.pagination .page-numbers.dots {
  border-color: transparent;
  background: none;
  color: var(--text-faint);
}
.pagination .ico { width: 16px; height: 16px; }

/* ---------------------------------------------------------------------------
   Post individual
   --------------------------------------------------------------------------- */
.post__head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 5vw, 64px) 0 clamp(28px, 3.5vw, 40px);
  background:
    radial-gradient(110% 80% at 82% 0%, rgba(255, 107, 148, .07), transparent 55%),
    var(--skin-bg);
}
.post__head::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(17, 17, 17, .11) 1px, transparent 1.6px);
  background-size: 24px 24px;
  background-position: -12px -12px;
  -webkit-mask-image: radial-gradient(ellipse 78% 82% at 48% 30%, #000 24%, transparent 74%);
          mask-image: radial-gradient(ellipse 78% 82% at 48% 30%, #000 24%, transparent 74%);
}
/* O título respira mais que a coluna de leitura, na largura da capa */
.post__head-inner { max-width: 980px; }

.post__trilha {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-faint);
}
.post__trilha a { color: var(--text-sub); transition: color .2s var(--ease); }
.post__trilha a:hover { color: var(--red); }

.post__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5.4vw, 66px);
  letter-spacing: -2.2px;
  line-height: 1.03;
  color: var(--red);
  text-wrap: balance;
}
.post__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text-faint);
}
.post__meta-sep { color: var(--text-faint); }

.post__cover {
  max-width: 980px;
  margin: 0 auto clamp(32px, 4vw, 48px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--dark);
}
.post__cover img { width: 100%; height: auto; }
.post__cover figcaption {
  padding: 12px 18px;
  font-size: 12.5px;
  color: var(--on-dark-faint);
  text-align: center;
}

/* ---- Conteúdo do post (o que sai do the_content) ---- */
.entry {
  max-width: var(--leitura);
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: #262626;
}
.entry > * + * { margin-top: 1.15em; }

.entry h2, .entry h3, .entry h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.8px;
  line-height: 1.2;
  color: var(--text-main);
}
.entry h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 1.9em; }
.entry h3 { font-size: clamp(20px, 2.1vw, 24px); margin-top: 1.7em; letter-spacing: -.5px; }
.entry h4 { font-size: 18px; margin-top: 1.5em; letter-spacing: -.3px; }

.entry a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s var(--ease);
}
.entry a:hover { color: var(--red-hover); }

.entry ul, .entry ol { padding-left: 1.35em; }
.entry ul { list-style: disc; }
.entry ol { list-style: decimal; }
.entry li + li { margin-top: .4em; }
.entry li::marker { color: var(--red); }

.entry blockquote {
  margin-left: 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--red);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.4px;
  color: var(--text-main);
}
.entry blockquote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-style: normal;
  font-weight: 400;
  color: var(--text-sub);
}

.entry img, .entry figure img, .entry video, .entry iframe {
  border-radius: var(--radius-sm);
  max-width: 100%;
}
.entry figure { margin: 2em 0; }
.entry figcaption, .entry .wp-caption-text {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-sub);
  text-align: center;
}

.entry hr {
  height: 1px;
  margin: 2.4em 0;
  border: 0;
  background: var(--border);
}

.entry code, .entry kbd {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--skin-bg-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
}
.entry pre {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--dark);
  color: rgba(255, 255, 255, .88);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}
.entry pre code { padding: 0; background: none; color: inherit; }

.entry table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.entry th, .entry td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.entry th { font-family: var(--font-display); font-weight: 600; }

.entry__paginas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2em;
  font-size: 14px;
}

/* Alinhamentos e legendas do editor do WordPress */
.entry .alignleft  { float: left;  margin: .4em 1.6em 1em 0; }
.entry .alignright { float: right; margin: .4em 0 1em 1.6em; }
.entry .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry .alignwide, .entry .alignfull {
  width: auto;
  max-width: min(980px, 92vw);
  margin-left: 50%;
  transform: translateX(-50%);
}
.entry .wp-caption { max-width: 100%; }
.entry::after { content: ''; display: block; clear: both; }

/* ---- Tags, CTA e navegação entre posts ---- */
.post__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: var(--leitura);
  margin: clamp(36px, 4vw, 52px) auto 0;
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--border);
}
.post__tags .label { margin-right: 6px; }
.post__tags a {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--red-dim);
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.post__tags a:hover { background: var(--red); color: var(--white); }

.post__cta {
  max-width: var(--leitura);
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius);
  text-align: center;
  background:
    radial-gradient(circle at 78% 8%, var(--red-glow), transparent 62%),
    var(--dark);
  color: var(--on-dark);
}
.post__cta-titulo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 27px);
  letter-spacing: -.7px;
  line-height: 1.2;
  color: var(--white);
}
.post__cta-lead {
  margin: 14px auto 24px;
  max-width: 46ch;
  font-size: 15px;
  color: rgba(255, 255, 255, .7);
}

/* ---- Compartilhar ---- */
.post__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  max-width: var(--leitura);
  margin: clamp(32px, 4vw, 44px) auto 0;
}
.post__share .label { color: var(--text-sub); }
.post__share-itens { display: flex; flex-wrap: wrap; gap: 10px; }
.post__share-itens a,
.post__copiar {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-sub);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.post__share-itens a:hover,
.post__copiar:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}
.post__share-itens svg { width: 17px; height: 17px; fill: currentColor; }

/* Aviso de "link copiado": só aparece depois do clique */
.post__copiar-ok {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--dark);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s var(--ease), visibility .2s;
}
.post__copiar.is-ok .post__copiar-ok { opacity: 1; visibility: visible; }

.post__voltar {
  max-width: var(--leitura);
  margin: clamp(32px, 4vw, 44px) auto clamp(48px, 6vw, 80px);
}
.post__voltar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
  transition: color .2s var(--ease), gap .2s var(--ease);
}
.post__voltar a:hover { color: var(--red); gap: 12px; }

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--dark);
  color: var(--on-dark);
  padding-top: 72px;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content minmax(250px, 330px);
  gap: clamp(32px, 5vw, 64px);
  column-gap: clamp(32px, 6.25vw, 80px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--on-dark-border);
}
.site-footer__tagline { color: var(--on-dark-faint); margin-top: 16px; max-width: 400px; }

.site-footer__ends {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 6px;
  list-style: none;
}
.site-footer__ends li {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--on-dark-faint);
}
.site-footer__ends strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--on-dark);
}
.site-footer__links { display: flex; flex-direction: column; gap: 12px; }
.site-footer__links .label { color: var(--white); margin-bottom: 6px; }
.site-footer__links--cols {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  column-gap: 40px;
  row-gap: 12px;
  align-content: start;
}
.site-footer__links--cols .label { grid-column: 1 / -1; }
.site-footer__links--cols a { white-space: nowrap; }
.site-footer__links a { color: var(--on-dark-sub); font-size: 14px; transition: color .2s var(--ease); }
.site-footer__links a:hover { color: var(--white); }

.site-footer__social { display: flex; gap: 10px; margin-top: 24px; }
.site-footer__social a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--on-dark-border);
  color: var(--on-dark-sub);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.site-footer__social a:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}
.site-footer__social svg { width: 16px; height: 16px; fill: currentColor; }

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 28px 0;
  font-size: 13px;
  text-align: center;
  color: var(--on-dark-faint);
}
.site-footer__motto {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.4px;
  color: var(--white);
}
.site-footer__motto span { color: var(--red-light); }

/* ---------------------------------------------------------------------------
   Botão flutuante do WhatsApp
   --------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 150;
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 16px 30px -12px rgba(222, 0, 72, .8);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.wa-float svg { position: relative; width: 30px; height: 30px; fill: currentColor; }
.wa-float:hover { transform: scale(1.08); background: var(--red-hover); }
.wa-float:focus-visible { outline: 3px solid rgba(222, 0, 72, .4); outline-offset: 3px; }
.wa-float__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--red);
  opacity: .55;
  animation: waFloatRing 2.6s var(--ease) infinite;
}
@keyframes waFloatRing {
  0%   { transform: scale(1);   opacity: .5; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---------------------------------------------------------------------------
   Responsivo
   --------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .posts__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .nav, .nav__cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
  }
  .nav.is-open .nav__link { padding: 14px clamp(20px, 5vw, 48px); }

  /* No menu mobile o submenu abre no toque, não vem aberto */
  .nav__item { display: block; width: 100%; }
  .nav__item::after { display: none; }
  .nav__link--pai {
    width: 100%;
    justify-content: space-between;
    padding: 14px clamp(20px, 5vw, 48px);
  }
  /* As três variações precisam vir juntas: no toque o botão fica com foco e a
     regra de desktop jogaria o painel para fora da tela. */
  .nav__sub,
  .nav__item:hover .nav__sub,
  .nav__item:focus-within .nav__sub {
    display: none;
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: none;
    min-width: 0;
    margin: 0;
    padding: 0 0 6px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .nav__item.is-open .nav__sub,
  .nav__item.is-open:hover .nav__sub,
  .nav__item.is-open:focus-within .nav__sub { display: flex; }

  .nav__link--pai .ico--seta { width: 20px; height: 20px; }
  .nav__item .ico--seta,
  .nav__item:hover .ico--seta,
  .nav__item:focus-within .ico--seta { transform: none; }
  .nav__item.is-open .ico--seta { transform: rotate(180deg); }

  .nav__sublink {
    padding: 12px clamp(20px, 5vw, 48px);
    padding-left: calc(clamp(20px, 5vw, 48px) + 18px);
    border-radius: 0;
    /* 50% de opacidade some no branco do menu: aqui precisa de contraste */
    color: rgba(17, 17, 17, .72);
  }
  .nav__sublink::before {
    content: '';
    position: absolute;
    left: clamp(20px, 5vw, 48px);
    width: 8px; height: 1px;
    background: var(--border);
  }
  .nav__sublink:hover { background: none; }
}

@media (max-width: 680px) {
  .posts__grid { grid-template-columns: 1fr; }
  .post__title { letter-spacing: -1.4px; }
  .entry { font-size: 16.5px; }

  /* No celular o CTA fica alinhado à esquerda, junto com o resto do texto */
  .post__cta { text-align: left; }
  .post__cta-lead { margin-left: 0; margin-right: 0; }
  .entry .alignleft, .entry .alignright { float: none; margin: 1.4em 0; }
}

@media (max-width: 560px) {
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .wa-float svg { width: 27px; height: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
