/* ============================================
   AEAB - Base Public CSS
   Estilos comuns para todas as páginas públicas
   ============================================ */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #f8f9fa;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Skip to Content Link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #791F53;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    font-weight: 600;
    border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid #006239;
    outline-offset: 2px;
}

/* Enhanced Focus Indicators */
*:focus {
    outline: 3px solid #791F53;
    outline-offset: 2px;
}

a:focus,
button:focus {
    outline: 3px solid #791F53;
    outline-offset: 2px;
}

/* Focus visible for keyboard navigation */
*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 3px solid #791F53;
    outline-offset: 2px;
}

/* ============================================
   HEADER CORPORATIVO
   ============================================ */
.corporate-header {
    background: linear-gradient(135deg, #791F53 0%, #006239 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.corporate-header.scrolled {
    padding: 0.7rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-section:hover {
    opacity: 0.85;
}

.logo-section img {
    height: 55px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-section img:hover {
    transform: scale(1.05);
}

.logo-text {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Nav Divider */
.nav-divider {
    width: 1px;
    height: 30px;
    background: rgba(255,255,255,0.3);
    margin: 0 0.5rem;
}

/* Nav Highlight Buttons */
.nav-highlight {
    margin-left: 0.5rem;
}

.nav-highlight a {
    padding: 0.6rem 1.2rem !important;
    border-radius: 25px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.nav-highlight a::after {
    display: none;
}

.btn-senha {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
}

.btn-senha:hover {
    background: white;
    color: #791F53 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-fila {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
}

.btn-fila:hover {
    background: white;
    color: #006239 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.nav-highlight a i {
    font-size: 1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb-nav {
    padding: 1rem 2rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 0.5rem;
    color: #6c757d;
}

.breadcrumb-item a {
    color: #791F53;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #5a0a3a;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* ============================================
   REDUÇÃO DE ESPAÇOS (menos branco)
   ============================================ */
.corporate-section,
section.corporate-section {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}
.section-header {
    margin-bottom: 0.75rem;
}
.page-hero {
    padding: 1.25rem 1rem !important;
}

/* ============================================
   FOOTER CORPORATIVO
   ============================================ */
.corporate-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 1rem 1rem 0.75rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.3rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #791F53 0%, #006239 100%);
}

.footer-about {
    padding-right: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-about p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-column a:hover {
    color: white;
    padding-left: 5px;
}

.footer-column a i.fa-chevron-right {
    font-size: 0.7rem;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: rgba(255,255,255,0.8);
}

.footer-contact li:last-child {
    margin-bottom: 0;
}

.footer-contact i {
    color: #791F53;
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer-contact span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact strong {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-contact .contact-hours,
.footer-contact .response-time {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

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

.footer-contact a:hover {
    color: white;
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
}

.footer-social a:hover {
    background: linear-gradient(135deg, #791F53 0%, #006239 100%);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(121, 31, 83, 0.4);
}

/* Newsletter Section in Footer */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: center;
}

.newsletter-content h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

.newsletter-form {
    width: 100%;
}

.newsletter-input-group {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.9rem 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input[type="email"]:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    outline: none;
}

.btn-newsletter {
    padding: 0.9rem 2rem;
    background: white;
    color: #791F53;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-newsletter:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.newsletter-feedback {
    margin-top: 0.8rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.newsletter-feedback.success {
    display: block;
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.newsletter-feedback.error {
    display: block;
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 0.75rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.footer-bottom p {
    color: rgba(255,255,255,0.7);
    margin: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
}

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

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-links span {
    color: rgba(255,255,255,0.4);
}

.footer-credits {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.footer-credits i {
    color: #e74c3c;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.footer-column h4 i {
    margin-right: 0.5rem;
    color: #791F53;
    font-size: 1rem;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #791F53 0%, #006239 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(121, 31, 83, 0.3);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(121, 31, 83, 0.5);
}

/* ============================================
   MODAL RETIRAR SENHA
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 24px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:hover {
    background: #791F53;
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(135deg, #791F53 0%, #006239 100%);
    color: white;
    border-radius: 24px 24px 0 0;
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.modal-body {
    padding: 2.5rem;
}

.escola-options {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.escola-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.escola-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #791F53 0%, #006239 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.escola-card:hover::before {
    transform: scaleY(1);
}

.escola-card:hover {
    background: white;
    border-color: #791F53;
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(121, 31, 83, 0.15);
}

.escola-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #791F53 0%, #006239 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.escola-card:hover .escola-icon {
    transform: scale(1.1) rotate(5deg);
}

.escola-card h3 {
    font-size: 1.5rem;
    color: #791F53;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.escola-card p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.escola-arrow {
    margin-left: auto;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #791F53;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.escola-card:hover .escola-arrow {
    background: #791F53;
    color: white;
    transform: translateX(5px);
}

.modal-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.modal-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
}

.modal-divider span {
    background: white;
    padding: 0 1rem;
    color: #999;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.qr-code-option {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 16px;
}

.qr-code-option h4 {
    font-size: 1.3rem;
    color: #791F53;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.qr-code-option p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.qr-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.qr-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    background: white;
    color: #791F53;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    border: 2px solid #791F53;
    transition: all 0.3s ease;
}

.qr-btn:hover {
    background: #791F53;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(121, 31, 83, 0.3);
}

/* Responsive - Mobile Menu */
@media (max-width: 968px) {
    .header-container {
        padding: 0 1.5rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1002;
        position: relative;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: linear-gradient(135deg, #791F53 0%, #006239 100%);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
        z-index: 1001;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .nav-highlight {
        margin: 1rem 0 0 0;
    }
    
    .nav-highlight a {
        width: 100%;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-about {
        padding-right: 0;
    }
    
    .footer-newsletter {
        grid-template-columns: 1fr;
    }
}

