@import url('https://fonts.googleapis.com/css2?family=Stardos+Stencil:wght@400;700&family=Chivo:ital,wght@0,300;0,400;0,700;1,400&display=swap');

:root {
    --c-black: #0A0A0A;
    --c-black-light: #151515;
    --c-neutral-dark: #222222;
    --c-red: #801715;
    --c-red-hover: #5d110f;
    --c-white: #FFFFFF;
    --c-gray-text: #A0A0A0;
    --c-gray-light: #EDEDED;

    --font-heading: 'Stardos Stencil', cursive;
    --font-body: 'Chivo', sans-serif;

    --transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

h1, h2, h3, h4, h5, h6 {
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

html {
}

body {
    background-color: var(--c-black);
    color: var(--c-gray-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Efeito de Grão Sutil */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

/* CUSTOM CURSOR */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 1px solid var(--c-red);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease-out, background-color 0.3s ease;
    transform: translate(-50%, -50%);
    display: none;
}

@media (pointer: fine) {
    .custom-cursor {
        display: block;
    }
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(2.5);
    background-color: rgba(128, 23, 21, 0.1);
    border-width: 1.5px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.1;
    color: var(--c-white);
    letter-spacing: -0.02em;
}

h2 span, h1 span {
    color: var(--c-red);
    position: relative;
    display: inline-block;
}

p {
    font-size: 1.1rem;
    color: var(--c-gray-text);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* LAYOUT UTILS */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 6%; /* Aumentado para dar mais respiro nas bordas */
}

.section-header {
    margin-bottom: 4rem;
    max-width: 800px;
}
.section-header.center {
    margin: 0 auto 4rem auto;
    text-align: center;
}
.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

/* BADGE */
.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(128, 23, 21, 0.1);
    color: var(--c-red);
    border: 1px solid rgba(128, 23, 21, 0.3);
    font-family: var(--font-body);
    font-size: 0.75rem; /* Reduzido de 0.8rem */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px; /* Reduzido de 2px */
    margin-bottom: 1rem;
    border-radius: 2px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--c-red);
    color: var(--c-white) !important;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn-primary:hover {
    background-color: var(--c-red-hover);
    transform: translateY(-2px);
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.btn-primary:hover::after {
    left: 100%;
}

.btn-outline {
    background-color: transparent;
    color: var(--c-white) !important;
    border: 1px solid var(--c-white);
}
.btn-outline:hover {
    background-color: var(--c-white);
    color: var(--c-black) !important;
}

.btn-large {
    padding: 1rem 2.2rem; /* Reduzido de 1.25rem 2.5rem */
    font-size: 1rem;
}
.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}
.btn-block {
    width: 100%;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0; /* Padding harmonizado */
    z-index: 100;
    background: rgba(10, 10, 10, 0.85); /* Voltou ao 0.85 original */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-minimal {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo-minimal img {
    height: 72px; /* Reduzido de 100px para 72px para o tamanho ideal */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    display: block;
}
.logo-minimal:hover img {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}
.nav-links a {
    color: var(--c-white) !important; /* Força o branco contra o azul padrão */
    font-weight: 500;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
}
.nav-links a:hover {
    color: var(--c-red) !important;
}

/* HERO MODERNIZADA */
.hero {
    position: relative;
    height: auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px; /* Mais respiro para evitar que a navbar cubra ou corte o conteúdo */
    background: radial-gradient(circle at 70% 30%, rgba(217, 4, 41, 0.05) 0%, transparent 50%), var(--c-black);
    overflow: hidden;
}

.hero-bg-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.04;
    z-index: 0;
    pointer-events: none;
    max-width: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr; /* Mais espaço horizontal para o texto */
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(1.8rem, 4.5vw, 3.5rem); /* Redução agressiva para evitar cortes */
    margin-bottom: 1rem;
    max-width: 900px;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    max-width: 380px; /* Reduzido consideravelmente */
    margin-left: auto;
}
.image-wrapper {
    position: relative;
    z-index: 1;
}
.hero-img-main {
    width: 100%;
    height: auto;
    clip-path: polygon(15% 0%, 100% 0, 100% 100%, 0% 100%);
    display: block;
    filter: contrast(1.05) saturate(0.9);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.red-block-accent {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 1.5rem; /* Reduzido de 2rem */
    left: -1.5rem; /* Reduzido de -2rem */
    background-color: var(--c-red);
    z-index: -1;
    clip-path: polygon(15% 0%, 100% 0, 100% 100%, 0% 100%);
}

.hero-bottom-cut {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 10vh;
    background: var(--c-black-light);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* SOBRE NÓS */
.sobre {
    background-color: var(--c-black-light);
    padding: 4rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.sobre::before {
    content: "ENGINEERING";
    position: absolute;
    top: 5rem;
    right: -2rem;
    font-family: var(--font-heading);
    font-size: 15vw;
    color: rgba(255,10,10,0.02);
    font-weight: 900;
    pointer-events: none;
    z-index: 0;
}
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem; /* Reduzido de 8rem */
    align-items: center;
    position: relative;
    z-index: 1;
}
.sobre-visual {
    position: relative;
    padding: 1.5rem;
}
.sobre-visual::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    border-top: 2px solid var(--c-red);
    border-left: 2px solid var(--c-red);
}
.sobre-visual img {
    width: 100%;
    max-height: 62vh; /* Reduzido de 70vh para garantir que o card flutuante não seja cortado */
    aspect-ratio: 1 / 1.25;
    object-fit: cover;
    border-radius: 2px;
    filter: brightness(0.8) contrast(1.1);
    transition: var(--transition);
    box-shadow: 20px 20px 40px rgba(0,0,0,0.4);
}
.sobre-visual:hover img {
    filter: brightness(1) contrast(1);
    transform: scale(1.02);
}
.sobre-accent-card {
    position: absolute;
    bottom: -2rem; /* Em vez do bottom 0 + 50% translade drasticamente */
    right: 2rem;
    background-color: var(--c-red);
    color: var(--c-white);
    padding: 1.5rem; /* Reduzido de 2.5rem 2rem */
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    gap: 0.75rem; /* Reduzido de 1.25rem */
    box-shadow: 0 40px 80px rgba(217, 4, 41, 0.25);
    z-index: 2;
    min-width: 180px;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px); /* Recorte industrial sofisticado */
}
.sobre-accent-card i {
    font-size: 2.2rem;
    opacity: 0.9;
}
.sobre-accent-card span {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.1;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}
.sobre-accent-card span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

.sobre-content h2 {
    font-size: clamp(2rem, 4vw, 3rem); /* Reduzido de 3.5rem */
    margin-bottom: 1.5rem;
}

.sobre-list {
    list-style: none;
    margin-top: 2.5rem;
}
.sobre-list li {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    font-size: 1.15rem;
    color: var(--c-white);
}
.sobre-list i {
    color: var(--c-red);
    font-size: 1.6rem;
}

/* ÁREAS DE ATUAÇÃO (Split Design) */
.areas-atuacao {
    background-color: var(--c-black);
    overflow: hidden;
}
.areas-split {
    display: flex;
    min-height: 90vh;
    padding: 0;
}
.active-area-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease, filter 1.2s ease, opacity 0.4s ease;
    filter: brightness(0.6) grayscale(0.5);
    opacity: 1;
}
.areas-visual {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: var(--c-black);
}
.areas-visual:hover .active-area-img {
    filter: brightness(0.8) grayscale(0);
    transform: scale(1.05);
}
.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, var(--c-black) 100%);
    z-index: 1;
}

.areas-nav-container {
    width: 45%;
    padding: 6rem 6%;
    background-color: var(--c-black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.areas-menu {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}
.area-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.03);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    background: rgba(255,255,255,0.01);
}
.area-menu-item:hover, .area-menu-item.active {
    background: rgba(217, 4, 41, 0.04);
    border-color: rgba(217, 4, 41, 0.4);
    transform: translateX(15px);
}
.area-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--c-red);
    opacity: 0.5;
    font-weight: 700;
}
.area-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}
.area-info p {
    font-size: 1rem;
    margin-bottom: 0;
    max-width: 350px;
    opacity: 0.6;
    transition: var(--transition);
}
.area-menu-item.active .area-num { opacity: 1; }
.area-menu-item.active h3 { color: var(--c-red); }
.area-menu-item.active p { opacity: 1; }

/* SERVIÇOS STACKED (Restaurado) */
.servicos {
    padding: 7rem 0;
    background-color: var(--c-black-light);
}
.servicos-wrapper {
    display: grid;
    grid-template-columns: 4fr 6fr; 
    gap: 6rem;
    align-items: start;
}
.servicos-sidebar {
    position: sticky;
    top: 140px; 
    padding-bottom: 5rem;
}
.servicos-sidebar h2 {
    font-size: clamp(2rem, 4.5vw, 3rem); /* Reduzido de 3.8rem para harmonizar com as demais seções */
    margin-bottom: 1.5rem;
}
.servicos-lista {
    position: relative;
    width: 100%;
    padding-bottom: 10vh; /* Reduzido de 30vh para evitar espaço excessivo */
}
.servico-item {
    background-color: var(--c-black);
    padding: 4rem;
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 6px solid var(--c-red);
    display: flex;
    gap: 3rem;
    margin-bottom: 25vh; 
    position: sticky;
    top: 150px; /* Aumentado de 120px para dar mais respiro em relação ao topo */
    transition: transform 0.4s ease, opacity 0.4s ease;
    border-radius: 16px;
    box-shadow: 0 50px 100px rgba(0,0,0,1);
    z-index: 1;
}

/* Z-Index progressivo para garantir sobreposição correta */
.servico-item:nth-child(1) { z-index: 1; }
.servico-item:nth-child(2) { z-index: 2; }
.servico-item:nth-child(3) { z-index: 3; }
.servico-item:nth-child(4) { z-index: 4; }
.servico-item:nth-child(5) { z-index: 5; }
.servico-item:nth-child(6) { z-index: 6; }
.servico-item:nth-child(7) { z-index: 7; }
.servico-item:nth-child(8) { z-index: 8; }

.servico-item:hover {
    border-color: var(--c-red);
}

.servico-item:last-child {
    margin-bottom: 4vh; /* Reduzido de 10vh para aproximar ainda mais */
}
.servico-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: transparent;
    -webkit-text-stroke: 1px var(--c-gray-text);
    font-weight: 700;
    line-height: 1;
}
.servico-text h3 {
    font-size: 1.8rem; /* Reduzido de 2.2rem para harmonizar com outras seções */
    margin-bottom: 0.8rem;
}
.servico-text p {
    font-size: 1.1rem; /* Reduzido de 1.2rem */
    margin-bottom: 0;
}
@media (max-width: 1024px) {
    .servicos-wrapper { grid-template-columns: 1fr; gap: 4rem; }
    .servicos-sidebar { position: static; }
    .servico-item { position: static; margin-bottom: 2rem; }
}

/* DIFERENCIAIS (Blueprint Style) */
.diferenciais {
    padding: 2rem 0; /* Ajustado para mais respiro vertical dinâmico */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--c-black-light);
    position: relative;
    overflow: hidden;
}
.blueprint-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
}
.blueprint-item {
    position: relative;
    padding: 4rem 3rem; /* Reduzido de 6rem 4rem */
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(10,10,10,0.4);
    overflow: hidden;
    transition: var(--transition);
}
.blueprint-item:hover {
    background: rgba(217, 4, 41, 0.05);
    border-color: rgba(217, 4, 41, 0.2);
    transform: translateY(-5px);
}
.blueprint-item:hover .bp-num {
    opacity: 0.1;
    color: var(--c-red);
    transform: scale(1.1) translate(-10px, 10px);
}
.bp-num {
    position: absolute;
    top: -10%;
    right: -5%;
    font-size: 10rem;
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--c-white);
    opacity: 0.03;
    z-index: 1;
    pointer-events: none;
    transition: all 0.6s ease;
}
.bp-content {
    position: relative;
    z-index: 2;
}
.bp-content h4 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--c-red);
}
.bp-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* BLUEPRINT LINES */
.bp-icon {
    font-size: 2.5rem;
    color: var(--c-red);
    margin-bottom: 1.5rem;
    display: block;
    position: relative;
    z-index: 2;
    opacity: 0.8;
}
.bp-line {
    position: absolute;
    background-color: rgba(128, 23, 21, 0.1);
    z-index: 0;
    pointer-events: none;
}
.bp-line-v {
    width: 1px;
    height: 100%;
    left: 50%;
    top: 0;
}
.bp-line-h {
    height: 1px;
    width: 100%;
    top: 50%;
    left: 0;
}

.blueprint-item:hover {
    background: rgba(217, 4, 41, 0.08); /* Brilho mais intenso */
    border-color: rgba(217, 4, 41, 0.4);
    transform: translateY(-5px);
    box-shadow: inset 0 0 30px rgba(217, 4, 41, 0.1);
}
.blueprint-item:hover .bp-num {
    opacity: 0.08; /* Número mais visível no hover conforme layout.md */
    color: var(--c-red);
    transform: scale(1.1) translate(-10px, 10px);
}

/* Responsividade de Alinhamento */
@media (max-width: 1024px) {
    .areas-split { flex-direction: column; }
    .areas-visual { height: 400px; order: 2; }
    .areas-nav-container { width: 100%; order: 1; padding: 6rem 6%; }
    .visual-overlay { background: linear-gradient(to bottom, transparent 0%, var(--c-black) 100%); }
    .blueprint-container { grid-template-columns: 1fr; }
}

/* PROVA SOCIAL */
.prova-social {
    padding: 6rem 0;
    background: linear-gradient(to top, var(--c-black-light), var(--c-black));
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 5rem 0;
}
.stat-item {
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child {
    border-right: none;
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--c-red);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.8rem;
}
.stat-label {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 500;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.testimonial-card {
    background-color: var(--c-black-light);
    padding: 3.5rem 2.5rem;
    position: relative;
    border: 1px solid rgba(255,255,255,0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}
.testimonial-card::before {
    content: "“";
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 5rem;
    font-family: var(--font-heading);
    color: var(--c-red);
    opacity: 0.1;
}
.testimonial-card:hover {
    border-color: var(--c-red);
    background-color: var(--c-black);
}
.stars {
    color: var(--c-red);
    margin-bottom: 1.8rem;
    font-size: 1.3rem;
}
.testimonial-card blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--c-white);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}
.author {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.author-avatar {
    width: 60px;
    height: 60px;
    background-color: var(--c-black);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--c-red);
    font-size: 1.8rem;
}
.author-info strong {
    display: block;
    color: var(--c-white);
    font-size: 1.1rem;
}
.author-info span {
    font-size: 0.9rem;
    color: var(--c-gray-text);
}

/* CONTATO E FINAL CTA */
.contato {
    padding: 8rem 0;
    background-color: var(--c-black);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.final-cta-wrapper {
    position: relative;
    z-index: 2;
    max-width: 900px !important;
}
.final-cta-wrapper h2 {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 2rem;
}
.final-cta-wrapper p {
    font-size: 1.3rem;
    margin: 0 auto 4rem auto;
    max-width: 700px;
}

.final-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.btn-glow {
    box-shadow: 0 0 30px rgba(217, 4, 41, 0.4);
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 20px rgba(217, 4, 41, 0.3); }
    50% { box-shadow: 0 0 50px rgba(217, 4, 41, 0.6); }
    100% { box-shadow: 0 0 20px rgba(217, 4, 41, 0.3); }
}

.direct-contact-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.contact-link {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 2.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: var(--transition);
    color: var(--c-white) !important;
}
.contact-link i {
    font-size: 1.8rem;
    color: var(--c-red);
}
.contact-link:hover {
    background: rgba(217, 4, 41, 0.05);
    border-color: var(--c-red);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(217, 4, 41, 0.2);
}
@media (max-width: 991px) {
    .direct-contact-grid {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .contact-link {
        width: 100%;
        justify-content: center;
    }
}

.cta-visual-elements {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(217, 4, 41, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(60px);
}

.footer {
    background: rgba(10, 10, 10, 0.6); /* Cor base preta semi-transparente */
    padding: 6rem 0 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: relative;
    z-index: 10;
}
.footer-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
}
.footer-logo img {
    height: 58px;
    width: auto;
    margin: 0 auto;
}
.footer-slogan {
    font-size: 1.1rem;
    color: var(--c-white);
    max-width: 500px;
    margin: 0;
    opacity: 0.7;
    line-height: 1.5;
}
.footer-bottom {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 3rem;
    width: 100%;
    justify-content: center;
}
.footer-email {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--c-gray-text);
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-email i {
    color: var(--c-red);
}
.footer-email:hover {
    color: var(--c-white);
}
.footer-separator {
    color: rgba(255,255,255,0.1);
}
.footer-copyright {
    color: var(--c-gray-text);
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
    .footer-separator {
        display: none;
    }
}

/* RESPONSIVENESS REFINADA */
@media (max-width: 1200px) {
    .container { padding: 0 4%; }
    .hero-text h1 { font-size: 3.2rem; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-ctas { justify-content: center; }
    .hero-visual { max-width: 500px; margin: 3rem auto 0; }
}

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .sobre-grid, .servicos-wrapper, .contato-grid { grid-template-columns: 1fr; gap: 4rem; }
}

@media (max-width: 768px) {
    /* GLOBAL MOBILE REFINADO */
    html, body { overflow-x: hidden; width: 100%; position: relative; font-size: 16px; }
    .container { padding: 0 6%; }
    
    /* SECTION HEADERS */
    .section-header { margin-bottom: 2.5rem; text-align: center; }
    .section-header h2 { font-size: 2rem; line-height: 1.2; }
    .badge { margin-bottom: 1rem; font-size: 0.75rem; padding: 6px 14px; }

    /* HERO MOBILE (Fluido e Impactante) */
    .hero {
        padding: 100px 0 60px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        text-align: center;
    }
    .hero-content { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-text h1 { font-size: 2.4rem; margin-bottom: 1rem; line-height: 1.2; }
    .hero-text p { font-size: 1.05rem; margin-bottom: 2rem; line-height: 1.5; color: var(--c-gray-text); }
    .hero-ctas { gap: 1rem; flex-direction: column; width: 100%; }
    .hero-ctas .btn { width: 100%; padding: 1rem; font-size: 1rem; }
    .hero-visual { max-width: 320px; margin: 1.5rem auto 0; }
    .hero-bottom-cut { display: block; height: 5vh; }

    /* SOBRE MOBILE (Harmonioso e Legível) */
    .sobre { min-height: auto; padding: 80px 0; display: block; }
    .sobre-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .sobre-content h2 { font-size: 2rem; margin-bottom: 1.5rem; }
    .sobre-content p { font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.5rem; } /* Maior line-height */
    .sobre-visual { order: -1; margin-bottom: 2rem; }
    .sobre-visual img { max-height: 40vh; width: 100%; object-fit: cover; border-radius: 12px; }
    .sobre-accent-card { right: 1rem; bottom: -1rem; padding: 1.2rem; min-width: 160px; z-index: 10; }
    .sobre-accent-card i { font-size: 1.8rem; }
    .sobre-accent-card span { font-size: 1rem; }
    .sobre-list { margin-top: 2.5rem; }
    .sobre-list li { font-size: 1.05rem; gap: 1rem; margin-bottom: 1.2rem; align-items: flex-start; }
    .sobre-list i { font-size: 1.2rem; margin-top: 6px; } /* Ajustado para alinhar perfeitamente com a primeira linha de texto */

    /* ÁREAS MOBILE (Sequencial e Funcional) */
    .areas-atuacao { min-height: auto; padding: 80px 0; }
    .areas-split { flex-direction: column; height: auto; }
    .areas-visual { 
        flex: none; 
        height: 38vh; 
        margin-bottom: 2rem; /* Reduzido para aproximar o menu */
        border-radius: 12px; 
        overflow: hidden; 
        display: block !important; 
        position: relative;
        background-color: var(--c-black);
    }
    .areas-visual::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 40%;
        background: linear-gradient(to bottom, transparent, var(--c-black));
        z-index: 2;
    }
    .active-area-img { opacity: 1 !important; visibility: visible !important; }
    .areas-nav-container { padding: 0; width: 100%; }
    .areas-menu { margin-top: 1.5rem; gap: 1rem; }
    .area-menu-item { 
        padding: 1.8rem 1.5rem; /* Um pouco mais de respiro interno */
        gap: 1.2rem; 
        transform: none !important; 
        border-radius: 8px;
    }
    .area-info h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
    .area-info p { font-size: 0.95rem; line-height: 1.4; display: block; }
    .area-num { font-size: 1.2rem; }
    .areas-atuacao, .servicos, .diferenciais, .prova-social, .contato { background-color: var(--c-black) !important; }

    /* SERVIÇOS MOBILE (Estabilidade Total - Fim do Bug de Caixas) */
    .servicos { padding: 80px 0 10px 0; min-height: auto; display: block; }
    .servicos-sidebar { text-align: center; margin-bottom: 3rem; }
    .servicos-sidebar h2 { font-size: 2rem; margin-bottom: 1rem; }
    .servicos-sidebar p { font-size: 1.1rem; line-height: 1.7; }
    .servicos-sidebar .btn { margin-top: 1.5rem !important; }
    .servicos-wrapper { grid-template-columns: 1fr; display: block; }
    .servico-item { 
        position: relative !important; /* Desativado sticky no mobile para acabar com o bug */
        top: 0 !important; 
        padding: 2.5rem 1.5rem; 
        gap: 1.5rem; 
        flex-direction: column; 
        text-align: center;
        margin-bottom: 1rem !important; /* Margem reduzida para aproximar a seção seguinte */
        min-height: auto;
        display: flex;
        border-radius: 12px;
        z-index: 1 !important; 
    }
    .servico-number { font-size: 3rem; margin-bottom: 0.5rem; }
    .servico-text h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }
    .servico-text p { font-size: 1.05rem; line-height: 1.5; }

    /* DIFERENCIAIS MOBILE (Lista 1 Coluna) */
    .diferenciais { min-height: auto; padding: 10px 0 80px 0; }
    .blueprint-container { grid-template-columns: 1fr; gap: 2rem; }
    .blueprint-item { padding: 2.5rem 2rem; min-height: auto; text-align: left; }
    .bp-content h4 { font-size: 1.4rem; margin-bottom: 0.8rem; }
    .bp-content p { font-size: 1rem; line-height: 1.6; display: block; overflow: visible; -webkit-line-clamp: unset; }
    .bp-icon { font-size: 2rem; margin-bottom: 1rem; }
    .bp-num { font-size: 5rem; opacity: 0.05; }
    .bp-line { display: none; }

    /* PROVA SOCIAL MOBILE (Ajuste de Bug e Harmonia) */
    .prova-social { padding: 60px 0; min-height: auto; text-align: center; }
    .stats-container { margin-bottom: 3rem; }
    .stats-grid { 
        padding: 1rem 0; 
        gap: 1.5rem; 
        grid-template-columns: 1fr; /* Lista vertical para não espremer os números */
    }
    .stat-item { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .stat-item:last-child { border-bottom: none; }
    .stat-number { font-size: 2.8rem; margin-bottom: 0.5rem; }
    .stat-label { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
    
    .testimonials-container { margin-top: 3rem !important; }
    .testimonials-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .testimonial-card { padding: 2rem 1.5rem; }
    .testimonial-card blockquote { font-size: 1rem; margin: 1rem 0; line-height: 1.6; }
    .author-avatar { width: 50px; height: 50px; font-size: 1.5rem; }
    .author-info strong { font-size: 1.05rem; }
    .author-info span { font-size: 0.85rem; }

    /* CONTATO MOBILE (Final CTA com Espaçamento Corrigido) */
    .contato { min-height: auto; padding: 60px 0; display: flex; align-items: center; }
    .final-cta-wrapper { padding: 3rem 1.5rem; width: 100%; }
    .final-cta-wrapper h2 { font-size: 2.2rem; margin-bottom: 1rem; }
    .final-cta-wrapper p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 2rem; }
    .btn-large { 
        padding: 1.2rem 1.2rem; 
        font-size: 0.9rem; /* Reduzido para caber em uma única linha e ficar harmônico */
        width: 100%; 
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.8rem;
        letter-spacing: 0.5px;
        box-shadow: 0 15px 30px rgba(217, 4, 41, 0.2); 
    }
    .btn-large i { font-size: 1.3rem; } /* Ícone um pouco maior para equilíbrio */
    .footer { padding-top: 2rem; }
}
