/* ==============================================================================
   BLOG ESCOLA DE IMÓVEIS - DESIGN SYSTEM & STYLES (SEO + GEO LUXURY)
   Tipografia: Fraunces (Serif) + DM Sans (Sans) + Niramit
   Paleta: #F6F6F6 (Bg), #2B3036 (Heading), #6C757D (Text), #E8934A (Accent)
   ============================================================================== */

:root {
  --bg: #F6F6F6;
  --bg-card: #FFFFFF;
  --heading: #2B3036;
  --body-text: #5A626A;
  --body-muted: #8C959F;
  --accent: #E8934A;
  --accent-dk: #C97A30;
  --accent-light: #FFF5EC;
  --accent-border: #F7D6B8;
  --white: #FFFFFF;
  --black: #1A1A1A;
  --border: #E5E7EB;
  --border-light: #F0F2F5;
  --success: #10B981;
  --success-bg: #ECFDF5;
  
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --niramit: 'Niramit', sans-serif;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 24px rgba(43, 48, 54, 0.06);
  --shadow-lg: 0 16px 36px rgba(43, 48, 54, 0.09);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--body-text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header & Navbar */
.blog-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 246, 246, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.blog-nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.blog-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.blog-logo-tag {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--heading);
  color: var(--white);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.blog-nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--heading);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-nav-link:hover {
  color: var(--accent);
}

.blog-cta-btn {
  background: var(--accent);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(232, 147, 74, 0.25);
  border: 1px solid transparent;
}

.blog-cta-btn:hover {
  background: var(--accent-dk);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(232, 147, 74, 0.35);
}

/* Hero Section */
.blog-hero {
  max-width: 1240px;
  margin: 2.5rem auto 1.5rem;
  padding: 0 1.5rem;
}

.blog-hero-content {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.5rem;
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--accent-border);
  color: var(--accent-dk);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.blog-hero-title {
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.blog-hero-subtitle {
  font-size: 1.15rem;
  color: var(--body-text);
  line-height: 1.6;
}

/* Search & Categories Filter */
.blog-controls {
  max-width: 1240px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.blog-search-wrapper {
  position: relative;
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
}

.blog-search-input {
  width: 100%;
  padding: 0.9rem 1.25rem 0.9rem 3rem;
  font-size: 1rem;
  font-family: var(--sans);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: var(--transition);
  color: var(--heading);
}

.blog-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 147, 74, 0.15);
}

.blog-search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--body-muted);
  font-size: 1.05rem;
}

.blog-categories-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.category-pill {
  background: var(--white);
  color: var(--heading);
  border: 1px solid var(--border);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.category-pill:hover,
.category-pill.active {
  background: var(--heading);
  color: var(--white);
  border-color: var(--heading);
  transform: translateY(-1px);
}

.category-pill.active {
  background: var(--accent);
  border-color: var(--accent);
}

/* Featured / Latest Hero Card */
.featured-post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-bottom: 3.5rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  transition: var(--transition);
}

.featured-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-border);
}

.featured-post-img-link {
  display: block;
  overflow: hidden;
  position: relative;
  min-height: 380px;
}

.featured-post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-post-card:hover .featured-post-img {
  transform: scale(1.04);
}

.featured-post-body {
  padding: 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.post-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent-dk);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.post-reading-time {
  font-size: 0.82rem;
  color: var(--body-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.featured-post-title {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.featured-post-excerpt {
  color: var(--body-text);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-author-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.post-date {
  font-size: 0.82rem;
  color: var(--body-muted);
}

/* Posts Grid */
.blog-grid-section {
  max-width: 1240px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.blog-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.blog-grid-title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--heading);
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-border);
}

.blog-card-img-link {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.35;
  margin: 0.6rem 0 0.75rem;
  transition: var(--transition);
}

.blog-card:hover .blog-card-title {
  color: var(--accent);
}

.blog-card-excerpt {
  font-size: 0.92rem;
  color: var(--body-text);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

/* ==============================================================================
   ESTILOS DA PÁGINA DO ARTIGO (POST.HTML) - LAYOUT 2 COLUNAS & TOC
   ============================================================================== */

.post-layout-shell {
  max-width: 1240px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 3.5rem;
  align-items: start;
}

.post-main-column {
  min-width: 0;
}

.post-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--body-muted);
  margin-bottom: 1.25rem;
}

.post-breadcrumbs a:hover {
  color: var(--accent);
}

.post-tags-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.post-tag-item {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dk);
  background: var(--accent-light);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.post-article-header {
  margin-bottom: 2rem;
}

.post-article-title {
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 1.25rem;
}

.post-meta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.share-buttons-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--heading);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.share-btn:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.post-hero-image-wrapper {
  margin: 2rem 0 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* GEO Quick Answer / TL;DR Box */
.geo-quick-answer-box {
  background: linear-gradient(135deg, #FFF9F3 0%, #FFFFFF 100%);
  border: 2px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.geo-quick-answer-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dk);
  margin-bottom: 0.75rem;
}

.geo-quick-answer-text {
  font-size: 1.12rem;
  color: var(--heading);
  font-weight: 500;
  line-height: 1.65;
}

/* Article Content Typography & Formatting */
.article-content {
  font-size: 1.12rem;
  line-height: 1.85;
  color: #374151;
}

.article-content h2 {
  font-family: var(--serif);
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin: 3rem 0 1.25rem;
  line-height: 1.3;
  scroll-margin-top: 100px;
}

.article-content h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--heading);
  margin: 2.25rem 0 1rem;
  scroll-margin-top: 100px;
}

.article-content p {
  margin-bottom: 1.65rem;
}

.article-content ul,
.article-content ol {
  margin: 0 0 2rem 1.5rem;
  padding-left: 0.5rem;
}

.article-content li {
  margin-bottom: 0.75rem;
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--white);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--heading);
  margin: 2.5rem 0;
  box-shadow: var(--shadow-sm);
}

/* Comparison Tables */
.geo-comparison-table-wrapper {
  overflow-x: auto;
  margin: 2.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

.geo-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.98rem;
}

.geo-table th {
  background: var(--heading);
  color: var(--white);
  padding: 1.1rem 1.35rem;
  font-weight: 700;
}

.geo-table td {
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--border-light);
}

.geo-table tr:last-child td {
  border-bottom: none;
}

.geo-table tr:nth-child(even) {
  background: #FAFAFA;
}

/* Sidebar (Sticky Table of Contents & Categories) */
.post-sidebar-column {
  position: sticky;
  top: 95px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-box-title {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--heading);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toc-link {
  font-size: 0.92rem;
  color: var(--body-text);
  line-height: 1.45;
  display: block;
  transition: var(--transition);
}

.toc-link:hover,
.toc-link.active {
  color: var(--accent);
  font-weight: 700;
  transform: translateX(3px);
}

.toc-sub-item {
  padding-left: 1rem;
  font-size: 0.86rem;
  color: var(--body-muted);
}

.sidebar-cat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidebar-cat-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--border-light);
}

.sidebar-cat-link:hover {
  color: var(--accent);
  padding-left: 4px;
}

/* FAQ Accordion */
.article-faq-section {
  margin: 4rem 0 3rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.faq-section-title {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.faq-accordion-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.faq-accordion-trigger:hover {
  color: var(--accent);
}

.faq-accordion-content {
  font-size: 1.02rem;
  color: var(--body-text);
  line-height: 1.7;
  padding-top: 0.85rem;
  display: none;
}

.faq-accordion-item.active .faq-accordion-content {
  display: block;
  animation: fadeIn 0.3s ease;
}

.faq-accordion-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-chevron {
  transition: transform 0.25s ease;
}

/* In-Post Conversion CTA */
.article-conversion-cta {
  background: linear-gradient(135deg, #2B3036 0%, #1A1A1A 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  margin: 4rem 0 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.article-conversion-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(232, 147, 74, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-tag {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.cta-title {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.cta-desc {
  color: #D1D5DB;
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 1.75rem;
}

/* Posts Relacionados */
.related-posts-section {
  max-width: 1240px;
  margin: 4rem auto;
  padding: 3rem 1.5rem 0;
  border-top: 1px solid var(--border);
}

.related-posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.related-posts-title {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--heading);
}

/* Footer */
.blog-footer {
  background: #1A1A1A;
  color: #9CA3AF;
  padding: 3.5rem 1.5rem 2rem;
  border-top: 1px solid #2D3748;
}

.blog-footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #2D3748;
}

.footer-brand-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 380px;
}

.footer-nav-title {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1240px;
  margin: 1.5rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .post-layout-shell {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .post-sidebar-column {
    display: none; /* Em mobile, foca no artigo puro */
  }
}

@media (max-width: 900px) {
  .featured-post-card {
    grid-template-columns: 1fr;
  }
  .featured-post-img-link {
    min-height: 240px;
  }
  .blog-footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .post-article-title {
    font-size: 2.1rem;
  }
  .blog-hero-title {
    font-size: 2.1rem;
  }
}
