/* SCHOLARFLIGHT HUB - FINAL PRODUCTION CSS */
/* All bug fixes maintained + all new requirements + SEO/Accessibility best practices */

:root {
    --bg-primary: #f8fafc;
    --bg-surface: #ffffff;
    --bg-slate: #f1f5f9;
    --text-main: #334155;
    --text-headings: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: rgba(15, 23, 42, 0.03);
    --header-blur: rgba(255, 255, 255, 0.85);
    --brand-orange: #f26522;
    --brand-navy: #1f3A5F;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-surface: #1e293b;
    --bg-slate: #0f172a;
    --text-main: #cbd5e1;
    --text-headings: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --card-shadow: rgba(0, 0, 0, 0.2);
    --header-blur: rgba(15, 23, 42, 0.85);
}

/* RESET & BASE STYLES */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* RESPONSIVE UTILITIES */
.desktop-only { display: flex !important; }
.mobile-only { display: none !important; }

@media (max-width: 890px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
}

/* UTILITY CLASSES */
.text-orange { color: var(--brand-orange) !important; }
.bg-white { background-color: var(--bg-surface); }
.bg-slate { background-color: var(--bg-slate); }
.text-center { text-align: center; }
.max-w-3xl { max-width: 768px; }
.max-w-4xl { max-width: 960px; }

.hidden { 
    display: none !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 0 24px;
    width: 100%;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-headings);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    transition: color 0.3s ease;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(28px, 6vw, 56px); }
h2 { font-size: clamp(24px, 5vw, 42px); }
h3 { font-size: clamp(20px, 4vw, 32px); }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: var(--brand-orange);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: 2px;
}

button {
    cursor: pointer;
    border: none;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

button:focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: 2px;
}

/* BUTTONS */
.btn-primary { 
    background: linear-gradient(135deg, var(--brand-orange), #d94e0d);
    color: #ffffff; 
    font-size: 14px; 
    padding: 10px 20px; 
    text-decoration: none; 
    border-radius: 8px; 
    font-weight: 700; 
    white-space: nowrap;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { 
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(242, 101, 34, 0.2);
}

.btn-dark { 
    background: var(--text-headings); 
    color: var(--bg-surface); 
    font-size: 15px; 
    padding: 14px 28px; 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    border-radius: 10px; 
    text-decoration: none; 
    font-weight: 700;
    transition: opacity 0.2s, transform 0.2s;
}
.btn-dark:hover { 
    opacity: 0.95; 
    transform: translateY(-2px); 
}

.btn-light { 
    background: var(--bg-slate); 
    color: var(--text-main); 
    font-size: 15px; 
    padding: 14px 28px; 
    border-radius: 10px; 
    text-decoration: none; 
    font-weight: 700;
    display: inline-block;
    transition: background 0.2s;
}
.btn-light:hover { 
    background: var(--border-color); 
}

/* HEADER & NAVIGATION */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-blur);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s, border 0.3s;
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 84px; 
    gap: 20px;
}

.logo-area { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    flex-shrink: 0;
    margin-left: 5px;
}

.logo-image {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
}

.logo-title { 
    display: block; 
    font-weight: 900; 
    font-size: 19px; 
    color: var(--text-headings); 
    letter-spacing: -0.5px; 
    line-height: 1.1;
}

.logo-highlight {
    color: var(--brand-orange);
}

.logo-subtitle { 
    display: block; 
    font-weight: 700; 
    font-size: 11px; 
    color: var(--brand-orange); 
    text-transform: uppercase; 
    letter-spacing: 2.5px; 
    margin-top: 2px; 
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 32px;
    margin: 0 auto 0 48px;
}

.nav-links .nav-item { 
    text-decoration: none; 
    color: var(--text-muted); 
    font-weight: 600; 
    font-size: 14px; 
    padding: 8px 0; 
    border-bottom: 2px solid transparent; 
    transition: color 0.2s, border-color 0.2s; 
    white-space: nowrap; 
}

.nav-links .nav-item:hover, 
.nav-links .nav-item.active { 
    color: var(--brand-orange); 
    border-bottom-color: var(--brand-orange); 
}

.nav-actions { 
    display: flex; 
    align-items: center; 
    gap: 16px;
}

.theme-toggle-spacer {
    background: transparent; 
    border: none; 
    color: var(--text-main); 
    padding: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    width: 40px; 
    height: 40px;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.theme-toggle-spacer:hover { 
    background: var(--bg-slate); 
    color: var(--brand-orange); 
}

/* MOBILE HAMBURGER */
.hamburger { 
    background: none; 
    border: none; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    width: 22px; 
    height: 16px; 
    padding: 0; 
    cursor: pointer;
    margin-right: 5px;
}
.hamburger .bar { 
    width: 100%; 
    height: 2px; 
    background-color: var(--text-headings); 
    border-radius: 2px; 
    transition: transform 0.25s, opacity 0.25s; 
}
.hamburger.open .bar:nth-child(1) { 
    transform: translateY(7px) rotate(45deg); 
}
.hamburger.open .bar:nth-child(2) { 
    opacity: 0; 
}
.hamburger.open .bar:nth-child(3) { 
    transform: translateY(-7px) rotate(-45deg); 
}

/* MOBILE DRAWER */
.mobile-drawer { 
    position: fixed; 
    top: 84px; 
    left: 0; 
    width: 100%; 
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: var(--bg-surface); 
    border-bottom: 1px solid var(--border-color); 
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08); 
    z-index: 95;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-drawer.hidden {
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mobile-nav-links { 
    display: flex; 
    flex-direction: column; 
    padding: 24px; 
    gap: 16px; 
}
.mobile-nav-item { 
    text-decoration: none; 
    color: var(--text-main); 
    font-weight: 600; 
    font-size: 15px; 
    padding: 6px 0; 
    transition: color 0.2s;
}
.mobile-nav-item:hover,
.mobile-nav-item.active { 
    color: var(--brand-orange); 
}

.drawer-divider { 
    border: 0; 
    height: 1px; 
    background: var(--border-color); 
}
.btn-primary-mobile { 
    background: var(--brand-orange); 
    color: #fff; 
    font-size: 15px; 
    padding: 12px; 
    text-align: center; 
    border-radius: 8px; 
    font-weight: 700; 
    text-decoration: none; 
    margin-top: 8px;
    display: block;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary-mobile:hover {
    background: #d94e0d;
}

/* GRID LAYOUTS */
.grid-2 { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 40px; 
}
.grid-3 { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 24px; 
}

@media (min-width: 640px) { 
    .grid-3 { 
        grid-template-columns: repeat(2, 1fr); 
    } 
}
@media (min-width: 992px) {
    .grid-2 { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 64px; 
        align-items: start; 
    }
    .grid-3 { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 32px; 
    }
}

/* HERO SECTION */
.hero { 
    background: var(--bg-surface); 
    padding: 22px 0 80px 0; 
    border-bottom: 1px solid var(--border-color); 
}
@media (min-width: 992px) { 
    .hero { 
        padding: 30px 0 112px 0; 
    } 
}

.hero-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 48px; 
    align-items: start; 
}
@media (min-width: 992px) { 
    .hero-grid { 
        grid-template-columns: 7fr 5fr; 
    } 
}

.badge { 
    display: inline-flex; 
    align-items: center; 
    /* justify-content: center; */
    gap: 8px; 
    background: rgba(242, 101, 34, 0.08); 
    color: var(--brand-orange); 
    padding: 6px 14px; 
    border-radius: 50px; 
    font-size: 12px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    margin: 0px auto 16px;
    width: max-content;
}

.hero-content h1 {
    margin: 0px 0;
}

/* .gradient-text {
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-navy) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
} */
 .brand-color {
    color: var(--brand-orange);
    font-weight: 800;
}

.hero-tagline {
    font-size: 16px;
    color: var(--text-muted);
    margin: 16px 0 24px 0;
    font-style: italic;
    font-weight: 500;
}

.cta-group { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    margin-bottom: 36px; 
}
@media (min-width: 440px) { 
    .cta-group { 
        flex-direction: row; 
    } 
}

/* SOCIAL SECTION */
.social-anchor-block { 
    border-top: 1px dashed var(--border-color); 
    padding-top: 24px; 
    text-align: center;          
    margin: 0 auto;
}
.community-tags { 
    display: flex; 
    gap: 16px; 
    flex-wrap: wrap;
    justify-content: center;
}
.tag { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: var(--bg-primary); 
    border: 1px solid var(--border-color); 
    width: 46px; 
    height: 46px; 
    border-radius: 12px; 
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.tag:focus-visible {
    outline: 2px solid var(--brand-orange);
}
.hover-lift:hover { 
    transform: translateY(-4px); 
    border-color: var(--brand-orange); 
    box-shadow: 0 10px 15px -3px var(--card-shadow); 
}

/* VISUAL BOX */
.visual-box { 
    background: var(--bg-surface); 
    border-radius: 16px; 
    border: 1px solid var(--border-color); 
    box-shadow: 0 25px 50px -12px var(--card-shadow); 
    padding: 16px; 
    position: relative; 
}
.window-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid var(--bg-slate); 
    padding-bottom: 16px; 
    margin-bottom: 20px; 
}
.dots span { 
    display: inline-block; 
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
    margin-right: 6px; 
}
.d-red { background: #ef4444; } 
.d-amber { background: #f59e0b; } 
.d-green { background: #10b981; }
.window-title { 
    font-size: 11px; 
    font-weight: 700; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}
.visual-list { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    margin-bottom: 20px; 
}
.list-item { 
    background: var(--bg-primary); 
    border: 1px solid var(--border-color); 
    padding: 10px 12px; 
    border-radius: 10px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.item-left { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.icon-wrap { 
    background: rgba(242, 101, 34, 0.08); 
    color: var(--brand-orange); 
    width: 34px; 
    height: 34px; 
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.list-item h6 { 
    font-size: 13px; 
    font-weight: 700; 
    color: var(--text-headings); 
}
.list-item p { 
    font-size: 11px; 
    color: var(--text-muted); 
    font-weight: 500; 
    margin-top: 1px; 
}
.status-badge { 
    background: rgba(16, 185, 129, 0.1); 
    color: #059669; 
    font-size: 11px; 
    font-weight: 700; 
    padding: 2px 8px; 
    border-radius: 4px; 
    white-space: nowrap; 
}
.dark-card { 
    background: var(--text-headings); 
    color: #ffffff; 
    padding: 16px; 
    border-radius: 12px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
[data-theme="dark"] .dark-card { 
    background: rgba(255,255,255,0.03); 
    border: 1px solid var(--border-color); 
}
.card-label { 
    font-size: 9px; 
    font-weight: 700; 
    color: #94a3b8; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}
.card-val { 
    font-size: 13px; 
    font-weight: 700; 
    margin-top: 2px; 
}
.check-icon { 
    background: var(--brand-orange); 
    width: 28px; 
    height: 28px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #fff; 
}

/* FOUNDER SECTION */
.founder-section {
    display: flex;
    align-items: center;
}

.founder-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px var(--card-shadow);
    transition: box-shadow 0.3s, transform 0.3s;
}

.founder-card:hover {
    box-shadow: 0 25px 50px -12px var(--card-shadow);
    transform: translateY(-4px);
}

.founder-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.founder-info {
    padding: 24px;
    text-align: center;
}

.founder-info h3 {
    font-size: 24px;
    color: var(--text-headings);
    margin-bottom: 8px;
}

.founder-title {
    color: var(--brand-orange);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.founder-bio {
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ABOUT SECTION */
.section { 
    padding: 64px 0; 
}
@media (min-width: 992px) { 
    .section { 
        padding: 96px 0; 
    } 
}

.about-text-content {
    display: flex;
    flex-direction: column;
    text-align: center
}

.about-text-content h2 {
    margin-bottom: 16px;
}

.lead-text { 
    font-size: 16px; 
    font-weight: 600; 
    color: var(--text-headings); 
    margin-bottom: 16px; 
}

.about-features { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    margin-top: 24px; 
    border-top: 1px dashed var(--border-color); 
    padding-top: 20px; 
}
.feat-row { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-weight: 600; 
    font-size: 14px; 
    color: var(--text-main); 
}

/* CARDS */
.card { 
    background: var(--bg-surface); 
    border: 1px solid var(--border-color); 
    border-radius: 16px; 
    padding: 24px; 
    box-shadow: 0 4px 6px -1px var(--card-shadow); 
    transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover { 
    box-shadow: 0 10px 15px -3px var(--card-shadow);
}

/* SERVICE CARDS */
.service-card { 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    height: 100%; 
    border-top: 4px solid var(--border-color); 
    transition: all 0.3s ease; 
}
.service-card:hover { 
    border-top-color: var(--brand-orange); 
    transform: translateY(-4px); 
}
.service-icon { 
    background: rgba(242, 101, 34, 0.08); 
    color: var(--brand-orange); 
    width: 44px; 
    height: 44px; 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 20px; 
}
.service-icon i { 
    width: 22px; 
    height: 22px; 
}
.service-card h3 { 
    font-size: 17px; 
    font-weight: 800; 
    color: var(--text-headings); 
    margin-bottom: 12px; 
}
.service-card p { 
    font-size: 13.5px; 
    line-height: 1.6; 
    margin-bottom: 24px; 
}
.btn-service-action { 
    background: none; 
    border: none; 
    font-size: 13px; 
    font-weight: 700; 
    color: var(--brand-orange); 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    padding: 0; 
    text-align: left; 
    width: fit-content;
    cursor: pointer;
    transition: color 0.2s;
}
.btn-service-action:hover { 
    color: #d94e0d; 
}

/* RESOURCES SECTION */
.repository-grid-downloads { 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
}
.res-item { 
    background: var(--bg-slate); 
    border: 1px solid var(--border-color); 
    border-radius: 14px; 
    padding: 16px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 16px;
    transition: all 0.2s;
}
.res-item:hover {
    border-color: var(--brand-orange);
    box-shadow: 0 4px 6px -1px var(--card-shadow);
}
.res-left { 
    display: flex; 
    align-items: center; 
    gap: 14px; 
}
.res-icon { 
    background: var(--bg-surface); 
    width: 42px; 
    height: 42px; 
    border-radius: 10px; 
    border: 1px solid var(--border-color); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0; 
}
.res-item h5 { 
    font-size: 14px; 
    font-weight: 800; 
    color: var(--text-headings); 
}
.res-item p { 
    font-size: 11px; 
    font-weight: 600; 
    color: var(--text-muted); 
    margin-top: 2px; 
}
.btn-download { 
    background: var(--bg-surface); 
    color: var(--text-main); 
    border: 1px solid var(--border-color); 
    width: 38px; 
    height: 38px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    transition: all 0.2s;
    cursor: pointer;
    flex-shrink: 0;
}
.btn-download:hover { 
    background: var(--brand-orange); 
    color: #fff; 
    border-color: var(--brand-orange); 
}

.repository-cta-panel { 
    background: linear-gradient(135deg, var(--brand-navy) 0%, #2c4a7f 100%); 
    color: #ffffff; 
    padding: 32px; 
    border-radius: 16px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}
[data-theme="dark"] .repository-cta-panel { 
    background: var(--bg-surface); 
    border: 1px solid var(--border-color); 
    color: inherit; 
}
.repository-cta-panel h3 { 
    color: #fff; 
    font-size: 18px; 
    font-weight: 800; 
    line-height: 1.3; 
    margin-bottom: 12px; 
}
[data-theme="dark"] .repository-cta-panel h3 { 
    color: var(--text-headings); 
}
.repository-cta-panel p { 
    font-size: 13.5px; 
    color: #94a3b8; 
    margin-bottom: 24px; 
}
[data-theme="dark"] .repository-cta-panel p { 
    color: var(--text-muted); 
}
.repo-social-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
}

.repo-social-card { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 12px 16px; 
    border-radius: 10px; 
    text-decoration: none; 
    color: #fff; 
    font-size: 13.5px; 
    font-weight: 700; 
    transition: transform 0.2s;
}
.repo-social-card i { 
    width: 18px; 
    height: 18px; 
}
.repo-social-card:hover { 
    transform: translateX(4px); 
}
.link-tg { background: #0088CC; }
.link-wa { background: #25D366; }
.link-yt { background: #FF0000; }

/* WARNING CARD */
.warning-card { 
    background: rgba(242, 101, 34, 0.03); 
    border: 1px dashed rgba(242, 101, 34, 0.3); 
    box-shadow: none; 
    padding: 32px; 
}
.warning-card:hover { 
    box-shadow: none; 
}
.warning-header { 
    display: flex; 
    gap: 16px; 
    align-items: flex-start; 
    margin-bottom: 24px; 
}
.warning-header h4 { 
    font-size: 16px; 
    font-weight: 800; 
    color: var(--text-headings); 
}
.warning-body-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 16px; 
    border-top: 1px dashed var(--border-color); 
    padding-top: 20px; 
}
@media (min-width: 640px) { 
    .warning-body-grid { 
        grid-template-columns: repeat(2, 1fr); 
    } 
}
.warning-list-column { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
}
.w-list-item { 
    display: flex; 
    align-items: flex-start; 
    gap: 8px; 
    font-size: 13px; 
    font-weight: 600; 
    color: var(--text-main); 
}
.w-list-item i { 
    width: 14px; 
    height: 14px; 
    margin-top: 3px; 
    color: var(--brand-orange); 
    flex-shrink: 0; 
}

/* CONTACT SECTION */
.contact-details-box { 
    display: flex; 
    flex-direction: column; 
    gap: 24px; 
    margin-top: 32px; 
}
.c-detail-row { 
    display: flex; 
    align-items: flex-start; 
    gap: 16px; 
}
.c-detail-icon { 
    background: var(--bg-slate); 
    color: var(--brand-orange); 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0; 
}
.c-detail-row h6 { 
    font-size: 13px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    color: var(--text-muted); 
}
.c-detail-row p { 
    font-size: 15px; 
    font-weight: 700; 
    color: var(--text-headings); 
    margin-top: 2px; 
}

.contact-form-card { 
    padding: 32px; 
}
.form-group { 
    position: relative; 
    margin-bottom: 20px; 
}
.form-group label { 
    display: block; 
    font-size: 12px; 
    font-weight: 700; 
    color: var(--text-headings); 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    margin-bottom: 8px; 
}
.form-group label .req { 
    color: #ef4444; 
}
.form-group input, 
.form-group textarea { 
    width: 100%; 
    background: var(--bg-primary); 
    border: 1px solid var(--border-color); 
    color: var(--text-main); 
    border-radius: 8px; 
    padding: 12px 16px; 
    font-size: 14px; 
    outline: none; 
    transition: border-color 0.2s, background-color 0.2s; 
    font-family: inherit;
}
.form-group input:focus, 
.form-group textarea:focus { 
    border-color: var(--brand-orange); 
    background: var(--bg-surface); 
}

.form-group.invalid-input input, 
.form-group.invalid-input textarea { 
    border-color: #ef4444; 
    background: rgba(239, 68, 68, 0.02); 
}
.error-msg { 
    display: none; 
    font-size: 11px; 
    font-weight: 700; 
    color: #ef4444; 
    margin-top: 6px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}
.form-group.invalid-input .error-msg { 
    display: block; 
}

.btn-submit-form { 
    width: 100%; 
    background: var(--brand-orange); 
    color: #fff; 
    font-size: 14px; 
    padding: 14px; 
    border-radius: 8px; 
    font-weight: 700; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    box-shadow: 0 4px 10px rgba(242, 101, 34, 0.2);
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.btn-submit-form:hover:not(:disabled) { 
    background: #d94e0d;
    transform: translateY(-2px);
}
.btn-submit-form:disabled { 
    background: var(--border-color); 
    color: var(--text-muted); 
    cursor: not-allowed; 
    box-shadow: none;
}

/* FINAL CTA */
.final-cta { 
    background: var(--text-headings); 
    color: #ffffff; 
    padding: 64px 0; 
    text-align: center; 
    border-top: 1px solid var(--border-color); 
    position: relative; 
}
@media (min-width: 992px) { 
    .final-cta { 
        padding: 96px 0; 
    } 
}
[data-theme="dark"] .final-cta { 
    background: var(--bg-surface); 
}
.final-cta h2 { 
    font-size: 26px; 
    font-weight: 900; 
    color: #fff; 
    max-width: 760px; 
    margin: 0 auto 20px auto; 
}
[data-theme="dark"] .final-cta h2 { 
    color: var(--text-headings); 
}
@media (min-width: 640px) { 
    .final-cta h2 { 
        font-size: 34px; 
    } 
}
.final-cta p { 
    color: #94a3b8; 
    max-width: 580px; 
    margin: 0 auto 36px auto; 
    font-size: 15px; 
}
[data-theme="dark"] .final-cta p { 
    color: var(--text-muted); 
}
.final-actions { 
    display: flex; 
    flex-direction: column; 
    gap: 14px; 
    max-width: 320px; 
    margin: 0 auto; 
}
@media (min-width: 520px) { 
    .final-actions { 
        flex-direction: row; 
        max-width: none; 
        justify-content: center; 
    } 
}
.btn-primary-large { 
    background: var(--brand-orange); 
    color: #fff; 
    font-size: 15px; 
    padding: 14px 28px; 
    border-radius: 10px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    text-decoration: none; 
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary-large:hover { 
    background: #d94e0d;
    transform: translateY(-2px);
}
.btn-transparent { 
    background: rgba(255,255,255,0.06); 
    border: 1px solid rgba(255,255,255,0.1); 
    color: #fff; 
    font-size: 15px; 
    padding: 14px 28px; 
    border-radius: 10px; 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
[data-theme="dark"] .btn-transparent { 
    color: var(--text-main); 
    border-color: var(--border-color); 
    background: var(--bg-slate); 
}
.btn-transparent:hover { 
    background: rgba(255,255,255,0.1); 
}

/* FOOTER */
.footer { 
    background: #090d16; 
    color: #64748b; 
    padding: 56px 0 32px 0; 
    border-top: 1px solid rgba(255,255,255,0.02); 
}
[data-theme="dark"] .footer { 
    background: #020617; 
}
.footer-grid-top { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 36px; 
    padding-bottom: 40px; 
    border-bottom: 1px solid rgba(255,255,255,0.04); 
}
@media (min-width: 768px) { 
    .footer-grid-top { 
        grid-template-columns: 2fr 1.2fr 1.2fr; 
        gap: 48px; 
    } 
}

.footer-logo-wrap { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-bottom: 16px; 
}
.footer h6 { 
    color: #ffffff; 
    font-size: 12px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 16px; 
}
.footer-logo-wrap h6 { 
    margin-bottom: 0; 
    font-size: 15px; 
    letter-spacing: -0.5px; 
}
.footer-brand-summary { 
    font-size: 13px; 
    line-height: 1.6; 
    max-width: 380px; 
    color: #475569; 
}

.footer-contact-list { 
    list-style: none; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
}
.footer-contact-list li { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 13.5px; 
    color: #94a3b8; 
}
.footer-contact-list li i { 
    width: 14px; 
    height: 14px; 
    flex-shrink: 0; 
}

.footer-social-matrix { 
    display: flex; 
    gap: 10px; 
}
.f-matrix-item { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 38px; 
    height: 38px; 
    border-radius: 8px; 
    color: #ffffff; 
    text-decoration: none; 
    transition: all 0.2s;
    cursor: pointer;
}
.f-matrix-item i { 
    width: 18px; 
    height: 18px; 
}
.f-matrix-item:hover { 
    transform: translateY(-2px); 
}
.item-wa { background: #25D366; } 
.item-tg { background: #0088CC; } 
.item-yt { background: #FF0000; } 
.item-ln { background: #0077B5; }

.footer-bottom { 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    align-items: center; 
    gap: 20px; 
    padding-top: 24px; 
    font-size: 12px; 
    color: #475569; 
    text-align: center; 
}
@media (min-width: 640px) { 
    .footer-bottom { 
        flex-direction: row; 
        text-align: left; 
    } 
}
.btn-top-bounce { 
    display: inline-flex; 
    align-items: center; 
    color: #64748b; 
    text-decoration: none; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    transition: color 0.2s;
    cursor: pointer;
}
.btn-top-bounce:hover { 
    color: #fff; 
}

/* MODAL */
.modal-overlay { 
    position: fixed; 
    inset: 0; 
    background: rgba(2, 6, 23, 0.65); 
    backdrop-filter: blur(6px); 
    -webkit-backdrop-filter: blur(6px); 
    z-index: 200; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 16px; 
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.modal-overlay.hidden {
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-card { 
    background: var(--bg-surface); 
    border-radius: 16px; 
    max-width: 640px; 
    width: 100%; 
    padding: 24px; 
    position: relative; 
    max-height: 85vh; 
    overflow-y: auto; 
    border: 1px solid var(--border-color); 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
@media (min-width: 640px) { 
    .modal-card { 
        padding: 32px; 
    } 
}

.modal-close-btn { 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    background: none; 
    color: var(--text-muted); 
    padding: 6px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.modal-close-btn:hover { 
    background: var(--bg-slate); 
    color: var(--text-main); 
}

.modal-badge { 
    display: flex;                /* Changed from inline-flex to flex */
    width: max-content;           /* Forces the background pill to shrink-wrap perfectly around text */
    margin: 0 auto 16px auto;
    align-items: center; 
    justify-content: center;
    background: rgba(242, 101, 34, 0.08); 
    color: var(--brand-orange); 
    font-size: 11px; 
    font-weight: 800; 
    padding: 4px 12px; 
    border-radius: 50px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    margin-bottom: 16px; 
}

.modal-card h2 {
    font-size: 24px;
    margin-bottom: 8px;
}
/* Centers the subtitle paragraph below it */
.modal-sub { 
    font-size: 13.5px; 
    color: var(--text-muted); 
    margin-bottom:  0 auto 24px auto; 
    line-height: 1.5; 
    max-w: 500px;
    text-align: center;
}
/* Centers the main modal title */
#pricingTitle {
    text-align: center;
    margin-top: 0;          /* Removes any uneven top spacing */
    margin-bottom: 8px;     /* Spaces it neatly above the description text */
}



.milestones-list { 
    display: flex; 
    flex-direction: column; 
    gap: 14px; 
}
.m-item { 
    background: var(--bg-primary); 
    border: 1px solid var(--border-color); 
    border-radius: 12px; 
    padding: 16px; 
    display: flex; 
    flex-direction: column; 
    gap: 14px; 
    text-align: left; 
}
@media (min-width: 480px) { 
    .m-item { 
        flex-direction: row; 
    } 
}
.m-num { 
    width: 28px; 
    height: 28px; 
    background: var(--text-headings); 
    color: var(--bg-surface); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 12px; 
    font-weight: 800; 
    flex-shrink: 0; 
}
.m-orange { 
    background: var(--brand-orange) !important; 
}
.m-content-body h5 { 
    font-size: 14.5px; 
    font-weight: 800; 
    color: var(--text-headings); 
    margin-bottom: 8px;
}
.m-content-body .book-pack a{
    font-size: 13px;
    font-weight: 1000;
    color: #1f3A5F;
    margin-bottom: 4px;
    display: inline-block; 
    background-color: rgba(242, 101, 34, 0.04); ;
    margin-left: 10px;
    padding: 4px;
    text-transform: uppercase;
   
}


.package-price {
    color: var(--brand-orange);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
}

.m-content-body p { 
    font-size: 12.5px; 
    color: var(--text-main); 
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.5; 
}
.gate-placeholder { 
    display: inline-block; 
    font-size: 11px; 
    font-weight: 700; 
    color: var(--brand-orange); 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    background: rgba(242, 101, 34, 0.04); 
    padding: 2px 8px; 
    border-radius: 4px; 
}
.modal-foot { 
    margin-top: 24px; 
    padding-top: 20px; 
    border-top: 1px solid var(--border-color); 
    display: flex; 
    justify-content: flex-end; 
}

/* TOAST NOTIFICATION LAYER SETUP */
.toast { 
    position: fixed; 
    bottom: 24px; 
    right: 24px; 
    z-index: 9999 !important; /* Forces it over your headers and menus */
    width: max-content; 
    max-width: calc(100vw - 48px); 
    animation: slideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.hidden {
    display: none !important;
}

.toast-content { 
    background: var(--text-headings, #0f172a); 
    color: #fff; 
    border: 1px solid rgba(255,255,255,0.05); 
    padding: 14px 20px; 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3); 
    width: 100%;
}

[data-theme="dark"] .toast-content { 
    background: var(--bg-surface, #1e293b); 
    border-color: var(--border-color, rgba(255,255,255,0.1)); 
    color: var(--text-headings, #f8fafc); 
}

.toast-vector { 
    width: 18px; 
    height: 18px; 
    flex-shrink: 0; 
}

.toast-success { 
    color: #10b981; 
}

.toast-error { 
    color: #ef4444; 
}

#toastMessage { 
    font-size: 13.5px; 
    font-weight: 600; 
}

@keyframes slideIn {
    from { 
        transform: translateY(20px); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

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

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
    }
}

/* Mobile Checklist - Compact */
@media (max-width: 890px) {
    .visual-box {
        padding: 12px;
        margin-top: 20px;
    }
    
    .window-bar {
        margin-bottom: 10px;
        padding-bottom: 8px;
        justify-content: center;    
    }
    
    .window-title {
        font-size: 12px;
    }
    
    .visual-list {
        gap: 6px;
    }
    
    .list-item {
        padding: 8px;
    }
    
    .item-left {
        gap: 6px;
    }
    
    .list-item h6 {
        font-size: 12px;
    }
    
    .list-item p {
        font-size: 10px;
    }
    
    .status-badge {
        font-size: 9px;
        padding: 1px 6px;
    }
}