/* =============================================
   SHARED STYLES — Barna & Co
   Used across all pages
   ============================================= */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #020412, #3a3d5c, #020412);
    z-index: 10000;
    transition: width 0.05s linear;
    box-shadow: 0 0 8px rgba(2, 4, 18, 0.4);
}

/* Navbar Glassmorphism on Scroll */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Navbar Link Underline Animation */
.navbar-link-modern {
    position: relative;
}

.navbar-link-modern::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #020412;
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 1px;
}

.navbar-link-modern:hover::after,
.navbar-link-modern.current::after {
    width: 100%;
    left: 0;
}

/* Focus Visible (a11y) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[type="checkbox"]:focus-visible {
    outline: 2px solid #020412;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Contact Section Background Overlay */
.contact-section-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 0;
}

/* Footer Bottom Centering */
.footer-bottom {
    text-align: center !important;
    max-width: 2000px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer Credit */
.footer-credit {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.75rem;
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: #fff;
}

/* Footer Link Hover */
.footer-link-modern:hover,
.footer-link:hover {
    transform: translateX(4px);
}

/* Back to Top Button */
.link-block-2 {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, box-shadow 0.3s ease;
}

.link-block-2:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* =============================================
   MOBILE — 991px (Tablet)
   ============================================= */
@media (max-width: 991px) {
    .navbar-logo-modern .image-2,
    .navbar-logo-modern .navbar-logo-img {
        width: 100px !important;
        max-width: 100px !important;
    }

    .navbar-container-modern {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .menu-button-modern {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-left: auto !important;
        order: 99 !important;
    }

    .menu-icon-modern {
        margin: 0 !important;
    }

    .navbar-logo-modern {
        position: relative;
        z-index: 1 !important;
    }

    .nav-menu-modern {
        z-index: 10 !important;
    }
}

/* =============================================
   MOBILE — 768px
   ============================================= */
@media (max-width: 768px) {
    /* Footer */
    .footer-modern {
        padding-top: 0 !important;
    }

    .footer-content-grid,
    .footer-four-columns,
    .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 32px !important;
        padding: 40px 20px !important;
    }

    .footer-column {
        text-align: center !important;
    }

    .footer-link-modern,
    .footer-link {
        justify-content: center !important;
    }

    .footer-contact-item {
        text-align: center !important;
    }

    .footer-hours {
        justify-content: center !important;
    }

    .footer-column-title,
    .footer-column h4 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }

    .footer-bottom {
        text-align: center !important;
        padding: 20px !important;
    }

    .footer-text {
        font-size: 14px !important;
    }

    .footer-copyright {
        font-size: 13px !important;
    }

}

/* =============================================
   MOBILE — 479px (Small phones)
   ============================================= */
@media (max-width: 479px) {
    .image-2 {
        width: 80px !important;
        min-width: 80px !important;
        max-width: 80px !important;
    }
}

/* =============================================
   Reduced Motion
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .scroll-progress {
        display: none;
    }

    .hero-particles,
    .hero-geometric,
    .hero-decorative-elements,
    .hero-aurora {
        display: none;
    }
}
