/* ============================================================
   SMRPowers.com - SMR Powering the AI Data Center Era
   Main Stylesheet | Nuclear Navy + Energy Orange
   ============================================================ */

:root {
    --navy-900: #0a1a2f;
    --navy-800: #10243f;
    --navy-700: #1a3352;
    --navy-600: #27456b;
    --orange-500: #ff7a1a;
    --orange-400: #ff9142;
    --red-600: #e60012;
    --bg: #f4f6f9;
    --surface: #ffffff;
    --text: #16202c;
    --text-light: #4b5a6b;
    --text-lighter: #718096;
    --border: #d8dee6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 30px rgba(0,0,0,.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --font-sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Consolas', 'Monaco', monospace;
    --transition: all .25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--navy-700); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--orange-500); }
img { max-width: 100%; height: auto; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-alt { background: var(--surface); }
.section-header { margin-bottom: 28px; }
.section-header h2 { font-size: 28px; color: var(--navy-900); margin-bottom: 6px; }
.section-header p { color: var(--text-light); max-width: 720px; }

/* --- Header & Nav --- */
.site-header {
    background: var(--navy-900);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 20px;
}
.site-logo {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .3px;
    white-space: nowrap;
}
.site-logo span { color: var(--orange-400); }
.main-nav ul { display: flex; list-style: none; gap: 4px; flex-wrap: wrap; }
.main-nav a {
    display: block;
    padding: 8px 12px;
    color: #c9d6e6;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.main-nav a.active { color: #fff; background: var(--orange-500); }
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* --- Hero --- */
.hero {
    background:
        radial-gradient(ellipse 80% 60% at 75% 20%, rgba(255,122,26,.18), transparent 60%),
        linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    color: #fff;
    padding: 72px 0 56px;
}
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hero-badge {
    display: inline-block;
    background: rgba(255,122,26,.16);
    border: 1px solid rgba(255,122,26,.45);
    color: var(--orange-400);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.hero h1 { font-size: 42px; line-height: 1.15; max-width: 760px; margin-bottom: 16px; }
.hero-subtitle { font-size: 18px; color: #b8c7da; max-width: 720px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
    display: inline-block;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-align: center;
}
.btn-primary { background: var(--orange-500); color: #fff; }
.btn-primary:hover { background: var(--orange-400); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-red { background: var(--red-600); color: #fff; }
.btn-red:hover { background: #c90513; color: #fff; }

/* --- Hero stats --- */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 40px;
}
.stat-item {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    text-align: center;
}
.stat-value { font-size: 28px; font-weight: 800; color: var(--orange-400); }
.stat-label { font-size: 13px; color: #b8c7da; margin-top: 4px; }

/* --- Panels / cards --- */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}
.panel h3 { font-size: 18px; color: var(--navy-900); margin-bottom: 10px; }
.panel .panel-meta { font-size: 13px; color: var(--text-lighter); margin-bottom: 14px; }
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 22px;
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-icon { font-size: 26px; margin-bottom: 10px; }
.card h3 { font-size: 17px; color: var(--navy-900); margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--text-light); margin-bottom: 12px; }
.card .card-link { font-weight: 700; font-size: 14px; color: var(--orange-500); }

/* --- Two column layout --- */
.layout-2col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 22px;
    align-items: start;
}

/* --- Deal / data table --- */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--navy-900); color: #fff; font-weight: 700; font-size: 13.5px; }
.data-table tr:hover td { background: #f8fafc; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}
.tag-green { background: #e3f6ea; color: #1a7f37; }
.tag-blue { background: #e3eefa; color: #1f5fa8; }
.tag-orange { background: #fff0e3; color: #c75e00; }
.tag-red { background: #ffe6e8; color: #c90513; }

/* --- News / timeline list --- */
.news-list { list-style: none; }
.news-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.news-list li:last-child { border-bottom: none; }
.news-date { font-size: 12.5px; color: var(--text-lighter); font-family: var(--font-mono); }
.news-title { font-weight: 700; font-size: 15.5px; color: var(--navy-900); margin: 3px 0; }
.news-title a { color: var(--navy-900); }
.news-title a:hover { color: var(--orange-500); }
.news-desc { font-size: 13.5px; color: var(--text-light); }

/* --- Source links --- */
.src-note { font-size: 12.5px; color: var(--text-lighter); margin-top: 10px; }
.src-note a { color: var(--navy-600); text-decoration: underline; }

/* --- Ad slots --- */
.ad-slot {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    background: #fbfcfe;
    text-align: center;
    padding: 22px 14px;
    color: var(--text-lighter);
    font-size: 13.5px;
}
.ad-slot a { color: var(--orange-500); font-weight: 700; }
.ad-slot-top { margin-bottom: 22px; }
.ad-slot-side { margin-top: 22px; }

/* --- Media kit CTA --- */
.cta-band {
    background: linear-gradient(135deg, var(--red-600) 0%, #a30010 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 30px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.cta-band h3 { font-size: 22px; margin-bottom: 6px; }
.cta-band p { color: #ffd7db; font-size: 14.5px; }
.cta-band .btn-outline { border-color: #fff; }

/* --- Footer --- */
.site-footer {
    background: var(--navy-900);
    color: #9fb0c4;
    padding: 40px 0 28px;
    margin-top: auto;
    font-size: 14px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 26px;
}
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-grid a { display: block; color: #9fb0c4; padding: 3px 0; }
.footer-grid a:hover { color: var(--orange-400); }
.footer-brand { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.footer-brand span { color: var(--orange-400); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
}
.footer-bottom a { color: #9fb0c4; }

/* --- Responsive --- */
@media (max-width: 960px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .layout-2col { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .hero { padding: 48px 0 40px; }
    .hero h1 { font-size: 30px; }
    .card-grid { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .stat-value { font-size: 22px; }
    .mobile-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--navy-900);
        padding: 12px 20px 18px;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .main-nav a { padding: 12px; }
}

/* --- Print --- */
@media print {
    .site-header, .site-footer, .ad-slot, .cta-band .btn { display: none; }
    body { background: #fff; }
    .panel, .card { box-shadow: none; border: 1px solid #ccc; }
    a { color: inherit; text-decoration: underline; }
    .section { padding: 24px 0; }
}

/* --- Accessibility: visible focus --- */
a:focus-visible, button:focus-visible, .btn:focus-visible {
    outline: 3px solid var(--orange-400);
    outline-offset: 2px;
}

/* ============================================================
   Article / Guide pages
   ============================================================ */
.breadcrumb {
    font-size: 13px;
    color: var(--text-lighter);
    margin-bottom: 18px;
}
.breadcrumb a { color: var(--navy-600); }
.breadcrumb a:hover { color: var(--orange-500); }

.article-hero {
    background:
        radial-gradient(ellipse 70% 60% at 80% 20%, rgba(255,122,26,.14), transparent 60%),
        linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    color: #fff;
    padding: 56px 0 44px;
}
.article-hero-inner { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.article-hero .hero-badge { margin-bottom: 14px; }
.article-hero h1 { font-size: 34px; line-height: 1.2; margin-bottom: 12px; }
.article-hero .hero-subtitle { color: #b8c7da; }
.article-hero .article-meta {
    margin-top: 16px;
    font-size: 13px;
    color: #9fb0c4;
}

.article-wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.article-body { padding: 36px 0 20px; }
.article-body h2 {
    font-size: 24px;
    color: var(--navy-900);
    margin: 36px 0 12px;
    padding-top: 8px;
    border-top: 2px solid var(--border);
}
.article-body h3 { font-size: 18px; color: var(--navy-800); margin: 24px 0 8px; }
.article-body p { margin-bottom: 14px; color: var(--text); }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body .src-note { margin-top: 20px; }

/* Inline callout */
.callout {
    background: #fff6ee;
    border-left: 4px solid var(--orange-500);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 14px 18px;
    margin: 18px 0;
    font-size: 14.5px;
    color: var(--text);
}
.callout strong { color: var(--navy-900); }

/* Key facts strip */
.fact-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 22px 0;
}
.fact-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}
.fact-item .fact-value { font-size: 20px; font-weight: 800; color: var(--orange-500); }
.fact-item .fact-label { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* Related articles */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 18px;
}
@media (max-width: 960px) {
    .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .related-grid { grid-template-columns: 1fr; }
    .article-hero h1 { font-size: 27px; }
}

/* Inline ad in article */
.ad-slot-inline { margin: 28px 0; }
