/* Google Fonts - loaded via <link> in HTML for non-blocking */

:root {
    --navy-dark: #1F265E;
    --navy: #2A3270;
    --orange: #F28C18;
    --orange-hover: #D97B14;
    --green: #18863B;
    --red: #DC3545;
    --text: #1F265E;
    --text-light: #5A6178;
    --bg-light: #F8F9FC;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
nav {
    background: var(--white);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(31, 38, 94, 0.08);
}
nav .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--navy-dark); text-decoration: none; }
.logo span { color: var(--orange); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-links a.active { color: var(--orange); }

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}
.nav-dropdown > a {
    cursor: pointer;
}
.nav-dropdown > a::after {
    content: ' ▾';
    font-size: 0.7em;
    opacity: 0.6;
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(31, 38, 94, 0.12);
    min-width: 220px;
    padding: 8px 0;
    z-index: 200;
}
/* Invisible bridge fills the gap between trigger and dropdown */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}
.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}
.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    white-space: nowrap;
    font-size: 0.9rem !important;
    color: var(--text) !important;
}
.nav-dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--orange) !important;
}

/* Login link */
.nav-login {
    color: var(--orange) !important;
    font-weight: 600 !important;
}
.nav-login:hover {
    opacity: 0.85;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-hover); transform: translateY(-2px); }
.btn-large { padding: 16px 32px; font-size: 1.1rem; }

/* Page Header */
.page-header {
    padding: 60px 0 40px;
    text-align: center;
    background: var(--bg-light);
}
.page-header h1 { font-size: 2.2rem; color: var(--navy-dark); margin-bottom: 16px; }
.page-header p { font-size: 1.1rem; color: var(--text-light); max-width: 650px; margin: 0 auto; }

/* Section Titles */
.section-title { text-align: center; font-size: 1.6rem; margin-bottom: 16px; color: var(--navy-dark); }
.section-intro { text-align: center; color: var(--text-light); margin-bottom: 40px; max-width: 650px; margin-left: auto; margin-right: auto; }

/* Cards */
.card {
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Accordion */
.accordion { border: 1px solid #E5E7EB; border-radius: 8px; overflow: hidden; }
.accordion-item { border-bottom: 1px solid #E5E7EB; }
.accordion-item:last-child { border-bottom: none; }
.accordion-header {
    padding: 16px 20px;
    background: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--navy-dark);
}
.accordion-header:hover { background: var(--bg-light); }
.accordion-icon { font-size: 1.2rem; color: var(--orange); }
.accordion-content { display: none; padding: 16px 20px; background: var(--bg-light); font-size: 0.95rem; color: var(--text-light); }
.accordion-content.open { display: block; }
.accordion-content ul { margin-left: 20px; margin-top: 8px; }
.accordion-content li { margin-bottom: 6px; }

/* Tabs */
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.tab {
    padding: 12px 24px;
    border: 2px solid var(--navy-dark);
    background: var(--white);
    color: var(--navy-dark);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}
.tab:hover { background: var(--bg-light); }
.tab.active { background: var(--navy-dark); color: var(--white); }

/* Scores/Badges */
.score-badge { font-size: 0.85rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.score-low { background: #FEE2E2; color: var(--red); }
.score-medium { background: #FEF3C7; color: #D97706; }
.score-high { background: #D1FAE5; color: var(--green); }

/* Check/X marks */
.check { color: var(--green); font-size: 1.2rem; font-weight: bold; }
.partial { color: var(--orange); font-size: 1.1rem; }
.no { color: var(--red); font-size: 1.2rem; }

/* CTA Section */
.cta-section { padding: 60px 0; text-align: center; }
.cta-section.dark { background: var(--navy-dark); color: var(--white); }
.cta-section.light { background: var(--bg-light); }
.cta-section h2 { font-size: 1.8rem; margin-bottom: 16px; }
.cta-section p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 24px; }

/* Footer */
footer { background: var(--navy-dark); padding: 24px 0; color: var(--white); }
.footer-content { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; opacity: 0.7; }
.footer-links a { color: var(--white); text-decoration: none; margin-left: 20px; padding: 8px 0; display: inline-block; }

/* Dark section */
.section-dark { background: var(--navy-dark); padding: 60px 0; color: var(--white); }
.section-dark h2 { text-align: center; font-size: 1.6rem; margin-bottom: 12px; }
.section-dark .intro { text-align: center; opacity: 0.8; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Light section */
.section-light { background: var(--bg-light); padding: 60px 0; }

/* Standard section */
.section { padding: 60px 0; }

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy-dark);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Responsive */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px;
        gap: 0;
        box-shadow: 0 8px 24px rgba(31, 38, 94, 0.12);
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid var(--bg-light);
        font-size: 1rem;
    }
    .nav-links a:last-child { border-bottom: none; }
    .nav-links .btn-primary {
        margin-top: 8px;
        text-align: center;
    }
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        min-width: 0;
        padding: 0 0 0 16px;
        display: none;
    }
    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }
    .nav-dropdown > a::after {
        content: ' ▸';
    }
    .nav-dropdown.open > a::after {
        content: ' ▾';
    }
    .nav-dropdown-menu a {
        padding: 8px 0 !important;
        font-size: 0.9rem !important;
        border-bottom: 1px solid var(--bg-light) !important;
    }
    .container { padding: 0 12px; }
    nav .container { position: relative; padding: 0 12px; }
    .page-header { padding: 40px 0 28px; }
    .page-header h1 { font-size: 1.8rem; }
    .page-header p { font-size: 1rem; }
    .section, .section-light, .section-dark { padding: 40px 0; }
    .cta-section { padding: 40px 0; }
    .card { padding: 16px; }
    .footer-content { flex-direction: column; gap: 10px; text-align: center; }
    .tabs { gap: 4px; }
    .tab { padding: 10px 16px; font-size: 0.85rem; }
    /* Guide/article page overrides */
    .toc { padding: 16px !important; }
    .inline-cta { padding: 16px !important; }
    .pull-quote { padding: 12px 16px; margin: 24px 0; }
    .key-takeaway { padding: 16px; }
    .article-body p { font-size: 1rem !important; }
    .article-body li { font-size: 1rem !important; }
}
