/* ==========================================================================
   zarpa.ai facilities · Blog e FAQ
   Tokens iguais aos da landing (facilities-zarpaai/src/css/style.css).
   Cabeçalho e rodapé escuros como na landing; área de leitura clara.
   ========================================================================== */

:root{
  --navy: #2d4356;
  --navy-700: #36506a;
  --steel: #8a9bb0;
  --mist: #c3ccd5;
  --sky: #7badc8;
  --red: #e60000;
  --white: #ffffff;
  --text: #1f2d3a;
  --gray-text: #5c6670;
  --line: #d9dee3;
  --surface: #f4f6f8;

  --font-body: Lexend, system-ui, sans-serif;
  --font-display: 'Lexend Deca', Lexend, sans-serif;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1180px;
  --narrow: 760px;
  --shadow-light: 0 1px 2px rgba(45,67,86,.12), 0 18px 40px -16px rgba(45,67,86,.35);
  --ease-out: cubic-bezier(.2,.7,.2,1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 17px/1.65 var(--font-body);
}
img{ max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4{ font-family: var(--font-display); color: var(--navy); line-height: 1.2; margin: 0; }
a{ color: var(--navy); }
a:focus-visible, summary:focus-visible{ outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

.container{ width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.container--narrow{ max-width: var(--narrow); }
@media (min-width: 768px){ .container{ padding: 0 32px; } }

/* Cabeçalho -------------------------------------------------------------- */
.header{ background: var(--navy); position: sticky; top: 0; z-index: 10; }
.header__inner{ display: flex; align-items: center; gap: 24px; min-height: 68px; flex-wrap: wrap; }
.header__brand img{ height: 26px; width: auto; }
.nav{ display: flex; gap: 4px; margin-left: auto; }
.nav__link{
  color: var(--mist); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: var(--radius-pill); transition: background .2s, color .2s;
}
.nav__link:hover{ color: var(--white); background: var(--navy-700); }
.nav__link.is-active{ color: var(--white); background: var(--navy-700); }
.lang-switch{ display: flex; gap: 2px; border: 1px solid var(--navy-700); border-radius: var(--radius-pill); padding: 3px; }
.lang-switch__link{
  color: var(--steel); text-decoration: none; font-size: 12px; font-weight: 600;
  padding: 4px 9px; border-radius: var(--radius-pill);
}
.lang-switch__link:hover{ color: var(--white); }
.lang-switch__link[aria-current="page"]{ background: var(--white); color: var(--navy); }
@media (max-width: 560px){
  .header__inner{ gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .nav{ order: 3; margin-left: 0; width: 100%; }
  .lang-switch{ margin-left: auto; }
}

/* Topo das páginas -------------------------------------------------------- */
.hero{ padding-top: 56px; padding-bottom: 32px; }
.hero__title{ font-size: clamp(30px, 5vw, 46px); font-weight: 700; letter-spacing: -.01em; }
.hero__intro{ color: var(--gray-text); font-size: 19px; max-width: 640px; margin: 12px 0 0; }

/* Lista de artigos -------------------------------------------------------- */
.cards{ list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card{ border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); transition: box-shadow .25s var(--ease-out), transform .25s var(--ease-out); }
.card:hover{ box-shadow: var(--shadow-light); transform: translateY(-3px); }
.card__link{ display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card__img{ aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--surface); }
.card__body{ padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title{ font-size: 21px; font-weight: 600; }
.card__excerpt{ color: var(--gray-text); margin: 0; font-size: 15.5px; }
.card__more{ margin-top: auto; color: var(--navy); font-weight: 500; font-size: 15px; }
.empty{ color: var(--gray-text); }

.meta{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--gray-text); font-size: 13.5px; }
.tag{ background: var(--surface); color: var(--navy); border-radius: var(--radius-pill); padding: 3px 10px; font-weight: 500; font-size: 12.5px; }
.tag + time::before{ content: "·"; margin-right: 8px; }

/* Artigo ------------------------------------------------------------------ */
.post{ padding-top: 40px; }
.back{ display: inline-block; color: var(--gray-text); text-decoration: none; font-size: 14.5px; margin-bottom: 28px; }
.back:hover{ color: var(--navy); }
.post__title{ font-size: clamp(30px, 5vw, 44px); font-weight: 700; margin: 14px 0 0; letter-spacing: -.01em; }
.post__lead{ font-size: 20px; color: var(--gray-text); margin: 16px 0 0; }
.post__cover{ width: 100%; border-radius: var(--radius-lg); margin: 32px 0 8px; aspect-ratio: 16/9; object-fit: cover; }

.prose{ font-size: 17.5px; }
.prose h2{ font-size: 26px; margin: 2em 0 .5em; }
.prose h3{ font-size: 21px; margin: 1.6em 0 .4em; }
.prose p, .prose ul, .prose ol{ margin: 0 0 1.1em; }
.prose li{ margin-bottom: .35em; }
.prose a{ color: var(--navy); text-decoration-color: var(--sky); text-underline-offset: 3px; }
.prose img{ border-radius: var(--radius-md); margin: 1.5em 0; }
.prose blockquote{ margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--red); color: var(--gray-text); }
.prose code{ background: var(--surface); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose table{ width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; }
.prose th, .prose td{ border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }

/* FAQ --------------------------------------------------------------------- */
.faq__group{ font-size: 22px; margin: 40px 0 12px; }
.faq__group:first-child{ margin-top: 8px; }
.faq__item{ border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 10px; background: var(--white); }
.faq__item[open]{ border-color: var(--mist); box-shadow: var(--shadow-light); }
.faq__question{
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font-weight: 500; color: var(--navy); font-size: 17px;
}
.faq__question::-webkit-details-marker{ display: none; }
.faq__question::after{
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 300; color: var(--sky); transition: transform .2s;
}
.faq__item[open] .faq__question::after{ transform: translateY(-50%) rotate(45deg); }
.faq__answer{ padding: 0 22px 8px; color: var(--text); font-size: 16px; }
.faq__more{ margin-top: 32px; color: var(--gray-text); }

/* Chamada para a landing --------------------------------------------------- */
.cta{ margin-top: 80px; margin-bottom: 64px; }
.cta__box{
  background: var(--navy); color: var(--white); border-radius: var(--radius-lg);
  padding: 36px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cta__title{ color: var(--white); font-size: 24px; }
.cta__text{ color: var(--mist); margin: 8px 0 0; }
.btn{
  display: inline-block; background: var(--red); color: var(--white); text-decoration: none;
  font-weight: 600; padding: 13px 24px; border-radius: var(--radius-pill); transition: filter .2s;
}
.btn:hover{ filter: brightness(1.1); }

/* Rodapé ------------------------------------------------------------------ */
.footer{ background: var(--navy); color: var(--steel); font-size: 14px; }
.footer__inner{ display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.footer__inner img{ height: 22px; width: auto; }
.footer p{ margin: 0; }
