html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", sans-serif;
    background-color: #fdfdfd;
    color: #212529;
}

/* Navbar */
.site-navbar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
}

.site-navbar .navbar-brand {
    font-weight: 500;
    letter-spacing: 0.02em;
}

.desktop-nav {
    position: relative;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.desktop-nav .navbar-brand {
    z-index: 2;
}

.desktop-nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
}

.desktop-nav-center a,
.desktop-nav-right a {
    text-decoration: none;
    color: #212529;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.desktop-nav-right {
    z-index: 2;
}

.mobile-nav .nav-link {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.95rem;
    color: #212529;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link:focus {
    color: #212529;
}

/* Shared buttons / badges */
.google-play-badge img {
    height: 58px;
}

.network-name {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
}

/* Shared footer */
.footer-social-banner {
    text-align: center;
    padding: 100px 0;
    color: #f8f8f8;
    background: url("../img/intro-bg.jpg") no-repeat center center;
    background-size: cover;
}

footer {
    background: #f8f9fa;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
    border-top: 1px solid #e5e5e5;
}

footer .list-inline {
    margin-bottom: 0.75rem;
}

footer .list-inline-item {
    margin: 0 0.4rem;
}

.footer-social-buttons {
    margin-bottom: 0;
}

.footer-social-buttons .btn {
    border-color: #dee2e6;
    color: #212529;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-social-buttons .fa-fw,
.footer-social-buttons img.fa-fw {
    margin-right: 0.35rem;
}

.footer-social-buttons img.fa-fw {
    height: 1rem;
    vertical-align: -0.1rem;
}

.footer-meta {
    margin-bottom: 5px;
}

.footer-meta:last-child {
    margin-bottom: 0;
}

/* Error pages */
.error-hero {
    align-items: center;
    background: linear-gradient(rgba(18, 24, 31, 0.72), rgba(18, 24, 31, 0.58)), url("../img/intro-bg.jpg") no-repeat center center;
    background-size: cover;
    color: #fff;
    display: flex;
    min-height: 560px;
    padding: 80px 0;
}

.error-hero-content {
    max-width: 720px;
}

.error-code {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.error-hero h1 {
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 1.25rem;
}

.error-hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.25rem;
    line-height: 1.55;
    margin-bottom: 2rem;
    max-width: 620px;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.error-actions .btn {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    min-width: 8.75rem;
    text-transform: uppercase;
}

/* Shared utility */
.section-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .desktop-nav {
        display: none;
    }
}

@media (min-width: 992px) {
    .mobile-nav-wrapper {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .google-play-badge img {
        height: 52px;
    }

    .footer-social-buttons .network-name {
        display: none;
    }

    .footer-social-buttons .btn {
        align-items: center;
        display: inline-flex;
        justify-content: center;
        min-height: 3rem;
        min-width: 4.5rem;
    }

    .footer-social-buttons .fa-fw,
    .footer-social-buttons img.fa-fw {
        margin-right: 0;
    }

    .error-hero {
        min-height: 520px;
        padding: 60px 0;
    }

    .error-hero h1 {
        font-size: 2.2rem;
    }

    .error-hero p {
        font-size: 1.05rem;
    }

    .error-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .error-actions .btn {
        width: 100%;
    }
}
