/* ==========================================================================
   TRANSANTANA WEB PITCH DECK - STYLES
   ========================================================================== */

/* --- Variáveis Core --- */
:root {
    --primary-blue: #0A2540;
    --primary-blue-light: #1A3A5A;
    --accent-orange: #FF6B00;
    --text-white: #FFFFFF;
    --text-offwhite: #F3F4F6;
    --text-gray: #9CA3AF;
    --text-slate: #475569;
    --text-dark: #1E293B;

    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-bg-dark: rgba(10, 37, 64, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    --font-main: 'Inter', sans-serif;

    --transition-standard: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Reset & Globais --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
    font-family: var(--font-main);
    background-color: var(--primary-blue);
    color: var(--text-white);
    overflow: hidden;
    /* Scroll is handled by the container */
}

/* --- Utilities --- */
.text-accent {
    color: var(--accent-orange);
}

.text-white {
    color: var(--text-white);
}

.text-light-gray {
    color: var(--text-offwhite);
}

.text-dark {
    color: var(--text-dark);
}

.text-slate {
    color: var(--text-slate);
}

.text-primary-dark {
    color: var(--primary-blue);
}

.text-center {
    text-align: center;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.25rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.p-3 {
    padding: 1.5rem;
}

.px-2 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.pe-3 {
    padding-right: 1.5rem;
}

.w-50 {
    width: 50%;
}

.d-flex {
    display: flex !important;
    flex-direction: row !important;
}

.align-items-center {
    align-items: center;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Container e Scroll Snapping --- */
.deck-container {
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    /* Hide scrollbar for cleaner look */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.deck-container::-webkit-scrollbar {
    display: none;
}

/* --- Section (Slides) --- */
.slide {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Overlays */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.primary-overlay {
    background: 
        linear-gradient(180deg, rgba(10, 37, 64, 0.3) 0%, rgba(10, 37, 64, 0.85) 75%, var(--primary-blue) 100%),
        radial-gradient(ellipse at center, transparent 20%, rgba(0, 0, 0, 0.7) 100%);
}

.dark-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.light-overlay {
    background: rgba(255, 255, 255, 0.1);
}

.opacity-80 {
    opacity: 0.8;
}

.opacity-10 {
    opacity: 0.1;
}

.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(#FFFFFF 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
}

/* Content Area */
.content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.center-content {
    align-items: center;
    text-align: center;
}

h2.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-offwhite);
    max-width: 800px;
    line-height: 1.6;
}

/* --- Componentes Específicos --- */

/* Navegação */
.slider-nav {
    position: fixed;
    bottom: 2rem;
    right: 3rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--glass-bg-dark);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.slider-nav button {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-standard);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav button:hover {
    background: var(--accent-orange);
}

.slide-indicator {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
}

.glass-card.dark-text {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

/* Capa e Logos */
.logo-wrapper {
    background: rgba(255, 255, 255, 0.92);
    padding: 1.5rem 3.5rem;
    border-radius: 60px;
    display: inline-block;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5), 
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    margin-bottom: 3rem;
    transition: transform 0.3s ease;
}

.logo-wrapper:hover {
    transform: translateY(-5px);
}

.logo-wrapper-small {
    background: rgba(255, 255, 255, 0.92);
    padding: 0.75rem 2rem;
    border-radius: 40px;
    display: inline-block;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3), 
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.brand-logo {
    max-width: 320px;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
}

.brand-logo-small {
    max-width: 160px;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 4px;
    font-weight: 800;
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--accent-orange);
    letter-spacing: 8px;
    display: block;
    margin-bottom: 2rem;
}

h2.headline {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

/* --- New Diagonal Cover Slide --- */
.cover-slide {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: white;
    display: block !important; 
}

/* Base Mask Line (Orange) */
.cover-image-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 55% 0, 25% 100%, 0 100%);
    background: var(--accent-orange);
    z-index: 1;
}

/* Image Mask */
.cover-image-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 54% 0, 24% 100%, 0 100%);
    background-image: url('../391252318ae54e5d8991677aad55b353.png');
    background-size: cover;
    background-position: center;
    z-index: 2;
}

/* Overlay Escurece a Imagem */
.cover-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.4);
    z-index: 3;
    pointer-events: none;
}

/* Triângulo Suporte Linha Laranja */
.cover-triangle-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-orange);
    clip-path: polygon(0 0, 22% 0, 0 73.33%);
    z-index: 4;
}

/* Triângulo Azul no Topo Esquerdo */
.cover-triangle-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-blue);
    clip-path: polygon(0 0, 20% 0, 0 66.66%);
    z-index: 5;
}

.cover-content-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 53%; /* Fica contido na area branca */
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 4rem 0 2rem;
}

/* Logo diretamente no fundo branco */
.brand-logo-cover {
    max-width: 370px;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
    margin-bottom: 2rem;
    margin-left: 10rem; /* Ajuste reforçado para mover o logo mais para a direita */
}

.circle-icon {
    width: 110px;
    height: 110px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.circle-icon svg {
    width: 50px;
    height: 50px;
    fill: var(--primary-blue);
}

.cover-badges {
    display: flex;
    gap: 2.5rem;
    margin-top: 4rem;
    padding-left: 1rem;
}

.diamond-icon {
    width: 70px;
    height: 70px;
    background: white;
    border: 2px solid #E2E8F0;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.diamond-icon:hover {
    border-color: var(--accent-orange);
    transform: rotate(45deg) scale(1.1);
    box-shadow: 0 15px 30px rgba(255,107,0,0.2);
}

.diamond-icon svg {
    transform: rotate(-45deg);
    width: 32px;
    height: 32px;
}

.diamond-icon svg {
    transform: rotate(-45deg);
    width: 32px;
    height: 32px;
}

.cover-badge-wrapper {
    margin-bottom: 2rem;
}

.cover-badge-text {
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    background: rgba(255,107,0,0.1);
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
}

.cover-headline {
    color: var(--primary-blue);
    font-size: 4.8rem;
    line-height: 1.05;
    letter-spacing: -2px;
}

.cover-headline-accent {
    font-weight: 800;
}

.cover-subtitle {
    color: var(--text-slate);
    font-weight: 500;
    font-size: 1.35rem;
    margin-top: 1.5rem;
    max-width: 650px;
    letter-spacing: -0.5px;
}

.cover-footer {
    margin-top: 5.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.cover-footer-line {
    width: 60px;
    height: 4px;
    background: var(--accent-orange);
}

.cover-footer-text {
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--text-slate);
    font-weight: 600;
}

/* Split Slide Layout */
.split-slide {
    display: flex;
    flex-direction: row;
    padding: 0;
}

.split-slide .content-left {
    flex: 1;
    background: white;
    color: var(--text-dark);
    padding: 6rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-slide .content-left.dark-bg {
    background: var(--primary-blue-light);
    color: white;
}

.split-slide .image-right {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* --- Painel Direito Escuro (Inteligência Logística) --- */
.content-right-dark {
    flex: 1;
    background: var(--primary-blue);
    color: white;
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Padrão geométrico sutil no fundo */
.content-right-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.intel-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.intel-eyebrow-line {
    width: 40px;
    height: 3px;
    background: var(--accent-orange);
}

.intel-eyebrow span {
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-orange);
}

.intel-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    letter-spacing: -1px;
}

.intel-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    font-style: italic;
    margin-bottom: 1.25rem;
    letter-spacing: -0.3px;
}

.intel-intro {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 520px;
}

.intel-intro strong {
    color: var(--accent-orange);
    font-weight: 700;
}

.intel-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.intel-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    transition: border-color 0.3s ease;
}

.intel-list li:hover {
    border-color: var(--accent-orange);
}

.intel-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.intel-list li strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: white;
}

.intel-list li p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    margin: 0;
}

.intel-img-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 2px;
    border-radius: 6px;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    margin-bottom: 2rem;
}

.feature-list li strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.feature-list li p {
    color: var(--text-slate);
    line-height: 1.6;
}

.badge-accent {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Slide 3 (Awards) */
.dark-slide {
    background: var(--primary-blue);
}

.main-highlight {
    text-align: center;
    border-color: rgba(255, 107, 0, 0.4);
    background: linear-gradient(180deg, rgba(255, 107, 0, 0.1) 0%, rgba(10, 37, 64, 0.5) 100%);
    max-width: 800px;
    width: 100%;
}

.icon-award {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.counter-wrap {
    font-size: 5rem;
    font-weight: 800;
    color: var(--accent-orange);
    line-height: 1;
    margin: 1rem 0;
}

.counter-wrap .suffix {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    display: block;
}

.secondary-highlight {
    margin-top: 1.5rem;
    max-width: 600px;
    text-align: center;
    padding: 1.5rem;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.tech-card {
    transition: transform 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-10px);
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.tech-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent-orange);
}

.tech-card p {
    line-height: 1.6;
    color: var(--text-offwhite);
    font-size: 0.95rem;
}

/* Slide 5 Map */
.alert-box {
    background: rgba(255, 107, 0, 0.1);
    border-left: 4px solid var(--accent-orange);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.alert-box h5 {
    color: var(--accent-orange);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.map-point {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-orange);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(255, 107, 0, 0.3);
    animation: pulse-ring 2s infinite;
}

/* Approx positions for Bg map */
.point-rs {
    bottom: 20%;
    left: 40%;
}

.point-sp {
    bottom: 40%;
    left: 55%;
}

.point-rj {
    bottom: 42%;
    left: 62%;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(255, 107, 0, 0);
    }

    100% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
    }
}

/* Slide 6 (Sustentabilidade) */
.award-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
}

.shadow-premium {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.award-card .image-wrap {
    height: 250px;
    background-size: cover;
    background-position: center;
}

/* Slide 7 (Contato) */
.contact-card {
    max-width: 800px;
    width: 100%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
}

.c-icon {
    font-size: 1.25rem;
    margin-right: 1rem;
}

.desc {
    color: var(--text-gray);
    font-size: 0.8rem;
    margin-left: auto;
}

/* --- Animações Essenciais (Intersection Observer) --- */
.fade-in-up,
.fade-in-left,
.fade-in-right,
.fade-in-scale {
    opacity: 0;
    will-change: transform, opacity;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up {
    transform: translateY(40px);
}

.fade-in-left {
    transform: translateX(-40px);
}

.fade-in-right {
    transform: translateX(40px);
}

.fade-in-scale {
    transform: scale(0.95);
}

/* Classes "visible" adicionadas via JS */
.is-visible .fade-in-up,
.is-visible .fade-in-left,
.is-visible .fade-in-right {
    opacity: 1;
    transform: translate(0, 0);
}

.is-visible .fade-in-scale {
    opacity: 1;
    transform: scale(1);
}

/* Delays */
.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Responsividade Básica (Apenas em Telas, não para Impressão) */
@media screen and (max-width: 1024px) {
    h2.section-title {
        font-size: 2.5rem;
    }

    h2.headline {
        font-size: 3.5rem;
    }

    .split-slide {
        flex-direction: column;
    }

    .split-slide .content-left,
    .split-slide .image-right {
        width: 100%;
        height: 50vh;
        padding: 2rem;
    }

    .tech-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .d-flex {
        flex-direction: column;
    }

    .w-50 {
        width: 100%;
    }
}

/* ==========================================================================
   PRINT STYLESHEET (PDF EXPORT FIXES)
   ========================================================================== */
@media print {
    /* 1. Cores e Planos de Fundo Obrigatorios */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* 2. Formato da Pagina (A4 Deitada) */
    @page {
        size: A4 landscape;
        margin: 0; /* Extender slide at a borda */
    }

    body, html, .deck-container {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background-color: var(--primary-blue) !important;
    }

    /* 3. Travar layout dos slides para resoluo cheia de PDF */
    .slide {
        width: 297mm !important; /* Largura A4 real */
        height: 210mm !important; /* Altura A4 real */
        max-height: 210mm !important;
        page-break-after: always !important;
        page-break-inside: avoid !important;
        display: flex !important;
        position: relative !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* 4. Esconder Navegao */
    .slider-nav {
        display: none !important;
    }

    /* 5. Forar visibilidade de animaes (se o JS no der trigger)  */
    .fade-in-up,
    .fade-in-left,
    .fade-in-right,
    .fade-in-scale {
        opacity: 1 !important;
        transform: translate(0, 0) scale(1) !important;
        transition: none !important;
        will-change: auto !important;
    }

    .bg-pattern {
        opacity: 0.1 !important;
    }
    
    /* 6. Enquadramento e Escala */
    .content {
        padding: 3rem !important; 
        max-width: 250mm !important; /* Margem de segurana dentro do A4 */
    }
    
    .split-slide .content-left, 
    .split-slide .image-right {
        height: 210mm !important; /* Preencher a altura exata da pgina A4 */
    }
}

/* ===== CTA Trabalhe Conosco ===== */
@keyframes cta-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,0,0.6); }
    50%       { box-shadow: 0 0 20px 6px rgba(255,107,0,0.25); }
}

.cta-trabalhe-conosco {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    background: linear-gradient(135deg, #FF6B00 0%, #e85d00 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    animation: cta-pulse 2s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-trabalhe-conosco:hover {
    transform: scale(1.06);
    box-shadow: 0 0 30px 8px rgba(255,107,0,0.35);
    animation: none;
}

.cta-trabalhe-conosco::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: cta-shimmer 3s ease-in-out infinite;
}

@keyframes cta-shimmer {
    0%   { left: -100%; }
    50%  { left: 100%; }
    100% { left: 100%; }
}