:root {
    --brand-coal: #121417;
    --brand-anthracite: #1b1f24;
    --brand-slate: #2b323a;
    --brand-steel: #8f9aa5;
    --brand-cloud: #e7eaee;
    --brand-accent: #f0a500;
}

body {
    font-family: "Barlow", sans-serif;
    color: #d6dbe1;
    background: linear-gradient(180deg, #0f1216 0%, #14181d 45%, #101317 100%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.footer-title {
    font-family: "Space Grotesk", sans-serif;
}

.public-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: radial-gradient(circle at 15% -20%, rgba(240, 165, 0, 0.15) 0%, transparent 38%), radial-gradient(circle at 95% 5%, rgba(143, 154, 165, 0.16) 0%, transparent 30%);
}

.public-body main {
    flex: 1 0 auto;
}

.public-body h1,
.public-body h2,
.public-body h3,
.public-body h4,
.public-body h5,
.public-body h6 {
    color: #f4f7fb;
}

.public-body a:not(.btn):not(.navbar-brand):not(.nav-link):not(.footer-link) {
    color: #ffca65;
}

.public-body a:not(.btn):not(.navbar-brand):not(.nav-link):not(.footer-link):hover {
    color: #ffd98f;
}

.public-announcement-banner {
    border: 0;
    color: #0f1216;
    font-weight: 600;
}

.public-announcement-banner.alert-primary,
.public-announcement-banner.alert-dark {
    color: #f8fbff;
}

.public-announcement-modal-content {
    background: #171d24;
    color: #e6edf4;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.public-announcement-modal-content .modal-body,
.public-announcement-modal-content .modal-footer {
    color: #e6edf4;
    border-color: rgba(255, 255, 255, 0.08);
}

.site-navbar {
    background: rgba(16, 20, 25, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    transition: box-shadow 0.2s ease;
}

.site-navbar .navbar-brand,
.site-navbar .nav-link {
    color: #f5f7fa;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
    color: var(--brand-accent);
}

.site-navbar.navbar-scrolled {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.42);
}

.hero-section {
    position: relative;
    background: linear-gradient(135deg, #14181d 0%, #1b222b 65%, #232a33 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.hero-kicker {
    display: inline-block;
    background: rgba(240, 165, 0, 0.16);
    border: 1px solid rgba(240, 165, 0, 0.45);
    color: #ffd890;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.hero-card,
.feature-card,
.service-card,
.contact-card,
.trust-box {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(170deg, #20262e 0%, #1b2128 100%);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.26);
    padding: 1.25rem;
}

.hero-card {
    color: #f4f7fb;
}

.feature-card h4,
.service-card h4 {
    font-size: 1.2rem;
    color: #f8fafc;
}

.feature-card p,
.service-card p,
.trust-box p,
.trust-box li,
.contact-card,
.contact-card label {
    color: #cdd4db;
}

.service-icon {
    font-size: 1.6rem;
    color: var(--brand-accent);
    margin-bottom: 0.75rem;
}

.subpage-hero {
    background: linear-gradient(125deg, #161a1f 0%, #202732 70%);
    color: #f7f9fb;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.contact-side {
    border-radius: 1rem;
    padding: 1.5rem;
    background: linear-gradient(165deg, #20262d 0%, #171c22 100%);
    color: #eaf0f7;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}

.site-footer {
    background: #0e1216;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #c8d0d8;
    margin-top: auto;
}

.footer-link {
    color: #ffbe3f;
    text-decoration: none;
}

.footer-link:hover {
    color: #ffd67e;
}

.btn-cta,
.btn.btn-warning {
    background: var(--brand-accent);
    border-color: #d89300;
    color: #101317;
    font-weight: 700;
}

.btn-cta:hover,
.btn.btn-warning:hover {
    background: #ffb61c;
    border-color: #ffb61c;
    color: #0f1216;
}

.btn-outline-dark {
    border-color: rgba(255, 255, 255, 0.38);
    color: #f0f4f8;
}

.btn-outline-dark:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.form-control,
.form-select {
    background: #14191f;
    border-color: #303841;
    color: #eef3f8;
}

.form-control:focus,
.form-select:focus {
    background: #14191f;
    color: #eef3f8;
    border-color: #f0a500;
    box-shadow: 0 0 0 0.2rem rgba(240, 165, 0, 0.2);
}

.form-label,
.lead,
p,
li {
    color: #e2e8ef;
}

.text-muted {
    color: #9eabb8 !important;
}

.about-copy-box {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(170deg, #1c232b 0%, #171d24 100%);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.26);
    padding: 1.25rem;
}

.about-copy-box p {
    color: #eef3f8;
}

.project-card {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(170deg, #20262e 0%, #1b2128 100%);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.26);
    overflow: hidden;
}

.project-image-slot {
    aspect-ratio: 16 / 10;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.22);
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.04),
        rgba(255, 255, 255, 0.04) 12px,
        rgba(255, 255, 255, 0.08) 12px,
        rgba(255, 255, 255, 0.08) 24px
    );
    color: #b8c2cc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.4rem;
}

.project-image-slot i {
    font-size: 2rem;
    color: #d2dbe4;
}

.trust-strip {
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
}

.trust-strip .trust-box-grid {
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a2027;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.trust-metric {
    padding: 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-metric:last-child {
    border-right: 0;
}

.trust-metric .metric-value {
    font-family: "Space Grotesk", sans-serif;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
}

.trust-metric .metric-label {
    color: #9eabb8;
    font-size: 0.9rem;
}

.admin-login-bg {
    min-height: 100vh;
    background: linear-gradient(130deg, #f2f5f8 0%, #dbe6f1 100%);
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0f2638 0%, #152f46 100%);
    color: #dbe7f1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.admin-brand {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.admin-sidebar .nav-link {
    color: #dbe7f1;
    border-radius: 0.6rem;
    padding: 0.55rem 0.8rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.admin-main {
    flex: 1;
    background: linear-gradient(160deg, #13181d 0%, #192028 100%);
    color: #e3eaf1;
}

.admin-header {
    background: #161c23;
    color: #f4f8fc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.25rem;
}

.admin-header .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.35);
    color: #e8eef5;
}

.admin-header .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.admin-content .card {
    background: linear-gradient(170deg, #20262e 0%, #1b2128 100%);
    color: #e5ecf3;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.admin-content .card-header {
    background: #171d24 !important;
    color: #f4f8fc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-content .table {
    --bs-table-bg: transparent;
    --bs-table-color: #dfe7ee;
    --bs-table-striped-color: #dfe7ee;
    --bs-table-hover-color: #f7fbff;
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
    color: #dfe7ee;
}

.admin-content .table thead th {
    color: #f4f8fc;
    font-weight: 700;
}

.admin-content .table-warning-subtle {
    --bs-table-bg: rgba(240, 165, 0, 0.14);
}

.admin-content .text-muted {
    color: #a9b6c3 !important;
}

.admin-content .form-label {
    color: #eaf0f7;
}

.admin-content .modal-content {
    background: #1a2129;
    color: #e8eef5;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-content .modal-header,
.admin-content .modal-footer {
    border-color: rgba(255, 255, 255, 0.08);
}

.admin-content .btn-dark {
    background: #f0a500;
    border-color: #d89300;
    color: #101317;
    font-weight: 700;
}

.admin-content .btn-dark:hover {
    background: #ffb61c;
    border-color: #ffb61c;
    color: #0f1216;
}

.announcement-preview {
    border: 0;
    font-weight: 600;
}

.announcement-preview.alert-primary,
.announcement-preview.alert-dark,
.announcement-preview.alert-danger {
    color: #f8fbff;
}

.announcement-preview.alert-warning,
.announcement-preview.alert-info,
.announcement-preview.alert-success {
    color: #11151a;
}

.admin-kpi {
    border-radius: 1rem;
}

textarea.auto-resize {
    overflow: hidden;
    resize: none;
}

@media (max-width: 992px) {
    .admin-shell {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
    }

    .trust-strip {
        margin-top: 1rem;
    }

    .trust-metric {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .trust-metric:last-child {
        border-bottom: 0;
    }

    .hero-section .display-5 {
        font-size: 2.1rem;
    }

    .hero-card,
    .feature-card,
    .service-card,
    .contact-card,
    .trust-box {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section .display-5 {
        font-size: 1.85rem;
    }

    .subpage-hero .lead {
        font-size: 1rem;
    }
}
