/* ==========================================================================
   Blog Gabriel Frederick — Maquete "Clareza Editorial Teal"
   Design system + componentes + páginas + responsivo
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --teal: #00A8A8;
  --teal-dark: #00807F;
  --teal-light: #4DC5C5;
  --teal-tint: #E6F7F7;

  --ink: #0A2E2E;
  --body-text: #1F3A3A;

  --white: #FFFFFF;
  --neutral: #F7FAFA;

  --attention: #E85D4C;

  --font-display: "Neuton", Georgia, serif;
  --font-sans: "Open Sans", system-ui, -apple-system, sans-serif;

  --container: 1120px;
  --reading: 720px;
  --gutter: 24px;

  --radius-btn: 8px;
  --radius-card: 12px;
  --radius-pill: 999px;

  --shadow-card:
    0 1px 2px rgba(10, 46, 46, 0.06),
    0 8px 24px rgba(10, 46, 46, 0.06);
  --shadow-card-hover:
    0 12px 32px rgba(10, 46, 46, 0.10);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --section-y: 64px;
  --header-h: 72px;

  --ease: 160ms ease;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--body-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal);
}

button {
  font: inherit;
}

ul,
ol {
  padding-left: 1.25em;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  line-height: 1.2;
}

p {
  margin: 0 0 1.25em;
}

hr {
  border: 0;
  border-top: 1px solid rgba(10, 46, 46, 0.1);
  margin: var(--space-7) 0;
}

/* --------------------------------------------------------------------------
   3. Tipografia
   -------------------------------------------------------------------------- */
.h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.5vw, 36px);
  line-height: 1.18;
  color: var(--ink);
}

.h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.3;
  color: var(--ink);
}

.label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.meta {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(31, 58, 58, 0.75);
}

.meta strong {
  color: var(--ink);
  font-weight: 600;
}

.lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--body-text);
}

.section-title {
  margin-bottom: var(--space-6);
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section--neutral {
  background: var(--neutral);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* --------------------------------------------------------------------------
   5. Acessibilidade
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   6. Componente: Button
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease),
    color var(--ease), box-shadow var(--ease);
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--teal-dark);
  color: var(--white);
}

.btn--secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--secondary:hover {
  background: var(--teal-tint);
  border-color: var(--teal);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  padding-inline: 12px;
}

.btn--ghost:hover {
  background: var(--teal-tint);
  color: var(--ink);
}

.btn--whatsapp {
  background: var(--teal);
  color: var(--white);
}

.btn--whatsapp:hover {
  background: var(--teal-dark);
  color: var(--white);
}

.btn--block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   7. Componente: Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 46, 46, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  align-items: center;
}

.brand__mark {
  width: 10px;
  height: 28px;
  background: var(--teal);
  border-radius: 3px;
  flex-shrink: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

.brand__tag {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.brand:hover .brand__name {
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background-color var(--ease), color var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  background: var(--teal-tint);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid rgba(10, 46, 46, 0.15);
  border-radius: var(--radius-btn);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform var(--ease), opacity var(--ease);
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle__bars::before {
  top: -6px;
}

.menu-toggle__bars::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-bottom: 1px solid rgba(10, 46, 46, 0.08);
  background: var(--white);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: var(--space-3) 0 var(--space-4);
}

.mobile-nav__list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(10, 46, 46, 0.06);
}

.mobile-nav__list li:last-child a {
  border-bottom: 0;
  margin-top: var(--space-3);
  justify-content: center;
}

/* --------------------------------------------------------------------------
   8. Componente: Chip / ChipGroup
   -------------------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1.5px solid rgba(10, 46, 46, 0.14);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--ease), border-color var(--ease),
    color var(--ease);
}

.chip:hover {
  border-color: var(--teal);
  background: var(--teal-tint);
  color: var(--ink);
}

.chip.is-active,
.chip[aria-current="page"] {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.chip.is-active:hover,
.chip[aria-current="page"]:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}

.chip--category {
  min-height: 32px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-color: var(--teal);
  color: var(--teal-dark);
  background: var(--teal-tint);
}

.chip--category:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* Impede o chip de esticar dentro de grid/flex */
.hero-feature .chip,
.hero-list__item .chip,
.card-post__body .chip,
.article-header > .chip {
  justify-self: start;
  align-self: flex-start;
  width: fit-content;
}

.chipgroup {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.chipgroup--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chipgroup--scroll::-webkit-scrollbar {
  display: none;
}

.chips-bar {
  border-block: 1px solid rgba(10, 46, 46, 0.08);
  background: var(--white);
  padding-block: var(--space-4);
}

/* --------------------------------------------------------------------------
   9. Componente: PostMeta
   -------------------------------------------------------------------------- */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  font-size: 14px;
  line-height: 1.4;
  color: rgba(31, 58, 58, 0.75);
}

.post-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.post-meta__date {
  padding-left: 12px;
  position: relative;
}

.post-meta__date::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: var(--teal);
  border-radius: 2px;
}

.post-meta__author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}

.post-meta__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--teal-tint);
}

.post-meta__time::before {
  content: "⏱";
  margin-right: 6px;
}

/* --------------------------------------------------------------------------
   10. Componente: CardPost
   -------------------------------------------------------------------------- */
.card-post {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid rgba(10, 46, 46, 0.08);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--ease), transform var(--ease),
    border-color var(--ease);
}

.card-post[hidden] {
  display: none;
}

.card-post:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: rgba(0, 168, 168, 0.25);
}

.card-post__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--teal-tint);
}

.card-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.card-post:hover .card-post__media img {
  transform: scale(1.03);
}

.card-post__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  flex: 1;
}

.card-post__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.card-post__title a {
  color: inherit;
  text-decoration: none;
}

.card-post__title a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.card-post__excerpt {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body-text);
  flex: 1;
}

.card-post__footer {
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid rgba(10, 46, 46, 0.06);
}

/* Card horizontal (hero lista / categoria lista) */
.card-post--row {
  flex-direction: row;
  align-items: stretch;
}

.card-post--row .card-post__media {
  width: 40%;
  min-width: 160px;
  aspect-ratio: auto;
}

.card-post--row .card-post__body {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   11. Hero da homepage (60/40)
   -------------------------------------------------------------------------- */
.hero {
  padding-block: var(--space-8) var(--space-7);
  background: var(--white);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

.hero-feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hero-feature__media {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--teal-tint);
  box-shadow: var(--shadow-card);
}

.hero-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-feature__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.12;
  color: var(--ink);
}

.hero-feature__title a {
  color: inherit;
  text-decoration: none;
}

.hero-feature__title a:hover {
  color: var(--teal-dark);
}

.hero-feature__excerpt {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--body-text);
  max-width: 56ch;
}

.hero-feature__cta {
  align-self: flex-start;
}

.hero-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--neutral);
  border: 1px solid rgba(10, 46, 46, 0.06);
  border-radius: var(--radius-card);
}

.hero-list--empty {
  min-height: 120px;
  padding: 0;
  background: transparent;
  border: 0;
}

.hero-list__heading {
  margin: 0 0 var(--space-1);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.hero-list__item {
  display: grid;
  gap: 6px;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(10, 46, 46, 0.08);
}

.hero-list__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hero-list__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.hero-list__title a {
  color: var(--ink);
  text-decoration: none;
}

.hero-list__title a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   12. Grid de artigos
   -------------------------------------------------------------------------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.posts-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* --------------------------------------------------------------------------
   13. Componente: Newsletter
   -------------------------------------------------------------------------- */
.newsletter {
  background: var(--teal-tint);
  border-radius: var(--radius-card);
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

.newsletter__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.18;
  color: var(--ink);
  max-width: 22ch;
  margin-inline: auto;
}

.newsletter__text {
  margin: 0 auto var(--space-5);
  max-width: 48ch;
  color: var(--body-text);
  font-size: 17px;
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 520px;
  margin-inline: auto;
}

/* Linha do form (input + botao); a autorizacao LGPD fica abaixo dela. */
.newsletter__row {
  display: flex;
  gap: var(--space-3);
}

.newsletter__input {
  flex: 1;
  min-height: 48px;
  padding: 12px 16px;
  border: 1.5px solid rgba(10, 46, 46, 0.14);
  border-radius: var(--radius-btn);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.newsletter__input::placeholder {
  color: rgba(31, 58, 58, 0.55);
}

.newsletter__input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 168, 168, 0.2);
}

.newsletter__form.is-error .newsletter__input {
  border-color: var(--attention);
}

.newsletter__form.is-success .newsletter__input {
  border-color: var(--teal);
}

.newsletter__msg {
  display: none;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.newsletter__form.is-error .newsletter__msg {
  display: block;
  color: var(--attention);
}

.newsletter__form.is-success .newsletter__msg {
  display: block;
  color: var(--teal-dark);
}

.newsletter__form.is-loading .newsletter__msg {
  display: block;
  color: var(--body-text);
}

/* Consentimento LGPD: obrigatorio antes de enviar. */
.newsletter__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--body-text);
  text-align: left;
  cursor: pointer;
}

.newsletter__consent input[type="checkbox"] {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.newsletter__consent a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.newsletter__consent a:hover {
  color: var(--teal);
}

.newsletter__form.is-error .newsletter__consent input[type="checkbox"] {
  outline: 2px solid var(--attention);
  outline-offset: 1px;
}

.newsletter__form.is-success .btn {
  background: var(--teal-dark);
}

/* --------------------------------------------------------------------------
   14. Componente: Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(230, 247, 247, 0.8);
  padding-block: var(--space-8) var(--space-6);
  margin-top: var(--space-8);
}

.site-footer a {
  color: rgba(230, 247, 247, 0.8);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--teal-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(230, 247, 247, 0.12);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 var(--space-2);
}

.footer-brand__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(230, 247, 247, 0.7);
  max-width: 28ch;
}

.footer-col__title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-light);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.footer-col li {
  font-size: 15px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-5);
  font-size: 13px;
  color: rgba(230, 247, 247, 0.55);
}

/* --------------------------------------------------------------------------
   15. Componente: Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb {
  padding-block: var(--space-5) 0;
  font-size: 14px;
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(31, 58, 58, 0.7);
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(31, 58, 58, 0.4);
}

.breadcrumb a {
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   16. Página: Artigo — layout + rail
   -------------------------------------------------------------------------- */
.article-header {
  padding-bottom: var(--space-5);
}

.article-header__title {
  margin: var(--space-3) 0 var(--space-4);
  max-width: 18ch;
}

.article-header__meta {
  margin-bottom: var(--space-5);
}

.article-cover {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--teal-tint);
  box-shadow: var(--shadow-card);
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, var(--reading)) 1fr;
  gap: var(--space-6);
  align-items: start;
  padding-block: var(--space-7);
}

.article-rail {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  order: 0;
}

.author-box {
  padding: var(--space-5);
  background: var(--neutral);
  border: 1px solid rgba(10, 46, 46, 0.08);
  border-radius: var(--radius-card);
}

.author-box__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: var(--space-3);
  background: var(--teal-tint);
}

.author-box__name {
  margin: 0 0 4px;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.author-box__role {
  margin: 0 0 var(--space-3);
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-dark);
}

.author-box__text {
  margin: 0 0 var(--space-4);
  font-size: 14px;
  line-height: 1.55;
  color: var(--body-text);
}

.author-box__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-dark);
  text-decoration: none;
}

.author-box__link:hover {
  color: var(--teal);
  text-decoration: underline;
}

/* Coluna do corpo */
.article-body {
  min-width: 0;
  font-size: 19px;
  line-height: 1.65;
  color: var(--body-text);
}

.article-body > * + * {
  margin-top: 0;
}

.article-body p {
  margin: 0 0 1.35em;
}

.article-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.18;
  color: var(--ink);
  margin: 2em 0 0.6em;
}

.article-body h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  margin: 1.8em 0 0.5em;
}

.article-body a {
  color: var(--teal-dark);
  font-weight: 600;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.35em;
}

.article-body li {
  margin-bottom: 0.5em;
}

.article-body li::marker {
  color: var(--teal);
  font-weight: 700;
}

.article-body strong {
  color: var(--ink);
}

.article-body blockquote {
  margin: 2em 0;
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  border-left: 3px solid var(--teal);
}

.article-body blockquote p {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.5em;
}

.article-body blockquote footer {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--teal-dark);
}

.article-body blockquote cite {
  font-style: normal;
}

.article-body figure {
  margin: 2em 0;
}

.article-body figcaption {
  margin-top: var(--space-2);
  font-size: 14px;
  color: rgba(31, 58, 58, 0.7);
}

/* --------------------------------------------------------------------------
   17. Componentes didáticos (BoxDestaque, KPI, Timeline, etc.)
   -------------------------------------------------------------------------- */

/* Box "Em resumo" */
.box-resumo {
  margin: 2em 0;
  padding: var(--space-5);
  background: var(--teal-tint);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

.box-resumo__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.box-resumo ul {
  margin: 0;
  padding-left: 1.2em;
}

.box-resumo li {
  margin-bottom: 0.45em;
  font-size: 17px;
}

.box-resumo li::marker {
  color: var(--teal);
}

/* Definição */
.box-definicao {
  margin: 2em 0;
  padding: var(--space-5);
  background: var(--white);
  border: 1.5px solid rgba(0, 168, 168, 0.35);
  border-radius: var(--radius-card);
}

.box-definicao__term {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}

.box-definicao__text {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

/* KPI */
.kpi {
  margin: 2em 0;
  padding: var(--space-6) var(--space-5);
  background: var(--neutral);
  border-radius: var(--radius-card);
  text-align: center;
  border: 1px solid rgba(10, 46, 46, 0.06);
}

.kpi__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  line-height: 1;
  color: var(--teal);
  margin-bottom: var(--space-2);
}

.kpi__label {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

/* Timeline / Passo a passo */
.timeline {
  list-style: none;
  margin: 2em 0;
  padding: 0;
  counter-reset: step;
}

.timeline li {
  position: relative;
  padding: 0 0 var(--space-5) 56px;
  margin: 0;
  counter-increment: step;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: var(--teal-light);
}

.timeline li:last-child::after {
  display: none;
}

.timeline strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.timeline span {
  font-size: 16px;
  color: var(--body-text);
}

/* Antes vs Depois */
.comparativo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin: 2em 0;
}

.comparativo__card {
  padding: var(--space-5);
  border-radius: var(--radius-card);
  border: 1px solid rgba(10, 46, 46, 0.08);
}

.comparativo__card--antes {
  background: var(--neutral);
}

.comparativo__card--depois {
  background: var(--teal-tint);
  border-color: rgba(0, 168, 168, 0.3);
}

.comparativo__label {
  display: inline-block;
  margin-bottom: var(--space-3);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.comparativo__card--antes .comparativo__label {
  color: rgba(31, 58, 58, 0.65);
}

.comparativo__card--depois .comparativo__label {
  color: var(--teal-dark);
}

.comparativo__card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}

/* Tabela */
.table-wrap {
  margin: 2em 0;
  overflow-x: auto;
  border: 1px solid rgba(10, 46, 46, 0.08);
  border-radius: var(--radius-card);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  min-width: 520px;
}

.table th,
.table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(10, 46, 46, 0.08);
}

.table thead th {
  background: var(--neutral);
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.table tbody td {
  color: var(--body-text);
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table td strong {
  color: var(--ink);
  font-weight: 700;
}

.table .num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ink);
}

.table .is-highlight {
  background: var(--teal-tint);
}

/* Fórmula */
.formula {
  margin: 2em 0;
  padding: var(--space-5);
  background: var(--ink);
  border-radius: var(--radius-card);
  color: var(--teal-tint);
  overflow-x: auto;
}

.formula__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-light);
}

.formula__expr {
  margin: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 17px;
  line-height: 1.7;
  color: var(--white);
  white-space: pre-wrap;
}

.formula__expr em {
  font-style: normal;
  color: var(--teal-light);
}

.formula__example {
  margin: var(--space-3) 0 0;
  font-size: 14px;
  color: rgba(230, 247, 247, 0.75);
}

/* FAQ */
.faq {
  margin: 2em 0;
  display: grid;
  gap: var(--space-3);
}

.faq details {
  border: 1px solid rgba(10, 46, 46, 0.1);
  border-radius: var(--radius-card);
  background: var(--white);
  overflow: hidden;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 56px;
  padding: 14px var(--space-5);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--ease), background-color var(--ease);
}

.faq details[open] summary::after {
  content: "−";
  background: var(--teal);
  color: var(--white);
}

.faq details p {
  margin: 0;
  padding: 0 var(--space-5) var(--space-5);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-text);
}

/* CTA de consultoria */
.cta-consultoria {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: var(--space-7) 0;
  padding: var(--space-6);
  background: var(--neutral);
  border: 1px solid rgba(10, 46, 46, 0.08);
  border-radius: var(--radius-card);
}

.cta-consultoria__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.cta-consultoria__text {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  max-width: 48ch;
}

.cta-consultoria__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Tags do artigo */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.article-tags .chip {
  min-height: 34px;
  font-size: 13px;
}

/* RelatedPosts */
.related {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(10, 46, 46, 0.08);
}

.related__title {
  margin-bottom: var(--space-5);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-7);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid rgba(10, 46, 46, 0.12);
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
  transition: background-color var(--ease), border-color var(--ease),
    color var(--ease);
}

.pagination a:hover {
  border-color: var(--teal);
  background: var(--teal-tint);
  color: var(--ink);
}

.pagination [aria-current="page"] {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.pagination [aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* Article prev/next */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(10, 46, 46, 0.08);
}

.article-nav__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-4);
  border: 1px solid rgba(10, 46, 46, 0.1);
  border-radius: var(--radius-card);
  text-decoration: none;
  transition: border-color var(--ease), background-color var(--ease);
}

.article-nav__link:hover {
  border-color: var(--teal);
  background: var(--teal-tint);
}

.article-nav__dir {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.article-nav__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.article-nav__link--next {
  text-align: right;
  align-items: flex-end;
}

/* --------------------------------------------------------------------------
   18. Página: Categoria
   -------------------------------------------------------------------------- */
.category-hero {
  padding-block: var(--space-7) var(--space-5);
  background: var(--neutral);
  border-bottom: 1px solid rgba(10, 46, 46, 0.06);
}

.category-hero__title {
  margin: var(--space-2) 0 var(--space-3);
}

.category-hero__desc {
  margin: 0;
  font-size: 19px;
  max-width: 52ch;
  color: var(--body-text);
}

/* --------------------------------------------------------------------------
   19. Página: Busca
   -------------------------------------------------------------------------- */
.search-hero {
  padding-block: var(--space-7);
  background: var(--neutral);
  border-bottom: 1px solid rgba(10, 46, 46, 0.06);
}

.search-form {
  display: flex;
  gap: var(--space-3);
  max-width: 680px;
  margin-top: var(--space-5);
}

.search-form__input {
  flex: 1;
  min-height: 52px;
  padding: 12px 18px;
  border: 1.5px solid rgba(10, 46, 46, 0.14);
  border-radius: var(--radius-btn);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--ink);
}

.search-form__input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 168, 168, 0.2);
}

.search-results-label {
  margin: 0 0 var(--space-5);
  font-size: 17px;
  color: var(--body-text);
}

.search-results-label strong {
  color: var(--ink);
}

/* EmptyState */
.empty-state {
  display: none;
  text-align: center;
  padding: var(--space-8) var(--space-5);
  background: var(--neutral);
  border: 1.5px dashed rgba(10, 46, 46, 0.15);
  border-radius: var(--radius-card);
}

.empty-state.is-visible {
  display: block;
}

.empty-state__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  background: var(--teal-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--teal-dark);
}

.empty-state__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
}

.empty-state__text {
  margin: 0 auto var(--space-5);
  max-width: 40ch;
  font-size: 16px;
  color: var(--body-text);
}

/* --------------------------------------------------------------------------
   20. Utilidades
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   21. Responsivo
   -------------------------------------------------------------------------- */

/* Tablet: 768–1023px */
@media (max-width: 1023px) {
  :root {
    --gutter: 24px;
    --section-y: 56px;
  }

  .container {
    width: min(100% - 48px, var(--container));
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .article-rail {
    position: static;
    order: 2;
    max-width: 480px;
  }

  .article-body {
    order: 1;
    max-width: var(--reading);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-actions .btn--whatsapp {
    display: none;
  }

  /* No tablet o CTA fica dentro do menu mobile */
  .mobile-nav .btn--whatsapp {
    display: inline-flex;
  }
}

/* Mobile: <768px — testar especialmente 390px */
@media (max-width: 767px) {
  :root {
    --gutter: 16px;
    --section-y: 48px;
    --header-h: 64px;
  }

  body {
    font-size: 17px;
  }

  .container {
    width: min(100% - 32px, var(--container));
  }

  .brand__tag {
    display: none;
  }

  .brand__name {
    font-size: 21px;
  }

  .hero {
    padding-block: var(--space-6) var(--space-5);
  }

  .hero-feature__title {
    font-size: clamp(30px, 8vw, 38px);
  }

  .hero-feature__excerpt {
    font-size: 17px;
  }

  .hero-list {
    padding: var(--space-4);
  }

  .posts-grid,
  .posts-grid--2 {
    grid-template-columns: 1fr;
  }

  .chipgroup--scroll {
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }

  .newsletter {
    padding: var(--space-6) var(--space-4);
    text-align: left;
  }

  .newsletter__title {
    margin-inline: 0;
    max-width: none;
  }

  .newsletter__text {
    margin-inline: 0;
  }

  .newsletter__form {
    max-width: none;
  }

  .newsletter__row {
    flex-direction: column;
  }

  .newsletter__row .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .footer-bottom {
    flex-direction: column;
  }

  .article-header__title {
    max-width: none;
    font-size: clamp(32px, 9vw, 40px);
  }

  .article-body {
    font-size: 17px;
  }

  .article-body h2 {
    font-size: 26px;
  }

  .article-body h3 {
    font-size: 20px;
  }

  .article-body blockquote p {
    font-size: 21px;
  }

  .comparativo {
    grid-template-columns: 1fr;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav__link--next {
    text-align: left;
    align-items: flex-start;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form .btn {
    width: 100%;
  }

  .card-post--row {
    flex-direction: column;
  }

  .card-post--row .card-post__media {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .cta-consultoria {
    padding: var(--space-5);
  }

  .cta-consultoria__actions .btn {
    width: 100%;
  }

  .hero-list__item {
    padding-bottom: var(--space-3);
  }
}

/* Telas muito estreitas (≤360px) */
@media (max-width: 360px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .hero-feature__title {
    font-size: 30px;
  }

  .kpi__value {
    font-size: 44px;
  }
}

/* --------------------------------------------------------------------------
   WP menu: ul/li transparentes dentro de .nav
   -------------------------------------------------------------------------- */
.nav ul {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li {
  margin: 0;
  padding: 0;
  display: block;
}

.nav .sub-menu {
  display: none;
}

/* Pagina��o WP: list markup */
.pagination ul {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination li {
  display: block;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid rgba(10, 46, 46, 0.12);
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
}

.pagination .page-numbers.current {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.pagination .page-numbers.dots {
  border: 0;
  background: transparent;
}

/* CTA WhatsApp no mobile (lista extra) */
.mobile-nav__list--cta {
  padding-top: 0;
}

.mobile-nav__list--cta a {
  border-bottom: 0;
  margin-top: var(--space-3);
  justify-content: center;
}
