:root {
    --primary-dark: #0B2A4A;
    --primary-mid: #133C6D;
    --primary-light: #1A5296;
    --cta-green: #27AE60;
    --cta-green-hover: #219653;
    --highlight-yellow: #FFC107;
    --highlight-yellow-hover: #E0A800;
    --text-light: #FFFFFF;
    --text-dark: #333333;
    --bg-light: #FFFFFF;
    --bg-gray: #F5F5F5;
    --danger-red: #E74C3C;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }
body { color: var(--text-dark); background-color: var(--bg-light); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }


.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.center-text { text-align: center; }
.text-left { text-align: left !important; }
.text-dark { color: var(--text-dark) !important; }
.highlight-text { color: var(--highlight-yellow); }
.danger-text { color: var(--danger-red); }
.cta-text { color: var(--cta-green); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }


.grid { display: grid; gap: 30px; }
.grid-2, .grid-3 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .align-center { align-items: center; }
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}
.btn-green { background-color: var(--cta-green); color: var(--text-light); }
.btn-green:hover { background-color: var(--cta-green-hover); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4); }
.btn-yellow { background-color: var(--highlight-yellow); color: var(--primary-dark); }
.btn-yellow:hover { background-color: var(--highlight-yellow-hover); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4); }
.btn-large { padding: 15px 35px; font-size: 1.1rem; }
.btn-full { width: 100%; }


header {
    background-color: var(--primary-dark);
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}
header.scrolled { padding: 10px 0; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.nav-container { display: flex; justify-content: space-between; align-items: center; color: var(--text-light); }
.logo { font-size: 1.5rem; font-weight: 800; }
.nav-menu ul { display: flex; gap: 20px; }
.nav-menu a:hover { color: var(--highlight-yellow); }

.hamburger { display: none; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 768px) {
    .nav-menu {
        position: absolute; top: 100%; left: -100%; width: 100%;
        background-color: var(--primary-dark); flex-direction: column;
        text-align: center; transition: 0.4s;
    }
    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; padding: 20px 0; }
    .hamburger { display: block; }
    .hidden-mobile { display: none; }
}

.section { padding: 80px 0; }
.section-light { background-color: var(--bg-light); }
.section-gray { background-color: var(--bg-gray); }
.section-dark { background-color: var(--primary-dark); color: var(--text-light); }
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 10px; }
.subtitle { font-size: 1.1rem; margin-bottom: 40px; color: #ccc; }

.hero {
    background: linear-gradient(rgba(11, 42, 74, 0.8), rgba(11, 42, 74, 0.95)), url('../img/img1.jpg') center/cover no-repeat;
    height: 100vh; min-height: 600px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--text-light); padding-top: 60px;
}
.hero h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; color: #ddd; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
}

.card { padding: 40px 30px; border-radius: 15px; text-align: center; transition: var(--transition); }
.card-white { background: var(--bg-light); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.card-dark { background: var(--primary-mid); border: 1px solid rgba(255,255,255,0.1); }
.card:hover { transform: translateY(-10px); }
.icon-wrapper { font-size: 2.5rem; margin-bottom: 20px; }
.card h3 { margin-bottom: 15px; font-size: 1.3rem; }

.sobre-text p { margin-bottom: 20px; font-size: 1.1rem; }
.check-list li { margin-bottom: 15px; font-size: 1.1rem; font-weight: 600; }
.check-list i { margin-right: 10px; }
.metrics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.metric-card { background: var(--bg-light); padding: 20px; border-radius: 10px; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.metric-number { font-size: 2.5rem; font-weight: 800; }

.project-card { background: var(--bg-light); border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: var(--transition); }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.project-img { height: 220px; background-size: cover; background-position: center; transition: transform 0.5s; }
.project-card:hover .project-img { transform: scale(1.05); }
.project-content { padding: 25px; position: relative; background: var(--bg-light); z-index: 2; }
.stars { margin-bottom: 10px; }
.review { font-style: italic; margin-bottom: 15px; font-size: 0.95rem; }
.author { font-size: 0.9rem; color: #666; }

.chart-container { background: var(--primary-mid); padding: 20px; border-radius: 15px; max-width: 800px; margin: 0 auto; box-shadow: 0 15px 30px rgba(0,0,0,0.2); }

.simulator-box { max-width: 500px; margin: 0 auto; background: var(--bg-light); padding: 40px; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; font-weight: 600; margin-bottom: 10px; }
.input-prefix { display: flex; align-items: center; border: 2px solid #ddd; border-radius: 8px; overflow: hidden; }
.input-prefix span { background: #eee; padding: 15px; font-weight: bold; color: #555; }
.input-prefix input { border: none; padding: 15px; width: 100%; font-size: 1.1rem; outline: none; }
.input-prefix input:focus { background: #fdfdfd; }
.resultado-box { margin-top: 30px; background: var(--bg-gray); padding: 20px; border-radius: 10px; border-left: 5px solid var(--cta-green); }
.res-item:not(:last-child) { margin-bottom: 15px; }
.hide { display: none; }

.final-cta { background: linear-gradient(to top, rgba(255,255,255,1), var(--bg-gray)); padding-bottom: 120px; }
.pulse-anim { animation: pulse 2s infinite; }

footer { background: var(--primary-dark); color: #ccc; padding: 50px 0 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-logo { font-size: 1.5rem; font-weight: bold; color: white; }
.footer-logo p { font-size: 0.9rem; margin-top: 10px; font-weight: normal; color: #888; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--highlight-yellow); }
.footer-contact h4, .footer-links h4 { color: white; margin-bottom: 15px; }

.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; overflow: auto; background-color: rgba(11, 42, 74, 0.8);
    align-items: center; justify-content: center; opacity: 0; transition: opacity 0.4s ease;
}
.modal.show { display: flex; opacity: 1; }
.modal-content {
    background-color: var(--bg-light); padding: 40px; border-radius: 20px;
    max-width: 450px; width: 90%; text-align: center; position: relative;
    transform: translateY(-50px); transition: transform 0.4s ease;
}
.modal.show .modal-content { transform: translateY(0); }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #999; }
.close-btn:hover { color: var(--text-dark); }
.modal-icon { font-size: 3rem; margin-bottom: 15px; }
.modal-content h2 { margin-bottom: 15px; color: var(--primary-dark); }
.close-btn-text { margin-top: 15px; font-size: 0.9rem; color: #777; cursor: pointer; text-decoration: underline; }

.fade-in { opacity: 0; transform: translateY(30px); animation: fadeIn 0.8s ease forwards; }
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(39, 174, 96, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ---- Subtitle dark (seção gray) ---- */
.subtitle-dark { font-size: 1.1rem; margin-bottom: 10px; color: #555; }

/* ---- Título separador de depoimentos ---- */
.depoimentos-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 3rem;
    margin-bottom: 0;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

/* ---- Cards técnicos dos projetos PDF ---- */
.mb-4 { margin-bottom: 2.5rem; }

.tech-project-card {
    background: var(--bg-light);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.10);
    transition: var(--transition);
    position: relative;
    border: 1px solid #eaeaea;
}
.tech-project-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.15); }

.tech-project-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
    background: var(--primary-dark);
    color: var(--highlight-yellow);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.tech-project-card .project-img {
    height: 200px;
}

.tech-project-content {
    padding: 25px;
}

.tech-project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tech-project-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.tech-type-badge {
    background: rgba(39, 174, 96, 0.12);
    color: var(--cta-green);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid rgba(39,174,96,0.25);
}

.tech-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 22px;
}

.tech-spec {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-gray);
    padding: 12px;
    border-radius: 10px;
}
.tech-spec i {
    font-size: 1.2rem;
    flex-shrink: 0;
}
.tech-spec div {
    display: flex;
    flex-direction: column;
}
.tech-spec strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}
.tech-spec span {
    font-size: 0.72rem;
    color: #777;
    line-height: 1.3;
}

.tech-economy-bar {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
    border-radius: 12px;
    padding: 16px 20px;
    gap: 0;
}
.eco-item {
    flex: 1;
    text-align: center;
}
.eco-item p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 4px;
}
.eco-item h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--highlight-yellow);
}
.eco-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    margin: 0 10px;
}

@media (max-width: 768px) {
    .tech-specs-grid { grid-template-columns: 1fr; }
    .tech-project-header { flex-direction: column; }
    .eco-item h4 { font-size: 1rem; }
}