/* Blog: páginas de índice e de artigo. Depende dos tokens e componentes de site.css. */

.blog-hero {
  position: relative;
  padding: 9.5rem 0 3.5rem;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(15, 15, 15, 0.82) 55%, rgba(30, 30, 30, 0.6)),
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    url("../images/instagram-soft-opening-space.jpg");
  background-position: center;
  background-size: cover, 58px 58px, 58px 58px, cover;
  color: var(--white);
}

.blog-hero-inner,
.blog-container {
  width: min(100% - 2rem, 760px);
  margin: 0 auto;
}

.blog-container-wide {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.blog-hero .eyebrow {
  color: var(--white);
}

.blog-hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  line-height: 1.08;
}

.blog-hero-lead {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.35rem;
  opacity: 0.6;
}

.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb a:hover {
  color: var(--white);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.article-meta a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Corpo do artigo */

.article-body {
  padding: 3.5rem 0 2rem;
  font-size: 1.06rem;
  line-height: 1.75;
}

.article-body h2 {
  margin: 2.8rem 0 1rem;
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem);
  line-height: 1.2;
}

.article-body h3 {
  margin: 1.8rem 0 0.6rem;
  font-size: 1.18rem;
  line-height: 1.3;
}

.article-body p,
.article-body ul {
  margin: 0 0 1.1rem;
}

.article-body ul {
  padding-left: 1.3rem;
}

.article-body li {
  margin-bottom: 0.35rem;
}

.article-body a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--muted);
}

.article-lead {
  font-size: 1.16rem;
}

.read-also {
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--ink);
  background: var(--porcelain);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.table-scroll {
  margin: 0 0 1.6rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--porcelain);
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.97rem;
  line-height: 1.5;
}

.table-scroll th,
.table-scroll td {
  padding: 0.8rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.table-scroll thead th {
  background: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.table-scroll tbody th {
  font-weight: 800;
  white-space: nowrap;
}

.article-cta {
  margin: 2.4rem 0;
  padding: 1.8rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.article-cta p {
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.82);
}

.article-cta strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
  color: var(--white);
}

.article-cta .button {
  text-decoration: none;
}

.faq-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin-top: 0;
}

.faq-item p:last-child {
  margin-bottom: 0;
}

.references {
  font-size: 0.95rem;
  word-break: break-word;
}

.author-box {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.2rem;
  align-items: center;
  margin: 2.6rem 0 1rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--porcelain);
}

.author-box img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
}

.author-box p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.6;
}

.author-box strong {
  display: block;
  font-size: 1.05rem;
}

/* Índice do blog */

.post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  padding: 3.5rem 0 2rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--porcelain);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.post-card .eyebrow {
  margin: 0;
}

.post-card h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.post-card p {
  margin: 0;
  color: var(--muted);
}

.post-card-link {
  margin-top: auto;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 680px) {
  .blog-hero {
    padding: 7.5rem 0 2.5rem;
  }

  .article-body {
    padding-top: 2.5rem;
    font-size: 1rem;
  }

  .post-list {
    grid-template-columns: 1fr;
  }

  .author-box {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .article-cta {
    padding: 1.4rem;
  }
}

/* Páginas comerciais de tratamento (lentes, implantes). */

.treatment-hero .blog-hero-lead {
  margin-bottom: 1.6rem;
}

.treatment-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.treatment-figure {
  margin: 0 0 2rem;
}

.treatment-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.treatment-figure figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}

.highlight-grid li {
  margin: 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--porcelain);
}

.highlight-grid strong {
  display: block;
  margin-bottom: 0.3rem;
}

.doctor-quote {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--ink);
  background: var(--porcelain);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.doctor-quote p {
  font-size: 1.08rem;
}

.doctor-quote cite {
  font-style: normal;
  font-weight: 800;
  font-size: 0.92rem;
}

.related-list {
  display: grid;
  gap: 0.8rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}

.related-list a {
  display: block;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--porcelain);
  font-weight: 700;
  text-decoration: none;
}

.related-list a:hover {
  color: inherit;
  box-shadow: var(--shadow-soft);
}

.disclaimer {
  color: var(--muted);
  font-size: 0.88rem;
}

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