/* =========================================================
   Numorify.com - Global Styles
   File: /assets/css/global.css
   ========================================================= */


/* =========================================================
   1. Base
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #4b5563;
    background: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

a {
    text-decoration: none;
}


/* =========================================================
   2. Scrollbar
   ========================================================= */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


/* =========================================================
   3. Global Header
   ========================================================= */

#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #f3f4f6;
    transition: box-shadow 0.2s ease;
}


/* =========================================================
   4. Logo
   ========================================================= */

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}

.site-logo img {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    object-fit: contain;
}

.site-logo-text {
    font-size: 1.125rem;
    line-height: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.site-logo-text span {
    color: #2563eb;
}


/* =========================================================
   5. Desktop Navigation
   ========================================================= */

.nav {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #4b5563;
    border-radius: 0.5rem;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.nav:hover {
    color: #2563eb;
    background: #eff6ff;
}

.nav.active {
    color: #2563eb;
    background: #eff6ff;
}


/* =========================================================
   6. Mobile Navigation
   ========================================================= */

.mobile {
    display: block;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #374151;
    border-radius: 0.5rem;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.mobile:hover {
    color: #2563eb;
    background: #eff6ff;
}

.mobile.active {
    color: #2563eb;
    background: #eff6ff;
}


/* =========================================================
   7. Mobile Menu
   ========================================================= */

#mobileMenu {
    border-top: 1px solid #f3f4f6;
    background: #ffffff;
}

#mobileMenuBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: #6b7280;
    background: transparent;
    border: 0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

#mobileMenuBtn:hover {
    color: #111827;
    background: #f3f4f6;
}


/* =========================================================
   8. Main Content Offset
   ========================================================= */

main {
    min-height: calc(100vh - 4rem);
}


/* =========================================================
   9. Global Links
   ========================================================= */

.link-brand {
    color: #2563eb;
    transition: color 0.2s ease;
}

.link-brand:hover {
    color: #1d4ed8;
}


/* =========================================================
   10. Common Buttons
   ========================================================= */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    background: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 0.75rem;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.1s ease;
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-primary:active {
    background: #1e40af;
    border-color: #1e40af;
    transform: translateY(1px);
}

.btn-primary:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}


/* =========================================================
   11. Common Secondary Button
   ========================================================= */

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    color: #374151;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.btn-secondary:hover {
    color: #2563eb;
    background: #eff6ff;
    border-color: #93c5fd;
}


/* =========================================================
   12. Common Focus State
   ========================================================= */

input:focus,
select:focus,
textarea:focus {
    outline: none;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 1px;
}


/* =========================================================
   13. Footer
   ========================================================= */

.site-footer {
    background: #111827;
    color: #9ca3af;
}

.site-footer h4 {
    color: #ffffff;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.site-footer ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a {
    color: #9ca3af;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #ffffff;
}

.site-footer-bottom {
    border-top: 1px solid #1f2937;
}


/* =========================================================
   14. Footer Logo
   ========================================================= */

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.footer-logo img {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-logo-text span {
    color: #60a5fa;
}


/* =========================================================
   15. Breadcrumb
   ========================================================= */

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.breadcrumb a {
    color: #9ca3af;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #2563eb;
}

.breadcrumb-current {
    color: #111827;
    font-weight: 500;
}


/* =========================================================
   16. Common Page Hero
   ========================================================= */

.page-hero-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.page-hero-icon .iconify {
    font-size: 1.5rem;
    color: #2563eb;
}


/* =========================================================
   17. Selection
   ========================================================= */

::selection {
    color: #1e3a8a;
    background: #dbeafe;
}


/* =========================================================
   18. Accessibility
   ========================================================= */

:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}


/* =========================================================
   19. Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}


/* =========================================================
   20. Mobile Adjustments
   ========================================================= */

@media (max-width: 640px) {

    .site-logo-text {
        font-size: 1rem;
    }

    .breadcrumb {
        font-size: 0.8125rem;
    }

}