:root {
    --color-primary: #0056d2;
    --color-primary-dark: #003c99;
    --color-text: #0b1d42;
    --color-bg: #ffffff;

    --fs-sm: 0.875rem;   /* 14px */
    --fs-base: 1rem;     /* 16px */
    --fs-lg: 1.25rem;    /* 20px */
    --fs-xl: 1.75rem;    /* 28px */

    --radius: 0.5rem;
    --radius-lg: 0.75rem;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 6px 18px rgba(0,0,0,0.12);
}

/* Reset for safe measure */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    color: var(--color-text);
    overflow-x: hidden;
}

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

.top-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e8f0;
    padding: 0 2.5rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    z-index: 50;
}

.header-container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.header-logo img {
    height: 8rem;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-nav a {
    font-size: var(--fs-base);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    margin: 0 1rem;
    transition: opacity .2s ease;
}

.header-nav a:hover {
    opacity: .6;
}

/* CTA Buttons in header */
.btn-login {
    padding: 0.45rem 1rem;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius);
    color: var(--color-primary);
}

.btn-login:hover {
    background: var(--color-primary);
    color: white;
}

.btn-register {
    padding: 0.45rem 1rem;
    background: var(--color-primary);
    border-radius: var(--radius);
    color: white;
    font-weight: 700;
}

.btn-register:hover {
    background: var(--color-primary-dark);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-text);
}

@media (max-width: 768px) {

    .header-nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        background: white;
        padding: 1.2rem;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);

        position: absolute;
        top: 4.2rem;
        right: 1rem;
        width: 12rem;
        z-index: 100;
    }

    .header-nav.show {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* ===========================
   GENERAL PAGE LAYOUT
=========================== */

.page-wrapper {
    width: 92%;
    max-width: 1100px;
    margin: 2.5rem auto;
}


/* === FOOTER === */

.footer {
    width: 100%;
    background: #0b1d42;
    color: #ffffff;
    padding: 2.1875rem 0;      /* 35px */
    border-top: 1px solid rgba(255,255,255,0.15);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.footer-content {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;               /* 20px */
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;               /* 12px */
    max-width: 420px;
}

.footer-logo {
    width: 7rem;
    height: auto;
}

.footer-description {
    font-size: 1.25rem;         /* 20px */
    opacity: 0.75;
    line-height: 1.4;
}

.footer-nav {
    display: flex;
    gap: 1.375rem;              /* 22px */
    font-size: 0.875rem;        /* 14px */
    flex-wrap: wrap;
}

.footer-nav a {
    color: #ffffff;
    opacity: 0.75;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-nav a:hover {
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 0.9375rem;             /* 15px */
}

.footer-social img {
    width: 1.375rem;            /* 22px */
    height: auto;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.footer-social img:hover {
    opacity: 1;
}

.footer-bottom {
    width: 100%;
    margin-top: 1.5625rem;      /* 25px */
    text-align: center;
    opacity: 0.45;
    font-size: 0.75rem;         /* 12px */
}


.modal-overlay {
    display: none;
}

.modal-overlay:not(.hidden) {
    display: flex !improtant;
}
