/* ==========================================================================
   Grace Notary INK — blog base styles
   Shared by blog.html (index) and every post in /blog/.
   Load BEFORE css/site-upgrade.css so the design system can overlay tokens.
   ========================================================================== */

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

:root {
    --primary-color: #1a365d;
    --secondary-color: #2c5282;
    --accent-color: #c53030;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */

.header {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.emergency-phone {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.emergency-phone:hover {
    background: #9b2c2c;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Page header
   -------------------------------------------------------------------------- */

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* --------------------------------------------------------------------------
   Blog index — post cards
   -------------------------------------------------------------------------- */

.blog-list {
    max-width: 820px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    gap: 1.5rem;
}

.post-card {
    background: var(--white);
    border: 1px solid #e3eaf0;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.25s, box-shadow 0.25s;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(18, 44, 68, 0.10);
}

.post-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.post-card h2 a {
    color: var(--primary-color);
    text-decoration: none;
}

.post-card h2 a:hover {
    color: var(--secondary-color);
}

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

.post-card p.excerpt {
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.read-more {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

.coming-soon {
    max-width: 820px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.coming-soon h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.coming-soon ul {
    margin-left: 1.25rem;
    color: var(--text-light);
}

.coming-soon li {
    margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Single post
   -------------------------------------------------------------------------- */

.post-body {
    max-width: 720px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.post-body p {
    font-size: 1.08rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.post-body h2 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.post-body h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 2rem 0 0.75rem;
}

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

.post-body li {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.post-body strong {
    color: var(--primary-color);
}

.post-body a {
    color: var(--secondary-color);
    font-weight: 500;
}

.lede {
    font-size: 1.2rem !important;
    color: var(--text-light) !important;
    line-height: 1.7 !important;
}

.callout {
    background: var(--bg-light);
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
}

.callout p:last-child {
    margin-bottom: 0;
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 3rem;
}

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

.cta-section p {
    font-size: 1.1rem;
    max-width: 620px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin: 0.5rem;
    transition: all 0.3s;
    min-height: 44px;
}

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

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 2rem 2rem;
    margin-top: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .nav-links {
        flex: 1 1 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }

    .post-body,
    .blog-list {
        padding: 0 1.25rem;
    }

    .post-card {
        padding: 1.5rem;
    }
}
