/*
Theme Name: VivaFinance Modern
Description: Modern B2C Financial Portal
Version: 5.0
*/

:root {
    /* Fresh, Trustworthy Palette */
    --c-primary: #2d3e50;    /* Dark Slate */
    --c-accent: #00b894;     /* Mint Green - Growth, Money, Safety */
    --c-accent-hover: #00a383;
    --c-bg-light: #f8f9fa;   /* Light Grey */
    --c-white: #ffffff;
    
    --c-text-main: #2d3436;
    --c-text-muted: #636e72;
    
    --gradient-main: linear-gradient(135deg, #00b894 0%, #0984e3 100%);
    
    --f-head: 'Montserrat', sans-serif;
    --f-body: 'Open Sans', sans-serif;
    
    --container-width: 1140px;
    --border-radius: 16px;
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 50px rgba(0,0,0,0.1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background: var(--c-white);
    color: var(--c-text-main);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 { font-family: var(--f-head); font-weight: 700; color: var(--c-primary); margin-bottom: 1rem; }

/* LAYOUT */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}
.site-content { margin-top: 80px; }

/* --- HEADER --- */
.viva-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}
.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.viva-logo {
    font-family: var(--f-head);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--c-primary);
}
.viva-logo .highlight { color: var(--c-accent); }

.viva-nav { display: flex; }
.viva-menu { display: flex; gap: 2rem; }
.viva-menu a {
    font-weight: 600;
    color: var(--c-primary);
    font-size: 0.95rem;
}
.viva-menu a:hover { color: var(--c-accent); }

.header-actions { display: flex; align-items: center; gap: 1.5rem; }
.header-phone {
    font-weight: 700;
    color: var(--c-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.icon-phone { font-size: 1.2rem; }

.mobile-burger { display: none; background: none; border: none; cursor: pointer; }
.mobile-burger span { display: block; width: 25px; height: 3px; background: var(--c-primary); margin: 5px 0; border-radius: 3px; }

/* --- HERO --- */
.viva-hero {
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
    background: #fdfdfd;
}
.hero-bg-shape {
    position: absolute;
    top: -20%; right: -10%;
    width: 60%; height: 120%;
    background: radial-gradient(circle, rgba(0,184,148,0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}
.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}
.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.text-gradient {
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--c-text-muted);
    margin-bottom: 2.5rem;
    max-width: 480px;
}
.hero-buttons { display: flex; gap: 1rem; margin-bottom: 3rem; }
.btn-main {
    background: var(--c-accent);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0,184,148,0.3);
}
.btn-main:hover { background: var(--c-accent-hover); transform: translateY(-2px); }
.btn-light {
    background: #fff;
    color: var(--c-primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid #eee;
}
.btn-light:hover { border-color: var(--c-primary); }

.hero-stats { display: flex; gap: 2rem; }
.stat-pill {
    background: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    font-size: 0.9rem;
    color: var(--c-text-muted);
}
.stat-pill strong { color: var(--c-accent); font-size: 1.2rem; margin-right: 0.3rem; }

.hero-image-block {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.interface-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    position: absolute;
    width: 320px;
}
.main-card { transform: rotate(-3deg); z-index: 1; }
.float-card {
    top: 60%; right: 10%;
    width: auto;
    padding: 1rem 1.5rem;
    transform: rotate(3deg);
    z-index: 2;
    box-shadow: var(--shadow-hover);
}
.card-header { display: flex; justify-content: space-between; margin-bottom: 1.5rem; font-weight: 600; color: var(--c-text-muted); }
.badge { background: #e0fbf4; color: var(--c-accent); padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.8rem; }
.progress-bar { height: 8px; background: #eee; border-radius: 4px; margin-top: 1rem; overflow: hidden; }
.fill { height: 100%; background: var(--c-accent); border-radius: 4px; }

/* --- TOPICS --- */
.topics-section { padding: 6rem 0; background: #fff; }
.section-header { text-align: center; margin-bottom: 4rem; }
.pre-title { display: block; font-size: 0.8rem; font-weight: 700; color: var(--c-accent); letter-spacing: 1.5px; margin-bottom: 0.5rem; }
.section-header h2 { font-size: 2.5rem; color: var(--c-primary); }

.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.topic-card {
    background: var(--c-bg-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: 0.3s;
    border: 1px solid transparent;
}
.topic-card:hover { background: #fff; box-shadow: var(--shadow-hover); transform: translateY(-5px); border-color: #eee; }
.topic-icon { font-size: 2.5rem; margin-bottom: 1.5rem; }
.topic-card h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.topic-card p { font-size: 0.95rem; color: var(--c-text-muted); margin-bottom: 1.5rem; }
.topic-link { font-weight: 600; color: var(--c-accent); font-size: 0.95rem; }
.topic-link:hover { text-decoration: underline; }

/* --- MISSION --- */
.mission-section { padding: 6rem 0; background: var(--c-bg-light); }
.mission-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.mission-label { font-weight: 700; color: var(--c-accent); font-size: 0.9rem; letter-spacing: 1px; }
.mission-heading { font-size: 2.5rem; margin: 1rem 0 1.5rem; }
.mission-text { font-size: 1.1rem; color: var(--c-text-muted); margin-bottom: 2rem; }
.mission-list li { margin-bottom: 1rem; font-weight: 600; color: var(--c-primary); }

.mission-visual { position: relative; height: 300px; display: flex; align-items: center; justify-content: center; }
.circle-graphic { position: relative; width: 200px; height: 200px; }
.circle { position: absolute; border-radius: 50%; opacity: 0.1; background: var(--c-accent); }
.c1 { width: 100%; height: 100%; top: 0; left: 0; animation: pulse 3s infinite; }
.c2 { width: 70%; height: 70%; top: 15%; left: 15%; background: var(--c-primary); animation: pulse 3s infinite 0.5s; }
.c3 { width: 40%; height: 40%; top: 30%; left: 30%; background: var(--c-accent); animation: pulse 3s infinite 1s; }
@keyframes pulse { 0% { transform: scale(0.9); } 50% { transform: scale(1.1); } 100% { transform: scale(0.9); } }

/* --- AUDIENCE --- */
.audience-section { padding: 5rem 0; }
.center-title { text-align: center; font-size: 2.2rem; margin-bottom: 3rem; }
.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.aud-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}
.check-icon { display: block; font-size: 2rem; color: var(--c-accent); margin-bottom: 1rem; }
.aud-item p { font-size: 0.95rem; color: var(--c-text-main); }

/* --- BLOG --- */
.blog-feed { padding: 5rem 0; background: #fff; }
.feed-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2.5rem; }
.btn-all { font-weight: 600; color: var(--c-accent); border-bottom: 2px solid; padding-bottom: 3px; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.article-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #f0f0f0;
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--c-accent); }
.card-top { display: flex; justify-content: space-between; margin-bottom: 1rem; font-size: 0.85rem; color: var(--c-text-muted); }
.cat-tag { color: var(--c-accent); font-weight: 700; text-transform: uppercase; }
.article-title { font-size: 1.25rem; line-height: 1.4; margin-bottom: 1.5rem; min-height: 3.5em; }
.read-link { font-weight: 700; color: var(--c-primary); font-size: 0.9rem; }
.read-link:hover { color: var(--c-accent); }

/* --- INNER PAGES --- */
.page-header, .single-header, .archive-header {
    padding: 4rem 0;
    text-align: center;
    background: var(--c-bg-light);
    margin-bottom: 3rem;
}
.page-title, .single-title, .archive-title { font-size: 2.5rem; max-width: 900px; margin: 0 auto 1rem; }
.page-container, .single-container, .archive-container { padding-bottom: 5rem; max-width: 800px; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.page-content p, .single-content p { margin-bottom: 1.5rem; font-size: 1.1rem; }
.page-content ul, .single-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.5rem; }
.single-meta-top { margin-bottom: 1rem; color: var(--c-text-muted); font-size: 0.9rem; }
.cat-label { background: var(--c-accent); color: #fff; padding: 0.2rem 0.6rem; border-radius: 4px; margin-right: 0.5rem; }

/* Pagination & Inner Grids */
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 3rem; }
.archive-container { max-width: var(--container-width); } /* Wider for archive grid */
.pagination-wrapper, .page-nav { display: flex; justify-content: center; margin-top: 3rem; }
.pagination .nav-links, .page-nav { display: flex; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers, .page-nav .page-numbers, .page-nav .current {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    margin: 0 5px;
    font-weight: 600;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover, 
.page-nav .page-numbers.current, .page-nav .page-numbers:hover, 
.page-nav .current {
    background: var(--c-accent); color: #fff; border-color: var(--c-accent);
}

/* --- FOOTER --- */
.viva-footer { background: #fff; border-top: 1px solid #eee; padding: 4rem 0 2rem; }
.footer-container { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
.footer-logo { font-family: var(--f-head); font-size: 1.4rem; font-weight: 800; color: var(--c-primary); display: block; margin-bottom: 1rem; }
.footer-logo .highlight { color: var(--c-accent); }
.footer-desc { font-size: 0.9rem; color: var(--c-text-muted); margin-bottom: 2rem; max-width: 300px; }
.footer-copy { font-size: 0.8rem; color: #999; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 1.5rem; }
.footer-list li { margin-bottom: 0.8rem; }
.footer-list a { color: var(--c-text-muted); font-size: 0.95rem; }
.footer-list a:hover { color: var(--c-accent); }
.contact-row { margin-bottom: 0.8rem; font-size: 0.95rem; color: var(--c-text-muted); }
.contact-row strong { color: var(--c-primary); min-width: 50px; display: inline-block; }

/* --- MOBILE --- */
@media (max-width: 992px) {
    .hero-container, .mission-wrapper, .footer-container { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .hero-container { direction: ltr; }
    .hero-content { order: 1; }
    .hero-image-block { order: 2; margin-bottom: 2rem; }
    .topics-grid, .audience-grid, .articles-grid, .archive-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-title { font-size: 2.5rem; }
    .viva-nav {
        display: none; position: absolute; top: 80px; left: 0; width: 100%;
        background: #fff; padding: 2rem; flex-direction: column;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    .viva-nav.active { display: flex; }
    .viva-menu { flex-direction: column; gap: 1rem; align-items: center; }
    .mobile-burger { display: block; }
    .header-phone { display: none; }
    .mission-visual { display: none; }
    .hero-buttons { justify-content: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
}
