/* ==========================================================================
   PORTAL PRESTAÇÃO DE CONTAS ESG - A VOZ DA CIDADE (WHITE MODE)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    /* Color Palette */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #64748b;
    
    /* Brand Colors (ESG Logo & CCR) */
    --color-brand-green: #2E5B22; /* Verde ESG */
    --color-brand-green-hover: #1f3f17;
    --color-brand-green-glow: rgba(46, 91, 34, 0.15);
    
    --color-brand-gold: #e5b700; /* Amarelo/Dourado CCR */
    --color-brand-gold-hover: #cca300;
    --color-brand-gold-glow: rgba(229, 183, 0, 0.15);
    
    --color-voz-purple: #7c3aed; /* Roxo A Voz da Cidade */
    
    /* Glassmorphism Styles (Light Mode) */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(46, 91, 34, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.5);
    
    --shadow-premium: 0 12px 40px -10px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(46, 91, 34, 0.15) transparent;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-primary);
    color: var(--color-text-secondary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, .font-display {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--color-text-primary);
}

/* Modern Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(46, 91, 34, 0.15);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-brand-green);
}

/* ==========================================================================
   BACKGROUND ANIMATION (ORBS)
   ========================================================================== */
.bg-orbs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.04;
    animation: float 25s infinite alternate ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-brand-green) 0%, transparent 80%);
    top: -10%;
    left: -10%;
    animation-duration: 20s;
}

.orb-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--color-brand-gold) 0%, transparent 80%);
    bottom: -15%;
    right: -10%;
    animation-duration: 28s;
    animation-delay: -5s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-voz-purple) 0%, transparent 80%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 35s;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(50px, -50px) scale(1.05) rotate(120deg);
    }
    66% {
        transform: translate(-40px, 60px) scale(0.98) rotate(240deg);
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(360deg);
    }
}

/* ==========================================================================
   BANNER DE CABEÇALHO SUPERIOR (FITA)
   ========================================================================== */
.header-banner-strip {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--color-brand-green) 0%, var(--color-brand-gold) 50%, var(--color-voz-purple) 100%);
    position: relative;
    z-index: 10;
}

.header-banner-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-bottom: 1px solid rgba(46, 91, 34, 0.08);
}

.header-banner-image img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.header-banner-image img:hover {
    filter: brightness(0.96);
    opacity: 0.95;
}

/* ==========================================================================
   GLASSMORPHISM LIGHT UTILITIES
   ========================================================================== */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
    pointer-events: none;
}

.glass-card {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(46, 91, 34, 0.04);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px -5px rgba(15, 23, 42, 0.02);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(46, 91, 34, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -10px rgba(15, 23, 42, 0.08);
}

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 24px 80px 24px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 32px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(46, 91, 34, 0.06);
    gap: 24px;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.brand-logo-img:hover {
    transform: scale(1.03);
}

.logo-divider {
    width: 1px;
    height: 40px;
    background: rgba(46, 91, 34, 0.15);
}

.logos-jornais {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tag-jornal-header {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--color-voz-purple);
    letter-spacing: -0.5px;
}

.tag-jornal-subtitle {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-brand-green);
    letter-spacing: 1.5px;
}

.header-meta {
    text-align: right;
}

.header-meta h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-brand-green);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.header-meta p {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-meta {
        text-align: left;
    }
}

/* ==========================================================================
   PRESENTATION BANNER BUTTON
   ========================================================================== */
.presentation-banner {
    background: linear-gradient(135deg, rgba(46, 91, 34, 0.05) 0%, rgba(229, 183, 0, 0.05) 100%);
    border: 1px solid rgba(46, 91, 34, 0.08);
    border-radius: 16px;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 4px 20px -5px rgba(46, 91, 34, 0.03);
}

.banner-text h3 {
    font-size: 20px;
    margin-bottom: 6px;
    color: var(--color-brand-green);
}

.banner-text p {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.btn-premium {
    background: var(--color-brand-green);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px var(--color-brand-green-glow);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.btn-premium:hover {
    background: var(--color-brand-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 91, 34, 0.25);
}

/* ==========================================================================
   METRICS SUMMARY GRID
   ========================================================================== */
.metrics-grid-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .metrics-grid-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .metrics-grid-summary {
        grid-template-columns: 1fr;
    }
}

.metric-card-summary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 28px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.metric-card-summary:hover {
    transform: translateY(-4px);
    border-color: rgba(46, 91, 34, 0.15);
}

.metric-card-summary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
}

.metric-card-summary.green::after { background: var(--color-brand-green); }
.metric-card-summary.blue::after { background: #0284c7; }
.metric-card-summary.purple::after { background: var(--color-voz-purple); }
.metric-card-summary.gold::after { background: var(--color-brand-gold); }

.metric-card-summary.green:hover { box-shadow: 0 12px 30px var(--color-brand-green-glow); }
.metric-card-summary.gold:hover { box-shadow: 0 12px 30px var(--color-brand-gold-glow); }

.metric-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.metric-value {
    font-size: 38px;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text-primary);
    margin-bottom: 6px;
}

.metric-subtext {
    font-size: 12px;
    color: var(--color-text-secondary);
    font-weight: 500;
    margin-top: auto;
}

/* ==========================================================================
   SECTIONS & GRIDS
   ========================================================================== */
.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .grid-2col {
        grid-template-columns: 1fr;
    }
}

.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(46, 91, 34, 0.06);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-primary);
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--color-brand-green);
    border-radius: 2px;
}

.section-title.voz::before { background: var(--color-voz-purple); }

/* ==========================================================================
   PUBLICATIONS CARDS
   ========================================================================== */
.pub-cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pub-card {
    background: white;
    border: 1px solid rgba(46, 91, 34, 0.05);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
    transition: var(--transition-smooth);
}

.pub-card:hover {
    border-color: rgba(46, 91, 34, 0.1);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.03);
}

.pub-header {
    background: rgba(46, 91, 34, 0.02);
    padding: 16px 24px;
    border-bottom: 1px solid rgba(46, 91, 34, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.pub-meta-left {
    display: flex;
    flex-direction: column;
}

.pub-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.pub-date {
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.pub-badge-group {
    display: flex;
    gap: 8px;
}

.badge-insta {
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
    color: white;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
}

.badge-fb {
    background: #1877f2;
    color: white;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
}

.pub-body {
    padding: 24px;
}

.sub-pub-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.sub-pub-item {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 18px;
    border: 1px solid rgba(46, 91, 34, 0.03);
    display: flex;
    flex-direction: column;
}

.sub-pub-type {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-brand-green);
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.sub-pub-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.sub-metric {
    display: flex;
    flex-direction: column;
}

.sub-metric-label {
    font-size: 10px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-weight: 500;
}

.sub-metric-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.sub-metric-val.highlight {
    color: #16a34a;
}

.pub-audit-links {
    padding: 12px 24px;
    background: rgba(0,0,0,0.01);
    border-top: 1px dashed rgba(46, 91, 34, 0.04);
    display: flex;
    gap: 16px;
}

.audit-link {
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.audit-link svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.audit-link:hover {
    color: var(--color-brand-green);
}

/* ==========================================================================
   MODERN LIGHT TABLES
   ========================================================================== */
.table-container {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(46, 91, 34, 0.06);
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

thead {
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
}

th {
    padding: 16px 20px;
    font-weight: 600;
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--color-text-secondary);
    font-weight: 500;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: rgba(46, 91, 34, 0.02);
}

tr.table-total {
    background: rgba(46, 91, 34, 0.04);
    font-weight: 700;
    border-top: 2px solid rgba(46, 91, 34, 0.1);
}

tr.table-total td {
    color: var(--color-brand-green);
    font-weight: 800;
}

/* ==========================================================================
   DUTRA INTERACTIVE MAP
   ========================================================================== */
.map-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .map-layout {
        grid-template-columns: 1fr;
    }
}

.map-wrapper {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    height: 480px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-shadow: var(--shadow-premium);
}

.dutra-svg {
    width: 100%;
    height: 100%;
    max-height: 440px;
}

.dutra-road-bg {
    fill: none;
    stroke: rgba(0, 0, 0, 0.03);
    stroke-width: 16;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dutra-road {
    fill: none;
    stroke: #cbd5e1;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dutra-road-highlight {
    fill: none;
    stroke: var(--color-brand-green);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.4;
}

.dutra-road-center {
    fill: none;
    stroke: var(--color-brand-gold);
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 6, 6;
}

/* Map Pins */
.map-pin {
    cursor: pointer;
}

.pin-base {
    fill: var(--color-brand-green);
    fill-opacity: 0.15;
    stroke: var(--color-brand-green);
    stroke-width: 1;
    transition: var(--transition-smooth);
}

.pin-core {
    fill: var(--color-brand-green);
    stroke: white;
    stroke-width: 1.5;
    transition: var(--transition-smooth);
}

.map-pin:hover .pin-base {
    fill-opacity: 0.45;
    stroke: var(--color-brand-gold);
    stroke-width: 2.5px;
}

.map-pin:hover .pin-core {
    fill: var(--color-brand-gold);
}


.map-pin.active .pin-base {
    fill: var(--color-brand-gold);
    fill-opacity: 0.3;
    stroke: var(--color-brand-gold);
    stroke-width: 2;
    animation: pulse 2s infinite;
}

.map-pin.active .pin-core {
    fill: var(--color-brand-gold);
    stroke: white;
}

@keyframes pulse {
    0% {
        r: 9;
        stroke-opacity: 1;
    }
    100% {
        r: 18;
        stroke-opacity: 0;
    }
}

.map-pin-label {
    font-size: 8px;
    font-weight: 700;
    fill: var(--color-text-secondary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    pointer-events: none;
    opacity: 0.7;
}

.map-pin:hover + .map-pin-label, 
.map-pin.active + .map-pin-label {
    opacity: 1;
    font-weight: 800;
    fill: var(--color-text-primary);
}

/* Map details card */
.map-details-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.map-placeholder-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    color: var(--color-text-muted);
    padding: 40px 20px;
}

.map-placeholder-info svg {
    color: var(--color-brand-green);
    margin-bottom: 16px;
    opacity: 0.7;
}

.map-placeholder-info p {
    font-size: 13px;
    font-weight: 500;
}

.location-details {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.location-details.active {
    display: block;
}

.location-image-box {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid rgba(46, 91, 34, 0.05);
    background: #f1f5f9;
}

.location-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--color-text-primary);
}

.location-city {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-brand-green);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.location-info-p {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.location-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-primary);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(46, 91, 34, 0.03);
}

.location-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
}

.location-stat-label {
    color: var(--color-text-muted);
    font-weight: 600;
}

.location-stat-value {
    color: var(--color-text-primary);
    font-weight: 700;
}

.btn-location-map {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    background: var(--color-brand-green);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgba(46, 91, 34, 0.1), 0 2px 4px -1px rgba(46, 91, 34, 0.06);
}

.btn-location-map:hover {
    background: var(--color-brand-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(46, 91, 34, 0.2), 0 4px 6px -2px rgba(46, 91, 34, 0.1);
}

.btn-location-map svg {
    flex-shrink: 0;
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    border-top: 1px solid rgba(46, 91, 34, 0.06);
    padding-top: 32px;
    margin-top: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 30px;
    width: auto;
}

.footer-text {
    font-size: 11.5px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.footer-contacts {
    text-align: right;
    font-size: 11.5px;
    color: var(--color-text-secondary);
}

.footer-contacts span {
    display: block;
    margin-bottom: 2px;
}

@media (max-width: 640px) {
    footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-contacts {
        text-align: left;
    }
}
