/* ========================================
   JHL REDESIGN - Extended Styles
   This file imports the base design system
   and adds component aliases + custom styles
   for all page-specific components.
   ======================================== */
@import url('/jhl-redesign.css');

/* ========================================
   A. HEADER CLASS ALIASES
   New pages use jhl-header__* pattern
   ======================================== */
.jhl-header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    transition: transform var(--transition-normal);
}
.jhl-header__logo:hover { transform: scale(1.02); color: var(--navy); }

.jhl-header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}
.jhl-header__link {
    position: relative;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--charcoal);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    min-height: 44px;
    display: flex;
    align-items: center;
}
.jhl-header__link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}
.jhl-header__link:hover { color: var(--blue); }
.jhl-header__link:hover::after { width: 24px; }

.jhl-header__menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background var(--transition-normal);
}
.jhl-header__menu-btn:hover { background: var(--mist); }
.jhl-header__menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    margin: 5px auto;
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* Scrolled state alias */
.jhl-header.jhl-header--scrolled {
    background: rgba(251, 249, 246, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
}

/* Mobile nav with hidden attribute support */
.jhl-mobile-nav:not([hidden]) {
    display: flex;
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .jhl-header__nav { display: none; }
    .jhl-header__menu-btn { display: block; }
}

/* ========================================
   B. HERO ALIASES
   ======================================== */
.jhl-hero__sub {
    font-size: 20px;
    line-height: 1.7;
    color: var(--slate);
    margin-bottom: var(--space-lg);
    max-width: 560px;
}
.jhl-hero--centered .jhl-hero__sub {
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   C. BADGE VARIANTS
   ======================================== */
.jhl-badge--blue {
    background: var(--blue-light);
    border-color: rgba(21, 101, 160, 0.2);
    color: var(--blue);
}
.jhl-badge--green {
    background: var(--green-glow);
    border-color: rgba(0, 200, 83, 0.2);
    color: var(--green-dark);
}
.jhl-badge--purple {
    background: rgba(107, 70, 193, 0.08);
    border-color: rgba(107, 70, 193, 0.2);
    color: var(--purple);
}

/* ========================================
   D. INTRO SECTION ENHANCEMENTS
   ======================================== */
.jhl-intro__title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--space-sm);
}
.jhl-intro__objectives h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--space-sm);
    grid-column: 1 / -1;
}
.jhl-intro__objectives ul {
    list-style: none;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xs);
}
.jhl-intro__objectives li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    font-size: 15px;
    color: var(--charcoal);
}
.jhl-intro__objectives li::before {
    content: "✓";
    color: var(--green);
    font-weight: 700;
    flex-shrink: 0;
}
.jhl-intro p {
    color: var(--slate);
    max-width: var(--max-width-content);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-sm);
}

/* ========================================
   E. CARD COLOR VARIANTS
   ======================================== */
.jhl-card--blue {
    border-left: 4px solid var(--blue);
}
.jhl-card--purple {
    border-left: 4px solid var(--purple);
}
.jhl-card--orange {
    border-left: 4px solid var(--gold);
}
.jhl-card h4 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--space-xs);
}
.jhl-card p {
    font-size: 15px;
    color: var(--slate);
    line-height: 1.7;
}
.jhl-card ul {
    list-style: none;
    margin-top: var(--space-xs);
}
.jhl-card ul li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
    font-size: 15px;
    color: var(--charcoal);
}
.jhl-card ul li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--blue);
    font-weight: 700;
}

/* ========================================
   F. STEPS COMPONENT ALIASES
   ======================================== */
.jhl-steps__item {
    position: relative;
    margin-bottom: var(--space-lg);
}
.jhl-steps__item:last-child { margin-bottom: 0; }
.jhl-steps__number {
    position: absolute;
    left: -36px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--green);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}
.jhl-steps__content {
    background: var(--warm-white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-soft);
}
.jhl-steps__content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--space-xs);
}
.jhl-steps__content p {
    font-size: 15px;
    color: var(--slate);
    margin: 0;
}

/* ========================================
   G. STATS COMPONENT ALIASES
   ======================================== */
.jhl-stats__item {
    text-align: center;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}
.jhl-stats__item:hover { background: var(--cream); }
.jhl-stats__number {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 8px;
    display: block;
}
.jhl-stats__label {
    font-size: 14px;
    font-weight: 500;
    color: var(--slate);
    display: block;
}

/* ========================================
   H. COMPARISON COMPONENT ALIASES
   ======================================== */
.jhl-comparison__col {
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}
.jhl-comparison__col--do {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.08) 0%, rgba(0, 200, 83, 0.03) 100%);
    border: 2px solid var(--green);
}
.jhl-comparison__col--dont {
    background: linear-gradient(135deg, rgba(255, 107, 91, 0.08) 0%, rgba(255, 107, 91, 0.03) 100%);
    border: 2px solid var(--coral);
}
.jhl-comparison__col h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}
.jhl-comparison__col--do h4 { color: var(--green-dark); }
.jhl-comparison__col--dont h4 { color: var(--coral); }
.jhl-comparison__col ul {
    list-style: none;
}
.jhl-comparison__col ul li {
    padding: var(--space-xs) 0;
    padding-left: var(--space-md);
    position: relative;
    font-size: 15px;
    color: var(--charcoal);
}
.jhl-comparison__col--do ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}
.jhl-comparison__col--dont ul li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--coral);
    font-weight: 700;
}

/* ========================================
   I. TAKEAWAYS GRID LAYOUT
   ======================================== */
.jhl-takeaways__title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: var(--space-md);
}
.jhl-takeaways__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
}
.jhl-takeaways__item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}
.jhl-takeaways__icon {
    font-size: 32px;
    line-height: 1;
}
.jhl-takeaways__item p {
    font-size: 15px;
    font-weight: 500;
    color: var(--navy);
    margin: 0;
}

/* ========================================
   J. CHECKLIST WITH NATIVE CHECKBOXES
   ======================================== */
label.jhl-checklist__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--mist);
    cursor: pointer;
    transition: background var(--transition-fast);
}
label.jhl-checklist__item:last-child { border-bottom: none; }
label.jhl-checklist__item:hover { background: var(--cream); border-radius: var(--radius-sm); }
.jhl-checklist input[type="checkbox"] {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--green);
    cursor: pointer;
}
.jhl-checklist__item span {
    font-size: 15px;
    color: var(--charcoal);
    line-height: 1.6;
}

/* ========================================
   K. INFO BOX SIMPLE PATTERN
   (h4 + p directly inside, no icon wrapper)
   ======================================== */
.jhl-info-box h4 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}
.jhl-info-box p {
    font-size: 15px;
    color: var(--slate);
    margin-bottom: var(--space-xs);
}
.jhl-info-box p:last-child { margin-bottom: 0; }

/* ========================================
   L. FOOTER SIMPLIFIED STRUCTURE
   ======================================== */
.jhl-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-lg);
}
.jhl-footer__col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: var(--space-md);
}
.jhl-footer__col a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 6px 0;
    transition: color var(--transition-fast);
    min-height: 36px;
}
.jhl-footer__col a:hover { color: white; }
.jhl-footer__tagline {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-sm);
    max-width: 280px;
}
.jhl-footer__disclaimer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .jhl-footer__nav {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* ========================================
   M. NEXT STEPS CARD LAYOUT
   (when using card grid inside next-steps)
   ======================================== */
.jhl-next-steps h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: var(--space-sm);
}
.jhl-next-steps p {
    color: var(--slate);
    margin-bottom: var(--space-md);
}
.jhl-next-steps .jhl-card-grid {
    text-align: left;
}

/* ========================================
   N. SECTION HEADINGS IN CONTENT
   ======================================== */
.jhl-section h2 {
    margin-bottom: var(--space-md);
}
.jhl-section h3 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}
.jhl-section h3:first-child {
    margin-top: 0;
}
.jhl-section p + .jhl-card-grid,
.jhl-section p + .jhl-steps,
.jhl-section p + .jhl-checklist,
.jhl-section p + .jhl-comparison,
.jhl-section p + .jhl-stats {
    margin-top: var(--space-md);
}

/* ========================================
   PRIORITY 3: CUSTOM COMPONENT CSS
   Styles for page-specific interactive components
   ======================================== */

/* ========================================
   P3-1. SEARCH & FILTER UI
   Used by: faqs.html, jargon-buster.html
   ======================================== */
.faq-search,
.search-section {
    margin-bottom: var(--space-lg);
}
.search-box,
.faq-search {
    position: relative;
    max-width: 600px;
    margin: 0 auto var(--space-md);
}
.search-input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--charcoal);
    background: var(--warm-white);
    border: 2px solid var(--mist);
    border-radius: var(--radius-xl);
    outline: none;
    transition: all var(--transition-normal);
    min-height: 44px;
}
.search-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px var(--blue-light);
}
.search-input::placeholder {
    color: var(--slate);
    opacity: 0.7;
}
.faq-search::before,
.search-box::before {
    content: '🔍';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    z-index: 1;
}

.faq-filters,
.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}
.filter-btn {
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--slate);
    background: var(--warm-white);
    border: 2px solid var(--mist);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-normal);
    min-height: 44px;
}
.filter-btn:hover {
    border-color: var(--blue);
    color: var(--blue);
}
.filter-btn.active {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

.no-results {
    text-align: center;
    padding: var(--space-xl);
    color: var(--slate);
    font-size: 16px;
    display: none;
}
.no-results.visible { display: block; }

/* ========================================
   P3-2. FAQ ACCORDION
   Used by: faqs.html
   ======================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--warm-white);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid transparent;
    transition: all var(--transition-normal);
}
.faq-item:hover {
    border-color: var(--mist);
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    transition: all var(--transition-normal);
    min-height: 44px;
    gap: var(--space-sm);
}
.faq-question:hover { color: var(--blue); }
.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: var(--blue);
    transition: transform var(--transition-normal);
    flex-shrink: 0;
}
.faq-item.active .faq-question::after {
    content: '−';
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
}
.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 0 var(--space-md) var(--space-md);
}
.faq-answer p {
    font-size: 15px;
    color: var(--slate);
    line-height: 1.7;
}
.faq-category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--blue-light);
    color: var(--blue);
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 600;
    margin-top: var(--space-xs);
}

/* ========================================
   P3-3. TAB NAVIGATION
   Used by: homeowner-resources.html,
   home-maintenance-schedule.html, action-plan.html
   ======================================== */
.resource-tabs,
.schedule-nav,
.timeline-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--mist);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.resource-tab,
.schedule-tab,
.month-button {
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--slate);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
    min-height: 44px;
}
.resource-tab:hover,
.schedule-tab:hover,
.month-button:hover {
    color: var(--blue);
}
.resource-tab.active,
.schedule-tab.active,
.month-button.active {
    color: var(--navy);
    border-bottom-color: var(--green);
    font-weight: 700;
}

.tab-content,
.schedule-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}
.tab-content.active,
.schedule-panel.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   P3-4. RESOURCE GRID & CARDS
   Used by: homeowner-resources.html
   ======================================== */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}
.texas-card {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid transparent;
    transition: all var(--transition-slow);
}
.texas-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--mist);
}
.texas-card h3, .texas-card h4 {
    font-family: var(--font-display);
    color: var(--navy);
    margin-bottom: var(--space-xs);
}
.texas-list {
    list-style: none;
}
.texas-item {
    padding: var(--space-xs) 0;
    padding-left: 20px;
    position: relative;
    font-size: 15px;
    color: var(--charcoal);
    border-bottom: 1px solid var(--mist);
}
.texas-item:last-child { border-bottom: none; }
.texas-item::before {
    content: '📌';
    position: absolute;
    left: 0;
    font-size: 12px;
}
.deadline {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 107, 91, 0.1);
    color: var(--coral);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
}
.red-flag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
}
.red-flag-item {
    background: var(--warm-white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border-left: 4px solid var(--coral);
    box-shadow: var(--shadow-soft);
}
.red-flag-item h4 { color: var(--coral); margin-bottom: var(--space-xs); }
.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--blue);
    transition: all var(--transition-normal);
}
.resource-link:hover { color: var(--green); }

/* ========================================
   P3-5. PROGRESS TRACKER
   Used by: action-plan.html,
   home-priorities-worksheet.html,
   final-loan-approval.html
   ======================================== */
.progress-tracker,
.worksheet-progress {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-soft);
}
.progress-bar {
    height: 12px;
    background: var(--mist);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: var(--space-sm) 0;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green) 0%, var(--blue) 100%);
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
    width: 0%;
}
.progress-step {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    font-size: 15px;
    color: var(--charcoal);
}
.progress-step.completed { color: var(--green-dark); }
.step-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--mist);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}
.progress-step.completed .step-checkbox {
    background: var(--green);
    border-color: var(--green);
    color: white;
}
.progress-step.completed .step-checkbox::after {
    content: '✓';
    font-size: 14px;
    font-weight: 700;
}

/* ========================================
   P3-6. TASK ITEMS & CHECKLISTS
   Used by: action-plan.html,
   home-maintenance-schedule.html,
   moving-checklist.html
   ======================================== */
.month-card {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-soft);
}
.month-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--navy);
    margin-bottom: var(--space-sm);
}
.task-item,
.maintenance-task {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--mist);
    transition: background var(--transition-fast);
}
.task-item:last-child,
.maintenance-task:last-child { border-bottom: none; }
.task-item:hover,
.maintenance-task:hover {
    background: var(--cream);
    border-radius: var(--radius-sm);
}
.task-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--mist);
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}
.task-checkbox.checked,
.task-item.completed .task-checkbox {
    background: var(--green);
    border-color: var(--green);
}
.task-checkbox.checked::after,
.task-item.completed .task-checkbox::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: 700;
}
.task-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-xl);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.task-badge--priority {
    background: rgba(255, 107, 91, 0.1);
    color: var(--coral);
}
.task-badge--optional {
    background: var(--blue-light);
    color: var(--blue);
}
.tips-box {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.08) 0%, rgba(0, 200, 83, 0.03) 100%);
    border-left: 4px solid var(--green);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: var(--space-md);
    margin: var(--space-md) 0;
}
.tips-box h4 { color: var(--green-dark); margin-bottom: var(--space-xs); }
.milestone-banner {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
    color: var(--navy);
    font-weight: 700;
    font-size: 18px;
    margin: var(--space-md) 0;
}
.celebration-section {
    text-align: center;
    padding: var(--space-lg);
}
.download-section {
    text-align: center;
    padding: var(--space-lg) 0;
}

/* Week nav (moving-checklist) */
.week-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    border-bottom: 2px solid var(--mist);
    padding-bottom: var(--space-xs);
}
.week-tab {
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--slate);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    min-height: 44px;
}
.week-tab:hover { color: var(--blue); }
.week-tab.active {
    color: var(--navy);
    border-bottom-color: var(--green);
    font-weight: 700;
}

/* ========================================
   P3-7. MORTGAGE COMPARISON TABLE & LOAN CARDS
   Used by: mortgage-types.html
   ======================================== */
.mortgage-comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin: var(--space-md) 0;
}
.mortgage-comparison-table th {
    background: var(--navy);
    color: white;
    padding: 16px;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}
.mortgage-comparison-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--charcoal);
    border-bottom: 1px solid var(--mist);
    background: var(--warm-white);
}
.mortgage-comparison-table tr:last-child td { border-bottom: none; }
.mortgage-comparison-table tr:hover td {
    background: var(--cream);
}

.loan-card {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: var(--space-md);
    transition: all var(--transition-slow);
}
.loan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}
.loan-card__header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    color: white;
    padding: var(--space-md);
}
.loan-card__header h3 {
    color: white;
    font-size: 22px;
    margin-bottom: 4px;
}
.loan-detail {
    padding: var(--space-md);
}
.loan-detail p { font-size: 15px; }
.best-for-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--green-glow);
    color: var(--green-dark);
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 700;
    margin-top: var(--space-xs);
}

/* ========================================
   P3-8. QUIZ & MYTH CARDS
   Used by: honest-truth.html
   ======================================== */
.quiz-section {
    max-width: 700px;
    margin: 0 auto;
}
.quiz-card {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: var(--space-md);
}
.quiz-card h3 {
    font-size: 20px;
    margin-bottom: var(--space-md);
}
.quiz-option {
    display: block;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-xs);
    background: var(--cream);
    border: 2px solid var(--mist);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--charcoal);
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-normal);
    min-height: 44px;
}
.quiz-option:hover {
    border-color: var(--blue);
    background: var(--blue-light);
}
.quiz-option.correct {
    border-color: var(--green);
    background: rgba(0, 200, 83, 0.1);
    color: var(--green-dark);
}
.quiz-option.incorrect {
    border-color: var(--coral);
    background: rgba(255, 107, 91, 0.1);
    color: var(--coral);
}
.myth-card {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-soft);
    margin-bottom: var(--space-md);
    border-left: 4px solid var(--coral);
}
.myth-label {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 107, 91, 0.1);
    color: var(--coral);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
}
.truth-label {
    display: inline-block;
    padding: 4px 12px;
    background: var(--green-glow);
    color: var(--green-dark);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
}

/* ========================================
   P3-9. WORKSHEET COMPONENTS
   Used by: home-priorities-worksheet.html
   ======================================== */
.worksheet-section {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-soft);
}
.worksheet-section h3 {
    font-size: 22px;
    color: var(--navy);
    margin-bottom: var(--space-md);
}
.priority-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}
.priority-item {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border: 2px solid var(--mist);
    transition: all var(--transition-normal);
}
.priority-item h4 { margin-bottom: var(--space-sm); }
.priority-options {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}
.priority-btn {
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--slate);
    background: var(--warm-white);
    border: 2px solid var(--mist);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-normal);
    min-height: 36px;
}
.priority-btn:hover {
    border-color: var(--blue);
    color: var(--blue);
}
.priority-btn.selected {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}
.summary-section {
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--cream) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
}
.summary-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-top: var(--space-lg);
}

/* ========================================
   P3-10. MAINTENANCE SCHEDULE
   Used by: home-maintenance-schedule.html
   ======================================== */
.calculator-section,
.calc-section {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
    margin: var(--space-md) 0;
}
.calc-input {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--charcoal);
    background: var(--cream);
    border: 2px solid var(--mist);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition-normal);
    margin-bottom: var(--space-sm);
}
.calc-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px var(--blue-light);
}
.calc-results {
    background: linear-gradient(135deg, var(--green-glow) 0%, var(--cream) 100%);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-md);
}
.lifespan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}
.lifespan-card {
    background: var(--warm-white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-soft);
}
.lifespan-card h4 { font-size: 16px; margin-bottom: var(--space-xs); }
.lifespan-bar {
    height: 8px;
    background: var(--mist);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: var(--space-xs);
}
.lifespan-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green) 0%, var(--gold) 50%, var(--coral) 100%);
    border-radius: var(--radius-full);
}

/* ========================================
   P3-11. FINAL LOAN APPROVAL COMPONENTS
   Used by: final-loan-approval.html
   ======================================== */
.underwriting-visual {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    margin: var(--space-md) 0;
}
.review-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin: var(--space-md) 0;
}
.danger-zone {
    background: linear-gradient(135deg, rgba(255, 107, 91, 0.08) 0%, rgba(255, 107, 91, 0.03) 100%);
    border: 2px solid var(--coral);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}
.danger-zone h3 { color: var(--coral); }
.dont-do-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}
.dont-card {
    background: var(--warm-white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border-left: 4px solid var(--coral);
    box-shadow: var(--shadow-soft);
}
.dont-card h4 { color: var(--coral); font-size: 16px; margin-bottom: var(--space-xs); }
.conditions-group {
    margin: var(--space-md) 0;
}
.condition-card {
    background: var(--warm-white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--blue);
}

/* ========================================
   P3-12. JOURNEY TIMELINE
   Used by: journey.html
   ======================================== */
.timeline-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}
.stat-card {
    background: var(--warm-white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    box-shadow: var(--shadow-soft);
}
.stat-card .stat-value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--navy);
}
.stat-card .stat-label {
    font-size: 13px;
    color: var(--slate);
}
.timeline-selector {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    justify-content: center;
    margin-bottom: var(--space-lg);
}
.stage-btn {
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--slate);
    background: var(--warm-white);
    border: 2px solid var(--mist);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-normal);
    min-height: 44px;
}
.stage-btn:hover { border-color: var(--blue); color: var(--blue); }
.stage-btn.active {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}
.journey-timeline {
    position: relative;
    padding-left: 32px;
}
.journey-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--green) 0%, var(--blue) 50%, var(--navy) 100%);
    border-radius: 3px;
}
.phase-section {
    margin-bottom: var(--space-xl);
}
.phase-header {
    position: relative;
    margin-bottom: var(--space-md);
}
.phase-header h3 {
    font-size: 24px;
    color: var(--navy);
    padding: var(--space-sm) 0;
}
.stage-item {
    position: relative;
    margin-bottom: var(--space-md);
    margin-left: var(--space-sm);
}
.stage-marker {
    position: absolute;
    left: -40px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--green);
    border: 3px solid var(--cream);
    box-shadow: var(--shadow-soft);
}
.stage-content {
    background: var(--warm-white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-soft);
}
.stage-content h4 {
    font-size: 18px;
    color: var(--navy);
    margin-bottom: var(--space-xs);
}
.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}
.expandable-content.open {
    max-height: 1000px;
}
.you-are-here {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--green-glow);
    color: var(--green-dark);
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   P3-13. JARGON BUSTER TERMS
   Used by: jargon-buster.html
   ======================================== */
.terms-container {
    max-width: 800px;
    margin: 0 auto;
}
.term-item {
    background: var(--warm-white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--blue);
    transition: all var(--transition-normal);
}
.term-item:hover {
    border-left-color: var(--green);
    transform: translateX(4px);
}
.term-item h3 {
    font-size: 18px;
    color: var(--navy);
    margin-bottom: var(--space-xs);
}
.term-item p {
    font-size: 15px;
    color: var(--slate);
    margin: 0;
}

/* ========================================
   P3-14. FINANCIAL TOOLKIT CALCULATORS
   Used by: financial-toolkit.html
   ======================================== */
.calculator-card {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: var(--space-md);
}

/* ========================================
   P3-15. WARNING & MISTAKE BOXES
   Used by: first-week-homeowner.html
   ======================================== */
.warning-box {
    background: linear-gradient(135deg, rgba(255, 107, 91, 0.08) 0%, rgba(255, 107, 91, 0.03) 100%);
    border-left: 4px solid var(--coral);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: var(--space-md);
    margin: var(--space-md) 0;
}
.warning-box h4 { color: var(--coral); margin-bottom: var(--space-xs); }
.mistake-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}
.mistake-item {
    background: var(--warm-white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--coral);
}
.mistake-item h4 { color: var(--navy); font-size: 17px; margin-bottom: var(--space-xs); }

/* ========================================
   P3-16. DATA TABLE
   Used by: privacy.html
   ======================================== */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin: var(--space-md) 0;
}
.data-table th {
    background: var(--navy);
    color: white;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}
.data-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--charcoal);
    border-bottom: 1px solid var(--mist);
    background: var(--warm-white);
}
.data-table tr:last-child td { border-bottom: none; }

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--navy);
    color: white;
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    margin-right: var(--space-xs);
}

/* ========================================
   P3-17. ERROR PAGE
   Used by: 404.html
   ======================================== */
.error-code {
    font-family: var(--font-display);
    font-size: clamp(80px, 15vw, 200px);
    font-weight: 800;
    color: var(--navy);
    opacity: 0.1;
    line-height: 1;
}

/* ========================================
   RESPONSIVE OVERRIDES
   ======================================== */
@media (max-width: 768px) {
    .priority-grid,
    .dont-do-grid,
    .red-flag-grid,
    .review-items,
    .timeline-stats,
    .lifespan-grid,
    .mistake-grid {
        grid-template-columns: 1fr;
    }
    .resource-tabs,
    .schedule-nav,
    .timeline-nav,
    .timeline-selector,
    .week-nav {
        justify-content: flex-start;
        overflow-x: auto;
    }
    .mortgage-comparison-table {
        display: block;
        overflow-x: auto;
    }
    .priority-options { justify-content: center; }
    .summary-columns { grid-template-columns: 1fr; }
    .action-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 430px) {
    .search-input { padding: 14px 16px 14px 42px; font-size: 15px; }
    .filter-btn { padding: 8px 14px; font-size: 13px; }
    .quiz-option { padding: var(--space-sm); }
    .worksheet-section { padding: var(--space-md); }
    .quiz-card { padding: var(--space-md); }
    .calculator-section { padding: var(--space-md); }
}