:root {
    --bg-color: #F8F9FA;
    --text-main: #0B192C;
    --text-muted: #5C6A7B;
    --accent-gold: #D4AF37;
    --accent-gold-light: rgba(212, 175, 55, 0.15);
    --accent-cyan: #00E5FF;
    --accent-cyan-light: rgba(0, 229, 255, 0.15);
    --accent-navy: #0B192C;
    --accent-navy-light: rgba(11, 25, 44, 0.05);
    --slide-transition: 0.8s cubic-bezier(0.8, 0, 0.2, 1);
    --font-body: 'Inter', sans-serif;
    --font-display: 'Montserrat', sans-serif;
}

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

body {
    margin: 0;
    overflow: hidden;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
}

/* =======================================================
   GRID BACKGROUND
   ======================================================= */
.slide__grid-bg {
    position: absolute;
    inset: 0;
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, var(--accent-navy-light) 1px, transparent 1px),
        linear-gradient(to bottom, var(--accent-navy-light) 1px, transparent 1px);
    z-index: 1;
    opacity: 0.7;
}

/* =======================================================
   NAVIGATION & PROGRESS
   ======================================================= */
.nav-controls {
    position: fixed;
    bottom: 40px;
    right: 60px;
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 100;
}

.nav-btn {
    background: white;
    border: 1px solid rgba(11, 25, 44, 0.1);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--accent-navy);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-btn:hover {
    background: var(--accent-navy);
    color: white;
    border-color: var(--accent-navy);
    transform: scale(1.05);
}

.slide-counter {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

#currentSlide {
    color: var(--accent-navy);
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(11, 25, 44, 0.05);
    z-index: 100;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gold);
    width: 0%;
    transition: width var(--slide-transition);
}

.keyboard-hint {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    z-index: 100;
    opacity: 0.6;
    text-transform: uppercase;
    transition: opacity 0.5s ease;
}

.keyboard-hint--hidden {
    opacity: 0;
    pointer-events: none;
}

/* =======================================================
   SLIDES BASE
   ======================================================= */
.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--slide-transition);
    transform: translateX(60px);
    z-index: 10;
}

.slide--active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 20;
}

.slide__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 60px;
}

.center-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.split-content {
    display: flex;
    gap: 80px;
    align-items: center;
}

.content-left {
    flex: 1;
}

.content-right {
    flex: 1;
}

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

/* =======================================================
   ANIMATIONS
   ======================================================= */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-in--visible {
    opacity: 1;
    transform: translateY(0);
}

/* =======================================================
   TYPOGRAPHY & ACCENTS
   ======================================================= */
.slide-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.tag-line {
    height: 1px;
    width: 30px;
    background: var(--text-muted);
}

.tag-gold {
    color: var(--accent-gold);
}

.slide-title {
    font-size: 48px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--accent-navy);
    letter-spacing: -0.02em;
}

.slide-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.slide-subtitle-small {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.slide-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.text-gold {
    color: var(--accent-gold) !important;
}

.highlight-box {
    background: white;
    padding: 24px 32px;
    border-radius: 8px;
    font-size: 18px;
    line-height: 1.6;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.03);
}

.gold-border {
    border-left: 4px solid var(--accent-gold);
}

/* =======================================================
   BRANDING (Logo)
   ======================================================= */
.brand-logo {
    height: clamp(45px, 10vw, 55px);
    margin-bottom: 24px;
    filter: brightness(0) invert(11%) sepia(30%) saturate(1637%) hue-rotate(185deg) brightness(97%) contrast(98%);
}

.brand-logo--closing {
    margin-bottom: 16px;
}

.hero-quote {
    font-family: var(--font-display);
    font-size: 20px;
    font-style: italic;
    font-weight: 500;
    color: var(--accent-navy);
    margin-top: 40px;
    max-width: 600px;
    line-height: 1.5;
    border-top: 1px solid rgba(11, 25, 44, 0.1);
    padding-top: 40px;
}

/* =======================================================
   TABLES & LISTS
   ======================================================= */
.cost-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    padding: 32px 40px;
    margin-bottom: 32px;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(11, 25, 44, 0.05);
}

.cost-row:not(.total-row):last-child {
    border-bottom: none;
}

.cost-row.detailed {
    align-items: flex-start;
}

.cost-item {
    display: flex;
    flex-direction: column;
}

.cost-name {
    font-weight: 600;
    font-size: 18px;
    color: var(--accent-navy);
}

.cost-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.cost-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--accent-navy);
    white-space: nowrap;
}

.total-row {
    margin-top: 16px;
    padding-top: 24px;
    border-top: 2px solid rgba(11, 25, 44, 0.1);
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-navy);
}

.total-row .cost-value {
    font-size: 28px;
}

/* =======================================================
   GRID CARDS (Slide 5)
   ======================================================= */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cost-card {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.03);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 3px solid var(--accent-cyan);
    transition: transform 0.3s ease;
}

.cost-card:hover {
    transform: translateY(-5px);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.card-value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-navy);
}

/* =======================================================
   BUTTONS
   ======================================================= */
.action-container {
    display: flex;
    justify-content: flex-end;
}

.pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-navy);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 16px rgba(11, 25, 44, 0.2);
    transition: all 0.3s ease;
}

.pdf-btn:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(212, 175, 55, 0.3);
}

/* =======================================================
   CHARTS (Slide 7)
   ======================================================= */
.chart-container {
    margin-top: 40px;
}

.bar-group {
    margin-bottom: 32px;
}

.bar-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.bar-track {
    height: 24px;
    background: rgba(11, 25, 44, 0.05);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.bar-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bg-navy {
    background: var(--accent-navy);
}

.bg-cyan {
    background: var(--accent-cyan);
}

.bar-value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
    color: var(--accent-navy);
}

.total-box {
    background: var(--accent-navy);
    color: white;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 24px 48px rgba(11, 25, 44, 0.2);
}

.total-label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.total-value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 42px;
    color: var(--accent-gold);
}

.total-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.2;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* =======================================================
   METHODOLOGY LAYERS (Slide 2)
   ======================================================= */
.audit-layers {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.layer {
    background: white;
    padding: 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-muted);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    border-left: 4px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    transform-origin: left;
}

.layer-gold {
    background: var(--accent-navy);
    color: var(--accent-gold);
    border-left-color: var(--accent-gold);
}

/* =======================================================
   CLOSING SLIDE (Slide 8)
   ======================================================= */
.slide-closing .slide__content {
    text-align: center;
}

.closing-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.closing-logo {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 900;
    color: #000000;
    letter-spacing: 0.05em;
    line-height: 1;
}

.closing-slogan {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    font-style: italic;
    color: var(--accent-cyan);
    letter-spacing: 0.25em;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 32px auto;
}

.print-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.print-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid rgba(11, 25, 44, 0.1);
    padding: 16px 32px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--accent-navy);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.print-btn:hover {
    background: var(--accent-navy);
    color: white;
    border-color: var(--accent-navy);
}

/* =======================================================
   RESPONSIVE ADJUSTMENTS (Touch & Mobile First Adaptation)
   ======================================================= */
@media (max-width: 900px) {
    .split-content {
        flex-direction: column;
        gap: 40px;
    }

    .slide__content {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    body {
        overflow: hidden;
        position: fixed;
        inset: 0;
    }

    /* 1. REPLICAÇÃO DE UX */
    .slide {
        position: fixed;
        inset: 0;
        height: 100%;
        transform: translateX(100%);
    }

    .slide--active {
        transform: translateX(0);
    }

    .slide__content {
        padding: 2rem 1.5rem 160px 1.5rem;
        height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    .center-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 4rem;
        text-align: center;
    }

    /* 2. NAVEGAÇÃO MOBILE (Estética App Bottom) */
    .nav-controls {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 64px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(11, 25, 44, 0.1);
        padding: 0 20px;
        margin: 0;
        justify-content: space-between;
        display: flex;
    }

    .nav-btn {
        width: 44px;
        height: 44px;
        box-shadow: none;
        background: transparent;
    }

    .keyboard-hint {
        display: none !important;
    }

    .progress-bar {
        bottom: 64px;
        top: auto;
    }

    /* Typografia ajustada */
    .slide-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .slide-subtitle {
        font-size: 18px;
        margin-bottom: 24px;
    }

    .slide-eyebrow {
        font-size: 10px;
        margin-bottom: 16px;
    }

    .hero-quote {
        margin-top: 32px;
        padding-top: 32px;
        font-size: 16px;
    }

    /* 3. ESTILIZAÇÃO DE TABELAS/LISTAS (Data Cards) */
    .cost-table {
        padding: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        margin-bottom: 24px;
    }

    .cost-row {
        flex-direction: column;
        align-items: flex-start;
        background: white;
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 16px;
        border: 1px solid rgba(11, 25, 44, 0.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
        gap: 8px;
    }

    .cost-row.detailed {
        align-items: flex-start;
    }

    .cost-name {
        font-size: 16px;
    }

    .cost-value {
        color: var(--accent-gold);
        font-size: 22px;
        width: 100%;
        text-align: left;
        margin-top: 4px;
    }

    .total-row {
        flex-direction: column;
        align-items: flex-start;
        background: var(--accent-navy);
        border: none;
        border-radius: 12px;
        color: white;
        padding: 24px 20px;
        margin-top: 24px;
    }

    .total-row .cost-item {
        color: white;
        font-size: 16px;
        opacity: 0.8;
    }

    .total-row .cost-value {
        color: var(--accent-gold) !important;
        font-size: 28px;
    }

    .text-gold {
        color: var(--accent-gold) !important;
    }

    .grid-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cost-card {
        padding: 24px;
    }

    /* 4. BOTÕES DE PDF (Full Width) */
    .action-container {
        justify-content: center;
        width: 100%;
        margin-top: 16px;
    }

    .pdf-btn {
        width: 100%;
        justify-content: center;
    }

    /* Slide 7 Charts */
    .total-box {
        width: 280px;
        height: 280px;
        margin: 32px auto;
    }

    .total-value {
        font-size: 32px;
    }

    /* Fechamento */
    .print-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .print-btn {
        width: 100%;
        justify-content: center;
    }

    .closing-logo {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }

    .closing-slogan {
        font-size: clamp(0.9rem, 3.5vw, 1.25rem);
        line-height: 1.5;
        margin-bottom: 24px;
    }
}

@media print {

    /* 1. RESET DE ESTRUTURA PARA IMPRESSÃO */
    @page {
        size: auto;
        margin: 0mm;
    }

    *,
    *::before,
    *::after {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    html {
        height: auto !important;
        overflow: visible !important;
        position: static !important;
    }

    body {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        color-adjust: exact !important;
    }

    /* 2. FORÇAR TODOS OS SLIDES A ESTAREM VISÍVEIS E EMPILHADOS */
    .slide {
        display: block !important;
        visibility: visible !important;
        position: static !important;
        /* Essencial para quebrar o fluxo de slides sobrepostos */
        inset: auto !important;
        opacity: 1 !important;
        transform: none !important;
        height: 100vh !important;
        width: 100vw !important;
        page-break-after: always !important;
        break-after: page !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        overflow: hidden !important;
        background: white !important;
        z-index: auto !important;
    }

    .slide:last-child {
        page-break-after: avoid !important;
        break-after: avoid !important;
    }

    .slide__content {
        position: relative !important;
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        height: 100% !important;
        padding: 4rem 3rem !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .center-content {
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .split-content {
        flex-direction: row !important;
        /* Mantém lado a lado no papel se houver espaço */
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* 3. LIMPEZA VISUAL DO RELATÓRIO */
    .nav-controls,
    .progress-bar,
    .keyboard-hint,
    .action-container,
    .print-actions,
    .total-glow {
        display: none !important;
    }

    /* 4. PRESERVAÇÃO DE CORES E GRIDS */
    .animate-in {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .bar-fill {
        transition: none !important;
    }

    .slide__grid-bg {
        position: absolute !important;
        inset: 0 !important;
        opacity: 0.15 !important;
    }

    .brand-logo {
        filter: none !important;
    }

    /* Tabelas e cards */
    .cost-table {
        box-shadow: none !important;
        border: 1px solid #eee !important;
    }
}