/* Daily Grace Haven - Editorial Christian Resource Design */
:root {
    --primary: #1e3a5f;
    --primary-dark: #142842;
    --accent: #b8860b;
    --accent-light: #fdf8ec;
    --bg-body: #faf9f6;
    --bg-card: #ffffff;
    --text-main: #22262a;
    --text-muted: #5a626a;
    --border: #e3dfd7;
    --radius: 6px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.65;
    font-size: 16px;
}

h1, h2, h3, h4, .brand-title, .scripture-quote {
    font-family: 'Lora', Georgia, serif;
    color: var(--primary-dark);
    line-height: 1.3;
}

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

a:hover {
    text-decoration: underline;
}

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

/* Top Utility Bar */
.top-utility-bar {
    background-color: var(--primary-dark);
    color: #dbe4ee;
    font-size: 13px;
    padding: 7px 0;
}

.utility-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-utility-bar a {
    color: #f3d27a;
}

/* Header */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.brand-cross {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: #f3d27a;
    border-radius: 50%;
    font-size: 20px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

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

.brand-sub {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.header-search {
    display: flex;
    max-width: 380px;
    width: 100%;
}

.header-search input {
    flex: 1;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 14px;
    outline: none;
}

.header-search input:focus {
    border-color: var(--primary);
}

.header-search button {
    padding: 9px 18px;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.header-search button:hover {
    background-color: var(--primary-dark);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    font-size: 22px;
    padding: 4px 10px;
    border-radius: var(--radius);
    cursor: pointer;
}

/* Primary Nav */
.primary-nav {
    background-color: #f4f1ea;
    border-top: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.nav-inner a {
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
}

.nav-inner a:hover {
    background-color: #e8e2d5;
    color: var(--primary);
}

/* Main Content */
.main-wrapper {
    padding: 32px 0 60px;
}

/* Hero */
.hero-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #2a4d7a 100%);
    color: #ffffff;
    padding: 48px 36px;
    border-radius: var(--radius);
    margin-bottom: 36px;
}

.hero-banner h1 {
    color: #ffffff;
    font-size: 36px;
    margin-bottom: 14px;
    max-width: 780px;
}

.hero-banner p {
    color: #e2e8f0;
    font-size: 17px;
    max-width: 720px;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: #ffffff;
    padding: 11px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none !important;
}

.btn-primary:hover {
    background-color: #9c7108;
}

.btn-secondary {
    display: inline-block;
    background-color: rgba(255,255,255,0.14);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.35);
    padding: 11px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none !important;
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.22);
}

/* Daily Verse Box */
.daily-verse-card {
    background-color: var(--accent-light);
    border: 1px solid #ead8a8;
    border-left: 5px solid var(--accent);
    padding: 24px 28px;
    border-radius: var(--radius);
    margin-bottom: 36px;
}

.daily-verse-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 8px;
}

.daily-verse-card blockquote {
    font-family: 'Lora', Georgia, serif;
    font-size: 20px;
    font-style: italic;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.daily-verse-ref {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 22px;
}

.section-header h2 {
    font-size: 24px;
}

.section-header a {
    font-size: 14px;
    font-weight: 600;
}

/* Grids & Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 42px;
}

.cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cat-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.cat-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.cat-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    border-top: 1px solid #f0ede6;
    padding-top: 12px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 22px;
    margin-bottom: 40px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

.article-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background-color: #eef2f7;
    color: var(--primary);
    padding: 3px 9px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.article-card h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

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

.article-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

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

/* Single Article Layout */
.layout-two-col {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

.article-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
}

.breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.article-container h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.article-meta {
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.article-body h2 {
    font-size: 22px;
    margin: 28px 0 12px;
}

.article-body h3 {
    font-size: 18px;
    margin: 22px 0 8px;
}

.article-body p {
    margin-bottom: 16px;
    font-size: 16.5px;
}

.article-body ul, .article-body ol {
    margin: 0 0 18px 24px;
}

.article-body li {
    margin-bottom: 8px;
}

.scripture-block {
    background-color: var(--accent-light);
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    margin: 18px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.scripture-block p {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    margin-bottom: 6px;
    color: var(--primary-dark);
}

.scripture-block cite {
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
}

.prayer-box {
    background-color: #f4f7fb;
    border: 1px solid #d7e1ee;
    border-radius: var(--radius);
    padding: 22px 24px;
    margin: 24px 0;
}

.prayer-box h3 {
    margin-top: 0 !important;
    color: var(--primary);
}

/* Sidebar */
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.sidebar-widget h4 {
    font-size: 17px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    border-bottom: 1px solid #f2efe9;
    padding: 8px 0;
    font-size: 14px;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

/* Forms */
.contact-form .form-group {
    margin-bottom: 16px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
}

.alert-success {
    background-color: #e6f4ea;
    border: 1px solid #b7dfC1;
    color: #1e4620;
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

/* Footer */
.site-footer {
    background-color: var(--primary-dark);
    color: #cbd5e1;
    padding-top: 48px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 36px;
}

.footer-brand {
    font-family: 'Lora', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-box {
    margin-top: 16px;
    background: rgba(255,255,255,0.06);
    padding: 14px;
    border-radius: var(--radius);
    font-size: 13px;
}

.footer-contact-box p {
    margin-bottom: 4px;
}

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

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

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #cbd5e1;
}

.footer-col a:hover {
    color: #f3d27a;
}

.footer-bottom {
    background-color: #0d1b2e;
    padding: 18px 0;
    font-size: 13px;
    color: #94a3b8;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 900px) {
    .layout-two-col {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .header-inner {
        flex-wrap: wrap;
    }
    .header-search {
        order: 3;
        max-width: 100%;
    }
    .mobile-menu-btn {
        display: block;
    }
    .primary-nav {
        display: none;
    }
    .primary-nav.open {
        display: block;
    }
    .nav-inner {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .article-container {
        padding: 22px;
    }
    .hero-banner h1 {
        font-size: 28px;
    }
}
