@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --nexus-ink: #071a25;
    --nexus-ink-soft: #18343d;
    --nexus-teal: #28c9bc;
    --nexus-teal-dark: #087f7b;
    --nexus-lime: #d7f56a;
    --nexus-mist: #f1f7f6;
    --nexus-line: #d9e7e4;
    --nexus-muted: #617579;
    --nexus-white: #ffffff;
    --nexus-shadow: 0 16px 42px rgba(7, 26, 37, .09);
    --nexus-radius: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif !important;
    color: var(--nexus-ink-soft) !important;
    background: var(--nexus-mist) !important;
}

h1,
h2,
h3,
h4,
h5,
.logo-text,
.logo,
.page-title {
    font-family: 'Space Grotesk', 'DM Sans', sans-serif !important;
}

a {
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

/* Shared public and authentication surfaces */
.public-shell,
.auth-shell {
    background: var(--nexus-mist);
}

button,
input,
select,
textarea {
    font-family: inherit !important;
}

input,
select,
textarea {
    border-color: var(--nexus-line) !important;
    border-radius: 10px !important;
    background: #fbfefd !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--nexus-teal) !important;
    box-shadow: 0 0 0 4px rgba(40, 201, 188, .14) !important;
    outline: none !important;
}

button,
.btn,
.btn-primary,
.btn-secondary,
.submit-btn,
.login-btn,
.register-btn {
    border-radius: 999px !important;
    border: 0;
    font-weight: 700 !important;
}

.alert {
    border-radius: 12px !important;
}

/* Public information pages */
main>.page-hero {
    position: relative;
    isolation: isolate;
    margin-top: 78px;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--nexus-ink) !important;
    color: white;
}

main>.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 80% 20%, rgba(40, 201, 188, .28), transparent 28%), linear-gradient(115deg, transparent 0 55%, rgba(215, 245, 106, .08) 55% 56%, transparent 56%);
}

main>.page-hero::after {
    content: '';
    position: absolute;
    width: 460px;
    height: 460px;
    right: -180px;
    bottom: -310px;
    border: 1px solid rgba(215, 245, 106, .35);
    border-radius: 50%;
    box-shadow: 0 0 0 36px rgba(215, 245, 106, .06), 0 0 0 72px rgba(215, 245, 106, .03);
    z-index: -1;
}

main>.page-hero .container {
    width: 100%;
    padding-top: 72px;
    padding-bottom: 72px;
    background: transparent !important;
}

main>.page-hero h1 {
    max-width: 780px;
    margin-bottom: 20px;
    color: white !important;
    font-size: clamp(44px, 7vw, 78px) !important;
    line-height: 1.02;
    letter-spacing: -3px;
}

main>.page-hero p {
    max-width: 650px;
    color: rgba(255, 255, 255, .7) !important;
    font-size: 18px;
    line-height: 1.75;
}

main>section:not(.page-hero) .container {
    background: transparent !important;
}

.mission-section,
.values-section,
.timeline-section,
.service-category,
.comparison-section,
.contact-section,
.map-section,
.faq-section {
    padding: 96px 0 !important;
}

.mission-section,
.service-category:nth-of-type(odd),
.contact-section,
.faq-section {
    background: var(--nexus-white) !important;
}

.values-section,
.timeline-section,
.service-category:nth-of-type(even),
.comparison-section,
.map-section {
    background: var(--nexus-mist) !important;
}

.mission-grid,
.contact-grid {
    align-items: stretch !important;
    gap: 64px !important;
}

.mission-content h2,
.category-header h2,
.section-header h2,
.contact-form h2 {
    color: var(--nexus-ink) !important;
    font-size: clamp(30px, 4vw, 48px) !important;
    line-height: 1.08;
    letter-spacing: -1.7px;
}

.mission-content p,
.category-header p,
.section-header p,
.contact-form>p {
    color: var(--nexus-muted) !important;
    font-size: 16px;
    line-height: 1.75;
}

.mission-stats {
    gap: 12px !important;
}

.stat-card,
.value-card,
.service-card,
.info-card,
.contact-form,
.faq-item,
.comparison-table,
.map-container {
    border: 1px solid var(--nexus-line) !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 36px rgba(7, 26, 37, .06) !important;
}

.stat-card,
.value-card,
.service-card,
.info-card,
.faq-item {
    background: rgba(255, 255, 255, .78) !important;
}

.mission-image {
    min-height: 360px;
    border-radius: 24px !important;
    background: var(--nexus-ink) !important;
    box-shadow: 0 24px 60px rgba(7, 26, 37, .16);
}

.mission-image i {
    color: var(--nexus-teal) !important;
}

.mission-image h3 {
    color: white !important;
}

.mission-image p {
    color: rgba(255, 255, 255, .65) !important;
}

.value-icon,
.service-icon,
.info-icon {
    background: rgba(40, 201, 188, .13) !important;
    color: var(--nexus-teal-dark) !important;
}

.value-icon i,
.service-icon i,
.info-icon i {
    color: var(--nexus-teal-dark) !important;
}

.value-card h3,
.service-card h3,
.info-card h3 {
    color: var(--nexus-ink) !important;
}

.value-card p,
.service-card p,
.service-features,
.info-card p,
.faq-answer {
    color: var(--nexus-muted) !important;
}

.service-features li i,
.check-icon {
    color: var(--nexus-teal-dark) !important;
}

.service-link,
.info-detail {
    color: var(--nexus-teal-dark) !important;
    font-weight: 700;
}

.service-link:hover,
.info-detail:hover {
    color: var(--nexus-ink) !important;
}

.timeline::before {
    background: var(--nexus-line) !important;
}

.timeline-dot {
    background: var(--nexus-teal) !important;
    border-color: var(--nexus-white) !important;
    box-shadow: 0 0 0 5px rgba(40, 201, 188, .16);
}

.timeline-content {
    border-color: var(--nexus-line) !important;
    background: var(--nexus-white) !important;
}

.timeline-year {
    color: var(--nexus-teal-dark) !important;
}

.timeline-title {
    color: var(--nexus-ink) !important;
}

.cta-section {
    background: var(--nexus-ink) !important;
    padding: 84px 0 !important;
}

.cta-section h2 {
    color: white !important;
}

.cta-section p {
    color: rgba(255, 255, 255, .68) !important;
}

.btn-cta,
.btn-cta-primary {
    background: var(--nexus-lime) !important;
    color: var(--nexus-ink) !important;
    border-radius: 999px !important;
}

.btn-cta-outline {
    border-radius: 999px !important;
}

.comparison-table,
.map-container {
    overflow: hidden;
    background: white !important;
}

.comparison-table table {
    margin: 0;
}

.comparison-table th {
    background: var(--nexus-ink) !important;
    color: white !important;
}

.comparison-table td {
    border-color: var(--nexus-line) !important;
}

.contact-form {
    background: white !important;
    padding: 42px !important;
}

.contact-form .btn-submit {
    background: var(--nexus-ink) !important;
    color: white !important;
    border-radius: 999px !important;
}

.contact-form .btn-submit:hover {
    background: var(--nexus-teal-dark) !important;
}

.business-hours p {
    border-color: var(--nexus-line) !important;
}

.faq-question {
    color: var(--nexus-ink) !important;
}

.faq-question i {
    color: var(--nexus-teal-dark) !important;
}

@media (max-width: 700px) {
    main>.page-hero {
        margin-top: 72px;
        min-height: 430px;
    }

    main>.page-hero h1 {
        font-size: 45px !important;
        letter-spacing: -1.8px;
    }

    main>.page-hero p {
        font-size: 16px;
    }

    .mission-section,
    .values-section,
    .timeline-section,
    .service-category,
    .comparison-section,
    .contact-section,
    .map-section,
    .faq-section {
        padding: 68px 0 !important;
    }

    .mission-grid,
    .contact-grid {
        gap: 28px !important;
    }

    .contact-form {
        padding: 24px !important;
    }

    .comparison-table {
        overflow-x: auto;
    }
}

/* Auth pages */
.login-card,
.register-card,
.form-container,
.login-form,
.auth-card {
    border: 1px solid rgba(217, 231, 228, .9) !important;
    border-radius: 22px !important;
    box-shadow: var(--nexus-shadow) !important;
}

.logo-icon {
    background: var(--nexus-teal) !important;
    box-shadow: 0 8px 18px rgba(40, 201, 188, .22) !important;
}

.logo-icon i {
    color: var(--nexus-ink) !important;
}

.logo-text {
    color: var(--nexus-ink) !important;
}

.login-btn,
.register-btn,
.submit-btn {
    background: var(--nexus-ink) !important;
    color: white !important;
}

.login-btn:hover,
.register-btn:hover,
.submit-btn:hover {
    background: var(--nexus-teal-dark) !important;
    transform: translateY(-1px);
}

.auth-link,
.forgot-password a,
form a {
    color: var(--nexus-teal-dark) !important;
}

/* Authenticated dashboards */
.dashboard-wrapper,
.wrapper {
    background: var(--nexus-mist) !important;
}

.sidebar,
aside {
    background: var(--nexus-ink) !important;
    border-right: 0 !important;
    box-shadow: 12px 0 36px rgba(7, 26, 37, .08) !important;
}

.sidebar-header {
    border-bottom-color: rgba(255, 255, 255, .12) !important;
}

.sidebar .logo-text,
aside .logo-text {
    color: white !important;
}

.sidebar .nav-link,
.sidebar nav a,
aside nav a,
aside .btn,
.logout {
    color: rgba(255, 255, 255, .62) !important;
    border-radius: 10px !important;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active,
.sidebar nav a:hover,
aside nav a:hover,
aside .dash-text {
    color: var(--nexus-ink) !important;
    background: var(--nexus-lime) !important;
}

.sidebar .section-title,
aside h5 {
    color: rgba(255, 255, 255, .42) !important;
}

.dashboard-main,
.container {
    background: var(--nexus-mist) !important;
}

.dashboard-header,
main header {
    background: rgba(255, 255, 255, .9) !important;
    border-bottom: 1px solid var(--nexus-line) !important;
    box-shadow: 0 6px 24px rgba(7, 26, 37, .05) !important;
}

.dashboard-header h1,
main header h1 {
    color: var(--nexus-ink) !important;
    font-family: 'Space Grotesk', sans-serif !important;
}

.card,
.panel,
.account-summary,
.quick-actions,
.transactions-container,
.content,
.table-container,
.stat-card,
.feature-card {
    background: var(--nexus-white) !important;
    border: 1px solid var(--nexus-line) !important;
    border-radius: var(--nexus-radius) !important;
    box-shadow: var(--nexus-shadow) !important;
}

.card-header,
.panel-header {
    border-bottom-color: var(--nexus-line) !important;
}

.btn-primary,
.primary-btn,
.action-btn,
.btn-success {
    background: var(--nexus-teal-dark) !important;
    color: white !important;
}

.btn-primary:hover,
.primary-btn:hover,
.action-btn:hover {
    background: var(--nexus-ink) !important;
}

.btn-secondary {
    background: var(--nexus-lime) !important;
    color: var(--nexus-ink) !important;
}

table thead th {
    background: var(--nexus-ink) !important;
    color: white !important;
}

table tbody tr:hover {
    background: rgba(40, 201, 188, .07) !important;
}

.status.active,
.status.approved,
.success,
.text-success {
    color: #087f62 !important;
}

.status.pending,
.warning,
.text-warning {
    color: #a36800 !important;
}

.status.rejected,
.danger,
.text-danger {
    color: #bd3d43 !important;
}

@media (max-width: 900px) {

    .sidebar,
    aside {
        width: 220px !important;
    }

    .dashboard-main,
    .main-content {
        margin-left: 220px !important;
    }
}

@media (max-width: 680px) {

    body:has(.dashboard-wrapper) {
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    .dashboard-wrapper {
        display: block !important;
        min-height: 100vh !important;
    }

    .dashboard-wrapper .sidebar {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        width: min(86vw, 300px) !important;
        min-height: 100vh !important;
        transform: translateX(-105%) !important;
        transition: transform .25s ease !important;
        z-index: 1000 !important;
    }

    .dashboard-wrapper .sidebar.mobile-open {
        transform: translateX(0) !important;
        box-shadow: 18px 0 42px rgba(7, 26, 37, .28) !important;
    }

    .dashboard-wrapper .main-content {
        width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
    }

    .dashboard-wrapper .top-header {
        position: sticky !important;
        min-height: 68px !important;
        padding: 12px 16px !important;
        gap: 12px !important;
        z-index: 900 !important;
    }

    .dashboard-wrapper .hamburger {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 42px !important;
        width: 42px !important;
        height: 42px !important;
        border-radius: 12px !important;
        color: var(--nexus-ink) !important;
        background: var(--nexus-mist) !important;
    }

    .dashboard-wrapper .page-title {
        min-width: 0 !important;
        flex: 1 !important;
    }

    .dashboard-wrapper .page-title h1 {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 19px !important;
    }

    .dashboard-wrapper .user-menu {
        gap: 8px !important;
    }

    .dashboard-wrapper .user-details {
        display: none !important;
    }

    .dashboard-wrapper .content-area {
        width: 100% !important;
        padding: 20px 16px 32px !important;
    }

    .dashboard-wrapper .welcome-banner {
        padding: 24px !important;
        margin-bottom: 20px !important;
        border-radius: 18px !important;
    }

    .dashboard-wrapper .welcome-banner h2 {
        font-size: 23px !important;
    }

    .dashboard-wrapper .stats-grid,
    .dashboard-wrapper .charts-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        margin-bottom: 22px !important;
    }

    .dashboard-wrapper .stat-card,
    .dashboard-wrapper .quick-actions,
    .dashboard-wrapper .chart-card {
        padding: 18px !important;
        border-radius: 16px !important;
    }

    .dashboard-wrapper .stat-value {
        font-size: 27px !important;
    }

    .dashboard-wrapper .action-buttons {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .dashboard-wrapper .action-btn {
        justify-content: center !important;
        padding: 11px 8px !important;
        text-align: center !important;
    }

    .dashboard-wrapper .section-header {
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .dashboard-wrapper .section-header h2 {
        font-size: 18px !important;
    }

    .dashboard-wrapper .table-container {
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .dashboard-wrapper .data-table {
        min-width: 620px !important;
    }

    .dashboard-wrapper .empty-state {
        padding: 32px 18px !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}