:root {
    --primary-navy: #00204E;
    --accent-red: #E31837;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --text-main: #2D3436;
    --text-muted: #636E72;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--white);
    overflow-x: hidden;
}

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

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 15px;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--accent-red);
    margin: 0 auto;
    border-radius: 2px;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-navy);
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent-red);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: var(--accent-red);
}

.nav-cta {
    background: var(--primary-navy);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
}

.nav-cta:hover {
    background: var(--accent-red);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--white);
    text-align: center;
    background: linear-gradient(rgba(0, 32, 78, 0.7), rgba(0, 32, 78, 0.5)),
        url('banner.jpg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    padding: 0 2rem;
}

.hero-badge {
    background: rgba(227, 24, 55, 0.2);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: transparent;
    color: var(--accent-red);
    border: 2px solid var(--accent-red);
}

.btn-primary:hover {
    background: var(--accent-red);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(227, 24, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-navy);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* About Section */
.about {
    background: var(--light-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat-item {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-left: 5px solid var(--accent-red);
}

.stat-number {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-weight: 500;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    padding: 40px 30px;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--accent-red);
    transform: scaleY(0);
    transition: var(--transition);
    transform-origin: bottom;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 32, 78, 0.1);
    border-color: rgba(230, 0, 0, 0.2);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--primary-navy);
}

.service-card:hover .service-icon {
    background: var(--accent-red);
}

.service-card:hover .service-icon i {
    color: var(--white);
}

.service-intro {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-intro p {
    margin-bottom: 8px;
    line-height: 1.4;
}

.simple-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.simple-list li {
    margin-bottom: 6px;
    padding-left: 15px;
    position: relative;
    font-size: 0.85rem;
}

.simple-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-red);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-navy);
    font-size: 1.15rem;
    height: 3.5rem;
    display: flex;
    align-items: flex-start;
    line-height: 1.2;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Process Section */
.process {
    background: var(--primary-navy);
    color: var(--white);
}

.process h2 {
    color: var(--white);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 60px;
    align-items: start;
}

.step-item {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.step-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: -45px;
    left: 0;
    line-height: 1;
}

.step-item h4 {
    font-size: 1.15rem;
    /* Slightly smaller to fit better */
    margin-bottom: 15px;
    position: relative;
    height: 3.5rem;
    /* Level the top of all titles */
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    line-height: 1.3;
}

.step-item p {
    font-size: 0.95rem;
    opacity: 0.8;
}

.service-list,
.step-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.service-list li,
.step-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}

.service-list li::before,
.step-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-size: 0.8rem;
}

.process .step-list li {
    color: rgba(255, 255, 255, 0.8);
}

.process .step-list li::before {
    color: var(--white);
    opacity: 0.6;
}

/* Contact Section */
.contact-box {
    background: var(--white);
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.contact-info {
    background: var(--primary-navy);
    color: var(--white);
    padding: 60px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-details i {
    margin-right: 15px;
    color: var(--accent-red);
}

.contact-form {
    padding: 60px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form button {
    width: 100%;
}

/* Footer */
.footer-main {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #eee;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 100;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: #333;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    white-space: nowrap;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

.footer-link {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Impact Section (Reformulada) */
.impact-section {
    padding: 100px 0;
    background: var(--primary-navy);
    color: var(--white);
    overflow: hidden;
}

.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.impact-content h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--white);
}

.impact-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
}

.impact-visual {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    height: 500px;
}

.impact-carousel {
    width: 100%;
    height: 100%;
}

.impact-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.6);
    opacity: 0.8;
    z-index: 1;
}

.impact-slide img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.impact-slide.active {
    opacity: 1;
}

@media (max-width: 992px) {
    .impact-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .impact-content p {
        margin: 0 auto;
    }

    .impact-visual {
        height: 400px;
    }
}

.social-links-contact {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    align-items: center;
}

.social-links-contact a {
    color: var(--accent-red);
    /* Using accent color for brand consistency */
    font-size: 1.8rem;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links-contact a:hover {
    color: var(--white);
    transform: scale(1.1);
}

/* Reveal Animation Base Styles */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Reveals */
.reveal:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal:nth-child(3) {
    transition-delay: 0.3s;
}

.reveal:nth-child(4) {
    transition-delay: 0.4s;
}

.reveal:nth-child(5) {
    transition-delay: 0.5s;
}

/* Service Card Specific Button */
.btn-service-modal {
    margin-top: auto;
    background: var(--primary-navy);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-start;
}

.btn-service-modal:hover {
    background: var(--accent-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 32, 78, 0.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 32, 78, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent-red);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 15px;
}

.modal-header i {
    font-size: 2rem;
    color: var(--accent-red);
}

.modal-header h3 {
    color: var(--primary-navy);
    font-size: 1.5rem;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.modal-body p {
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 1.05rem;
}

.modal-subtitle {
    margin: 25px 0 10px;
    color: var(--primary-navy);
    font-weight: 700;
    font-size: 1.1rem;
    border-left: 3px solid var(--accent-red);
    padding-left: 10px;
}

.modal-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.modal-list li {
    margin-bottom: 10px;
    padding-left: 5px;
    color: var(--text-muted);
}

.modal-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--light-bg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
    }

    .modal-header h3 {
        font-size: 1.2rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}


::-webkit-scrollbar-track {
    background: var(--primary-navy);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 6px;
    border: 3px solid var(--primary-navy);
}

::-webkit-scrollbar-thumb:hover {
    background: #ff4d4d;
}

/* Base scrollbar for Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-red) var(--primary-navy);
}

/* Pesquisa e Conhecimento */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.knowledge-card {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid var(--light-bg);
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.knowledge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-red);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.knowledge-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 32, 78, 0.1);
    border-color: rgba(230, 0, 0, 0.2);
}

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

.knowledge-icon {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.knowledge-icon i {
    font-size: 1.8rem;
    color: var(--primary-navy);
}

.knowledge-card:hover .knowledge-icon {
    background: var(--accent-red);
}

.knowledge-card:hover .knowledge-icon i {
    color: var(--white);
}

.knowledge-card h4 {
    color: var(--primary-navy);
    font-size: 1.25rem;
    font-weight: 700;
}

.knowledge-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.knowledge-card .learn-more {
    margin-top: auto;
    color: var(--accent-red);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

.knowledge-card:hover .learn-more {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {

    .services-grid,
    .knowledge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-box {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .services-grid,
    .knowledge-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }
}

/* Form Status Messages */
.form-message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    animation: fadeIn 0.4s ease-out;
}

.form-message.success {
    display: block;
    background-color: rgba(37, 211, 102, 0.1);
    border: 1px solid #25d366;
    color: #128c7e;
}

.form-message.error {
    display: block;
    background-color: rgba(227, 24, 55, 0.1);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
}

.form-message a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Honeypot field - hidden from users but visible to bots */
.hp-field {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}