:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 15px;
}

.logo-text h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.logo-text p {
    color: var(--text-light);
    font-size: 0.9rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav ul li a:hover {
    color: var(--accent-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('../img/serventia01.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #c0392b;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--light-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    background-color: var(--secondary-color);
    color: white;
    font-size: 2rem;
    padding: 25px;
    text-align: center;
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.service-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.service-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: white;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-content {
    flex: 1;
}

.about-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.about-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.feature-icon {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 3px;
}

/* Quick Links */
.quick-links {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: white;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.quick-link-card {
    text-align: center;
    padding: 30px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: transform 0.3s, background-color 0.3s;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.quick-link-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.quick-link-card h3 {
    margin-bottom: 15px;
}

.quick-link-card a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.quick-link-card a i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.quick-link-card a:hover i {
    transform: translateX(5px);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    grid-column: span 1;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #bdc3c7;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.social-links a {
    display: inline-block;
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--accent-color);
}

.footer-links h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-contact .contact-icon {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

.footer-contact p {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 20px;
        justify-content: center;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .mobile-menu-btn {
        display: block;
        margin-bottom: 20px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
}
/* Service Pages Specific Styles */
.page-header {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('../img/serventia01.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.breadcrumb li {
    margin: 0 10px;
}

.breadcrumb li a {
    color: white;
    text-decoration: none;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 10px;
    color: white;
}

.service-detail {
    padding: 80px 0;
    background-color: white;
}

.service-content {
    max-width: 800px;
    margin: 0 auto;
}

.service-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.service-content h3 {
    color: var(--primary-color);
    margin: 30px 0 15px;
    font-size: 1.4rem;
}

.service-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.service-content ul, .service-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.service-content ul li, .service-content ol li {
    margin-bottom: 10px;
}

.download-box {
    background-color: var(--light-color);
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    margin: 30px 0;
}

.download-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.download-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    margin-right: 20px;
}

.download-link i {
    margin-right: 8px;
}

.info-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    border-left: 4px solid var(--accent-color);
}

.info-box h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
}
/* Loading states */
#header.loading, #footer.loading {
    position: relative;
    min-height: 100px;
}

#header.loading::after, #footer.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.error-message {
    background-color: #ffecec;
    color: #e74c3c;
    padding: 20px;
    text-align: center;
    border: 1px solid #ffc9c9;
    margin: 10px;
    border-radius: 5px;
}

.error-message p {
    margin: 0;
    color: inherit;
}
/* Estilos para a seção de parceiros no footer */
.footer-partners {
    margin-bottom: 30px;
}

.footer-partners h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.partner-logos a {
    display: inline-block;
    transition: opacity 0.3s;
}

.partner-logos a:hover {
    opacity: 0.8;
}

.partner-logos img {
    max-height: 40px;
    width: auto;
    filter: brightness(0) invert(1); /* Transforma os logos em branco */
    opacity: 0.8;
    transition: opacity 0.3s;
}

.partner-logos img:hover {
    opacity: 1;
}

/* Ajustes para responsividade */
@media (max-width: 768px) {
    .partner-logos {
        justify-content: center;
    }
    
    .partner-logos img {
        max-height: 30px;
    }
}
/* Estilos para a seção de parceiros horizontal */
.partners-section {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 15px 0;
}

.partner-logo {
    height: 45px;
    width: auto;
    max-width: 150px;
    filter: grayscale(100%) brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    object-fit: contain;
}

/* Correios precisa de tratamento especial */
.correios-logo {
    padding: 0 15px;
    max-width: 160px;
    height: 50px;
}

.partner-logos a:hover .partner-logo {
    filter: grayscale(0%) brightness(1) invert(0);
    opacity: 1;
    transform: scale(1.1);
}

/* Responsividade */
@media (max-width: 1200px) {
    .partner-logos {
        gap: 30px;
    }
    
    .partner-logo {
        height: 40px;
        max-width: 130px;
    }
    
    .correios-logo {
        max-width: 140px;
        height: 45px;
    }
}

@media (max-width: 992px) {
    .partner-logos {
        gap: 25px;
    }
    
    .partner-logo {
        height: 35px;
        max-width: 110px;
    }
    
    .correios-logo {
        max-width: 120px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .partner-logos {
        gap: 20px;
    }
    
    .partner-logo {
        height: 30px;
        max-width: 90px;
    }
    
    .correios-logo {
        max-width: 100px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    .partner-logos {
        gap: 15px;
    }
    
    .partner-logo {
        height: 25px;
        max-width: 70px;
    }
    
    .correios-logo {
        max-width: 80px;
        height: 30px;
    }
}