/* SBIR Insider - Main Stylesheet */
/* CIA-grade authority design - serious, factual, trustworthy */

/* ===== COLOR SYSTEM ===== */
/* 
PRIMARY COLORS:
- Deep Authority Navy: #0A1A2F (headers, navigation, authority)
- Charcoal Black: #1A1A1A (body text, sophisticated)
- Federal White: #FFFFFF (backgrounds, clarity)

SECONDARY COLORS:
- Steel Blue-Gray: #5C6D7C (analytical UI)
- Light Federal Gray: #E6E8EB (institutional backgrounds)

ACCENTS (< 5% usage):
- Muted Strategic Gold: #C4A45F (prestige, links)
- Steel Teal: #527A87 (buttons, modern)
- Crisis Red: #8E3B3B (warnings only)
- Slate Graphite: #3E454D (borders, secondary)
- Pale Gray-Blue: #F4F6F8 (soft backgrounds)
*/

/* ===== FONTS ===== */
/* Google Fonts - Merriweather + Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:ital,wght@0,400;0,700;0,900;1,400;1,700&display=swap');

/* ===== RESET AND BASE STYLES ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: #FFFFFF;
    color: #1A1A1A;
    line-height: 1.45;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, serif;
    color: #0A1A2F;
}

h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 1rem;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    margin: 0 0 1rem;
}

h3 {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
}

h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

p {
    margin: 0 0 1.25rem;
    line-height: 1.6;
    max-width: 75ch;
    color: #1A1A1A;
}

a {
    color: #C4A45F;
    transition: color 0.3s ease;
    text-decoration: none;
}

a:hover {
    color: #527A87;
}

/* ===== HEADER AND NAVIGATION ===== */
.site-header {
    background: #0A1A2F;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    max-width: 300px;
    height: auto;
}

.main-nav {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.main-nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #C4A45F;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #0A1A2F;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

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

.mobile-nav a {
    display: block;
    color: white;
    padding: 0.75rem 1rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.mobile-nav a:hover {
    color: #C4A45F;
    background: rgba(255,255,255,0.05);
}

/* ===== PAGE LAYOUTS ===== */
.page-hero {
    background: #0A1A2F;
    color: white;
    padding: 3rem 1.5rem;
    text-align: center;
}

.page-hero h1 {
    color: white;
    margin-bottom: 0.75rem;
}

.page-hero .subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    color: #E6E8EB;
}

.breadcrumb {
    background: #F4F6F8;
    padding: 0.75rem 1.5rem;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
    border-bottom: 1px solid #E6E8EB;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb a {
    color: #5C6D7C;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #0A1A2F;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    background: white;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* ===== SECTIONS ===== */
.section {
    margin-bottom: 2.5rem;
}

.section:last-child {
    margin-bottom: 0;
}

/* Alert Boxes */
.alert-box {
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-box.warning {
    background: #FFF9E6;
    border-color: #C4A45F;
    color: #1A1A1A;
}

.alert-box.danger {
    background: #F8E8E8;
    border-color: #8E3B3B;
    color: #1A1A1A;
}

.alert-box.info {
    background: #E8F1F5;
    border-color: #527A87;
    color: #1A1A1A;
}

.alert-box.success {
    background: #E8F5E9;
    border-color: #527A87;
    color: #1A1A1A;
}

/* Highlight Boxes */
.highlight-box {
    background: #F4F6F8;
    padding: 1.5rem;
    border-left: 4px solid #C4A45F;
    margin: 2rem 0;
    border-radius: 4px;
}

.highlight-box h3 {
    margin-top: 0;
    color: #0A1A2F;
}

/* Pull Quotes */
.pull-quote {
    background: #F4F6F8;
    border-left: 4px solid #5C6D7C;
    padding: 1.5rem;
    margin: 2rem 0;
    font-size: 1.125rem;
    font-style: italic;
    color: #3E454D;
}

.pull-quote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-style: normal;
    color: #5C6D7C;
}

/* ===== TABLES ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 15px;
}

thead {
    background: #0A1A2F;
    color: white;
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #E6E8EB;
    color: #1A1A1A;
}

tbody tr:hover {
    background: #F4F6F8;
}

/* ===== BUTTONS AND CTAs ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: #527A87;
    color: white;
}

.btn-primary:hover {
    background: #3E454D;
    color: white;
}

.btn-secondary {
    background: #5C6D7C;
    color: white;
}

.btn-secondary:hover {
    background: #3E454D;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid #0A1A2F;
    color: #0A1A2F;
}

.btn-outline:hover {
    background: #0A1A2F;
    color: white;
}

.btn-danger {
    background: #8E3B3B;
    color: white;
}

.btn-danger:hover {
    background: #6B2C2C;
    color: white;
}

/* CTA Section */
.cta-section {
    background: #0A1A2F;
    color: white;
    padding: 3rem 1.5rem;
    text-align: center;
    margin-top: 3rem;
}

.cta-section h2 {
    color: white;
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #E6E8EB;
}

/* ===== LISTS ===== */
ul, ol {
    margin: 0 0 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #1A1A1A;
}

.no-bullets {
    list-style: none;
    padding-left: 0;
}

/* ===== CARDS AND GRIDS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: white;
    border: 1px solid #E6E8EB;
    border-radius: 4px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(10, 26, 47, 0.1);
    transform: translateY(-2px);
    border-color: #5C6D7C;
}

.card h3 {
    margin-top: 0;
    color: #0A1A2F;
}

/* ===== COMPARISON TABLES ===== */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.comparison-column {
    background: white;
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid #E6E8EB;
}

.comparison-header {
    background: #0A1A2F;
    color: white;
    padding: 1.25rem;
    margin: -1.5rem -1.5rem 1.5rem;
    border-radius: 4px 4px 0 0;
    text-align: center;
}

.comparison-header h3 {
    color: white;
    margin: 0;
}

.comparison-item {
    padding: 1rem 0;
    border-bottom: 1px solid #E6E8EB;
}

.comparison-item:last-child {
    border-bottom: none;
}

/* ===== SIDEBAR ===== */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sidebar {
    background: #F4F6F8;
    padding: 1.5rem;
    border-radius: 4px;
    position: sticky;
    top: 80px;
    align-self: start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    border: 1px solid #E6E8EB;
}

.sidebar h3 {
    margin-top: 0;
    font-size: 1.125rem;
    color: #0A1A2F;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 0.75rem;
}

.sidebar a {
    text-decoration: none;
    font-size: 14px;
    color: #5C6D7C;
}

.sidebar a:hover {
    color: #0A1A2F;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #1A1A1A;
    color: #E6E8EB;
    padding: 3rem 1.5rem 1rem;
    margin-top: 4rem;
    border-top: 1px solid #3E454D;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #E6E8EB;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-links a:hover {
    color: #C4A45F;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #3E454D;
    color: #5C6D7C;
    font-size: 13px;
}

.footer-bottom a {
    color: #C4A45F;
}

/* ===== ANIMATIONS ===== */
@keyframes flash {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(142, 59, 59, 0.6);
    }
    50% {
        opacity: 0.9;
        box-shadow: 0 0 30px rgba(142, 59, 59, 0.9);
    }
}

.flash {
    animation: flash 2s infinite;
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.text-muted {
    color: #5C6D7C;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        max-height: none;
    }
    
    .main-content {
        padding: 2rem 1rem;
    }
    
    .page-hero {
        padding: 2rem 1rem;
    }
    
    table {
        font-size: 13px;
    }
    
    th, td {
        padding: 0.5rem;
    }
}

/* ===== ACCESSIBILITY ===== */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #C4A45F;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Skip to main content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #C4A45F;
    color: #0A1A2F;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-header,
    .mobile-menu-btn,
    .sidebar,
    .cta-section,
    .site-footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
    
    .page-hero {
        background: white;
        color: black;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
    }
}

/* ===== HEADER AND NAVIGATION ===== */
.site-header {
    background: #1a365d;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    max-width: 300px;
    height: auto;
}

.main-nav {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #C0A563;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #1a365d;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

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

.mobile-nav a {
    display: block;
    color: white;
    padding: 0.75rem 1rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ===== PAGE LAYOUTS ===== */
.page-hero {
    background: #1a365d;
    color: white;
    padding: 3rem 1.5rem;
    text-align: center;
}

.page-hero h1 {
    color: white;
    margin-bottom: 0.75rem;
}

.page-hero .subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb {
    background: #f8f9fa;
    padding: 0.75rem 1.5rem;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb a {
    color: #5C7A87;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #1a365d;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    background: white;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* ===== SECTIONS ===== */
.section {
    margin-bottom: 2rem;
}

.section:last-child {
    margin-bottom: 0;
}

/* Alert Boxes */
.alert-box {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-box.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-box.danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-box.info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.alert-box.success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

/* Highlight Boxes */
.highlight-box {
    background: #F2F2F2;
    padding: 1.5rem;
    border-left: 4px solid #C0A563;
    margin: 2rem 0;
    border-radius: 4px;
}

.highlight-box h3 {
    margin-top: 0;
}

/* Pull Quotes */
.pull-quote {
    background: #F2F2F2;
    border-left: 4px solid #5C7A87;
    padding: 1.5rem;
    margin: 2rem 0;
    font-size: 1.125rem;
    font-style: italic;
}

.pull-quote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-style: normal;
    color: #5C7A87;
}

/* ===== TABLES ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 15px;
}

thead {
    background: #1a365d;
    color: white;
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

tbody tr:hover {
    background: #f8f9fa;
}

/* ===== BUTTONS AND CTAs ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: #C0A563;
    color: #1a365d;
}

.btn-primary:hover {
    background: #d4b76f;
    color: #1a365d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 165, 99, 0.3);
}

.btn-secondary {
    background: #5C7A87;
    color: white;
}

.btn-secondary:hover {
    background: #4a6270;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid #1a365d;
    color: #1a365d;
}

.btn-outline:hover {
    background: #1a365d;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    color: white;
}

/* CTA Section */
.cta-section {
    background: #1a365d;
    color: white;
    padding: 3rem 1.5rem;
    text-align: center;
    margin-top: 3rem;
}

.cta-section h2 {
    color: white;
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* ===== LISTS ===== */
ul, ol {
    margin: 0 0 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.no-bullets {
    list-style: none;
    padding-left: 0;
}

/* ===== CARDS AND GRIDS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.card h3 {
    margin-top: 0;
}

/* ===== COMPARISON TABLES ===== */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.comparison-column {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.comparison-header {
    background: #1a365d;
    color: white;
    padding: 1.25rem;
    margin: -1.5rem -1.5rem 1.5rem;
    border-radius: 8px 8px 0 0;
    text-align: center;
}

.comparison-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-item:last-child {
    border-bottom: none;
}

/* ===== SIDEBAR ===== */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sidebar {
    background: #F2F2F2;
    padding: 1.5rem;
    border-radius: 8px;
    position: sticky;
    top: 80px;
    align-self: start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.sidebar h3 {
    margin-top: 0;
    font-size: 1.125rem;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 0.75rem;
}

.sidebar a {
    text-decoration: none;
    font-size: 14px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #1F1F1F;
    color: white;
    padding: 3rem 1.5rem 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-links a:hover {
    color: #C0A563;
}

.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: 13px;
}

.footer-bottom a {
    color: #C0A563;
}

/* ===== ANIMATIONS ===== */
@keyframes flash {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(220, 53, 69, 0.6);
    }
    50% {
        opacity: 0.9;
        box-shadow: 0 0 30px rgba(220, 53, 69, 0.9);
    }
}

.flash {
    animation: flash 2s infinite;
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        max-height: none;
    }
    
    .main-content {
        padding: 2rem 1rem;
    }
    
    .page-hero {
        padding: 2rem 1rem;
    }
    
    table {
        font-size: 13px;
    }
    
    th, td {
        padding: 0.5rem;
    }
}

/* ===== ACCESSIBILITY ===== */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #C0A563;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Skip to main content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #C0A563;
    color: #1a365d;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-header,
    .mobile-menu-btn,
    .sidebar,
    .cta-section,
    .site-footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
    
    .page-hero {
        background: white;
        color: black;
    }
}

/* Tighter spacing for section variants */
.section-alt {
    background: #F4F6F8;
    padding: 2rem 1.5rem 2.5rem;
}

.section-white {
    background: white;
    padding: 2rem 1.5rem 2.5rem;
}

/* Remove top margin from headings in sections */
.section h2,
.section-alt h2,
.section-white h2,
.main-content > h2 {
    margin-top: 0 !important;
    padding-top: 0;
}

/* ===== UX REVIEW UPDATES (Nov 2025) ===== */

/* Ensure CTA sections have centered buttons */
.cta-section {
    text-align: center;
}

.cta-section .btn {
    display: inline-block;
    margin: 0.5rem;
}

/* Tighter spacing between consecutive sections */
.section + .section {
    margin-top: 1.5rem;
}

.section-alt + .section-white,
.section-white + .section-alt {
    margin-top: 0;
}

/* Page hero tighter spacing */
.page-hero {
    padding: 2.5rem 1.5rem;
}

/* Responsive logo scaling (UX review recommendation) */
@media (max-width: 768px) {
    .site-logo {
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    .site-logo {
        max-width: 180px;
    }
}

/* ===== CTA SECTION FIX - White Text ===== */
.cta-section {
    text-align: center !important;
}

.cta-section h2,
.cta-section p,
.cta-section ul,
.cta-section li,
.cta-section .bullet-list li {
    color: white !important;
}

.cta-section .btn {
    display: inline-block;
    margin: 0.5rem auto;
}
