/* MoldSentrix — shared styles for subpages (About, Blog) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #028090;
    --secondary: #00A896;
    --accent: #02C39A;
    --dark: #1E293B;
    --gray: #64748B;
    --light: #F8FAFC;
    --launch-badge: #FF6B35;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    background: white;
}

/* Header & Navigation */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--primary);
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

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

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.cta-button {
    background: var(--launch-badge);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
}

.cta-button:hover {
    background: #e55a28;
    transform: translateY(-1px);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--dark);
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 999;
    padding: 80px 2rem 2rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 0;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.mobile-overlay.active {
    display: block;
}

/* Page hero (small banner) */
.page-hero {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--dark) 0%, #0f4c75 100%);
    color: white;
    padding: clamp(50px, 8vw, 80px) 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(2,195,154,0.12) 0%, transparent 65%),
                radial-gradient(ellipse at 20% 80%, rgba(2,128,144,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    margin-bottom: 0.75rem;
    position: relative;
}

.page-hero p {
    color: rgba(255,255,255,0.85);
    max-width: 700px;
    margin: 0 auto;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    position: relative;
}

/* Article layout */
.article-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}

.article-meta {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #E2E8F0;
}

.article-wrap h2 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 3.5vw, 1.9rem);
    color: var(--dark);
    margin: 2.5rem 0 1rem;
}

.article-wrap h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin: 1.75rem 0 0.75rem;
}

.article-wrap p {
    margin-bottom: 1.1rem;
    color: #334155;
    font-size: 1.05rem;
}

.article-wrap ul, .article-wrap ol {
    margin: 0 0 1.25rem 1.5rem;
    color: #334155;
    font-size: 1.05rem;
}

.article-wrap li {
    margin-bottom: 0.5rem;
}

.article-wrap a {
    color: var(--primary);
}

.article-wrap blockquote {
    border-left: 4px solid var(--accent);
    background: var(--light);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    color: #334155;
    font-style: italic;
}

.lead {
    font-size: 1.18rem !important;
    color: var(--dark) !important;
}

.reprint-note {
    background: var(--light);
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.75rem 0;
}

.stat-box {
    background: var(--light);
    border-radius: 10px;
    padding: 1.25rem 1rem;
    text-align: center;
}

.stat-box .num {
    font-family: 'DM Serif Display', serif;
    font-size: 1.9rem;
    color: var(--primary);
    display: block;
}

.stat-box .lbl {
    font-size: 0.85rem;
    color: var(--gray);
}

/* CTA box at end of articles */
.article-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.article-cta h2 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    color: white;
    margin: 0 0 0.5rem;
}

.article-cta p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.25rem;
}

.article-cta .cta-button {
    display: inline-block;
}

/* Blog index cards */
.blog-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, transform 0.3s;
}

.blog-card:hover {
    box-shadow: 0 10px 30px rgba(2,128,144,0.12);
    transform: translateY(-3px);
}

.blog-card .date {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.blog-card h2 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

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

.blog-card h2 a:hover {
    color: var(--primary);
}

.blog-card p {
    color: #475569;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

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

.blog-card .read-more:hover {
    color: var(--secondary);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: clamp(2rem, 5vw, 3rem) 1.5rem clamp(1rem, 2vw, 1.5rem);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: 'DM Serif Display', serif;
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 400;
}

.footer-section p, .footer-section a {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    text-decoration: none;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

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

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .nav-links,
    .nav-links + .cta-button {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    nav {
        padding: 1rem 1.5rem;
    }
}
