/* =========================================================
   SAINIK SUVIDHA
   NEW FRONTEND SYSTEM
   Responsive / Mobile First
   ========================================================= */

:root {
    --ss-navy: #0b1f3a;
    --ss-navy-dark: #071426;
    --ss-orange: #f47b20;
    --ss-green: #16834b;
    --ss-white: #ffffff;
    --ss-text: #172033;
    --ss-muted: #667085;
    --ss-border: #e5e7eb;
    --ss-bg: #f7f9fc;

    --ss-container: 1440px;

    --ss-radius-sm: 8px;
    --ss-radius-md: 12px;
    --ss-radius-lg: 18px;

    --ss-shadow:
        0 10px 30px rgba(15, 23, 42, 0.08);
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--ss-text);

    background: var(--ss-bg);

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255,255,255,0.96);

    backdrop-filter: blur(14px);

    border-bottom: 1px solid var(--ss-border);
}

.header-container {
    width: min(
        calc(100% - 32px),
        var(--ss-container)
    );

    min-height: 78px;

    margin: auto;

    display: flex;

    align-items: center;

    gap: 28px;
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {
    display: flex;

    align-items: center;

    gap: 12px;

    flex-shrink: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;

    border-radius: 12px;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            135deg,
            var(--ss-orange),
            var(--ss-green)
        );

    color: white;

    font-weight: 900;

    font-size: 16px;

    box-shadow:
        0 8px 20px rgba(11,31,58,0.16);
}

.brand-text {
    display: flex;

    flex-direction: column;

    line-height: 1.2;
}

.brand-text strong {
    color: var(--ss-navy);

    font-size: 18px;

    letter-spacing: .04em;
}

.brand-text span {
    color: var(--ss-muted);

    font-size: 10px;

    margin-top: 4px;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.main-navigation {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 4px;

    flex: 1;
}

.main-navigation a {
    padding: 9px 10px;

    border-radius: 8px;

    color: #344054;

    font-size: 13px;

    font-weight: 600;

    white-space: nowrap;

    transition:
        background .2s ease,
        color .2s ease;
}

.main-navigation a:hover {
    background: #f1f5f9;

    color: var(--ss-navy);
}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.header-actions {
    display: flex;

    align-items: center;

    gap: 8px;

    flex-shrink: 0;
}

.btn-login,
.btn-register {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 40px;

    padding: 0 15px;

    border-radius: 9px;

    font-size: 13px;

    font-weight: 700;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.btn-login {
    color: var(--ss-navy);

    border: 1px solid var(--ss-border);

    background: white;
}

.btn-login:hover {
    background: #f8fafc;
}

.btn-register {
    color: white;

    background: var(--ss-navy);

    box-shadow:
        0 5px 14px rgba(11,31,58,.18);
}

.btn-register:hover {
    transform: translateY(-1px);

    background: var(--ss-navy-dark);
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid var(--ss-border);

    background: white;

    border-radius: 10px;

    padding: 9px;

    cursor: pointer;
}

.mobile-menu-button span {
    display: block;

    height: 2px;

    margin: 5px 0;

    background: var(--ss-navy);

    border-radius: 2px;
}


/* =========================================================
   MAIN
   ========================================================= */

.site-main {
    min-height: 70vh;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    margin-top: 60px;

    background: var(--ss-navy);

    color: white;
}

.footer-container {
    width: min(
        calc(100% - 32px),
        var(--ss-container)
    );

    margin: auto;

    padding: 42px 0;

    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1fr;

    gap: 40px;
}

.footer-brand strong {
    font-size: 20px;

    letter-spacing: .04em;
}

.footer-brand p {
    margin: 8px 0 0;

    color: #b8c3d4;

    font-size: 14px;
}

.footer-links {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.footer-links a {
    color: #d6deea;

    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.footer-contact strong {
    margin-bottom: 3px;
}

.footer-contact a {
    color: #d6deea;

    font-size: 14px;
}

.footer-bottom {
    padding: 16px;

    text-align: center;

    border-top:
        1px solid rgba(255,255,255,.12);

    color: #aebbd0;

    font-size: 12px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1180px) {

    .header-container {
        gap: 16px;
    }

    .main-navigation {
        gap: 0;
    }

    .main-navigation a {
        padding-left: 7px;
        padding-right: 7px;
        font-size: 12px;
    }

    .brand-text span {
        display: none;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .header-container {
        min-height: 68px;
    }

    .mobile-menu-button {
        display: block;

        margin-left: auto;
    }

    .main-navigation {

        position: absolute;

        top: 68px;

        left: 16px;
        right: 16px;

        display: none;

        flex-direction: column;

        align-items: stretch;

        padding: 10px;

        background: white;

        border:
            1px solid var(--ss-border);

        border-radius:
            var(--ss-radius-md);

        box-shadow:
            0 20px 50px
            rgba(15,23,42,.14);
    }

    .main-navigation.active {
        display: flex;
    }

    .main-navigation a {
        padding: 12px;

        font-size: 14px;
    }

    .header-actions {
        display: none;
    }

    .footer-container {
        grid-template-columns: 1fr;

        gap: 28px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .header-container {
        width: calc(100% - 24px);
    }

    .brand-text strong {
        font-size: 15px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline:
        3px solid rgba(244,123,32,.35);

    outline-offset: 2px;
}
