/* ==========================================
   FONTE BASE PARA NAVBAR
   ========================================== */
.navbar,
.footer {
    font-family: 'Poppins', sans-serif;
}

/* ==========================================
   NAVBAR (home.css)
   ========================================== */
.navbar {
    background: white;
    box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 0.3rem solid #005DBC;
    padding: 1.5rem 0;
}

.navbar-container {
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo img {
    height: 5rem;
    width: auto;
    display: block;
    max-width: 100%;
    margin-left: 0;
}

.navbar-menu {
    display: flex;
    gap: 4.5rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* ==========================================
   HAMBURGER TOGGLE (mobile)
   ========================================== */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.8rem 0.9rem;
    cursor: pointer;
    position: relative;
    border-radius: .6rem;
    transition: background .25s ease;
}
.navbar-toggle:focus-visible {
    outline: 2px solid #005DBC;
    outline-offset: 2px;
}
.navbar-toggle:hover { background: rgba(0,0,0,.05); }
.hamburger-line {
    display: block;
    width: 26px;
    height: 3px;
    background: #222;
    border-radius: 3px;
    transition: transform .35s ease, opacity .35s ease;
}
.navbar-toggle .hamburger-line + .hamburger-line { margin-top: 5px; }
.navbar-toggle.open .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.navbar-toggle.open .hamburger-line:nth-child(2) { opacity: 0; }
.navbar-toggle.open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-item a {
    text-decoration: none;
    color: #333;
    font-size: 1.6rem;
    font-weight: 400;
    transition: all 0.3s ease;
    padding: 0.8rem 0;
    border-radius: 0.5rem;
    font-size: 20px;
}

.nav-item a:hover {
    color: #005DBC;
}

.nav-item.active a {
    color: #005DBC;
    font-weight: 500;
}


.app-layout-navbar {
    background: white;
    border-top: 4px solid #0066cc;
    border-bottom: 4px solid #0066cc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.app-layout-navbar .navbar-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-layout-navbar .navbar-logo {
    display: flex;
    align-items: center;
}

.app-layout-navbar .navbar-logo img {
    height: 65px;
    width: auto;
    display: block;
}

.app-layout-navbar .btn-sair {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.8rem;
    background: transparent;
    border: 2px solid #333;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
}

.app-layout-navbar .btn-sair:hover {
    background: #0066cc;
    border-color: #0066cc;
    color: white;
}

.app-layout-navbar .btn-sair svg {
    width: 18px;
    height: 18px;
}

.title-underline {
    max-width: 100%;
    box-sizing: border-box;
}

/* ==========================================
   FOOTER
   ========================================== */
.app-layout-footer {
    background: #1a4570;
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

.app-layout-footer .footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: auto 1fr 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.app-layout-footer .footer-logo {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.app-layout-footer .footer-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-layout-footer .footer-logo-wrapper img {
    height: 65px; 
    width: auto; 
    display: block;
}

.app-layout-footer .footer-column {
    display: flex;
    flex-direction: column;
}

.app-layout-footer .footer-column-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    overflow-wrap: break-word;
    word-break: break-all;
}

.app-layout-footer .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.app-layout-footer .footer-link {
    display: grid; 
    grid-template-columns: 20px 1fr;
    align-items: start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-break: break-all;
}

.app-layout-footer .footer-link:hover {
    color: white;
}

.app-layout-footer .footer-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.page-title {
    overflow-wrap: break-word; 
    box-sizing: border-box;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* Tablets - ajuste de espaçamento */
@media (max-width: 1200px) {
    .navbar-menu {
        gap: 2.5rem;
    }
    
    .nav-item a {
        font-size: 1.4rem;
    }
}

@media (max-width: 1024px) {
    .navbar-container {
        gap: 3rem;
    }
    
    .navbar-menu {
        gap: 2rem;
    }
    
    .nav-item a {
        font-size: 1.3rem;
    }
}

@media (max-width: 992px) {
    .navbar-container {
        position: relative;
        gap: 2rem;
        padding: 0 2rem;
    }
    .app-layout-navbar .navbar-logo img { height: 56px; }
    .navbar-toggle { display: inline-flex; flex-direction: column; justify-content: center; }
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.25rem 1.25rem;
        border-bottom: 3px solid #005DBC;
        box-shadow: 0 0.6rem 1.2rem rgba(0,0,0,.12);
        z-index: 1100;
    }
    .navbar-menu.is-open { display: flex; }
    .nav-item a { font-size: 1.15rem; padding: .6rem 0; }
}

@media (max-width: 768px) {
    .app-layout-navbar .navbar-container {
        flex-direction: row;
        gap: 1.5rem;
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 992px) {
    .app-layout-footer .footer-content {
        grid-template-columns: 1fr !important;
        padding: 2rem 1.5rem;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }

    .app-layout-footer .footer-logo {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .app-layout-footer .footer-logo-wrapper {
        justify-content: center;
    }

    .app-layout-footer .footer-logo-wrapper img {
        height: 70px;
        width: auto;
    }

    .app-layout-footer .footer-column {
        align-items: center;
    }

    .app-layout-footer .footer-link {
        grid-template-columns: 18px 1fr;
        font-size: 0.95rem;
        justify-items: start;
    }
}

@media (max-width: 480px) {
    .app-layout-footer .footer-content {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    .app-layout-footer .footer-logo-wrapper img {
        height: 65px;
    }

    .app-layout-footer .footer-link {
        font-size: 0.9rem;
        grid-template-columns: 16px 1fr;
    }

    .app-layout-navbar .navbar-logo img { height: 54px; }

   
}

@media (max-width: 420px) {
    .app-layout-footer .footer-content {
        grid-template-columns: 1fr !important;
        text-align: left;
        padding: 0.9rem 0.9rem;
        gap: 0.6rem;
    }

    .app-layout-footer .footer-logo {
        justify-content: center;
    }

    .app-layout-footer .footer-column {
        align-items: flex-start;
    }

    .app-layout-footer .footer-column-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        text-align: left;
    }

    .app-layout-footer .footer-link {
        font-size: 0.95rem;
        line-height: 1.35;
        grid-template-columns: 18px 1fr;
        white-space: normal;
        word-break: break-word;
        justify-items: start;
    }

    .app-layout-footer .footer-icon {
        margin-top: 4px;
    }

    .app-layout-footer .footer-column .footer-link[aria-label*="Rua"],
    .app-layout-footer .footer-column .footer-link[href*="maps"] {
        font-size: 0.95rem;
    }
}

