/* ==========================================================================
   PraisePro marketing site — shared chrome (nav + footer + tokens)
   Extracted from the landing page so /blog and /docs use the exact same
   look. If you restyle the landing nav/footer, update this file too.
   Markup lives in includes/site-nav.php + includes/site-footer.php.
   ========================================================================== */

:root {
    /* Warm light palette — matches the in-app design system */
    --bg:           #faf9f7;
    --bg-card:      #ffffff;
    --bg-soft:      #f5f3ef;
    --primary:      #0d7377;
    --primary-deep: #0a5f62;
    --text:         #2c2825;
    --text-secondary: #6b6560;
    --text-muted:   #a39e98;
    --text-faint:   #c4bfb8;
    --border:       rgba(28, 25, 22, 0.08);
    --border-soft:  rgba(28, 25, 22, 0.04);
    --tint-primary: rgba(13, 115, 119, 0.08);
    --tint-primary-strong: rgba(13, 115, 119, 0.14);
    --tint-success: rgba(34, 197, 94, 0.1);
    --shadow-card:  0 1px 2px rgba(28, 25, 22, 0.04), 0 8px 24px rgba(28, 25, 22, 0.05);
    --shadow-card-lift: 0 4px 12px rgba(28, 25, 22, 0.06), 0 16px 48px rgba(28, 25, 22, 0.08);
    --radius:       14px;
    --radius-lg:    18px;
    --radius-pill:  999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 6px;
}

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

/* ========== Layout primitives ========== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== Navigation ========== */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(250, 249, 247, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
}
nav.scrolled {
    border-bottom-color: var(--border);
    background: rgba(250, 249, 247, 0.94);
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.nav-brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--primary);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-link {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); font-weight: 600; }
.nav-cta {
    padding: 9px 18px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s ease, transform 0.15s ease;
}
.nav-cta:hover { background: var(--primary-deep); color: white; }
.nav-cta:active { transform: translateY(1px); }
.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
}

/* ========== Subpage hero (blog/docs) — warm light, like the landing ========== */
.page-hero {
    padding: clamp(120px, 15vw, 170px) 0 clamp(40px, 5vw, 56px);
    text-align: center;
}
.page-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: var(--tint-primary);
    color: var(--primary-deep);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 18px;
}
.page-hero h1 {
    font-size: clamp(2rem, 4.5vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 14px;
}
.page-hero p {
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto;
}

/* ========== Footer ========== */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 56px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.footer-brand-block p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 14px;
    line-height: 1.6;
    max-width: 320px;
}
.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 5px 0;
    transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
}
.footer-bottom a { color: var(--text-secondary); }

/* ========== Responsive chrome ========== */
@media (max-width: 880px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-links.mobile-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 16px;
        flex-direction: column;
        gap: 16px;
        box-shadow: var(--shadow-card);
        margin-top: 8px;
    }
    .nav-links.mobile-open .nav-link { font-size: 15px; }
    .nav-mobile-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 400px) {
    .container, .container-narrow { padding: 0 18px; }
}
