/* ================================================================
   Bootstrap Roadmap — Main Stylesheet
   Brand: Navy #1B2D4F | Orange #F5A623 | Green #3DB87A | Gray #8A9BB0
   Fonts: Sora (headings) + Inter (body)
================================================================ */

:root {
    --navy:      #1B2D4F;
    --navy-dark: #111E35;
    --orange:    #F5A623;
    --orange-dk: #D4891A;
    --green:     #3DB87A;
    --green-dk:  #2E9A62;
    --gray:      #8A9BB0;
    --gray-lt:   #F0F3F7;
    --white:     #FFFFFF;
    --text:      #2C3E50;
    --text-muted:#6B7A8D;
    --border:    #DDE3EC;
    --radius:    8px;
    --radius-lg: 16px;
    --shadow:    0 2px 12px rgba(27,45,79,0.10);
    --shadow-lg: 0 8px 40px rgba(27,45,79,0.15);
    --transition: 0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-dk); }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
    font-family: 'Sora', sans-serif;
    color: var(--navy);
    line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin-bottom: 1rem; }

/* ── Layout ── */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── Buttons ── */
.btn {
    display: inline-block;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-align: center;
}
.btn-primary {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}
.btn-primary:hover {
    background: var(--orange-dk);
    border-color: var(--orange-dk);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245,166,35,0.35);
}
.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ── Header ── */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}
.logo { height: 44px; width: auto; }
.logo-sm { height: 32px; width: auto; }
.logo-link { display: flex; align-items: center; }
.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.main-nav a {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--navy);
}
.main-nav a:hover { color: var(--orange); }

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1e4a7a 100%);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245,166,35,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content { max-width: 680px; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--orange); }
.hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.82);
    margin-bottom: 36px;
    max-width: 540px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Feature Cards ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 48px;
}
.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--gray-lt);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* ── Phase Badges ── */
.phase-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.phase-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-lt);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 8px 20px;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
}
.phase-badge .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-green  { background: var(--green); }
.dot-orange { background: var(--orange); }
.dot-navy   { background: var(--navy); }

/* ── CTA Band ── */
.cta-band {
    background: var(--orange);
    color: var(--white);
    text-align: center;
    padding: 64px 24px;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.88); margin-bottom: 32px; font-size: 1.1rem; }
.btn-cta-white {
    background: var(--white);
    color: var(--orange);
    border-color: var(--white);
    font-family: 'Sora', sans-serif;
    font-weight: 700;
}
.btn-cta-white:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}
textarea.form-control { min-height: 140px; resize: vertical; }

/* ── Alerts ── */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.95rem;
    border-left: 4px solid;
}
.alert-error   { background: #FFF0F0; border-color: #E53935; color: #B71C1C; }
.alert-success { background: #F0FFF5; border-color: var(--green); color: #1B5E35; }
.alert-info    { background: #EEF4FF; border-color: var(--navy); color: var(--navy); }

/* ── Auth Pages ── */
.auth-page {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-lt);
    padding: 40px 24px;
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 48px 40px;
    width: 100%;
    max-width: 460px;
}
.auth-card h1 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}
.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 0.95rem;
}
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ── App Layout (logged in) ── */
.app-layout {
    display: flex;
    min-height: calc(100vh - 72px);
}
.app-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--navy);
    color: var(--white);
    display: flex;
    flex-direction: column;
    padding: 32px 0;
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
}
.sidebar-section {
    padding: 0 20px;
    margin-bottom: 8px;
}
.sidebar-label {
    font-family: 'Sora', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
    padding: 0 20px;
    margin: 24px 0 8px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    border-radius: var(--radius);
    margin: 2px 8px;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    transition: all var(--transition);
}
.sidebar-link:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
}
.sidebar-link.active {
    background: rgba(245,166,35,0.18);
    color: var(--orange);
}
.sidebar-link.locked {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}
.sidebar-link .lock-icon {
    font-size: 0.75rem;
    margin-left: auto;
}
.sidebar-spacer { flex: 1; }
.sidebar-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 16px;
    margin-top: 16px;
}

.app-main {
    flex: 1;
    padding: 40px 48px;
    background: var(--gray-lt);
    overflow-y: auto;
}
.app-main h1 { margin-bottom: 6px; }
.app-subtitle { color: var(--text-muted); margin-bottom: 32px; }

/* ── Progress Bar ── */
.progress-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.progress-bar-outer {
    flex: 1;
    height: 12px;
    background: var(--gray-lt);
    border-radius: 100px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--orange));
    border-radius: 100px;
    transition: width 0.5s ease;
}
.progress-text {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
    white-space: nowrap;
}

/* ── Checklist ── */
.checklist-category {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: var(--navy);
    cursor: pointer;
    user-select: none;
}
.category-header h3 {
    color: var(--white);
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.category-count {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
}
.category-toggle {
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    transition: transform var(--transition);
}
.category-header.open .category-toggle { transform: rotate(180deg); }

.checklist-items { padding: 8px 0; }
.checklist-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
    cursor: pointer;
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item:hover { background: var(--gray-lt); }
.checklist-item.done { opacity: 0.6; }
.checklist-item.done .item-text { text-decoration: line-through; color: var(--text-muted); }

.item-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 5px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    background: var(--white);
}
.checklist-item.done .item-checkbox {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}
.item-text { font-size: 0.95rem; flex: 1; }

/* ── Footer ── */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 32px;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}
.footer-tagline { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-top: 6px; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer-nav a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
}
.footer-nav a:hover { color: var(--orange); }
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.35); }

/* ── Page Header (inner pages) ── */
.page-header {
    background: var(--navy);
    color: var(--white);
    padding: 56px 0 48px;
    text-align: center;
}
.page-header h1 { color: var(--white); }
.page-header p { color: rgba(255,255,255,0.7); margin: 12px auto 0; max-width: 540px; }

/* ── Utilities ── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-0  { margin-bottom: 0; }
.w-full { width: 100%; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .main-nav { gap: 14px; }
    .main-nav a:not(.btn) { display: none; }
    .hero { padding: 64px 0 48px; }
    .hero-actions { flex-direction: column; }
    .app-layout { flex-direction: column; }
    .app-sidebar {
        width: 100%;
        height: auto;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 12px 0;
    }
    .sidebar-label { display: none; }
    .app-main { padding: 24px 20px; }
    .auth-card { padding: 32px 24px; }
    .progress-wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
}
