/* ReclinerCash - Main Stylesheet */
:root {
    --brown: #8b5a2b;
    --brown-light: #a67c4e;
    --cream: #faf6f0;
    --cream-dark: #f0e9dd;
    --forest: #2d5a3d;
    --forest-light: #3d7a52;
    --charcoal: #333333;
    --gray: #666666;
    --gray-light: #999999;
    --white: #ffffff;
    --shadow: rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--charcoal);
    background: var(--cream);
}

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

a:hover {
    color: var(--brown);
}

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

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--forest);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

nav {
    padding: 15px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--brown);
}

.logo span {
    color: var(--forest);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--charcoal);
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--brown);
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--charcoal);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background: var(--brown-light);
    color: var(--white);
}

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

.btn-secondary:hover {
    background: var(--cream);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--brown);
    color: var(--brown);
}

.btn-outline:hover {
    background: var(--brown);
    color: var(--white);
}

/* Search */
.search-bar {
    max-width: 600px;
    margin: 30px auto 0;
    display: flex;
    gap: 10px;
}

.search-bar input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

.search-bar button {
    padding: 14px 24px;
}

/* Sections */
section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--gray);
    font-size: 18px;
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.featured-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.featured-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-card .content {
    padding: 25px;
}

.featured-card .category {
    color: var(--brown);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-card h3 {
    font-size: 20px;
    margin: 10px 0;
    color: var(--charcoal);
}

.featured-card h3 a {
    color: inherit;
}

.featured-card h3 a:hover {
    color: var(--brown);
}

.featured-card p {
    color: var(--gray);
    font-size: 15px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    color: var(--forest);
    font-weight: 600;
    font-size: 14px;
}

/* Categories */
.categories {
    background: var(--white);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--cream);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.category-card:hover {
    background: var(--forest);
    color: var(--white);
}

.category-card:hover a {
    color: var(--white);
}

.category-card i {
    font-size: 40px;
    color: var(--brown);
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.category-card span {
    font-size: 14px;
    color: var(--gray);
}

.category-card:hover span {
    color: var(--cream);
}

/* Newsletter */
.newsletter {
    background: var(--forest);
    color: var(--white);
    text-align: center;
}

.newsletter h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.newsletter p {
    opacity: 0.9;
    margin-bottom: 30px;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

.newsletter-form button {
    background: var(--brown);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--brown-light);
}

/* Article Cards */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.article-card .content {
    padding: 20px;
}

.article-card .meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--gray-light);
    margin-bottom: 10px;
}

.article-card .meta i {
    margin-right: 5px;
}

.article-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-card h3 a {
    color: var(--charcoal);
}

.article-card p {
    color: var(--gray);
    font-size: 14px;
}

/* Article Page */
.article-header {
    background: var(--cream-dark);
    padding: 60px 0;
}

.article-header .container {
    max-width: 800px;
}

.article-header .category {
    color: var(--brown);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-header h1 {
    font-size: 42px;
    line-height: 1.2;
    margin: 15px 0;
    color: var(--charcoal);
}

.article-header .meta {
    display: flex;
    gap: 20px;
    color: var(--gray);
    font-size: 14px;
}

.article-header .meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    background: var(--white);
}

.article-content img {
    border-radius: 12px;
    margin: 30px 0;
}

.article-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: var(--charcoal);
}

.article-content h3 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: var(--charcoal);
}

.article-content p {
    margin-bottom: 20px;
    color: var(--charcoal);
}

.article-content ul, .article-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    border-left: 4px solid var(--forest);
    padding: 20px 25px;
    background: var(--cream);
    margin: 30px 0;
    font-style: italic;
    color: var(--gray);
}

/* Author Box */
.author-box {
    background: var(--cream);
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    display: flex;
    gap: 25px;
}

.author-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0;
}

.author-box h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.author-box .role {
    color: var(--brown);
    font-size: 14px;
    margin-bottom: 10px;
}

.author-box p {
    font-size: 14px;
    color: var(--gray);
    margin: 0;
}

/* Related Posts */
.related-posts {
    border-top: 2px solid var(--cream);
    padding-top: 40px;
    margin-top: 40px;
}

.related-posts h3 {
    font-size: 24px;
    margin-bottom: 25px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post {
    display: flex;
    gap: 15px;
}

.related-post img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0;
    flex-shrink: 0;
}

.related-post h4 {
    font-size: 15px;
    line-height: 1.4;
}

.related-post h4 a {
    color: var(--charcoal);
}

.related-post span {
    font-size: 13px;
    color: var(--gray-light);
}

/* Footer */
footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-about h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--brown-light);
}

.footer-about p {
    color: var(--gray-light);
    font-size: 14px;
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--white);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-light);
    font-size: 14px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--gray-light);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--gray-light);
    font-size: 20px;
}

.social-links a:hover {
    color: var(--white);
}

/* Blog Page */
.page-header {
    background: var(--forest);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.9;
}

.blog-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--white);
    color: var(--forest);
}

/* About Page */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-intro img {
    border-radius: 12px;
}

.about-intro h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.about-intro p {
    margin-bottom: 20px;
    color: var(--gray);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
}

.value-card i {
    font-size: 48px;
    color: var(--forest);
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.value-card p {
    color: var(--gray);
    font-size: 15px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    background: var(--forest);
    color: var(--white);
    padding: 40px;
    border-radius: 12px;
}

.contact-info h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.contact-info p {
    opacity: 0.9;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 24px;
    color: var(--cream);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--charcoal);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--cream-dark);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

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

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.legal-content h1 {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--charcoal);
}

.legal-content h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--charcoal);
}

.legal-content p {
    margin-bottom: 15px;
    color: var(--gray);
}

/* Sitemap */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.sitemap-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--brown);
}

.sitemap-section ul {
    list-style: none;
}

.sitemap-section li {
    margin-bottom: 12px;
}

.sitemap-section a {
    color: var(--gray);
    font-size: 15px;
}

.sitemap-section a:hover {
    color: var(--forest);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--white);
    color: var(--charcoal);
    font-weight: 600;
}

.pagination a:hover {
    background: var(--cream);
}

.pagination .active {
    background: var(--forest);
    color: var(--white);
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-grid,
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 30px var(--shadow);
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .featured-grid,
    .article-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .about-intro {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-intro img {
        order: -1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .article-header h1 {
        font-size: 28px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .sitemap-grid {
        grid-template-columns: 1fr;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .article-header {
        padding: 40px 0;
    }
    
    .article-content {
        padding: 30px 15px 40px;
    }
    
    .article-content h2 {
        font-size: 24px;
    }
    
    .article-content h3 {
        font-size: 20px;
    }
}
