/* ==========================================
   DESIGN SYSTEM - BLOG CAPELLO IMÓVEIS
   Paleta: Preto & Dourado / Amarelo Real
   ========================================== */

:root {
    /* Cores do Tema Claro (Padrão) */
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAFAFA;
    --bg-tertiary: #F1F3F5;
    --text-primary: #121212;
    --text-secondary: #4A4A4A;
    --text-muted: #7A7A7A;
    --accent-gold: #D4AF37; /* Dourado Metálico */
    --accent-yellow: #FFC107; /* Amarelo de Realce */
    --accent-dark: #000000;
    --accent-gold-rgb: 212, 175, 55;
    
    --border-color: #E9ECEF;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --input-focus: rgba(212, 175, 55, 0.25);
    
    /* Layout & Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --header-height: 70px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tema Escuro (Ativado via JS) */
body.dark-theme {
    --bg-primary: #121212;
    --bg-secondary: #1A1A1A;
    --bg-tertiary: #262626;
    --text-primary: #F8F9FA;
    --text-secondary: #CCCCCC;
    --text-muted: #888888;
    --border-color: #2D2D2D;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    --input-focus: rgba(255, 193, 7, 0.2);
}

/* Base Reset & Core Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

/* Utility Styles */
.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.text-yellow { color: var(--accent-yellow); }
.font-large { font-size: 1.2rem; }
.spacer-section { padding: 40px 0 80px 0; }
.badge-accent {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 12px;
}

body.dark-theme .badge-accent {
    background: rgba(255, 193, 7, 0.1);
    color: var(--accent-yellow);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.dark-theme .main-header {
    background-color: rgba(18, 18, 18, 0.85);
}

.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Fallback Logo Stylized */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#logo-img {
    max-height: 45px;
    object-fit: contain;
}

.logo-fallback {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.logo-fallback svg {
    color: var(--accent-gold);
}
body.dark-theme .logo-fallback svg {
    color: var(--accent-yellow);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-family: var(--font-heading);
}

.logo-title {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-gold);
    letter-spacing: 3px;
}

body.dark-theme .logo-subtitle {
    color: var(--accent-yellow);
}

/* Desktop Navigation */
.desktop-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
    color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

body.dark-theme .nav-link::after {
    background-color: var(--accent-yellow);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-whatsapp-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #25D366;
    color: #FFFFFF !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.theme-toggle-btn:hover {
    background-color: var(--border-color);
}

/* Main Content Routing wrapper */
.main-content {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height) - 400px); /* ensures footer stays down */
}

.app-view {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   HERO / SPOTLIGHT (HOMEPAGE)
   ========================================== */

.hero-spotlight {
    background-color: var(--bg-primary);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.featured-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.featured-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: var(--card-shadow);
}

.featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-image-wrapper:hover img {
    transform: scale(1.03);
}

.geo-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--accent-dark);
    color: var(--accent-yellow);
    padding: 6px 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.featured-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-info h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
}

.featured-info h1 a:hover {
    color: var(--accent-gold);
}

body.dark-theme .featured-info h1 a:hover {
    color: var(--accent-yellow);
}

.featured-excerpt {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.btn-read-more {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 4px;
}

body.dark-theme .btn-read-more {
    border-bottom-color: var(--accent-yellow);
}

.btn-read-more:hover {
    color: var(--accent-gold);
    gap: 12px;
}

/* ==========================================
   SEARCH & FILTERS
   ========================================== */

.search-filters-bar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

#search-input {
    width: 100%;
    padding: 16px 16px 16px 52px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

#search-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px var(--input-focus);
    outline: none;
}

/* Horizontal Category Pills Scroll */
.categories-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none; /* Firefox */
}

.categories-container::-webkit-scrollbar {
    display: none; /* Safari & Chrome */
}

.category-pill {
    padding: 10px 20px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: var(--card-shadow);
}

.category-pill:hover {
    border-color: var(--accent-gold);
    color: var(--text-primary);
}

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

body.dark-theme .category-pill.active {
    background-color: var(--accent-yellow);
    color: #000000;
    border-color: var(--accent-yellow);
}

/* ==========================================
   ARTICLES GRID
   ========================================== */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.article-card {
    position: relative;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: var(--accent-gold);
}

body.dark-theme .article-card:hover {
    border-color: var(--accent-yellow);
}

.card-img-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

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

.card-category-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: rgba(255,255,255,0.9);
    color: #121212;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.dark-theme .card-category-badge {
    background-color: rgba(18, 18, 18, 0.9);
    color: #FFFFFF;
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

body.dark-theme .article-card:hover .card-title {
    color: var(--accent-yellow);
}

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

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: auto;
}

.card-cta {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.no-results-container {
    padding: 80px 20px;
    text-align: center;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.no-results-container svg {
    stroke: var(--border-color);
}

/* ==========================================
   ARTICLE DETAIL VIEW
   ========================================== */

.article-detail-container {
    padding: 40px 24px 80px 24px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-secondary);
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background-color: var(--bg-primary);
    box-shadow: var(--card-shadow);
    margin-bottom: 32px;
}

.btn-back:hover {
    color: var(--text-primary);
    border-color: var(--accent-gold);
    transform: translateX(-4px);
}

body.dark-theme .btn-back:hover {
    border-color: var(--accent-yellow);
}

.single-post {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 32px;
}

.post-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 12px;
    margin-bottom: 20px;
}

.post-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 40px;
    box-shadow: var(--hover-shadow);
}

.post-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Article Body Typography Styles */
.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.post-body p {
    margin-bottom: 24px;
}

.post-body h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.post-body blockquote {
    border-left: 4px solid var(--accent-gold);
    padding-left: 20px;
    margin: 32px 0;
    font-style: italic;
    color: var(--text-primary);
    font-weight: 500;
}

body.dark-theme .post-body blockquote {
    border-left-color: var(--accent-yellow);
}

.post-body ul, .post-body ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.post-body li {
    margin-bottom: 8px;
}

/* Call to Action Box Inside Post */
.article-cta-box {
    margin-top: 50px;
    padding: 32px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--accent-gold);
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--card-shadow);
}

body.dark-theme .article-cta-box {
    border-left-color: var(--accent-yellow);
}

.article-cta-box h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.article-cta-box p {
    margin: 0;
    font-size: 0.98rem;
    color: var(--text-secondary);
}

.btn-primary-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--accent-dark);
    color: var(--accent-yellow);
    padding: 14px 28px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--card-shadow);
}

body.dark-theme .btn-primary-gold {
    background-color: var(--accent-yellow);
    color: #000000;
}

.btn-primary-gold:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-whatsapp-share {
    background-color: #25D366 !important;
    color: #FFFFFF !important;
    border-radius: var(--border-radius-sm) !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25) !important;
}

.btn-whatsapp-share:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4) !important;
}

/* ==========================================
   FINANCING SIMULATOR
   ========================================== */

.section-title-wrapper {
    margin-bottom: 48px;
}

.section-title-wrapper h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.simulator-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: start;
}

.simulator-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 32px;
    box-shadow: var(--card-shadow);
}

.simulator-card .card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

/* Simulator Form elements */
.sim-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.input-prefix-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-prefix {
    position: absolute;
    left: 14px;
    font-weight: 600;
    color: var(--text-muted);
    z-index: 2;
    pointer-events: none;
}

.input-hint {
    position: absolute;
    right: 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-gold);
    background-color: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 2;
    pointer-events: none;
}

body.dark-theme .input-hint {
    color: var(--accent-yellow);
}

.sim-form input[type="text"], .sim-form input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.input-prefix-wrapper input[type="text"],
.input-prefix-wrapper input[type="number"] {
    padding-left: 44px !important;
    padding-right: 54px !important;
}

.sim-form input:focus {
    border-color: var(--accent-gold);
    background-color: var(--bg-primary);
    box-shadow: 0 0 0 3px var(--input-focus);
    outline: none;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Radio Buttons Amortization Options */
.amort-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.amort-radio {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background-color: var(--bg-tertiary);
    transition: var(--transition);
}

.amort-radio input[type="radio"] {
    accent-color: var(--accent-gold);
    margin-top: 4px;
}

.radio-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.radio-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.radio-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.amort-radio.active {
    border-color: var(--accent-gold);
    background-color: var(--bg-primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

body.dark-theme .amort-radio.active {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.1);
}

/* Simulator Results styling */
.results-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
    height: 100%;
}

.results-placeholder svg {
    margin-bottom: 16px;
    stroke: var(--border-color);
}

.results-placeholder h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 8px;
}

.results-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--border-radius-sm);
    display: flex;
    flex-direction: column;
}

.kpi-card.highlight {
    grid-column: span 2;
    background-color: var(--accent-dark);
    color: #FFFFFF;
    border: none;
}

body.dark-theme .kpi-card.highlight {
    background-color: var(--accent-tertiary);
    border: 1px solid var(--accent-yellow);
}

.kpi-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.kpi-card.highlight .kpi-label {
    color: var(--accent-yellow);
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.kpi-card.highlight .kpi-value {
    font-size: 1.8rem;
    color: var(--accent-yellow);
}

.kpi-subtext {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

.chart-summary {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.summary-line.font-large {
    font-size: 1.1rem;
    border-top: 1px dotted var(--border-color);
    padding-top: 12px;
    color: var(--text-primary);
}

/* Visualization Timeline Bar */
.amortization-table-summary {
    background-color: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    margin-bottom: 24px;
}

.amortization-table-summary h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.timeline-visual {
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    margin-bottom: 12px;
}

.bar-principal {
    background-color: var(--text-primary);
}

.bar-juros {
    background-color: var(--accent-gold);
}

body.dark-theme .bar-juros {
    background-color: var(--accent-yellow);
}

.timeline-labels {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
}

.dot-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.dot-label::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-label.principal::before {
    background-color: var(--text-primary);
}

.dot-label.juros::before {
    background-color: var(--accent-gold);
}

body.dark-theme .dot-label.juros::before {
    background-color: var(--accent-yellow);
}

.action-box {
    background-color: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    text-align: center;
}

body.dark-theme .action-box {
    background-color: rgba(255, 193, 7, 0.05);
    border-color: rgba(255, 193, 7, 0.15);
}

.action-box h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.action-box p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* ==========================================
   RMC CITY GUIDE (GEO)
   ========================================== */

.cities-selector-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 32px;
    scrollbar-width: none;
}

.cities-selector-scroll::-webkit-scrollbar {
    display: none;
}

.city-selector-btn {
    padding: 12px 24px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: var(--card-shadow);
}

.city-selector-btn:hover {
    border-color: var(--accent-gold);
    color: var(--text-primary);
}

.city-selector-btn.active {
    background-color: var(--accent-dark);
    color: var(--accent-yellow);
    border-color: var(--accent-dark);
    font-weight: 700;
}

body.dark-theme .city-selector-btn.active {
    background-color: var(--accent-yellow);
    color: #000000;
    border-color: var(--accent-yellow);
}

.city-guide-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 40px;
    box-shadow: var(--card-shadow);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    animation: fadeIn 0.4s ease-out;
}

.city-main-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.city-title-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.city-title-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
}

.city-tagline {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-gold);
}

body.dark-theme .city-tagline {
    color: var(--accent-yellow);
}

.city-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Indicators grid right side */
.city-indicators-box {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.indicator-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.indicator-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.indicator-bar-bg {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.indicator-bar-fill {
    height: 100%;
    background-color: var(--accent-gold);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme .indicator-bar-fill {
    background-color: var(--accent-yellow);
}

.average-m2-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    margin: 10px 0;
}

.m2-label {
    font-size: 0.95rem;
    font-weight: 600;
}

.m2-value {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.city-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.highlight-check {
    color: #25D366;
    font-weight: 800;
}

/* ==========================================
   FOOTER
   ========================================== */

.main-footer {
    background-color: #0A0A0A;
    color: #B3B3B3;
    padding: 80px 0 40px 0;
    border-top: 3px solid var(--accent-gold);
}

body.dark-theme .main-footer {
    background-color: #050505;
    border-top-color: var(--accent-yellow);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    color: #FFFFFF;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 30px;
    height: 2px;
    background-color: var(--accent-gold);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-about {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.compliance-badges {
    display: flex;
    gap: 10px;
}

.badge-creci {
    background-color: #1A1A1A;
    border: 1px solid #333333;
    color: #E6E6E6;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
}

.footer-contacts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 0.92rem;
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.editorial-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.neutrality-note {
    font-size: 0.88rem;
    line-height: 1.5;
}

.warning-alert-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background-color: rgba(255, 193, 7, 0.05);
    border: 1px solid rgba(255, 193, 7, 0.15);
    padding: 14px;
    border-radius: 6px;
    color: #E6A100;
    font-size: 0.82rem;
    line-height: 1.4;
}

.warning-alert-icon {
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid #1A1A1A;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #666666;
}

/* ==========================================
   MOBILE BOTTOM NAVIGATION & RESPONSIVENESS
   ========================================== */

.mobile-bottom-nav {
    display: none; /* Desktop hidden */
}

@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .featured-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .simulator-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .city-guide-card {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .container {
        padding: 0 16px;
    }

    .desktop-nav {
        display: none; /* Hide header menu links on mobile */
    }

    /* Show Mobile Navigation Bar fixed at bottom */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background-color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid var(--border-color);
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        z-index: 1000;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
        transition: background-color 0.3s ease, border-color 0.3s ease;
    }

    body.dark-theme .mobile-bottom-nav {
        background-color: rgba(18, 18, 18, 0.9);
        box-shadow: 0 -4px 15px rgba(0,0,0,0.3);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        font-size: 0.72rem;
        font-family: var(--font-heading);
        font-weight: 500;
        gap: 3px;
    }

    .mobile-nav-item.active {
        color: var(--accent-gold);
        font-weight: 700;
    }

    body.dark-theme .mobile-nav-item.active {
        color: var(--accent-yellow);
    }

    .mobile-nav-item.highlight-whatsapp {
        color: #25D366;
    }

    /* Padding under content to avoid blocking by bottom nav */
    .main-content {
        margin-top: var(--header-height);
        padding-bottom: 70px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .featured-info h1 {
        font-size: 1.6rem;
    }

    .post-header h2 {
        font-size: 1.8rem;
    }

    .post-body {
        font-size: 1rem;
    }

    .kpi-card.highlight .kpi-value {
        font-size: 1.4rem;
    }

    .city-title-wrapper h3 {
        font-size: 1.8rem;
    }
}

/* ==========================================
   ROADMAP / TRILHA DO PRIMEIRO IMÓVEL
   ========================================== */

.roadmap-tracker-container {
    position: relative;
    max-width: 900px;
    margin: 40px auto 60px auto;
    padding: 0 20px;
}

.roadmap-line-progress {
    position: absolute;
    top: 25px;
    left: 40px;
    right: 40px;
    height: 4px;
    background-color: var(--border-color);
    z-index: 1;
}

.roadmap-steps-row {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.roadmap-step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    width: 120px;
}

.node-num {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 3px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.roadmap-step-node:hover .node-num {
    border-color: var(--accent-gold);
    color: var(--text-primary);
    transform: scale(1.08);
}

.roadmap-step-node.active .node-num {
    background-color: var(--accent-dark);
    border-color: var(--accent-gold);
    color: var(--accent-yellow);
    box-shadow: 0 0 0 6px var(--input-focus);
}

body.dark-theme .roadmap-step-node.active .node-num {
    background-color: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: #000000;
    box-shadow: 0 0 0 6px var(--input-focus);
}

.node-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
    transition: var(--transition);
    line-height: 1.2;
}

.roadmap-step-node.active .node-label {
    color: var(--text-primary);
    font-weight: 800;
}

/* Roadmap Detail Card */
.roadmap-detail-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 40px;
    box-shadow: var(--card-shadow);
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease-out;
}

.step-detail-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.step-detail-header h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 8px;
    color: var(--text-primary);
}

.step-detail-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.step-detail-body p {
    margin-bottom: 20px;
}

/* Didactic structures: Dictionary & Box info */
.didactic-box {
    background-color: var(--bg-tertiary);
    border-left: 4px solid var(--accent-gold);
    padding: 20px;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    margin: 28px 0;
}

body.dark-theme .didactic-box {
    border-left-color: var(--accent-yellow);
}

.didactic-box h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dictionary-box {
    background-color: rgba(212, 175, 55, 0.05);
    border: 1px dashed rgba(212, 175, 55, 0.3);
    padding: 16px;
    border-radius: var(--border-radius-sm);
    margin: 20px 0;
}

body.dark-theme .dictionary-box {
    background-color: rgba(255, 193, 7, 0.03);
    border-color: rgba(255, 193, 7, 0.2);
}

.dictionary-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

body.dark-theme .dictionary-title {
    color: var(--accent-yellow);
}

.dictionary-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin: 0 !important;
}

.step-cta-wrapper {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

/* Responsividade do Roadmap */
@media (max-width: 768px) {
    .roadmap-tracker-container {
        padding: 0;
        margin-bottom: 40px;
    }

    .roadmap-line-progress {
        left: 20px;
        top: 0;
        bottom: 0;
        width: 4px;
        height: auto;
        right: auto;
    }

    .roadmap-steps-row {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        padding-left: 10px;
    }

    .roadmap-step-node {
        flex-direction: row;
        width: 100%;
        text-align: left;
        gap: 16px;
    }

    .node-num {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.1rem;
    }

    .node-label {
        text-align: left;
        font-size: 0.95rem;
    }

    .roadmap-detail-card {
        padding: 24px;
    }
}
