/*
Theme Name: Scale Advisors Blog
Theme URI: https://scaleadvisors.com
Author: Scale Advisors
Author URI: https://scaleadvisors.com
Description: Custom blog theme for Scale Advisors - AEO-optimized, clean, modern design.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scale-advisors-blog
*/

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Lato', 'Inter', sans-serif; color: #474747; background: #ffffff; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
header.site-header { background: #002a59; padding: 0 40px; height: 80px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.desktop-nav { display: flex; align-items: center; gap: 0; }
.desktop-nav a { font-family: 'Manrope', sans-serif; font-weight: 400; font-size: 14px; color: #ffffff; text-decoration: none; text-transform: uppercase; padding: 0 16px; line-height: 1.3em; transition: color 0.2s ease; }
.desktop-nav a:hover { color: #caad5c; }
.desktop-nav .nav-cta { background: #caad5c; color: #ffffff; padding: 10px 40px; border: 1px solid #caad5c; border-radius: 0; font-family: 'Manrope', sans-serif; font-weight: 400; margin-left: 16px; transition: background 0.2s ease; }
.desktop-nav .nav-cta:hover { background: #b89a45; border-color: #b89a45; }

/* ===== MOBILE NAV ===== */
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: #ffffff; margin: 5px 0; transition: all 0.3s ease; }
.mobile-nav { display: none; position: fixed; top: 80px; left: 0; right: 0; background: #002a59; z-index: 99; padding: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.mobile-nav.active { display: block; }
.mobile-nav a { display: block; font-family: 'Manrope', sans-serif; font-weight: 400; font-size: 16px; color: #ffffff; text-decoration: none; text-transform: uppercase; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a.nav-cta { background: #caad5c; text-align: center; padding: 12px 0; margin-top: 12px; border-bottom: none; }

/* ===== BLOG HERO ===== */
.blog-hero { background: #002a59; padding: 0 40px 40px; text-align: center; }
.blog-hero h1 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 48px; color: #ffffff; margin-bottom: 8px; }
.blog-hero p { font-family: 'Lato', sans-serif; font-size: 18px; color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto; line-height: 1.6; }

/* ===== BLOG GRID ===== */
.blog-grid-section { max-width: 1100px; margin: 0 auto; padding: 60px 40px 80px; }
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* ===== PAGINATION ===== */
.blog-pagination { max-width: 1100px; margin: 0 auto; padding: 0 40px 60px; text-align: center; }
.blog-pagination a,
.blog-pagination span { display: inline-block; padding: 10px 16px; margin: 0 4px; font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600; border-radius: 4px; transition: all 0.2s ease; }
.blog-pagination a { color: #002a59; background: #f3f4f6; }
.blog-pagination a:hover { background: #caad5c; color: #ffffff; }
.blog-pagination span.current { background: #002a59; color: #ffffff; }

/* ===== POST CARD ===== */
.post-card { background: #ffffff; border-radius: 8px; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; border: 1px solid #eef0f2; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,42,89,0.1); }
.post-card a { text-decoration: none; color: inherit; display: block; }
.post-card-image { width: 100%; height: 220px; background: linear-gradient(135deg, #effbff 0%, #dce8f0 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-image .placeholder-icon { width: 60px; height: 60px; border-radius: 50%; background: rgba(0,42,89,0.08); display: flex; align-items: center; justify-content: center; }
.post-card-image .placeholder-icon svg { width: 28px; height: 28px; opacity: 0.3; }
.post-card-body { padding: 28px; }
.post-card-meta { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; color: #caad5c; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.post-card-meta a { color: #caad5c; }
.post-card-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 22px; color: #002a59; line-height: 1.35; margin-bottom: 12px; }
.post-card-excerpt { font-family: 'Lato', sans-serif; font-size: 15px; color: #6b7280; line-height: 1.65; }

/* ===== POST HEADER ===== */
.post-header { max-width: 720px; margin: 0 auto; padding: 80px 40px 40px; }
.post-meta { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; color: #caad5c; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.post-meta a { color: #caad5c; text-decoration: none; }
.post-header h1 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 42px; color: #002a59; line-height: 1.2; margin-bottom: 20px; }
.post-date { font-family: 'Inter', sans-serif; font-size: 14px; color: #9ca3af; }
.post-divider { max-width: 720px; margin: 0 auto; padding: 0 40px; }
.post-divider hr { border: none; border-top: 1px solid #eef0f2; }

/* ===== POST CONTENT ===== */
.post-content { max-width: 720px; margin: 0 auto; padding: 40px 40px 60px; }
.post-content p { font-family: 'Lato', sans-serif; font-size: 17px; line-height: 1.8; color: #474747; margin-bottom: 28px; }
.post-content h2 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 28px; color: #002a59; margin-top: 48px; margin-bottom: 20px; line-height: 1.3; }
.post-content h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 22px; color: #002a59; margin-top: 36px; margin-bottom: 16px; line-height: 1.35; }
.post-content h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 18px; color: #002a59; margin-top: 28px; margin-bottom: 12px; }
.post-content ul, .post-content ol { font-family: 'Lato', sans-serif; font-size: 17px; line-height: 1.8; color: #474747; margin-bottom: 28px; padding-left: 24px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote { border-left: 3px solid #caad5c; padding: 4px 0 4px 24px; margin: 32px 0; }
.post-content blockquote p { font-size: 18px; font-style: italic; color: #002a59; margin-bottom: 0; }
.post-content strong { color: #002a59; font-weight: 700; }
.post-content a { color: #caad5c; text-decoration: underline; }
.post-content a:hover { color: #b89a45; }
.post-content img { border-radius: 8px; margin: 20px 0; }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.post-content th, .post-content td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #eef0f2; font-size: 15px; }
.post-content th { font-weight: 700; color: #002a59; }

/* ===== STRIPE-STYLE POST FOOTER ===== */
.post-footer-cta { border-top: 1px solid #eef0f2; background: #f9fafb; }
.post-footer-inner { max-width: 1100px; margin: 0 auto; padding: 60px 40px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; }
.footer-block h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 18px; color: #002a59; margin-bottom: 12px; }
.footer-block p { font-family: 'Lato', sans-serif; font-size: 15px; color: #6b7280; line-height: 1.6; margin-bottom: 16px; }
.footer-block-bordered { padding-left: 20px; border-left: 3px solid #caad5c; }
.footer-block a.footer-link { font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600; color: #caad5c; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: color 0.2s ease; }
.footer-block a.footer-link:hover { color: #b89a45; }
.footer-block .email-form { display: flex; gap: 12px; margin-top: 16px; }
.footer-block .email-input { flex: 1; padding: 10px 16px; border: 1px solid #d1d5db; border-radius: 4px; font-family: 'Lato', sans-serif; font-size: 14px; color: #474747; outline: none; transition: border-color 0.2s ease; }
.footer-block .email-input:focus { border-color: #caad5c; }
.footer-block .email-input::placeholder { color: #9ca3af; }
.footer-block .subscribe-btn { background: #caad5c; color: #ffffff; border: none; padding: 10px 24px; border-radius: 4px; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background 0.2s ease; }
.footer-block .subscribe-btn:hover { background: #b89a45; }

/* ===== SITE FOOTER ===== */
.site-footer { position: relative; padding: 40px 60px 0; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: var(--footer-bg); background-position: center; background-size: cover; background-repeat: no-repeat; z-index: 0; }
.site-footer::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 35, 80, 0.88); z-index: 1; }
.site-footer > * { position: relative; z-index: 2; }
.site-footer *, .site-footer *::before, .site-footer *::after { border: none !important; }

.footer-top { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr 0.8fr; gap: 60px; padding-bottom: 20px; }
.footer-brand { text-align: center; }
.footer-brand p { font-family: 'Lato', sans-serif; font-size: 15px; color: rgba(255,255,255,0.8); line-height: 1.7; margin-top: 16px; }
.footer-brand img { height: 55px; width: auto; filter: brightness(0) invert(1); }
.site-footer .footer-col h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 15px; color: #ffffff; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.site-footer .footer-col a { display: block; font-family: 'Lato', sans-serif; font-size: 16px; color: #ffffff; text-decoration: none; margin-bottom: 10px; transition: color 0.2s ease; }
.site-footer .footer-col a:hover { color: #caad5c; }

.footer-socials { display: flex; gap: 10px; margin-top: 4px; }
.footer-socials a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 4px; margin-bottom: 0; }
.social-x { background: #000000; }
.social-yt { background: #ff0000; }
.social-li { background: #0077b5; }
.footer-socials svg { width: 18px; height: 18px; fill: #ffffff; }

.footer-disclaimer { max-width: 1300px; margin: 0 auto; padding: 12px 0; }
.footer-disclaimer p { font-family: 'Lato', sans-serif; font-size: 13px; font-style: italic; color: rgba(255,255,255,0.55); line-height: 1.7; text-align: center; }

.site-footer .footer-bottom { max-width: 1300px; margin: 0 auto; padding: 16px 0 20px; display: flex; justify-content: space-between; align-items: center; }
.site-footer .footer-bottom p { font-family: 'Lato', sans-serif; font-size: 13px; color: rgba(255,255,255,0.55); }
.footer-bottom-links { display: flex; gap: 8px; }
.footer-bottom-links a { font-family: 'Lato', sans-serif; font-size: 13px; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s ease; }
.footer-bottom-links a:hover { color: #caad5c; }
.footer-bottom-links span { color: rgba(255,255,255,0.4); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    header.site-header { padding: 0 16px; position: sticky; top: 0; z-index: 100; }
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }

    .blog-hero { padding: 0 16px 24px; }
    .blog-hero h1 { font-size: 28px; }
    .blog-hero p { font-size: 15px; }

    .blog-grid-section { padding: 24px 16px 40px; }
    .blog-grid { grid-template-columns: 1fr; gap: 20px; }

    .post-card-image { height: 180px; }
    .post-card-body { padding: 20px; }
    .post-card-title { font-size: 18px; }
    .post-card-excerpt { font-size: 14px; }

    .post-header { padding: 40px 16px 24px; }
    .post-header h1 { font-size: 28px; }
    .post-divider { padding: 0 16px; }
    .post-content { padding: 24px 16px 40px; }
    .post-content p { font-size: 16px; }
    .post-content h2 { font-size: 22px; margin-top: 32px; }
    .post-content h3 { font-size: 18px; margin-top: 24px; }

    .post-footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 16px; }
    .footer-block-bordered { border-left: none; padding-left: 0; border-top: 3px solid #caad5c; padding-top: 20px; }

    .site-footer { padding: 32px 16px 0; }
    .footer-top { grid-template-columns: 1fr; gap: 24px; text-align: center; }
    .footer-brand { text-align: center; }
    .footer-brand p { margin-left: auto; margin-right: auto; }
    .site-footer .footer-col { text-align: center; }
    .footer-socials { justify-content: center; }
    .footer-disclaimer { padding: 10px 0; }
    .footer-disclaimer p { font-size: 11px; }
    .site-footer .footer-bottom { flex-direction: column; gap: 12px; text-align: center; padding: 16px 0; }
    .site-footer .footer-bottom p { font-size: 12px; }
    .footer-bottom-links a { font-size: 12px; }

    .blog-pagination { padding: 0 16px 40px; }
}
