/* Arroyo Investing - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-blue: #1e3a5f;
    --gold: #d4af37;
    --white: #ffffff;
    --charcoal: #2d3436;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --border-color: #e9ecef;
}

* {
    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-color: var(--white);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Header & Navigation */
header {
    background: var(--primary-blue);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--gold);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2d5a8a 100%);
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

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

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--primary-blue);
}

.btn-primary:hover {
    background: #c9a430;
    color: var(--primary-blue);
    transform: translateY(-2px);
}

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

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Styling */
section {
    padding: 4rem 0;
}

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

.section-title h2 {
    font-size: 2.25rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--medium-gray);
    font-size: 1.1rem;
}

/* Article Cards */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

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

.article-card .content {
    padding: 1.5rem;
}

.article-card .category {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card h3 {
    font-size: 1.25rem;
    margin: 0.5rem 0;
    color: var(--primary-blue);
}

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

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

.article-card p {
    color: var(--medium-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.article-card .meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--medium-gray);
}

/* Featured Article */
.featured-article {
    background: var(--light-gray);
    padding: 4rem 0;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.featured-content img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.featured-content .text h2 {
    font-size: 2.25rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.featured-content .text p {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
}

/* Article Page Styles */
.article-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2d5a8a 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.article-header .category {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.3;
}

.article-header .meta {
    font-size: 0.95rem;
    opacity: 0.9;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.article-content h2 {
    font-size: 1.75rem;
    color: var(--primary-blue);
    margin: 2.5rem 0 1rem;
}

.article-content h3 {
    font-size: 1.35rem;
    color: var(--charcoal);
    margin: 2rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content img {
    width: 100%;
    border-radius: 8px;
    margin: 2rem 0;
}

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

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

.article-content blockquote {
    border-left: 4px solid var(--gold);
    padding: 1.5rem;
    background: var(--light-gray);
    margin: 2rem 0;
    font-style: italic;
}

.article-content .highlight-box {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2d5a8a 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.article-content .highlight-box h4 {
    color: var(--gold);
    margin-bottom: 0.5rem;
}

/* Author Box */
.author-box {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    margin: 3rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

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

.author-box .info h4 {
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.author-box .info .title {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.author-box .info p {
    font-size: 0.95rem;
    color: var(--medium-gray);
    margin: 0;
}

/* Related Articles */
.related-articles {
    background: var(--light-gray);
    padding: 4rem 0;
}

.related-articles h3 {
    text-align: center;
    font-size: 1.75rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
}

/* Categories Section */
.categories-section {
    padding: 4rem 0;
    background: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    background: var(--primary-blue);
}

.category-card:hover h3,
.category-card:hover p {
    color: var(--white);
}

.category-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.category-card p {
    color: var(--medium-gray);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.category-card .count {
    display: inline-block;
    background: var(--gold);
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Newsletter Section */
.newsletter {
    background: var(--primary-blue);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

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

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: var(--gold);
    color: var(--primary-blue);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #c9a430;
}

/* About Page */
.about-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2d5a8a 100%);
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-content {
    padding: 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Contact Page */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

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

.contact-info h2 {
    font-size: 1.75rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

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

.footer-about h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-about span {
    color: var(--gold);
}

.footer-about p {
    opacity: 0.8;
    font-size: 0.95rem;
}

footer h4 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: var(--white);
    opacity: 0.8;
    font-size: 0.95rem;
}

footer ul li a:hover {
    opacity: 1;
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2d5a8a 100%);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.9;
}

/* Privacy/Terms Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.legal-content h2 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.legal-content h3 {
    color: var(--charcoal);
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

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

/* Sitemap */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.sitemap-column h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

.sitemap-column ul li {
    margin-bottom: 0.5rem;
}

.sitemap-column ul li a {
    color: var(--charcoal);
}

.sitemap-column ul li a:hover {
    color: var(--gold);
}

/* Glossary */
.glossary-list {
    max-width: 800px;
    margin: 0 auto;
}

.glossary-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.glossary-item dt {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.glossary-item dd {
    color: var(--medium-gray);
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .featured-content,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-box img {
        margin: 0 auto;
    }
}
