/* ==========================================================================
   MoneyVeo Theme - Main Stylesheet
   Colors: Slate Gray (#708090) + Orange Red (#FF4500)
   Font: Work Sans (Google Fonts)
   Design: Flat, minimal, border-bottom cards, grid 2-col
   ========================================================================== */

/* --- CSS Variables --- */
:root {
    --slate: #708090;
    --slate-dark: #556070;
    --slate-light: #8a9aa8;
    --slate-bg: #f5f6f8;
    --orange: #FF4500;
    --orange-dark: #e03e00;
    --orange-light: #ff6a3a;
    --white: #ffffff;
    --black: #1a1a1a;
    --text: #2c3e50;
    --text-light: #6c7a89;
    --border: #e8ecf0;
    --font: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --gap: 1.5rem;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--orange);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--orange-dark);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--black);
}

h1 { font-size: 2.8rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--orange);
}

.section-title p {
    color: var(--text-light);
    margin-top: 0.75rem;
    font-size: 1.1rem;
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 2px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo svg {
    height: 36px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-navigation a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--orange);
}

.main-navigation .menu-cta a {
    background: var(--orange);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 0;
    font-weight: 600;
}

.main-navigation .menu-cta a:hover {
    background: var(--orange-dark);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* --- Hero Section --- */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 85vh;
    background: var(--slate-bg);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    max-width: 600px;
    margin-left: auto;
}

.hero-badge {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 1rem;
    margin-bottom: 1.5rem;
    align-self: flex-start;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--black);
}

.hero h1 span {
    color: var(--orange);
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-image {
    background: var(--slate);
    background-size: cover;
    background-position: right center;
    position: relative;
    min-height: 100%;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    font-family: var(--font);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

.btn-primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--slate);
    border-color: var(--slate);
}

.btn-secondary:hover {
    background: var(--slate);
    color: var(--white);
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

/* --- Features Grid (2 columns) --- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-bottom: 2px solid var(--border);
    transition: border-color 0.3s;
}

.feature-card:hover {
    border-bottom-color: var(--orange);
}

.feature-icon {
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 44px;
    height: 44px;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Steps --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem 1rem;
    border-bottom: 2px solid var(--border);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--orange);
    color: var(--white);
    font-weight: 800;
    font-size: 1.3rem;
    margin: 0 auto 1rem;
    border-radius: 0;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* --- Why Us (Stats) --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    border-bottom: 2px solid var(--border);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--slate);
    font-size: 0.95rem;
    font-weight: 500;
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.testimonial-card {
    padding: 2rem;
    background: var(--slate-bg);
    border-bottom: 2px solid var(--border);
}

.testimonial-card p {
    color: var(--text);
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--slate-dark);
    font-size: 0.9rem;
}

/* --- CTA Section --- */
.cta-section {
    background: var(--orange);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--orange);
    border-color: var(--white);
}

.cta-section .btn-primary:hover {
    background: transparent;
    color: var(--white);
}

/* --- Blog / Archives --- */
.page-header {
    background: var(--slate-bg);
    padding: 4rem 0;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.blog-card {
    border-bottom: 2px solid var(--border);
    padding-bottom: 1.5rem;
    transition: border-color 0.3s;
}

.blog-card:hover {
    border-bottom-color: var(--orange);
}

.blog-card h3 {
    margin: 0.75rem 0 0.5rem;
    font-size: 1.2rem;
}

.blog-card h3 a {
    color: var(--black);
}

.blog-card h3 a:hover {
    color: var(--orange);
}

.blog-meta {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.blog-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Single Post --- */
.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.post-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.post-content h2 {
    margin: 2rem 0 1rem;
}

.post-content h3 {
    margin: 1.5rem 0 0.75rem;
}

.post-content p {
    margin-bottom: 1.2rem;
}

.post-content ul, .post-content ol {
    margin: 1rem 0 1rem 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

/* --- Pages --- */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.page-content p {
    margin-bottom: 1.2rem;
}

/* --- FAQ Page --- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 2px solid var(--border);
    padding: 1.25rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--black);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font);
    padding: 0;
}

.faq-question:hover {
    color: var(--orange);
}

.faq-toggle {
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1rem 0 0;
}

.faq-answer p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-icon {
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 28px;
    height: 28px;
}

.contact-info-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-info-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    font-family: var(--font);
    font-size: 1rem;
    border-radius: 0;
    transition: border-color 0.2s;
    margin-bottom: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* --- Footer --- */
.site-footer {
    background: var(--slate-dark);
    color: var(--white);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.footer-col p, .footer-col a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-col ul {
    list-style: none;
}

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

.footer-logo svg {
    height: 30px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* --- 404 --- */
.error-404 {
    text-align: center;
    padding: 6rem 0;
}

.error-404 h1 {
    font-size: 6rem;
    color: var(--orange);
    margin-bottom: 0;
}

.error-404 p {
    margin: 1rem 0 2rem;
    font-size: 1.2rem;
    color: var(--text-light);
}

/* --- Pagination --- */
.pagination {
    text-align: center;
    margin: 3rem 0;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    margin: 0 0.25rem;
    font-weight: 500;
}

.pagination .current {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}

.pagination a:hover {
    border-color: var(--orange);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        padding: 3rem 1.5rem;
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 2.4rem;
    }
    
    .hero-image {
        min-height: 300px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 2px solid var(--border);
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    
    .features-grid,
    .testimonials-grid,
    .blog-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .steps-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
        text-align: center;
    }
}
