/* ===================================================================
   Summit Vocational — Shared Blog / Article Styles
   Used by the blog index (blog.html) and every individual post page.
   Brand tokens mirror index.html.
   =================================================================== */

:root {
    --slate: #2e4a5c;
    --slate-dark: #1e3a4c;
    --steel: #5a8a9a;
    --steel-light: #7ba3b1;
    --frost: #f0f5f7;
    --white: #ffffff;
    --gray-100: #f7f8f9;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --shadow: 0 4px 24px rgba(46, 74, 92, 0.1);
    --shadow-lg: 0 8px 32px rgba(46, 74, 92, 0.15);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--gray-700);
    line-height: 1.6;
}

/* ========== NAV ========== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-container {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center; height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { height: 30px; }
.logo-text { font-size: 1rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: var(--slate); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { color: var(--gray-600); text-decoration: none; font-weight: 500; font-size: 0.88rem; transition: var(--transition); }
.nav-link:hover { color: var(--slate); }
.nav-link.active { color: var(--slate); font-weight: 700; }
.nav-cta { background: var(--slate); color: var(--white) !important; padding: 9px 18px; border-radius: 5px; font-weight: 600; }
.nav-cta:hover { background: var(--slate-dark); }

/* Mobile Menu */
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 36px; height: 36px; position: relative; z-index: 1001;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--slate); margin: 5px auto;
    transition: var(--transition); border-radius: 1px;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30, 58, 76, 0.95); z-index: 999;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 24px; opacity: 0; transition: opacity 0.3s ease;
}
.mobile-overlay.active { display: flex; opacity: 1; }
.mobile-overlay a {
    color: var(--white); text-decoration: none;
    font-size: 1.2rem; font-weight: 600; padding: 10px 20px; transition: var(--transition);
}
.mobile-overlay a:hover { color: var(--steel-light); }
.mobile-overlay .mobile-cta {
    background: var(--steel); color: var(--white);
    padding: 14px 28px; border-radius: 6px; font-weight: 700; margin-top: 12px;
}
.mobile-overlay .mobile-cta:hover { background: var(--steel-light); }

/* ========== POST TAGS (shared with index) ========== */
.post-tag {
    display: inline-block; font-size: 0.62rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
    padding: 4px 10px; border-radius: 4px;
}
.post-tag.educational { background: rgba(90, 138, 154, 0.12); color: var(--steel); }
.post-tag.case-study { background: rgba(46, 74, 92, 0.1); color: var(--slate); }
.post-tag.strategy { background: rgba(90, 138, 154, 0.18); color: var(--slate-dark); }

/* ===================================================================
   ARTICLE PAGE
   =================================================================== */

/* Reading progress bar */
.read-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: linear-gradient(to right, var(--steel), var(--steel-light));
    z-index: 1001; transition: width 0.1s linear;
}

/* Hero / header */
.article-hero {
    padding: 120px 24px 50px;
    background: linear-gradient(180deg, var(--white) 0%, var(--frost) 100%);
}
.article-hero-inner { max-width: 760px; margin: 0 auto; }
.breadcrumb {
    font-size: 0.82rem; color: var(--gray-400); margin-bottom: 24px;
}
.breadcrumb a { color: var(--steel); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--slate); text-decoration: underline; }
.breadcrumb i { font-size: 0.65rem; margin: 0 8px; color: var(--gray-300); }

.article-meta-row {
    display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap;
}
.article-date { font-size: 0.8rem; color: var(--gray-400); font-weight: 500; }
.article-readtime { font-size: 0.8rem; color: var(--gray-400); font-weight: 500; }
.article-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gray-300); }

.article-title {
    font-size: 2.4rem; font-weight: 900; color: var(--slate);
    line-height: 1.18; letter-spacing: -0.5px; margin-bottom: 20px;
}
.article-standfirst {
    font-size: 1.18rem; line-height: 1.65; color: var(--gray-600); font-weight: 400;
}
.article-byline {
    display: flex; align-items: center; gap: 12px; margin-top: 28px;
    padding-top: 24px; border-top: 1px solid var(--gray-200);
}
.byline-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    background: var(--slate); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.95rem; letter-spacing: 0.5px;
}
.byline-text { line-height: 1.35; }
.byline-name { font-size: 0.92rem; font-weight: 700; color: var(--slate); }
.byline-role { font-size: 0.8rem; color: var(--gray-500); }

/* Body / prose */
.article-body-wrap { padding: 16px 24px 40px; }
.article-body {
    max-width: 720px; margin: 0 auto;
    font-size: 1.12rem; line-height: 1.9; color: var(--gray-700);
}
.article-body > p { margin-bottom: 24px; }
.article-body h2 {
    font-size: 1.55rem; font-weight: 800; color: var(--slate);
    line-height: 1.3; margin: 44px 0 16px;
}
.article-body h3 {
    font-size: 1.25rem; font-weight: 700; color: var(--slate);
    line-height: 1.35; margin: 38px 0 14px;
}
.article-body strong { color: var(--slate); font-weight: 700; }
.article-body em { font-style: italic; }
.article-body ul, .article-body ol { margin: 0 0 24px 0; padding-left: 4px; list-style: none; }
.article-body ul li {
    position: relative; padding: 6px 0 6px 32px;
    font-size: 1.08rem; line-height: 1.7;
}
.article-body ul li::before {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 0; top: 7px; color: var(--steel); font-size: 0.85rem;
}
.article-body ol { counter-reset: item; }
.article-body ol li {
    position: relative; padding: 6px 0 6px 38px; counter-increment: item;
    font-size: 1.08rem; line-height: 1.7;
}
.article-body ol li::before {
    content: counter(item); position: absolute; left: 0; top: 6px;
    width: 24px; height: 24px; background: var(--frost); color: var(--steel);
    border-radius: 6px; font-size: 0.78rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}

/* Pull quote */
.pull-quote {
    margin: 36px 0; padding: 6px 0 6px 28px;
    border-left: 4px solid var(--steel);
    font-size: 1.4rem; line-height: 1.5; font-weight: 700;
    color: var(--slate); font-style: italic;
}

/* Callout (matches index) */
.blog-callout {
    background: var(--frost); border-left: 4px solid var(--steel);
    padding: 24px 28px; border-radius: 0 10px 10px 0;
    margin: 36px 0; font-size: 1.05rem; line-height: 1.75; color: var(--gray-600);
}
.blog-callout strong { color: var(--slate); }

/* Disclaimer note */
.article-note {
    font-size: 0.95rem; color: var(--gray-500); font-style: italic;
    background: var(--gray-100); border-radius: 8px; padding: 16px 20px; margin-bottom: 28px;
}

/* Share row */
.article-share-wrap { padding: 4px 24px 0; }
.article-share {
    max-width: 720px; margin: 0 auto;
    padding-top: 30px; border-top: 1px solid var(--gray-200);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px 20px;
}
.share-label {
    font-size: 0.98rem; font-weight: 700; color: var(--slate);
    display: inline-flex; align-items: center; gap: 9px;
}
.share-label i { color: var(--steel); font-size: 0.92rem; }
.share-buttons { display: flex; align-items: center; gap: 10px; }
.share-btn {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--frost); color: var(--slate);
    border: 1px solid var(--gray-200); font-size: 1.05rem;
    cursor: pointer; text-decoration: none; position: relative;
    transition: var(--transition);
}
.share-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.share-btn.linkedin:hover { background: #0a66c2; border-color: #0a66c2; color: var(--white); }
.share-btn.x:hover { background: #000; border-color: #000; color: var(--white); }
.share-btn.email:hover { background: var(--steel); border-color: var(--steel); color: var(--white); }
.share-btn.copy:hover { background: var(--slate); border-color: var(--slate); color: var(--white); }
.share-btn.copied { background: var(--steel); border-color: var(--steel); color: var(--white); }
.copy-tip {
    position: absolute; bottom: calc(100% + 9px); left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--slate); color: var(--white);
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.3px;
    padding: 5px 10px; border-radius: 6px; white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.share-btn.copied .copy-tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.copy-tip::after {
    content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border: 5px solid transparent; border-top-color: var(--slate);
}

/* End CTA */
.article-cta-wrap { padding: 20px 24px 80px; }
.article-cta {
    max-width: 720px; margin: 0 auto;
    background: linear-gradient(135deg, var(--slate) 0%, var(--slate-dark) 100%);
    border-radius: 16px; padding: 44px 40px; text-align: center;
}
.article-cta h3 { font-size: 1.6rem; font-weight: 800; color: var(--white); margin-bottom: 12px; line-height: 1.3; }
.article-cta p { font-size: 1rem; color: rgba(255,255,255,0.78); line-height: 1.65; margin-bottom: 26px; max-width: 520px; margin-left: auto; margin-right: auto; }
.article-cta-btn {
    display: inline-block; background: var(--white); color: var(--slate);
    padding: 14px 30px; border-radius: 8px; font-size: 1rem; font-weight: 700;
    text-decoration: none; transition: var(--transition);
}
.article-cta-btn:hover { background: var(--frost); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.article-cta-contact { margin-top: 20px; font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.article-cta-contact a { color: var(--steel-light); text-decoration: none; }
.article-cta-contact a:hover { color: var(--white); }

/* Related posts */
.related { padding: 70px 24px 90px; background: var(--frost); }
.related-inner { max-width: 1000px; margin: 0 auto; }
.related-head {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px;
}
.related-head h2 { font-size: 1.4rem; font-weight: 800; color: var(--slate); }
.related-head a { font-size: 0.9rem; font-weight: 600; color: var(--steel); text-decoration: none; }
.related-head a:hover { color: var(--slate); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
    background: var(--white); border: 1px solid var(--gray-200); border-radius: 14px;
    padding: 26px 24px; text-decoration: none; display: block; transition: var(--transition);
}
.related-card:hover { border-color: var(--steel); box-shadow: var(--shadow); transform: translateY(-3px); }
.related-card .post-tag { margin-bottom: 14px; }
.related-card h3 { font-size: 1.08rem; font-weight: 700; color: var(--slate); line-height: 1.4; margin-bottom: 10px; }
.related-card p { font-size: 0.85rem; color: var(--gray-500); line-height: 1.6; }
.related-card .read-more { display: inline-block; margin-top: 14px; font-size: 0.85rem; font-weight: 700; color: var(--steel); }

/* ========== FOOTER (matches site) ========== */
.footer { background: var(--slate-dark); padding: 60px 24px 32px; }
.footer-container { max-width: 1100px; margin: 0 auto; }
.footer-main {
    display: grid; grid-template-columns: 1.5fr 2fr; gap: 60px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo svg { width: 40px; height: 32px; }
.footer-logo span { font-size: 1.2rem; font-weight: 700; color: var(--white); }
.footer-tagline { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.6; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--steel-light); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.7); text-decoration: none; transition: var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-col li:not(:has(a)) { font-size: 0.9rem; color: rgba(255,255,255,0.5); }
.footer-bottom { padding-top: 32px; display: flex; justify-content: space-between; align-items: center; }
.footer-credentials span { font-size: 0.85rem; color: var(--steel-light); display: flex; align-items: center; gap: 8px; }
.footer-credentials i { font-size: 0.9rem; }
.footer-copyright { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .related-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .footer-main { grid-template-columns: 1fr; gap: 40px; }
    .footer-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    html, body { overflow-x: hidden; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .article-hero { padding: 92px 20px 36px; }
    .article-title { font-size: 1.7rem; }
    .article-standfirst { font-size: 1.05rem; }
    .article-body { font-size: 1.05rem; }
    .article-body h2 { font-size: 1.3rem; }
    .article-body h3 { font-size: 1.12rem; }
    .pull-quote { font-size: 1.18rem; }
    .article-cta { padding: 32px 22px; }
    .article-cta h3 { font-size: 1.3rem; }
    .related { padding: 50px 20px 64px; }
    .footer { padding: 48px 20px 24px; }
    .footer-links { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
