/* ============================================================
   Blog — Dr. Bronislau Jassek
   Casado com o design system do index.html (site live).
   ============================================================ */

:root {
  --navy: #0D2137;
  --teal-dark: #1B5E6B;
  --teal: #2A8FA3;
  --teal-light: #6BBFCC;
  --mint: #B8E8EE;
  --off-white: #F5F4F0;
  --white: #FAFAF9;
  --gray-subtle: #E8E7E3;
  --gray-mid: #9B9993;
  --gray-dark: #4A4845;
  --footer-bg: #070F18;
  --serif: 'DM Serif Display', serif;
  --sans: 'DM Sans', sans-serif;
  --max: 1120px;
  --pad: clamp(24px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, li { text-wrap: balance; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 768px) { body { padding-bottom: 80px; background: var(--footer-bg); } }

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── BOTTOM NAV (idêntico ao site) ── */
.bottom-nav { position: fixed; bottom: max(20px, calc(env(safe-area-inset-bottom, 0px) + 12px)); left: 50%; transform: translateX(-50%); z-index: 200; width: max-content; max-width: calc(100% - 32px); }
.bottom-nav-inner { background: rgba(10,20,38,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(107,191,204,0.18); border-radius: 60px; padding: 6px 6px 6px 20px; display: flex; align-items: center; gap: 2px; }
.bottom-nav-logo { font-family: var(--serif); font-size: 15px; color: var(--white); text-decoration: none; margin-right: 6px; white-space: nowrap; flex-shrink: 0; }
.bottom-nav-links { display: flex; align-items: center; gap: 0; }
.bottom-nav-links a { font-size: 13px; font-weight: 400; color: rgba(250,250,249,0.6); text-decoration: none; padding: 8px 12px; border-radius: 40px; transition: color 0.2s, background 0.2s; white-space: nowrap; }
.bottom-nav-links a:hover, .bottom-nav-links a.is-current { color: var(--white); background: rgba(255,255,255,0.07); }
.bottom-nav-cta { background: var(--teal); color: var(--white) !important; font-weight: 500 !important; padding: 10px 20px !important; border-radius: 40px !important; transition: background 0.2s !important; white-space: nowrap; }
.bottom-nav-cta:hover { background: var(--teal-dark) !important; color: var(--white) !important; }
@media (max-width: 768px) {
  .bottom-nav-logo { display: none; }
  .bottom-nav-inner { padding: 5px 5px 5px 10px; }
  .bottom-nav-links a { padding: 7px 9px; font-size: 11.5px; }
  .bottom-nav-cta { padding: 9px 14px !important; font-size: 11.5px !important; }
}
@media (max-width: 380px) { .bottom-nav-links a:not(.bottom-nav-cta):not(:last-of-type) { display: none; } }

/* ── BOTÕES (idêntico ao site) ── */
.btn-primary { display: inline-flex; align-items: center; gap: 10px; background: var(--teal); color: var(--white); text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: 0.03em; padding: 16px 32px; border-radius: 4px; transition: background 0.2s, transform 0.2s; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-secondary { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--gray-dark); text-decoration: none; font-size: 14px; font-weight: 400; padding: 16px 24px; border-radius: 4px; border: 1px solid rgba(13,33,55,0.18); transition: border-color 0.2s, color 0.2s; }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }
.btn-secondary--light { color: rgba(245,244,240,0.65); border-color: rgba(107,191,204,0.2); }
.btn-secondary--light:hover { border-color: var(--teal-light); color: var(--white); }

/* ── HELPERS ── */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); }

/* ── PAGE HERO ── */
.page-hero { background: var(--navy); color: var(--off-white); padding: 96px var(--pad) clamp(32px, 4vw, 52px); position: relative; overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; background-image: url('/imgs/blog-hero.jpg'); background-size: cover; background-position: 74% 22%; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(95deg, rgba(13,33,55,0.97) 0%, rgba(13,33,55,0.9) 36%, rgba(13,33,55,0.55) 64%, rgba(13,33,55,0.18) 100%); pointer-events: none; }
.page-hero__inner { position: relative; z-index: 2; max-width: 1120px; width: 100%; margin-inline: auto; }
.page-hero .eyebrow { color: var(--teal-light); display: inline-block; }
.page-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 44px); color: var(--white); line-height: 1.1; margin-top: 12px; max-width: 600px; }
.page-hero p { margin-top: 12px; color: rgba(245,244,240,0.72); font-size: clamp(14px,1.5vw,16px); line-height: 1.6; max-width: 480px; }
@media (max-width: 768px) {
  .page-hero { padding-top: 80px; min-height: 240px; }
  .page-hero__bg { background-position: 72% center; }
  .page-hero::before { background: linear-gradient(180deg, rgba(13,33,55,0.82) 0%, rgba(13,33,55,0.55) 34%, rgba(13,33,55,0.78) 70%, rgba(13,33,55,0.97) 100%); }
}

/* Breadcrumb */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--gray-mid); margin-bottom: 16px; }
.breadcrumb a { color: var(--teal); }
.breadcrumb--light { color: rgba(245,244,240,0.45); }
.breadcrumb--light a { color: var(--teal-light); }

/* ── SECTION ── */
.section { padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 8vw, 90px); background: var(--white); }
.section .wrap { max-width: 1280px; padding-inline: clamp(16px, 3vw, 40px); }

/* ── FILTROS ── */
.blog-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.blog-filters button { font-family: var(--sans); font-size: 13px; font-weight: 400; padding: 9px 20px; border-radius: 40px; border: 1px solid var(--gray-subtle); background: var(--white); color: var(--gray-dark); cursor: pointer; transition: all 0.2s; }
.blog-filters button:hover { border-color: var(--teal-light); color: var(--navy); }
.blog-filters button.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ── CARDS ── */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(244px, 1fr)); gap: 18px; }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--gray-subtle); border-radius: 10px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(13,33,55,0.1); }
.post-card__thumb { aspect-ratio: 16/9; position: relative; overflow: hidden; background: linear-gradient(150deg, var(--teal-dark), var(--navy)); display: block; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.post-card:hover .post-card__thumb img { transform: scale(1.05); }
.post-card__thumb-pulse { position: absolute; bottom: 14px; left: 16px; width: 76px; opacity: 0.5; }
.post-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tag { font-size: 9.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); background: var(--mint); padding: 4px 10px; border-radius: 40px; }
.post-card__date { font-size: 11px; color: var(--gray-mid); }
.post-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.05rem; line-height: 1.24; margin-bottom: 8px; color: var(--navy); }
.post-card h3 a { transition: color 0.2s; }
.post-card h3 a:hover { color: var(--teal); }
.post-card__excerpt { font-size: 0.82rem; color: var(--gray-dark); line-height: 1.55; flex: 1; }
.post-card__more { margin-top: 13px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); display: inline-flex; align-items: center; gap: 6px; }
.post-card__more svg { width: 14px; height: 14px; transition: transform 0.2s; }
.post-card:hover .post-card__more svg { transform: translateX(4px); }

/* ── ARTIGO ── */
.article { padding: clamp(48px, 7vw, 88px) 0; background: var(--white); }
.article__wrap { max-width: 740px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.article__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; color: var(--gray-mid); font-size: 13px; }
.article__title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.12; margin-bottom: 20px; color: var(--navy); }
.article__lead { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--gray-dark); line-height: 1.7; margin-bottom: 16px; }
.article__author { display: flex; align-items: center; gap: 12px; padding-block: 22px; border-block: 1px solid var(--gray-subtle); margin-bottom: 36px; }
.article__author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--mint); display: flex; align-items: center; justify-content: center; color: var(--teal-dark); flex-shrink: 0; }
.article__author-avatar svg { width: 22px; height: 22px; }
.article__author-name { font-weight: 500; color: var(--navy); font-size: 0.95rem; }
.article__author-role { font-size: 0.82rem; color: var(--gray-mid); }

/* CTA inline — após a introdução do artigo */
.cta-inline { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; background: var(--off-white); border: 1px solid var(--gray-subtle); border-left: 3px solid var(--teal); border-radius: 10px; padding: 20px 24px; margin-bottom: 38px; }
.cta-inline__text { font-size: 0.95rem; color: var(--gray-dark); line-height: 1.5; flex: 1; min-width: 220px; }
.cta-inline__text strong { color: var(--navy); font-weight: 500; }
.cta-inline .btn-primary { padding: 12px 22px; font-size: 13px; flex-shrink: 0; }
@media (max-width: 560px) { .cta-inline { padding: 18px 20px; } .cta-inline .btn-primary { width: 100%; justify-content: center; } }

.prose { color: var(--gray-dark); font-size: 1.08rem; line-height: 1.85; }
.prose > * + * { margin-top: 1.4em; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: var(--navy); margin-top: 1.8em; }
.prose h3 { font-family: var(--sans); font-weight: 500; font-size: 1.28rem; color: var(--navy); margin-top: 1.6em; }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--navy); font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 26px; margin-top: 0.7em; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.prose ol { list-style: decimal; }
.prose ol li { margin-top: 0.7em; padding-left: 6px; }
.prose blockquote { border-left: 3px solid var(--teal); padding: 6px 0 6px 24px; margin-block: 1.6em; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--navy); line-height: 1.5; }
.callout { background: var(--off-white); border: 1px solid var(--gray-subtle); border-left: 3px solid var(--teal); border-radius: 8px; padding: 22px 26px; margin-block: 1.8em; }
.callout strong { color: var(--navy); }
.medical-disclaimer { margin-top: 48px; padding: 20px 24px; background: var(--off-white); border-radius: 8px; font-size: 0.85rem; color: var(--gray-mid); line-height: 1.7; }

.article-cta { margin-top: 48px; background: var(--navy); border-radius: 12px; padding: 38px 36px; text-align: center; color: var(--off-white); position: relative; overflow: hidden; }
.article-cta::before { content: ''; position: absolute; top: -100px; right: -60px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(107,191,204,0.1); }
.article-cta h3 { font-family: var(--serif); font-weight: 400; color: var(--white); font-size: 1.5rem; margin-bottom: 12px; position: relative; z-index: 2; }
.article-cta p { color: rgba(245,244,240,0.7); margin-bottom: 24px; position: relative; z-index: 2; }
.article-cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }
.back-link { display: inline-block; margin-top: 32px; color: var(--teal); font-weight: 500; }

/* ── CTA band ── */
.cta-band { background: var(--navy); color: var(--off-white); padding: clamp(56px,8vw,96px) var(--pad); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; top: -120px; right: -80px; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(107,191,204,0.1); }
.cta-band__inner { position: relative; z-index: 2; max-width: 680px; margin-inline: auto; }
.cta-band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px,4.4vw,42px); color: var(--white); }
.cta-band p { margin-top: 16px; color: rgba(245,244,240,0.7); }
.cta-band__actions { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FLOATING WHATSAPP (idêntico ao site) ── */
.wa-float { position: fixed; bottom: 90px; right: 22px; z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.wa-float-btn { width: 52px; height: 52px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 18px rgba(37,211,102,0.32); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; animation: waPulse 3.5s ease-in-out infinite; }
.wa-float-btn:hover { transform: scale(1.08); box-shadow: 0 6px 26px rgba(37,211,102,0.44); animation: none; }
@keyframes waPulse { 0%,100% { box-shadow: 0 4px 18px rgba(37,211,102,0.32); } 50% { box-shadow: 0 4px 24px rgba(37,211,102,0.5), 0 0 0 7px rgba(37,211,102,0.07); } }
.wa-float-btn svg { color: white; }
.wa-tooltip { background: rgba(10,20,38,0.9); color: var(--white); font-size: 12px; font-weight: 400; padding: 6px 12px; border-radius: 4px; white-space: nowrap; opacity: 0; transform: translateX(6px); transition: opacity 0.2s, transform 0.2s; pointer-events: none; }
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

/* ── FOOTER (idêntico ao site) ── */
footer { background: var(--footer-bg); padding: 56px var(--pad) 40px; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.06); flex-wrap: wrap; }
.footer-brand-name { font-family: var(--serif); font-size: 20px; color: var(--white); text-decoration: none; display: block; margin-bottom: 6px; }
.footer-crm { font-size: 12px; font-weight: 300; color: var(--gray-mid); letter-spacing: 0.04em; line-height: 1.6; }
.footer-links { display: flex; gap: 20px; }
.footer-social { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: var(--gray-mid); text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.footer-social:hover { border-color: var(--teal); color: var(--teal-light); }
.footer-bottom { padding-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-copy { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.22); }
.footer-nav { display: flex; gap: 24px; list-style: none; }
.footer-nav a { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.28); text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: rgba(255,255,255,0.6); }

/* ── Reveal (progressive enhancement) ── */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; } }

/* ── Responsivo ── */
@media (max-width: 420px) { .posts-grid { grid-template-columns: 1fr; } }

/* Imagem hero do artigo (vinda do Drive, otimizada) */
.article__hero { margin: 4px 0 30px; border-radius: 12px; overflow: hidden; border: 1px solid var(--gray-subtle); box-shadow: 0 10px 30px rgba(13,33,55,0.08); }
.article__hero img { width: 100%; height: auto; display: block; aspect-ratio: 16/10; object-fit: cover; }
