/* Anderson MO Real Estate - Main Stylesheet */
:root {
    --primary: #064e3b;
    --primary-dark: #022c22;
    --primary-light: #047857;
    --accent: #1e3a8a;
    --gold: #b45309;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 14px rgba(6,78,59,0.08);
    --max-w: 1200px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif-font {
    font-family: Georgia, "Times New Roman", Times, serif;
}

a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 2px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 84px;
}

.site-logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 50px; width: auto; }

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    padding: 6px 0;
}

.main-nav a:hover { color: var(--primary-light); }

.nav-cta {
    background: var(--primary);
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.nav-cta:hover { background: var(--primary-dark); }

/* Hero */
.hero-section {
    background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 85px 0 95px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 25%, rgba(180, 83, 9, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fef08a;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 42px;
    line-height: 1.25;
    font-weight: 700;
    max-width: 860px;
    margin: 0 auto 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: #e2e8f0;
    max-width: 680px;
    margin: 0 auto 32px;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.hero-pill {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.hero-pill:hover { background: var(--gold); border-color: var(--gold); }

/* Grid & Cards */
.section-header {
    margin: 60px 0 32px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 4px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-cat {
    display: inline-block;
    align-self: flex-start;
    background: #ecfdf5;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 14px;
}

.card-title {
    font-size: 21px;
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-title a { color: var(--primary-dark); }
.card-title a:hover { color: var(--primary-light); }

.card-excerpt {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 22px;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

.read-more { color: var(--primary-light); font-weight: 600; }

/* Article & Page */
.article-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 50px 0;
    margin-bottom: 40px;
}

.article-title {
    font-size: 38px;
    line-height: 1.25;
    color: var(--primary-dark);
    max-width: 880px;
    margin: 16px 0;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.content-container {
    max-width: 820px;
    margin: 0 auto 60px;
    background: #ffffff;
    padding: 44px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
}

.entry-content h2, .entry-content h3 {
    color: var(--primary-dark);
    margin: 32px 0 16px;
}

.entry-content p { margin-bottom: 20px; }
.entry-content ul, .entry-content ol { margin: 0 0 24px 24px; }
.entry-content li { margin-bottom: 8px; }

/* Footer */
.site-footer {
    background: #064e3b;
    color: #cbd5e1;
    padding: 60px 0 30px;
    margin-top: 80px;
    font-size: 14px;
}

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

.footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #cbd5e1; }
.footer-col a:hover { color: #ffffff; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .header-inner { height: auto; padding: 16px 0; flex-direction: column; gap: 14px; }
    .hero-title { font-size: 28px; }
    .articles-grid { grid-template-columns: 1fr; }
    .content-container { padding: 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
