/* Reset e estilos base */

.navbar .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}


html, body {
    overflow-x: hidden;
}

body {
    width: 100%;
}

div, section, main, article, aside, header, footer {
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    body {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden; /* Prevenir scroll horizontal */
    }
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--gradient-primary);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal) ease;
    background: var(--gradient-primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px var(--shadow-color);
    padding: 1rem 0;
}

.navbar.nav-hidden {
    transform: translateY(-100%);
}

.navbar-brand {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.5rem;
    transition: color var(--transition-fast);
}

.navbar-brand:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-color);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav {
    margin-left: auto;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    padding: 0.5rem 1.25rem !important;
    transition: all var(--transition-fast);
    position: relative;
    margin: 0 0.25rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform var(--transition-fast);
    transform-origin: center;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color) !important;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--gradient-primary);
        padding: 1rem;
        border-radius: 0 0 1rem 1rem;
        margin-top: 0.5rem;
        box-shadow: 0 4px 20px var(--shadow-color);
    }

    .navbar-brand span {
        font-size: 1.25rem;
    }

    .nav-link {
        padding: 0.75rem 1.5rem !important;
        border-radius: 0.5rem;
        margin: 0.25rem 0;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .nav-link.active {
        background: rgba(255, 255, 255, 0.15);
    }

    .nav-link::after {
        display: none;
    }
}

/* Footer */
.footer {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    width: 100%;
}

.footer-logo img {
    width: 600px !important;
    height: 300px !important;
    object-fit: contain;
}

.footer-description {
    color: var(--text-accent);
    text-align: center;
    margin: 0 0 2rem;
    max-width: 100%;
}

.footer-title {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

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

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-accent);
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Botões */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--hover-primary);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.btn-outline-light:hover {
    background: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    box-shadow: var(--default-shadow);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-darker);
    color: var(--text-light);
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Utilitários */
.text-primary { color: var(--primary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.text-light { color: var(--text-light) !important; }
.text-dark { color: var(--text-dark) !important; }
.text-muted { color: var(--text-muted) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.bg-light { background-color: var(--bg-light) !important; }
.bg-off-white { background-color: var(--bg-off-white) !important; }

/* Responsividade */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--primary-color);
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 10px 30px var(--shadow-color);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1rem;
    }

    .footer-title {
        margin-top: 2rem;
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
