/* ==========================================================================
   ESTILO GLOBAL - Rota Engenharia e Topografia (Design Premium Contemporâneo)
   ========================================================================== */

/* Importação das fontes modernas do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    /* Cores do Sistema - Nuances Clean & Empresarial Premium */
    --color-bg-main: #FFFFFF;
    /* Branco puro para fundo geral */
    --color-bg-alt: #F4F7FB;
    /* Azul glacial sutil para transição e contraste leve */
    --color-bg-deep: #0A192F;
    /* Azul marinho profundo de prestígio e alta tecnologia */
    --color-bg-card: #FFFFFF;
    /* Branco para cartões */

    --color-primary: #004BB4;
    /* Azul Técnico oficial da marca */
    --color-primary-hover: #003688;
    /* Azul mais escuro no hover */
    --color-primary-light: #EBF3FF;
    /* Azul bem clarinho para fundos de badges e ícones */
    --color-primary-bright: #3B82F6;
    /* Azul elétrico luminoso para destaque no escuro */

    --color-text-dark: #0F172A;
    /* Slate escuro para títulos e contrastes altos em fundos claros */
    --color-text-body: #334155;
    /* Slate médio para corpo de texto */
    --color-text-muted: #64748B;
    /* Cinza médio para textos secundários */

    --color-text-light: #F8FAFC;
    /* Off-white para textos em seções escuras */
    --color-text-muted-light: #94A3B8;
    /* Cinza claro para textos de apoio em seções escuras */

    --color-border: #E2E8F0;
    /* Borda discreta para separar elementos */
    --color-border-hover: rgba(0, 75, 180, 0.2);
    /* Borda azul sutil no hover */

    /* Tipografia Contemporânea */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Efeitos de Transição, Elevação e Sombras */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 30px rgba(0, 75, 180, 0.025), 0 1px 8px rgba(0, 0, 0, 0.015);
    --shadow-hover: 0 20px 40px rgba(0, 75, 180, 0.07), 0 1px 12px rgba(0, 0, 0, 0.03);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 32px;
}

/* Reset Básico */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--color-bg-main);
    color: var(--color-text-body);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Títulos */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    letter-spacing: -0.02em;
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Componentes Comuns / Utilitários */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 110px 0;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 75, 180, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 75, 180, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-dark);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    background-color: rgba(0, 75, 180, 0.02);
}

/* Título de Seção Premium */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 70px;
}

.section-subtitle {
    font-size: 0.8rem;
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 4px;
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-body);
}

.section-title {
    font-size: 2.4rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    color: var(--color-text-dark);
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

/* ==========================================================================
   HEADER / MENU DE NAVEGAÇÃO
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.header.shrink {
    padding: 2px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    transition: var(--transition-smooth);
}

.header.shrink .container {
    height: 70px;
}

/* Logotipo com Imagem */
.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.header.shrink .logo-img {
    height: 42px;
}

/* Navegação Principal */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-body);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
}

/* Menu Hambúrguer (Mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-dark);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO / BANNER PRINCIPAL (ESCURO DRAMÁTICO E IMPACTANTE)
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 110px;
    /* Overlay azul escuro/marinho profundo de alto contraste para dar cor e força à imagem */
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.92) 20%, rgba(0, 75, 180, 0.5) 100%),
        url('../images/rota-engenharia (4).jpeg') no-repeat center center/cover;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 28%, rgba(59, 130, 246, 0.16), transparent 28%),
        radial-gradient(circle at 78% 64%, rgba(255, 255, 255, 0.1), transparent 26%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 56px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--color-bg-main));
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 4;
}

.hero-content {
    max-width: 750px;
    position: relative;
}

.hero-tagline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--color-primary-bright);
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
    opacity: 0;
    transform: translateY(18px);
    animation: heroTextReveal 0.75s cubic-bezier(0.19, 1, 0.22, 1) 0.12s forwards;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    text-transform: uppercase;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: -0.01em;
    opacity: 0;
    position: relative;
    transform: translateY(24px);
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
    animation: heroTextReveal 0.85s cubic-bezier(0.19, 1, 0.22, 1) 0.24s forwards;
}

.hero-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary-bright), rgba(255, 255, 255, 0.8), transparent);
    border-radius: 999px;
    box-shadow: 0 0 22px rgba(59, 130, 246, 0.65);
    animation: heroLineReveal 0.9s cubic-bezier(0.19, 1, 0.22, 1) 0.9s forwards;
}

.hero-description {
    font-size: 1.25rem;
    color: #E2E8F0;
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.75;
    opacity: 0;
    transform: translateY(20px);
    animation: heroTextReveal 0.75s cubic-bezier(0.19, 1, 0.22, 1) 0.42s forwards;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroTextReveal 0.75s cubic-bezier(0.19, 1, 0.22, 1) 0.58s forwards;
}

.hero-btns .btn-primary {
    position: relative;
    overflow: hidden;
}

.hero-btns .btn-primary::after {
    content: '';
    position: absolute;
    inset: -40% auto -40% -70%;
    width: 48%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
    animation: heroButtonShine 4.2s ease-in-out 1.8s infinite;
}

.hero-btns .btn-secondary {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.25);
}

.hero-btns .btn-secondary:hover {
    border-color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    opacity: 0;
    transform: translateY(18px);
    animation: heroTextReveal 0.75s cubic-bezier(0.19, 1, 0.22, 1) 0.74s forwards;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(16px);
    animation: heroTextReveal 0.65s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.highlight-item:nth-child(1) {
    animation-delay: 0.92s;
}

.highlight-item:nth-child(2) {
    animation-delay: 1.04s;
}

.highlight-item:nth-child(3) {
    animation-delay: 1.16s;
}

.highlight-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary-bright);
    font-weight: bold;
    letter-spacing: -0.02em;
}

.highlight-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #D8E4F6;
    margin-top: 4px;
    text-shadow: 0 1px 12px rgba(10, 25, 47, 0.55);
}

/* ==========================================================================
   SERVIÇOS (SERVICES GRID)
   ========================================================================== */
#servicos {
    background-color: var(--color-bg-main);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 45px 35px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 56px;
    height: 56px;
    background-color: var(--color-primary-light);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    color: var(--color-primary);
    font-size: 1.4rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background-color: var(--color-primary);
    color: #FFFFFF;
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--color-text-dark);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-text-body);
    flex-grow: 1;
    margin-bottom: 28px;
    line-height: 1.65;
}

.service-link {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link i {
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-link i {
    transform: translateX(4px);
}

/* ==========================================================================
   SOBRE NÓS (ABOUT SECTION - NUANCE MARINHO PROFUNDO)
   ========================================================================== */
#sobre {
    background-color: var(--color-bg-deep);
    color: var(--color-text-light);
}

#sobre .section-title {
    color: #FFFFFF;
}

#sobre .about-content h3 {
    color: #FFFFFF;
    font-weight: 500;
    font-size: 1.5rem;
}

#sobre .about-text {
    color: var(--color-text-light);
}

#sobre .about-text-secondary {
    color: var(--color-text-muted-light);
}

#sobre .about-feature-text {
    color: var(--color-text-light);
}

#sobre .btn-primary {
    background-color: var(--color-primary-bright);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

#sobre .btn-primary:hover {
    background-color: #2563EB;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.about-content h3 {
    margin-bottom: 24px;
    line-height: 1.5;
}

.about-text {
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.about-text-secondary {
    font-size: 0.95rem;
    margin-bottom: 35px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-feature-icon {
    color: var(--color-primary-bright);
    font-size: 1.1rem;
}

.about-feature-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.03);
}

.about-image-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background-color: var(--color-primary-bright);
    color: #FFFFFF;
    padding: 16px 24px;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.about-badge-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1;
    font-weight: bold;
    display: block;
}

.about-badge-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-top: 4px;
}

/* ==========================================================================
   GALERIA DE PROJETOS (PORTFÓLIO)
   ========================================================================== */
#galeria {
    background-color: var(--color-bg-main);
}

.gallery-filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-body);
    padding: 10px 22px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 75, 180, 0.15);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.1) 70%);
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-tag {
    color: var(--color-primary-bright);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.gallery-title {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Lightbox Nativo */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.97);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #FFFFFF;
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    color: var(--color-primary-bright);
}

/* ==========================================================================
   FEEDBACK (TESTIMONIALS - NUANCE AZUL GLACIAL)
   ========================================================================== */
#feedback {
    background-color: var(--color-bg-alt);
    position: relative;
    overflow: hidden;
}

#feedback::before {
    content: '“';
    position: absolute;
    top: -20px;
    left: 40px;
    font-size: 16rem;
    font-family: Georgia, serif;
    color: rgba(0, 75, 180, 0.05);
    line-height: 1;
    pointer-events: none;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-premium);
}

.testimonial-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-stars {
    color: #F1C40F;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--color-text-body);
    margin-bottom: 24px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid rgba(0, 75, 180, 0.1);
}

.author-info h4 {
    font-size: 0.95rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--color-text-dark);
}

.author-info span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.trustindex-badge {
    text-align: center;
    margin-top: 50px;
    padding: 15px 30px;
    background-color: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: var(--shadow-premium);
}

.trustindex-badge-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-body);
}

.trustindex-badge-stars {
    color: #F1C40F;
}

/* ==========================================================================
   CONTATO (CONTACT SECTION)
   ========================================================================== */
#contato {
    background-color: var(--color-bg-main);
}

/* Grid da Seção Hero */
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Dá mais largura para a coluna do logo */
    gap: 50px;
    align-items: center;
    width: 100%;
}

.hero-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: heroFloat 6s ease-in-out infinite; /* Animação flutuante sutil */
    z-index: 3;
}

.hero-logo-img {
    width: 100%;
    max-width: 440px; /* Tamanho ideal e imponente na largura, respeitando a proporção */
    height: auto; /* Mantém a proporção exata de 1.7:1 da imagem original */
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.72)) drop-shadow(0 8px 26px rgba(255, 255, 255, 0.34));
    transition: var(--transition-smooth);
    opacity: 0;
    transform: scale(0.94) translateY(18px);
    animation: heroLogoReveal 0.9s cubic-bezier(0.19, 1, 0.22, 1) 0.52s forwards;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: start;
}

.contact-info-list {
    margin-bottom: 40px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary-light);
    border-radius: var(--border-radius-sm);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-content h4 {
    font-size: 1.05rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text-dark);
}

.contact-info-content p,
.contact-info-content a {
    font-size: 0.95rem;
    color: var(--color-text-body);
}

.contact-info-content a:hover {
    color: var(--color-primary);
}

.social-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--color-text-dark);
}

.social-links {
    display: flex;
    gap: 14px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-body);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    background-color: var(--color-bg-card);
}

.social-btn:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 75, 180, 0.2);
}

/* Formulário Premium Clean */
.contact-form-container {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 40px;
    box-shadow: var(--shadow-premium);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-dark);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    padding: 14px 18px;
    color: var(--color-text-dark);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #FFFFFF;
    box-shadow: 0 0 10px rgba(0, 75, 180, 0.08);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-feedback {
    display: none;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: var(--border-radius-sm);
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
}

.form-feedback.is-visible {
    display: block;
}

/* ==========================================================================
   MAP SECTION
   ========================================================================== */
.map-section {
    width: 100%;
    height: 450px;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-bg-alt);
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0.95;
    transition: var(--transition-smooth);
}

.map-section iframe:hover {
    opacity: 1;
}

/* ==========================================================================
   POLÍTICA DE PRIVACIDADE
   ========================================================================== */
.privacy-page {
    background-color: var(--color-bg-main);
}

.privacy-hero {
    padding: 170px 0 80px;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.96), rgba(0, 75, 180, 0.78)),
        url('../images/rota-engenharia (4).jpeg') no-repeat center center/cover;
    color: var(--color-text-light);
}

.privacy-title {
    max-width: 820px;
    color: #FFFFFF;
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.privacy-intro {
    max-width: 780px;
    color: #E2E8F0;
    font-size: 1.1rem;
    line-height: 1.75;
}

.privacy-updated {
    margin-top: 22px;
    color: #B7C6DD;
    font-size: 0.9rem;
}

.privacy-content {
    background-color: var(--color-bg-alt);
}

.privacy-card {
    max-width: 920px;
    margin: 0 auto;
    padding: 48px;
    background-color: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-premium);
}

.privacy-card h2 {
    margin-top: 34px;
    margin-bottom: 14px;
    font-size: 1.35rem;
}

.privacy-card h2:first-child {
    margin-top: 0;
}

.privacy-card p {
    color: var(--color-text-body);
    margin-bottom: 16px;
}

.privacy-card a {
    color: var(--color-primary);
    font-weight: 600;
}

.privacy-card a:hover {
    color: var(--color-primary-hover);
}

/* ==========================================================================
   FOOTER (RODAPÉ) - AZUL ESCURO SÓLIDO
   ========================================================================== */
.footer {
    background-color: #050B14;
    /* Marinho ultra escuro para rodapé */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 80px;
    color: #8E9BAE;
    font-size: 0.95rem;
}

.footer h1,
.footer h2,
.footer h3,
.footer h4 {
    color: #FFFFFF;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-about-text {
    line-height: 1.7;
    font-size: 0.9rem;
    color: #8E9BAE;
}

.footer-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #FFFFFF;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary-bright);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    color: #8E9BAE;
}

.footer-link:hover {
    color: #FFFFFF;
    transform: translateX(4px);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact-item i {
    color: var(--color-primary-bright);
    margin-top: 4px;
}

.footer-contact-item a {
    color: #8E9BAE;
    transition: var(--transition-smooth);
}

.footer-contact-item a:hover {
    color: #FFFFFF;
}

.footer-top .social-btn {
    border-color: rgba(255, 255, 255, 0.08);
    color: #8E9BAE;
    background-color: rgba(255, 255, 255, 0.01);
}

.footer-top .social-btn:hover {
    background-color: var(--color-primary-bright);
    border-color: var(--color-primary-bright);
    color: #FFFFFF;
}

.logo-img-footer {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #5A6A80;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.footer-bottom-links a {
    color: #8E9BAE;
}

.footer-bottom-links a:hover {
    color: #FFFFFF;
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-smooth);
}

.whatsapp-floating:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    color: white;
}

@keyframes heroFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

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

@keyframes heroLogoReveal {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes heroLineReveal {
    to {
        width: min(360px, 62%);
    }
}

@keyframes heroButtonShine {
    0%,
    45% {
        left: -70%;
    }

    70%,
    100% {
        left: 130%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-tagline,
    .hero-title,
    .hero-description,
    .hero-btns,
    .hero-highlights,
    .highlight-item,
    .hero-logo-img {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .hero-title::after,
    .hero-btns .btn-primary::after,
    .hero-logo-container {
        animation: none;
    }

    .hero-title::after {
        width: min(360px, 62%);
    }
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE & TABLET BREAKPOINTS)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        height: 380px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-top {
        grid-template-columns: 1.5fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 70px 0;
    }

    .section-title {
        font-size: 1.9rem;
    }

    /* Menu Mobile */
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: #FFFFFF;
        border-left: 1px solid var(--color-border);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        z-index: 1000;
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .header-cta {
        display: none;
    }

    .hero {
        text-align: center;
        padding-top: 118px;
        min-height: auto;
        padding-bottom: 74px;
        background: linear-gradient(180deg, rgba(10, 25, 47, 0.94) 0%, rgba(10, 25, 47, 0.86) 56%, rgba(10, 25, 47, 0.96) 100%),
            url('../images/rota-engenharia (4).jpeg') no-repeat center center/cover;
    }

    .hero::after {
        height: 28px;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--color-bg-main));
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.45rem;
    }

    .hero-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-description {
        font-size: 1.05rem;
        max-width: 620px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-logo-container {
        order: -1;
        width: min(78vw, 300px);
        margin: 0 auto;
        animation: none;
    }

    .hero-logo-img {
        max-width: 100%;
        filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.7)) drop-shadow(0 6px 18px rgba(255, 255, 255, 0.3));
    }

    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 300px;
        margin: 0 auto;
        padding-bottom: 18px;
    }

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

    .services-grid,
    .gallery-grid,
    .testimonials-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .trustindex-badge {
        width: 100%;
        max-width: 420px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .contact-form-container {
        padding: 30px;
    }

    .privacy-hero {
        padding: 130px 0 64px;
    }

    .privacy-title {
        font-size: 2.25rem;
    }

    .privacy-card {
        padding: 34px 26px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .whatsapp-floating {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    .header .container {
        height: 76px;
    }

    .header.shrink .container {
        height: 64px;
    }

    .logo-img {
        height: 44px;
    }

    .header.shrink .logo-img {
        height: 38px;
    }

    .hero {
        padding-top: 104px;
        padding-bottom: 72px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 0.72rem;
        letter-spacing: 3px;
        margin-bottom: 14px;
    }

    .hero-description {
        font-size: 0.98rem;
        line-height: 1.65;
        margin-bottom: 30px;
    }

    .hero-logo-container {
        width: min(74vw, 220px);
    }

    .hero-logo-img {
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.74)) drop-shadow(0 5px 14px rgba(255, 255, 255, 0.28));
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn {
        width: 100%;
        padding: 13px 20px;
    }

    .service-card,
    .testimonial-card,
    .contact-form-container {
        padding: 28px 22px;
    }

    .about-image {
        height: 320px;
    }

    .contact-info-item {
        gap: 14px;
    }

    .trustindex-badge {
        padding: 15px 18px;
    }
}
