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

:root {
    --blue-900: #1e3a8a;
    --blue-600: #2563eb;
    --yellow-500: #eab308;
    --yellow-400: #facc15;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 50px;
    width: auto;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--blue-900);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--gray-700);
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    min-width: 250px;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 0;
    padding-top: 0.5rem;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.7em;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: var(--gray-100);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* WhatsApp Header Button */
.whatsapp-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.whatsapp-cta-badge {
    display: block !important;
    font-size: 13px;
    color: #1f2937;
    font-weight: 600;
    opacity: 1;
    animation: fadeSlide 3s ease-in-out infinite;
    text-align: right;
    margin-bottom: 6px;
    line-height: 1;
    font-style: italic;
}

@keyframes fadeSlide {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-3px);
    }
}

.whatsapp-header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    white-space: nowrap;
}

.whatsapp-header-btn:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-header-btn svg {
    fill: white;
    flex-shrink: 0;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    height: 100%;
}

.slide {
    display: none;
    position: relative;
    height: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    background: rgba(0,0,0,0.6);
    padding: 3rem 2rem;
    border-radius: 1rem;
    max-width: 800px;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.slide-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--blue-600);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--blue-900);
}

.btn-yellow {
    background: var(--yellow-500);
    color: var(--blue-900);
}

.btn-yellow:hover {
    background: var(--yellow-400);
}

/* Sections */
.py-16 {
    padding: 4rem 0;
}

.py-20 {
    padding: 5rem 0;
}

.bg-gray-50 {
    background: var(--gray-50);
}

.bg-blue-900 {
    background: var(--blue-900);
}

.text-white {
    color: var(--white);
}

/* Hero Sections Específicos */
.bg-blue-900.py-20 {
    padding: 5rem 0;
}

.bg-blue-900.py-20 .container {
    max-width: 1200px;
    padding: 0 2rem;
}

.bg-blue-900 h1,
.bg-blue-900 h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
}

.bg-blue-900 h2 {
    font-size: 2.5rem;
}

.bg-blue-900 p {
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1.2;
}

.font-bold {
    font-weight: 700;
}

.max-w-3xl {
    max-width: 48rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.service-card:hover {
    box-shadow: 0 10px 15px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card ul.space-y-2 li {
    margin-bottom: 0.5rem;
}

.service-card .flex {
    display: flex;
}

.service-card .items-center {
    align-items: center;
}

.service-card .text-green-500 {
    color: #22c55e;
}

.service-card .mr-2 {
    margin-right: 0.5rem;
}

.bg-yellow-50 {
    background-color: #fefce8;
}

/* Utility Classes */
.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-start {
    align-items: flex-start;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.pl-4 {
    padding-left: 1rem;
}

.pl-6 {
    padding-left: 1.5rem;
}

.p-5 {
    padding: 1.25rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.inline-block {
    display: inline-block;
}

.hidden {
    display: none;
}

.sticky {
    position: sticky;
}

.top-4 {
    top: 1rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.leading-relaxed {
    line-height: 1.625;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-900 {
    color: #111827;
}

.hover\:underline:hover {
    text-decoration: underline;
}

.hover\:bg-gray-200:hover {
    background-color: #e5e7eb;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-duration: 200ms;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.text-white {
    color: #ffffff;
}

/* Region Buttons */
.region-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-weight: 500;
    font-size: 0.95rem;
}

.region-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.region-btn.bg-blue-600 {
    border-color: #1e40af;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.region-btn.bg-gray-100:hover {
    background-color: #e5e7eb;
    border-color: #d1d5db;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.text-center {
    text-align: center;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

/* Sidebar */
aside {
    position: relative;
}

aside ul {
    list-style: none;
    padding: 0;
}

aside ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

aside ul li:last-child {
    border-bottom: none;
}

aside a {
    text-decoration: none;
    color: #2563eb;
    transition: color 0.2s;
}

aside a:hover {
    color: #1e40af;
    text-decoration: underline;
}


/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Footer */
footer {
    background: var(--gray-800);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

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

.footer-section a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--yellow-500);
}

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

/* Grid Utilities */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-nav {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 0.5rem;
        align-items: center;
    }
    
    .logo {
        text-align: center;
        order: 2;
    }
    
    .mobile-menu-btn {
        display: block;
        order: 1;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        grid-column: 1 / -1;
        order: 4;
    }

    .nav-menu.active {
        display: flex;
    }
    
    .whatsapp-wrapper {
        order: 3;
        align-self: center;
    }
    
    .whatsapp-cta-badge {
        display: none;
    }
    
    .whatsapp-header-btn {
        padding: 8px 12px;
        font-size: 0;
        gap: 0;
    }
    
    .whatsapp-header-btn span {
        display: none;
    }
    
    .whatsapp-header-btn svg {
        width: 28px;
        height: 28px;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        margin-top: 0;
    }

    .slide-content h1 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .text-5xl {
        font-size: 2rem;
    }
    
    .bg-blue-900 h1 {
        font-size: 2rem;
    }
    
    .bg-blue-900 p {
        font-size: 1rem;
    }
    
    .bg-blue-900.py-20 {
        padding: 3rem 0;
    }
    
    .bg-blue-900.py-20 .container {
        padding: 0 1rem;
    }
}

/* Article Pages */
.article-header {
    background: var(--gray-50);
    padding: 3rem 0;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.article-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

.article-main {
    background: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
}

.article-sidebar {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 0.5rem;
    height: fit-content;
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .article-content {
        grid-template-columns: 1fr;
    }
    
    /* Faz o sidebar aparecer abaixo do conteúdo no mobile */
    .article-layout,
    .container > div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem;
    }
    
    .article-layout main,
    .container > div[style*="grid-template-columns"] main {
        order: 1;
    }
    
    .article-layout aside,
    .container > div[style*="grid-template-columns"] aside {
        order: 2;
        width: 100%;
    }
}
