/* ====================================================
   BLOG — page-blog.css
   Sincronizado com o bloco <style> inline de Blog.html
   ==================================================== */

/* ── Reset & tokens ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue: #0066ff; --blue-dark: #002b5c; --blue-deep: #001932;
  --blue-soft: #eaf6ff; --cyan: #16c7ff; --green: #20c86b;
  --text: #0b1f33; --muted: #5d7085; --line: #dcecf8;
  --shadow: 0 20px 60px rgba(0,50,100,.12);
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', Arial, sans-serif; color: var(--text); background: #fff; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 92%); margin: 0 auto; }
h1, h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; letter-spacing: -0.045em; }
h3 { font-family: 'Inter', Arial, sans-serif; }

.tag { display: inline-flex; border-radius: 999px; padding: 8px 14px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 15px 24px; font-weight: 800; border: 1px solid transparent; cursor: pointer; transition: .25s ease; font-size: 15px; text-decoration: none; font-family: 'Inter', sans-serif; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 30px rgba(0,102,255,.25); }
.btn-primary:hover { transform: translateY(-2px); background: #0056d9; }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 10px 28px rgba(32,200,107,.28); }
.btn-green:hover { transform: translateY(-2px); background: #18b05e; }

/* ── Header ── */
header { position: fixed; top: 0; width: 100%; z-index: 100; background: rgba(255,255,255,.88); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(220,236,248,.7); transition: background .25s ease, border-color .25s ease; }
.nav { height: 78px; display: flex; align-items: center; justify-content: space-between; }
header .atlantes-brand-logo { display: flex !important; align-items: center !important; width: 220px !important; min-width: 220px !important; max-width: 220px !important; height: 58px !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; }
.atlantes-official-header-logo { display: block !important; width: 208px !important; max-width: 208px !important; height: auto !important; object-fit: contain !important; }
header .brand .logo-mark, header .brand strong, header .brand span { display: none !important; }
.nav-menu { display: flex; align-items: center; }
.conversion-menu { display: flex !important; align-items: center !important; gap: 2px !important; }
.conversion-menu .nav-item { position: relative; padding-bottom: 18px; margin-bottom: -18px; }
.conversion-menu .nav-item::after { content: ''; position: absolute; left: -12px; right: -12px; top: 100%; height: 22px; background: transparent; z-index: 998; }
.conversion-menu .nav-item > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 9px !important; border-radius: 999px; color: var(--blue-dark); font-weight: 700; font-size: 14px !important; white-space: nowrap; transition: .22s ease; }
.conversion-menu .nav-item > a:hover { color: var(--blue); background: var(--blue-soft); }
.conversion-menu .nav-item.active > a { color: var(--blue); }
.floating-submenu { position: absolute; left: 50%; top: calc(100% + 2px) !important; transform: translateX(-50%) translateY(8px); width: 320px !important; border-radius: 26px; background: rgba(255,255,255,.96); border: 1px solid rgba(0,102,255,.12); box-shadow: 0 28px 78px rgba(0,50,100,.18); padding: 22px; z-index: 999; opacity: 0; pointer-events: none; transition: .22s ease; backdrop-filter: blur(18px); }
.floating-submenu::before { content: ''; position: absolute; left: 50%; top: -8px; width: 16px; height: 16px; transform: translateX(-50%) rotate(45deg); background: rgba(255,255,255,.96); border-left: 1px solid rgba(0,102,255,.12); border-top: 1px solid rgba(0,102,255,.12); }
.has-float:hover .floating-submenu, .has-float:focus-within .floating-submenu, .floating-submenu:hover { opacity: 1 !important; transform: translateX(-50%) translateY(0); pointer-events: auto !important; }
.floating-submenu span { display: block; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 10px; }
.floating-submenu strong { display: block; font-family: 'Cormorant Garamond', Georgia, serif; color: var(--blue-deep); font-size: 34px; line-height: .92; font-weight: 500; letter-spacing: -0.045em; margin-bottom: 12px; }
.floating-submenu p { color: var(--muted); line-height: 1.55; font-size: 14px; margin-bottom: 16px; }
.submenu-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.submenu-badges em, .submenu-badges a { font-style: normal; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); padding: 7px 10px; font-size: 12px; font-weight: 800; text-decoration: none; }
.submenu-cta { display: flex !important; justify-content: center; align-items: center; min-height: 46px; border-radius: 999px; background: var(--green); color: #fff !important; font-weight: 900; box-shadow: 0 14px 34px rgba(32,200,107,.24); transition: transform .2s, box-shadow .2s; }
.submenu-cta:hover { transform: translateY(-2px); box-shadow: 0 20px 48px rgba(32,200,107,.32); }
.conversion-menu .nav-item:nth-last-child(-n+3) .floating-submenu { left: auto !important; right: 0 !important; transform: translateY(8px) !important; }
.conversion-menu .nav-item:nth-last-child(-n+3):hover .floating-submenu, .conversion-menu .nav-item:nth-last-child(-n+3):focus-within .floating-submenu { transform: translateY(0) !important; }
.conversion-menu .nav-item:nth-last-child(-n+3) .floating-submenu::before { left: auto !important; right: 32px !important; transform: rotate(45deg) !important; }
header .btn { white-space: nowrap; }
.mobile-toggle { display: none; align-items: center; justify-content: center; border: 0; background: transparent; padding: 8px; cursor: pointer; color: var(--blue-dark); }
@media (max-width: 1040px) { .conversion-menu { display: none !important; } .mobile-toggle { display: inline-flex; } header .btn { display: none; } }
@media (max-width: 760px) { header .atlantes-brand-logo { width: 175px !important; min-width: 175px !important; max-width: 175px !important; height: 52px !important; } .atlantes-official-header-logo { width: 168px !important; max-width: 168px !important; } }

/* ── Blog hero ── */
.blog-hero { padding: 148px 0 80px; background: linear-gradient(180deg, #f0f7ff 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.blog-hero .tag { margin-bottom: 18px; }
.blog-hero h1 { font-size: clamp(48px, 6.5vw, 88px); color: var(--blue-deep); line-height: 1; margin-bottom: 20px; }
.blog-hero p { font-size: 1.05rem; color: var(--muted); max-width: 560px; line-height: 1.7; margin: 0; }

/* ── Blog list ── */
.blog-list { padding: 64px 0 96px; }
.blog-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 44px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.blog-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn { background: var(--blue-soft); color: var(--blue-dark); border: 1px solid transparent; border-radius: 999px; padding: 9px 20px; font-size: 13px; font-weight: 800; cursor: pointer; transition: .18s; font-family: 'Inter', sans-serif; }
.filter-btn:hover { background: var(--blue); color: #fff; }
.filter-btn.active { background: var(--blue); color: #fff; }
.blog-search { border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-size: 14px; font-family: 'Inter', sans-serif; color: var(--text); outline: none; min-width: 230px; transition: .18s; background: #fff; }
.blog-search:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,102,255,.08); }

/* ── Post grid ── */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 4px 18px rgba(0,40,90,.05); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; text-decoration: none; color: inherit; }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 18px 48px rgba(0,40,90,.12); border-color: var(--cyan); }
.post-card.hidden { display: none; }
.post-thumb { position: relative; overflow: hidden; aspect-ratio: 16/9; display: block; flex-shrink: 0; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .42s ease; }
.post-card:hover .post-thumb img { transform: scale(1.06); }
.post-cat { position: absolute; left: 14px; bottom: 14px; background: rgba(0,25,50,.72); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 6px 13px; border-radius: 999px; backdrop-filter: blur(8px); }
.post-body { padding: 26px 26px 24px; display: flex; flex-direction: column; flex: 1; gap: 0; }
.post-body h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(22px, 2vw, 26px); font-weight: 500; color: var(--blue-deep); line-height: 1.18; flex: 1; margin-bottom: 12px; letter-spacing: -0.03em; }
.post-body h2 a { color: inherit; transition: color .18s; }
.post-body h2 a:hover { color: var(--blue); }
.post-excerpt { color: var(--muted); font-size: 14px; line-height: 1.65; margin-bottom: 18px; }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 600; padding-top: 14px; border-top: 1px solid var(--line); margin-top: auto; }
.post-meta-dot { color: var(--line); }
.post-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 13px; font-weight: 800; margin-top: 14px; transition: gap .18s; }
.post-link:hover { gap: 9px; color: var(--blue-dark); }
.no-results { display: none; text-align: center; padding: 72px 20px; color: var(--muted); font-size: 16px; }
.no-results.visible { display: block; }

/* ── Blog CTA ── */
.blog-cta { background: linear-gradient(180deg, #f0f7ff 0%, var(--blue-soft) 100%); text-align: center; padding: 80px 0; border-top: 1px solid var(--line); }
.blog-cta h2 { font-size: clamp(34px, 4.5vw, 60px); color: var(--blue-deep); margin-bottom: 14px; }
.blog-cta p { color: var(--muted); font-size: 1rem; max-width: 520px; margin: 0 auto 32px; line-height: 1.7; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ── Footer ── */
.atlantes-footer-compact { background: var(--blue-deep); color: #fff; padding: 46px 0 22px; border-top: 1px solid rgba(255,255,255,.10); }
.footer-compact-grid { display: grid; grid-template-columns: 1.15fr 1fr .9fr .85fr; gap: 22px; align-items: stretch; }
.footer-compact-brand, .footer-compact-info, .footer-compact-map, .footer-compact-cta { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); border-radius: 24px; padding: 22px; }
.footer-compact-info > span, .footer-compact-cta > span { display: block; color: #8ee8ff; font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.footer-compact-brand p, .footer-compact-info p { color: #dff6ff; line-height: 1.55; font-size: 14px; }
.footer-compact-info a { color: #fff; font-weight: 800; }
.footer-social-mini { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-social-mini a { border-radius: 999px; background: rgba(255,255,255,.10); color: #fff; padding: 8px 11px; font-size: 13px; font-weight: 800; }
.mini-map { position: relative; height: 138px; border-radius: 18px; overflow: hidden; background: linear-gradient(90deg, transparent 0 24%, rgba(0,102,255,.18) 24% 25%, transparent 25% 100%), linear-gradient(0deg, transparent 0 36%, rgba(0,102,255,.14) 36% 37%, transparent 37% 100%), linear-gradient(135deg, #eaf6ff, #ffffff); margin-bottom: 14px; }
.mini-map-water { position: absolute; left: -18%; bottom: -32%; width: 78%; height: 64%; border-radius: 50%; background: rgba(22,199,255,.24); }
.mini-map-pin { position: absolute; left: 50%; top: 48%; transform: translate(-50%,-50%); border-radius: 999px; background: var(--blue); color: #fff; padding: 9px 13px; font-size: 13px; font-weight: 900; }
.footer-compact-map a { color: #fff; font-size: 14px; font-weight: 900; }
.footer-compact-cta h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 34px; line-height: .92; font-weight: 500; letter-spacing: -0.04em; color: #fff; margin: 12px 0 18px; }
.footer-main-action, .footer-secondary-action { display: flex; justify-content: center; align-items: center; min-height: 44px; border-radius: 999px; font-weight: 900; margin-top: 10px; text-decoration: none; }
.footer-main-action { background: var(--green); color: #fff; box-shadow: 0 14px 34px rgba(32,200,107,.25); }
.footer-secondary-action { background: #fff; color: var(--blue-dark); }
.footer-compact-bottom { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.10); display: flex; justify-content: space-between; gap: 16px; color: #bcd6e8; font-size: 13px; }
.footer-compact-bottom div { display: flex; gap: 14px; }
.footer-compact-bottom a { color: #bcd6e8; }
.footer-logo-real { display: flex !important; align-items: center !important; margin-bottom: 18px !important; background: transparent !important; border-radius: 16px !important; padding: 0 !important; width: fit-content !important; }
.atlantes-footer-logo-img { width: 220px !important; max-width: 100% !important; height: auto !important; object-fit: contain !important; }

/* ── WA Float ── */
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; width: 62px; height: 62px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; z-index: 99; box-shadow: 0 20px 40px rgba(32,200,107,.35); transition: .25s ease; }
.whatsapp-float:hover { transform: scale(1.06); }
.wa-pulse { position: absolute; inset: 0; border-radius: 50%; animation: wa-ring 2.4s ease-out infinite; }
@keyframes wa-ring { 0% { box-shadow: 0 0 0 0 rgba(32,200,107,.55); } 70% { box-shadow: 0 0 0 18px rgba(32,200,107,0); } 100% { box-shadow: 0 0 0 0 rgba(32,200,107,0); } }

/* ── Responsive ── */
@media (max-width: 1100px) { .footer-compact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .posts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .atlantes-footer-compact { padding: 34px 0 20px; } .footer-compact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .blog-hero { padding: 120px 0 60px; } .blog-hero h1 { font-size: 3rem; } .posts-grid { grid-template-columns: 1fr; } .blog-controls { flex-direction: column; align-items: flex-start; } .blog-search { width: 100%; } }
