/* ============================================================================
 * PORTFOLIO / LANDING — hero, frente cards, ribbon, map, timeline
 * ========================================================================== */

/* ============================== HERO ======================================== */
.hero {
    position: relative;
    background: var(--grad-protium);
    color: white;
    border-radius: var(--r-xl);
    padding: var(--sp-9) var(--sp-9) var(--sp-10);
    margin-bottom: var(--sp-7);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

/* moléculas H2 animadas no fundo */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(34, 197, 94, 0.18) 0%, transparent 30%),
        radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(34, 197, 94, 0.10) 0%, transparent 50%);
    pointer-events: none;
}

.hero-bg-molecule {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 580px;
    height: 580px;
    transform: translateY(-50%);
    opacity: 0.18;
    animation: float 8s ease-in-out infinite;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: var(--fw-semi);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    margin-bottom: var(--sp-5);
    backdrop-filter: blur(8px);
}
.hero-eyebrow .pulse {
    width: 7px;
    height: 7px;
    background: var(--emerald-400);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 12px var(--emerald-400);
}

.hero h1 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: var(--fw-black);
    font-size: 52px;
    line-height: 1.05;
    color: white;
    letter-spacing: -0.03em;
    margin-bottom: var(--sp-4);
}
.hero h1 em {
    font-style: italic;
    background: linear-gradient(135deg, #BBF7D0 0%, #22C55E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero p.lead {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    max-width: 720px;
    margin-bottom: var(--sp-6);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
}

.hero-stat {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: var(--r-md);
    padding: var(--sp-3) var(--sp-4);
    backdrop-filter: blur(10px);
    min-width: 160px;
}
.hero-stat .v {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: var(--fw-black);
    font-size: 24px;
    color: white;
    line-height: 1.05;
    margin-bottom: 2px;
    font-variant-numeric: tabular-nums;
}
.hero-stat .v em {
    font-style: italic;
    color: var(--emerald-300);
}
.hero-stat .l {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: var(--fw-semi);
}

/* ============================== FRENTE CARDS ================================ */
.frentes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
    margin-bottom: var(--sp-7);
}
@media (max-width: 1100px) { .frentes-grid { grid-template-columns: 1fr; } }

.frente-card {
    background: var(--surface);
    border: 1px solid var(--line-1);
    border-radius: var(--r-xl);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--t-med);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.frente-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--emerald-200);
}

.frente-card-illu {
    position: relative;
    height: 180px;
    background: var(--grad-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.frente-card.empilhadeira .frente-card-illu { background: linear-gradient(135deg, #0E2E50 0%, #14B8A6 100%); }
.frente-card.onibus .frente-card-illu       { background: linear-gradient(135deg, #0E2E50 0%, #3B82F6 100%); }
.frente-card.caminhao .frente-card-illu     { background: linear-gradient(135deg, #0E2E50 0%, #8B5CF6 100%); }

.frente-card-illu::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(34, 197, 94, 0.20) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.10) 0%, transparent 60%);
}

.frente-card-illu svg {
    position: relative;
    z-index: 2;
    width: 130px;
    height: 130px;
    color: white;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.frente-card-badge {
    position: absolute;
    top: var(--sp-3);
    right: var(--sp-3);
    background: rgba(34, 197, 94, 0.95);
    color: white;
    padding: 4px 10px;
    border-radius: var(--r-full);
    font-size: 10px;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.frente-card-body {
    padding: var(--sp-5) var(--sp-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.frente-card-body h3 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: var(--fw-black);
    color: var(--navy-600);
    font-size: 22px;
    letter-spacing: -0.02em;
    margin-bottom: var(--sp-1);
}
[data-theme="dark"] .frente-card-body h3 { color: white; }
.frente-card-body .tag {
    font-size: 11px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: var(--fw-semi);
    margin-bottom: var(--sp-3);
}
.frente-card-body .descr {
    font-size: 12.5px;
    color: var(--ink-2);
    line-height: 1.6;
    margin-bottom: var(--sp-4);
}

.frente-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-2);
    padding: var(--sp-3) 0;
    border-top: 1px solid var(--line-1);
    border-bottom: 1px solid var(--line-1);
    margin-bottom: var(--sp-4);
}
.frente-card-stat { text-align: center; }
.frente-card-stat .v {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: var(--fw-black);
    font-size: 18px;
    color: var(--navy-600);
    line-height: 1;
    margin-bottom: 2px;
    font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .frente-card-stat .v { color: white; }
.frente-card-stat .l {
    font-size: 10px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: var(--fw-medium);
}

.frente-card-cta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--emerald-600);
    font-size: 12.5px;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.frente-card-cta svg {
    width: 16px;
    height: 16px;
    transition: transform var(--t-fast);
}
.frente-card:hover .frente-card-cta svg { transform: translateX(4px); }

/* ============================== KPI RIBBON =================================== */
.ribbon {
    background: var(--surface);
    border: 1px solid var(--line-1);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: var(--sp-7);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    box-shadow: var(--shadow-sm);
}
@media (max-width: 1024px) { .ribbon { grid-template-columns: repeat(2, 1fr); } }

.ribbon-cell {
    padding: var(--sp-5) var(--sp-5);
    border-right: 1px solid var(--line-1);
    position: relative;
    overflow: hidden;
}
.ribbon-cell:last-child { border-right: 0; }
.ribbon-cell::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 3px;
    background: var(--grad-emerald);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-slow) ease-out;
}
.ribbon-cell:hover::before { transform: scaleX(1); }

.ribbon-cell .lbl {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: 10.5px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: var(--fw-bold);
    margin-bottom: var(--sp-2);
}
.ribbon-cell .lbl svg { width: 14px; height: 14px; color: var(--emerald-500); }

.ribbon-cell .val {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: var(--fw-black);
    font-size: 28px;
    color: var(--navy-600);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .ribbon-cell .val { color: white; }
.ribbon-cell .val .u {
    font-size: 12px;
    font-weight: var(--fw-medium);
    font-style: normal;
    color: var(--ink-4);
    margin-left: 4px;
}

.ribbon-cell .sub { font-size: 11px; color: var(--ink-4); margin-top: 2px; }

/* ============================== MAPA PARANÁ =================================== */
.map-wrap {
    background: var(--surface);
    border: 1px solid var(--line-1);
    border-radius: var(--r-lg);
    padding: var(--sp-5) var(--sp-6);
    position: relative;
    overflow: hidden;
    min-height: 380px;
    box-shadow: var(--shadow-sm);
}

.map-wrap svg {
    width: 100%;
    height: 100%;
    max-height: 420px;
}

.map-legend {
    position: absolute;
    bottom: var(--sp-5);
    left: var(--sp-6);
    background: var(--surface);
    border: 1px solid var(--line-1);
    border-radius: var(--r-md);
    padding: var(--sp-3) var(--sp-4);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}
.map-legend .item {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: 11.5px;
    color: var(--ink-2);
}
.map-legend .item .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255,255,255,1), 0 0 0 4px;
}
.map-legend .item .dot.csn { background: var(--emerald-500); box-shadow: 0 0 0 3px rgba(255,255,255,1), 0 0 0 4px var(--emerald-500); }
.map-legend .item .dot.curitiba { background: #3B82F6; box-shadow: 0 0 0 3px rgba(255,255,255,1), 0 0 0 4px #3B82F6; }
.map-legend .item .dot.joinville { background: #8B5CF6; box-shadow: 0 0 0 3px rgba(255,255,255,1), 0 0 0 4px #8B5CF6; }
.map-legend .item .line {
    width: 16px; height: 0;
    border-top: 2px dashed currentColor;
}
.map-legend .item.h2 { color: var(--emerald-500); }
.map-legend .item.cargo { color: #8B5CF6; }

/* ============================== TIMELINE ===================================== */
.timeline {
    background: var(--surface);
    border: 1px solid var(--line-1);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.timeline-track {
    position: relative;
    height: 80px;
    margin: var(--sp-5) 0;
    padding: 0 var(--sp-3);
}
.timeline-line {
    position: absolute;
    top: 36px;
    left: 12px; right: 12px;
    height: 3px;
    background: linear-gradient(90deg, var(--emerald-500) 0%, var(--navy-600) 100%);
    border-radius: 2px;
}

.timeline-step {
    position: absolute;
    transform: translateX(-50%);
    text-align: center;
    min-width: 110px;
}
.timeline-step .dot {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--emerald-500);
    margin: 0 auto var(--sp-2);
    box-shadow: 0 0 0 3px var(--surface), var(--shadow-sm);
    position: relative;
    z-index: 2;
    transition: transform var(--t-fast);
}
.timeline-step.done .dot { background: var(--emerald-500); }
.timeline-step.current .dot { background: var(--emerald-500); animation: pulse 2s ease infinite; }
.timeline-step:hover .dot { transform: scale(1.3); }

.timeline-step .lbl {
    font-size: 11px;
    font-weight: var(--fw-semi);
    color: var(--navy-600);
}
[data-theme="dark"] .timeline-step .lbl { color: var(--emerald-400); }
.timeline-step .date {
    font-size: 10px;
    color: var(--ink-4);
    font-family: var(--font-mono);
    margin-top: 2px;
}

/* ============================== RESUMO EXECUTIVO ============================ */
.resumo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
}
@media (max-width: 1024px) { .resumo-grid { grid-template-columns: 1fr; } }

.resumo-block {
    padding: var(--sp-5) var(--sp-5);
    border-left: 3px solid;
    background: var(--canvas-2);
    border-radius: 0 var(--r-md) var(--r-md) 0;
}
.resumo-block.empilhadeira { border-left-color: #14B8A6; }
.resumo-block.onibus { border-left-color: #3B82F6; }
.resumo-block.caminhao { border-left-color: #8B5CF6; }

.resumo-block h4 {
    font-style: italic;
    font-weight: var(--fw-black);
    font-size: 15px;
    color: var(--navy-600);
    margin-bottom: var(--sp-3);
    letter-spacing: -0.01em;
}
[data-theme="dark"] .resumo-block h4 { color: white; }
.resumo-block .line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--sp-2) 0;
    border-bottom: 1px dashed var(--line-2);
    font-size: 12px;
}
.resumo-block .line:last-child { border-bottom: 0; }
.resumo-block .line .l { color: var(--ink-3); }
.resumo-block .line .v {
    font-family: var(--font-mono);
    font-weight: var(--fw-bold);
    color: var(--navy-600);
}
[data-theme="dark"] .resumo-block .line .v { color: white; }
