/* Reset and Base Styles */
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}

.logo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero {
    position: relative;
    color: var(--color-white);
    padding: 5rem 0;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    /* overlay using primary color to match brand */
    background: linear-gradient(180deg, rgba(0,41,107,0.55), rgba(0,41,107,0.4));
    z-index: 1;
}
:root {
    --color-primary: #00296b;
    --color-secondary: #e82139;
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;

    --color-blue-50: #eff6ff;
    --color-blue-100: #dbeafe;
    --color-blue-900: #1e3a8a;

    --color-red-50: #fef2f2;
    --color-red-100: #fee2e2;

    --color-green-100: #dcfce7;
    --color-green-500: #22c55e;
    --color-green-800: #166534;

    --color-yellow-100: #fef3c7;
    --color-yellow-800: #854d0e;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius: 0.5rem;
    --radius-lg: 0.75rem;
}

/* Reset and Box Sizing - ADD THIS */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--color-gray-900);
    background-color: var(--color-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.main-content {
    flex: 1;
}

/* Typography */
h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
}

h2 {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

p {
    font-size: 1rem;
    line-height: 1.75;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.75rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
}

/* Header */
.header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--color-gray-200);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}



.logo-text {
    margin-left: 0.25rem;
    font-weight: 600;
    color: var(--color-primary);
    display: none;
}

@media (max-width: 639px) {
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    .logo-text {
        display: none;
    }
}

@media (min-width: 640px) {
    .logo-icon {
        width: 48px;
        height: 48px;
    }
    .logo-text {
        display: inline-block;
    }
}

@media (min-width: 640px) {
    .logo-text {
        display: block;
    }
}

/* Navigation */
.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    background: none;
    border: none;
    color: var(--color-gray-700);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    font-family: inherit;
}

.nav-item:hover {
    color: var(--color-primary);
    background-color: var(--color-gray-50);
}

.nav-item.active {
    color: var(--color-secondary);
    background-color: var(--color-red-50);
}

.nav-item i {
    width: 1rem;
    height: 1rem;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn i {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-gray-600);
}

.nav-mobile {
    padding: 1rem 0;
    border-top: 1px solid var(--color-gray-200);
}

.nav-mobile-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    background: none;
    border: none;
    color: var(--color-gray-700);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-size: 1rem;
    font-family: inherit;
}

.nav-item-mobile:hover {
    color: var(--color-primary);
    background-color: var(--color-gray-50);
}

.nav-item-mobile.active {
    color: var(--color-secondary);
    background-color: var(--color-red-50);
}

.nav-item-mobile i {
    width: 1rem;
    height: 1rem;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    margin-top: auto;
}

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

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.footer-description {
    color: var(--color-blue-100);
    font-size: 0.875rem;
    line-height: 1.5;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-blue-100);
    font-size: 0.875rem;
}

.footer-links li i {
    width: 1rem;
    height: 1rem;
}

.footer-links a {
    color: var(--color-blue-100);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-newsletter-text {
    color: var(--color-blue-100);
    font-size: 0.875rem;
}

.footer-newsletter-form {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    flex-wrap: wrap; /* Permite quebra em telas pequenas */
    width: 100%; /* Garante que não ultrapasse o container */
}


.footer-newsletter-form input {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%; /* Evita overflow */
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-blue-100);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-size: 0.875rem;
    box-sizing: border-box; /* Inclui padding na largura total */
}


.footer-newsletter-form input::placeholder {
    color: var(--color-blue-100);
}

.footer-newsletter-form button {
    flex-shrink: 0; /* Impede que o botão encolha demais */
    padding: 0.5rem 0.75rem;
    background-color: var(--color-secondary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}


.footer-newsletter-form button:hover {
    background-color: #c71d31;
}

.footer-newsletter-form button i {
    width: 1rem;
    height: 1rem;
}

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

/* Mobile tweaks: stack newsletter form to avoid overflow and reduce footer padding */
@media (max-width: 420px) {
    .footer-content {
        padding: 2rem 0;
        gap: 1rem;
    }

    .footer-newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .footer-newsletter-form input {
        width: 100%;
    }

    .footer-newsletter-form button {
        width: 100%;
        padding: 0.6rem 0.75rem;
        border-radius: var(--radius);
    }
}

.footer-bottom p {
    color: var(--color-blue-100);
    font-size: 0.875rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

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

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

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

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

.mt-8 {
    margin-top: 2rem;
}

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

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.hidden {
    display: none;
}

/* Footer contact link tweaks */
.footer-links a {
    color: var(--color-blue-100);
}

/* Show 'WhatsApp' label on very small screens next to the phone link */
@media (max-width: 420px) {
    .phone-link::after {
        content: ' WhatsApp';
        color: var(--color-blue-100);
        font-weight: 600;
    }
}

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.loading::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-gray-200);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

