/* ============================================================
   POMARTEC — pages.css
   Estilos compartilhados pelas páginas internas
   ============================================================ */

/* ── App layout — imagem + conteúdo lado a lado ──────────── */
.app-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.app-layout__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-layout__image img {
  max-width: 100%;
  max-height: 480px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
  .app-layout { grid-template-columns: 1fr; }
  .app-layout__image img { max-height: 320px; }
}

/* ── Case full (cases.html) ──────────────────────────────── */
.metrics-highlight {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.metrics-highlight__item {
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.metrics-highlight__sep {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

.metrics-highlight__num {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: var(--space-3);
}

.metrics-highlight__label {
  font-size: var(--text-xs);
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 900px) {
  .metrics-highlight { grid-template-columns: repeat(2, 1fr); }
  .metrics-highlight__sep { display: none; }
  .metrics-highlight__item { border-bottom: 1px solid var(--border); }
  .metrics-highlight__item:nth-child(odd) { border-right: 1px solid var(--border); }
}

@media (max-width: 480px) {
  .metrics-highlight { grid-template-columns: 1fr; }
  .metrics-highlight__item { border-right: none !important; }
}

.case-full {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: var(--space-10);
}

.case-full__header {
  background: var(--navy);
  padding: var(--space-6) var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.case-full__initials {
  width: 52px;
  height: 52px;
  background: var(--blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: var(--text-lg);
  color: white;
  flex-shrink: 0;
}

.case-full__company { color: var(--white); font-weight: 700; font-size: var(--text-base); }
.case-full__meta    { color: rgba(255,255,255,.5); font-size: var(--text-xs); margin-top: 2px; }

.case-full__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.case-full--reverse .case-full__body { direction: rtl; }
.case-full--reverse .case-full__body > * { direction: ltr; }

.case-full__video {
  padding: var(--space-8);
  background: var(--light);
}

.case-full__content {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-6);
}

.case-full__quote {
  font-size: var(--text-base);
  color: var(--dark);
  line-height: 1.7;
  font-style: italic;
  border-left: 3px solid var(--blue);
  padding-left: var(--space-5);
}

.case-full__author-name { font-weight: 700; color: var(--dark); font-size: var(--text-sm); }
.case-full__author-role { font-size: var(--text-xs); color: var(--muted); }

.case-full__highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.case-full__highlight {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--dark);
  font-weight: 500;
}

.case-full__highlight svg { width: 16px; height: 16px; flex-shrink: 0; }

@media (max-width: 900px) {
  .case-full__body { grid-template-columns: 1fr; direction: ltr; }
  .case-full--reverse .case-full__body { direction: ltr; }
}

/* ── About (sobre-nos.html) ──────────────────────────────── */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.founder-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--trans), box-shadow var(--trans);
}

.founder-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.founder-card__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-5);
  background: var(--blue-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: var(--text-xl);
  color: var(--blue-dk);
}

.founder-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.founder-card__name { font-size: var(--text-base); font-weight: 700; color: var(--dark); }
.founder-card__role { font-size: var(--text-xs); color: var(--blue); font-weight: 600; margin-block: var(--space-2); }
.founder-card__bio  { font-size: var(--text-xs); color: var(--muted); line-height: 1.6; margin-bottom: var(--space-5); }

.founder-card__socials {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
}

.founder-social {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans), border-color var(--trans);
}

.founder-social:hover { background: var(--blue); border-color: var(--blue); }
.founder-social svg { width: 14px; height: 14px; fill: var(--muted); }
.founder-social:hover svg { fill: white; }

@media (max-width: 900px) {
  .founders-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .founders-grid { grid-template-columns: 1fr; }
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 860px;
  margin-inline: auto;
}

/* ── Blog listing ────────────────────────────────────────── */
.blog-listing-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.blog-load-more {
  text-align: center;
  margin-top: var(--space-10);
}

.blog-sidebar__widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-6);
}

.blog-sidebar__widget h3 {
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 900px) {
  .blog-listing-grid  { grid-template-columns: 1fr; }
  .blog-posts-grid    { grid-template-columns: 1fr; }
}

/* ── Podcast ─────────────────────────────────────────────── */
.podcast-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.podcast-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.podcast-card__video { background: var(--light); }

.podcast-card__body {
  padding: var(--space-6);
}

.podcast-card__episode {
  font-size: var(--text-xs);
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: var(--space-2);
}

.podcast-card__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: var(--space-3);
}

.podcast-card__desc {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: var(--space-5);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .podcast-grid { grid-template-columns: 1fr; }
}

/* ── e-Books ─────────────────────────────────────────────── */
.ebook-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  box-shadow: var(--shadow);
  margin-bottom: var(--space-8);
}

.ebook-card__cover {
  background: linear-gradient(135deg, var(--navy), #1a3a5c);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

.ebook-card__cover img {
  max-width: 160px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.ebook-card__body {
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ebook-card__tag {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: var(--space-3);
}

.ebook-card__title {
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: var(--space-5);
  line-height: 1.2;
}

.ebook-card__desc {
  font-size: var(--text-sm);
  color: var(--text);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 56ch;
}

@media (max-width: 640px) {
  .ebook-card { grid-template-columns: 1fr; }
  .ebook-card__cover { padding: var(--space-6); }
  .ebook-card__body  { padding: var(--space-6); }
}

/* ── LP form ─────────────────────────────────────────────── */
.lp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.lp-form-embed {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.lp-form-embed iframe {
  border: none;
  width: 100%;
  min-height: 480px;
}

.lp-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.lp-benefit {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.lp-benefit__icon {
  width: 44px;
  height: 44px;
  background: var(--blue-lt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lp-benefit__icon svg { width: 20px; height: 20px; stroke: var(--blue); fill: none; stroke-width: 2; }

.lp-benefit__title { font-weight: 700; color: var(--dark); font-size: var(--text-sm); margin-bottom: 2px; }
.lp-benefit__desc  { font-size: var(--text-xs); color: var(--muted); }

@media (max-width: 900px) {
  .lp-layout { grid-template-columns: 1fr; }
}

/* ── Thank you ────────────────────────────────────────────── */
.thankyou-box {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
  padding: var(--space-20) var(--space-8);
}

.thankyou-box__icon {
  width: 80px;
  height: 80px;
  background: #d5f5e3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
}

.thankyou-box__icon svg { width: 36px; height: 36px; stroke: var(--green); fill: none; stroke-width: 2; }

/* ── Layout do post — proteção mobile ─────────────────────── */
.post-layout > * { min-width: 0; }
.post-title { word-break: break-word; overflow-wrap: break-word; }

/* Força colapso da sidebar em telas < 960 px */
@media (max-width: 960px) {
  .post-layout {
    grid-template-columns: 1fr !important;
    display: block !important;
  }
  .post-layout > aside {
    display: block;
    width: 100%;
    margin-top: var(--space-10);
  }
}

/* Previne imagens e tabelas de extrapolar o artigo */
.post-content img { max-width: 100% !important; height: auto !important; }
.post-content table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}
.post-content td,
.post-content th { word-break: break-word; overflow-wrap: break-word; }

/* ── Imagens no conteúdo do blog ───────────────────────────── */
.post-content img {
  display: block;
  margin-inline: auto;
  height: auto;
}
/* Grande (100% — padrão): sem margem lateral */
.post-content img[style*="width: 100%"],
.post-content img:not([style*="width"]) { margin-inline: 0; }

/* Encaixe à esquerda: texto envolve à direita */
.post-content img[style*="float: left"],
.post-content img[style*="float:left"] {
  float: left;
  margin-left: 0 !important;
  margin-right: 1.5rem;
  margin-top: .25rem;
  margin-bottom: 1rem;
}
/* Encaixe à direita: texto envolve à esquerda */
.post-content img[style*="float: right"],
.post-content img[style*="float:right"] {
  float: right;
  margin-right: 0 !important;
  margin-left: 1.5rem;
  margin-top: .25rem;
  margin-bottom: 1rem;
}
/* Limpar float após o conteúdo */
.post-content::after { content: ''; display: block; clear: both; }

/* Mobile: desfaz float para não comprimir o texto */
@media (max-width: 640px) {
  .post-content img[style*="float"] {
    float: none !important;
    width: 100% !important;
    margin-inline: 0 !important;
  }
}
