/* ==========================================================
   ElasTitam — Relatórios 2025 e 2026
   Folha de estilos compartilhada por todos os arquivos HTML
   ========================================================== */

:root {
    --color-primary: #393737;
    --color-secondary: #333333;
    --color-accent: #f39422;
    --color-purple: #7138a8;
    --color-background: #ffffff;
    --color-page: #f8f8f8;
    --color-light-gray: #f0f0f0;
    --color-muted: #666666;
    --color-border: #eeeeee;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.06);
    --radius: 7px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Open Sans", Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-secondary);
    background: var(--color-page);
}

img {
    max-width: 100%;
}

a {
    transition: color 0.25s ease, background-color 0.25s ease,
        border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

h1,
h2,
h3,
h4 {
    font-family: "Montserrat", Arial, sans-serif;
    color: var(--color-primary);
    line-height: 1.2;
}

/* ---------- Estrutura geral ---------- */
.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0;
}

.section,
.section-title {
    margin-bottom: 54px;
}

.section-title {
    margin-top: 60px;
    padding-top: 20px;
}

.section h2,
.section-title > h2 {
    display: inline-block;
    margin-bottom: 16px;
    padding-bottom: 5px;
    border-bottom: 4px solid var(--color-accent);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
}

.section-title h3,
.card h3,
.chart-container h3 {
    margin-bottom: 12px;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
}

/* ---------- Cabeçalho / hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 20px;
    text-align: center;
    color: var(--color-background);
    background: var(--color-primary);
}

.hero::before,
.hero-accent {
    position: absolute;
    inset: 0;
    content: "";
    /* background: repeating-linear-gradient(
        45deg,
        rgba(243, 148, 34, 0.1),
        rgba(243, 148, 34, 0.1) 10px,
        transparent 10px,
        transparent 20px
    ); */
    opacity: 0.35;
}

.hero > *,
.hero-content {
    position: relative;
    z-index: 1;
}

.hero-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.logo {
    width: 100px;
    margin-bottom: 22px;
}

.hero-header .logo {
    margin-bottom: 0;
}

.hero h1 {
    margin-bottom: 0;
    color: var(--color-accent);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1;
}

.hero h2 {
    margin: 12px 0;
    border: 0;
    color: var(--color-light-gray);
    font-size: clamp(1.35rem, 4vw, 2rem);
    font-weight: 400;
}

.hero p {
    color: #bbbbbb;
}

#button {
    margin-top: 20px;
}

.year-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 24px;
}

.year-nav a,
.button,
.social-link {
    display: inline-block;
    padding: 9px 16px;
    border: 2px solid var(--color-accent);
    border-radius: 8px;
    color: var(--color-background);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}

.year-nav a:hover,
.year-nav a.active,
.button:hover,
.social-link:hover {
    color: var(--color-primary);
    background: var(--color-accent);
}

/* ---------- Métricas ---------- */
.metrics,
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    margin-top: 28px;
    text-align: center;
}

.metric,
.metric-card {
    padding: 24px;
    border-left: 8px solid var(--color-accent);
    border-radius: 6px;
    background: var(--color-background);
    box-shadow: var(--shadow-soft);
}

.metric strong,
.metric-card .number {
    display: block;
    color: var(--color-accent);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: clamp(2.3rem, 6vw, 3rem);
    font-weight: 900;
    line-height: 1;
}

.metric span,
.metric-card .label {
    display: block;
    margin-top: 7px;
    color: var(--color-secondary);
    font-size: 0.9rem;
    font-weight: 700;
}

/* ---------- Cards e gráficos ---------- */
.grid,
.chart-grid,
.qualitative-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.card,
.chart-container,
.theme-card {
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-background);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.chart-container {
    margin-bottom: 30px;
    padding: 30px;
}

.theme-card {
    border-top: 4px solid var(--color-accent);
}

.theme-card h4 {
    margin-bottom: 10px;
    color: var(--color-accent);
    font-size: 1.2rem;
}

.theme-card blockquote {
    margin: 10px 0;
    padding-left: 15px;
    border-left: 3px solid var(--color-secondary);
    color: var(--color-muted);
    font-style: italic;
}

.chartbox {
    width: 100%;
    height: 330px;
}

.insight {
    margin-top: 14px;
    color: var(--color-muted);
    font-size: 0.92rem;
}

/* ---------- Destaques ---------- */
.callout,
.strategic-conclusion {
    margin-top: 40px;
    padding: 28px;
    border-radius: var(--radius);
    text-align: center;
    color: var(--color-background);
    background: var(--color-primary);
}

.callout strong,
.strategic-conclusion strong {
    color: var(--color-accent);
}

.strategic-conclusion p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* ---------- Tabelas ---------- */
.table-wrap,
.table-container {
    overflow-x: auto;
    margin-top: 20px;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-background);
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
}

th,
td {
    padding: 11px 13px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--color-background);
    background: var(--color-accent);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

tbody tr:nth-child(even) {
    background: #fafafa;
}

tbody tr:hover {
    background: #fff5e8;
}

.num,
.table-rating {
    text-align: center;
    color: var(--color-accent);
    font-weight: 700;
}

.table-feedback {
    color: var(--color-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.table-feedback strong {
    color: var(--color-accent);
    font-style: normal;
}

/* ---------- Página de seleção de ano ---------- */
.choice {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 40px 20px;
    background: var(--color-primary);
}

.choice-inner {
    width: min(980px, 100%);
    text-align: center;
}

.choice h1 {
    color: var(--color-accent);
    font-size: clamp(2.8rem, 8vw, 5rem);
}

.choice p {
    margin: 10px 0 32px;
    color: #dddddd;
}

.years {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.year-card {
    padding: 32px;
    border-top: 8px solid var(--color-accent);
    border-radius: 10px;
    color: var(--color-secondary);
    text-align: left;
    text-decoration: none;
    background: var(--color-background);
}

.year-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.year-card strong {
    display: block;
    color: var(--color-accent);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 3rem;
    font-weight: 900;
}

.year-card span {
    font-weight: 700;
}

.year-card small {
    display: block;
    margin-top: 10px;
    color: var(--color-muted);
}

/* ---------- Rodapé ---------- */
footer {
    padding: 22px;
    color: #dddddd;
    text-align: center;
    background: var(--color-secondary);
}

/* ---------- Responsividade ---------- */
@media (max-width: 900px) {
    .grid,
    .chart-grid,
    .qualitative-grid {
        grid-template-columns: 1fr;
    }

    .chart-grid .chart-container[style*="grid-column"] {
        grid-column: auto !important;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(100% - 28px, 1200px);
        padding: 32px 0;
    }

    .hero {
        padding: 54px 16px;
    }

    .years {
        grid-template-columns: 1fr;
    }

    .year-card {
        padding: 25px;
    }

    .chartbox {
        height: 300px;
    }

    .chart-container,
    .card,
    .theme-card {
        padding: 20px;
    }

    .table-wrap,
    .table-container {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.7rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .metrics,
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .year-nav a,
    .button,
    .social-link {
        width: 100%;
        max-width: 290px;
    }
}

/* ---------- Impressão ---------- */
@media print {
    body {
        background: #ffffff;
    }

    .year-nav,
    .social-link,
    #button {
        display: none !important;
    }

    .hero {
        padding: 35px 20px;
        color: #000000;
        background: #ffffff;
    }

    .hero::before,
    .hero-accent {
        display: none;
    }

    .hero h2,
    .hero p {
        color: #333333;
    }

    .card,
    .chart-container,
    .metric,
    .metric-card,
    .theme-card,
    .table-wrap,
    .table-container {
        box-shadow: none;
    }
}
