/**
 * ITC Service — motion layer inspirado em referência industrial (Transpes-style)
 * Hero impactante, stats grandes, rail horizontal, reveals ao scroll.
 */

/* —— Scroll reveal —— */
.itc-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition:
        opacity 0.75s cubic-bezier(.2, .8, .2, 1),
        transform 0.85s cubic-bezier(.2, .8, .2, 1);
}

.itc-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.itc-reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.itc-reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.itc-reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    .itc-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* —— Hero Transpes-style —— */
.itc-hero-service {
    background:
        radial-gradient(ellipse 80% 60% at 15% 20%, rgba(42, 167, 223, 0.28), transparent 50%),
        linear-gradient(135deg, #0c1f38 0%, #153a66 52%, #1a5088 100%);
}

.itc-hero-service::after {
    opacity: 0.65;
}

.itc-hero-service .itc-hero-grid {
    min-height: min(92vh, 820px);
    padding: clamp(72px, 10vh, 120px) 0;
    align-items: center;
}

.itc-hero-era {
    margin: 0 0 14px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.itc-hero-title {
    margin: 0 0 22px;
    font-family: var(--font-display, Manrope, sans-serif);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.05em;
    max-width: 14ch;
}

.itc-hero-title-line {
    display: block;
    font-size: clamp(2.8rem, 7.5vw, 5.5rem);
    text-shadow: 0 2px 28px rgba(7, 17, 31, 0.35);
}

.itc-hero-title-accent {
    color: var(--site-accent, #7ee0ff);
    text-shadow: 0 0 48px rgba(31, 182, 255, 0.4);
}

.itc-hero-lead {
    margin: 0 0 28px;
    max-width: 52ch;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 12px rgba(7, 17, 31, 0.25);
}

.itc-hero-service .site-button-outline {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.itc-hero-service .site-button-outline:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #fff;
}

.itc-hero-service .itc-hero-panel.dark {
    background: rgba(255, 255, 255, 0.14);
}

.itc-hero-service .itc-panel-list > div {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.itc-hero-service .section-badge {
    margin-bottom: 12px;
}

/* —— Stats band (Os números falam por si) —— */
.itc-stats-band {
    position: relative;
    padding: clamp(56px, 8vw, 88px) 0;
    background:
        radial-gradient(900px 400px at 10% 0%, rgba(31, 182, 255, 0.2), transparent 55%),
        linear-gradient(180deg, #07111f 0%, #0e2648 100%);
    color: #fff;
    overflow: hidden;
}

.itc-stats-head {
    margin-bottom: 40px;
    max-width: 640px;
}

.itc-stats-head h2 {
    margin: 0 0 12px;
    font-family: var(--font-display, Manrope, sans-serif);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.itc-stats-head p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 1.05rem;
    line-height: 1.65;
}

.itc-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.itc-stat-block {
    padding: 28px 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), background 0.35s ease;
}

@media (hover: hover) {
    .itc-stat-block:hover {
        transform: translateY(-6px);
        background: rgba(255, 255, 255, 0.09);
    }
}

.itc-stat-block strong.itc-stat-value {
    display: block;
    font-family: var(--font-display, Manrope, sans-serif);
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--site-accent, #52d6ff);
    margin-bottom: 10px;
}

.itc-stat-block span {
    display: block;
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
}

/* —— Section titles split —— */
.itc-section-head-split h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.itc-head-accent {
    color: var(--site-primary-strong, #1492d4);
}

/* —— Horizontal services rail —— */
.itc-services-rail-wrap {
    margin: 28px 0 48px;
}

.itc-services-rail {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 4px 20px;
    margin: 0 -4px;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(31, 182, 255, 0.4) transparent;
}

.itc-services-rail.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.itc-services-rail::-webkit-scrollbar {
    height: 6px;
}

.itc-services-rail::-webkit-scrollbar-thumb {
    background: rgba(31, 182, 255, 0.35);
    border-radius: 999px;
}

.itc-rail-card {
    position: relative;
    flex: 0 0 min(320px, 85vw);
    scroll-snap-align: start;
    padding: 28px 24px;
    border-radius: 22px;
    background: linear-gradient(165deg, #ffffff 0%, #f4f9ff 100%);
    border: 1px solid rgba(16, 27, 45, 0.08);
    box-shadow: 0 18px 44px rgba(7, 17, 31, 0.08);
    min-height: 220px;
}

.itc-rail-card .itc-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--site-primary) 14%, white);
    color: var(--site-primary-strong);
}

.itc-rail-card h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--site-dark);
}

.itc-rail-card p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--site-text-soft);
}

.itc-rail-hint {
    margin: 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--site-text-soft);
    opacity: 0.7;
}

@media (min-width: 1100px) {
    .itc-rail-hint {
        display: none;
    }
}

/* —— CTA challenge band —— */
.itc-cta-challenge {
    padding: clamp(64px, 10vw, 96px) 0;
    background:
        radial-gradient(700px 320px at 80% 20%, rgba(34, 197, 94, 0.12), transparent 60%),
        linear-gradient(135deg, #07111f 0%, #123e74 55%, #1980e7 100%);
    color: #fff;
}

.itc-cta-challenge-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.itc-cta-kicker {
    margin: 0 0 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.itc-cta-challenge h2 {
    margin: 0 0 14px;
    font-family: var(--font-display, Manrope, sans-serif);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.itc-cta-challenge h2 .itc-head-accent {
    color: var(--site-accent);
}

.itc-cta-challenge p {
    margin: 0;
    max-width: 48ch;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.65;
}

.itc-cta-challenge-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: min(100%, 280px);
}

.site-button-lg {
    padding: 14px 22px;
    font-size: 1rem;
}

.site-button-outline-light {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    background: transparent;
}

.site-button-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* —— Grid abaixo do rail: menos redundante visualmente —— */
.itc-services-section .itc-service-grid {
    margin-top: 0;
}

@media (max-width: 980px) {
    .itc-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .itc-hero-service .itc-hero-panel {
        display: none;
    }

    .itc-hero-title {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .itc-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Transpes-style: faixa azul de especialidades (grid + hover)
   ============================================================ */
.itc-expertise-band {
    position: relative;
    padding: clamp(56px, 8vw, 88px) 0 clamp(64px, 8vw, 96px);
    background: linear-gradient(180deg, #1980e7 0%, #1565c0 100%);
    color: #fff;
    overflow: hidden;
}

.itc-expertise-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 820px;
    margin-bottom: 40px;
    padding-top: 8px;
}

.itc-expertise-icon {
    flex-shrink: 0;
    margin-top: 6px;
    opacity: 0.9;
}

.itc-expertise-head h2 {
    margin: 0;
    font-family: var(--font-display, Manrope, sans-serif);
    font-size: clamp(1.5rem, 3.2vw, 2.15rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.itc-expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Última linha incompleta (ex.: 10 tiles): centraliza o tile solitário */
.itc-expertise-tile:last-child:nth-child(3n + 1):not(:nth-child(3n)) {
    grid-column: 2;
}

.itc-expertise-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 28px 24px 56px;
    color: inherit;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.35s cubic-bezier(.2, .8, .2, 1);
}

.itc-expertise-tile:nth-child(3n) {
    border-right: none;
}

.itc-expertise-tile:hover,
.itc-expertise-tile:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.itc-expertise-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
}

.itc-expertise-tile-icon svg,
.itc-expertise-tile-icon i {
    width: 40px;
    height: 40px;
    stroke-width: 1.5;
}

.itc-expertise-tile h3 {
    margin: 0 0 10px;
    font-family: var(--font-display, Manrope, sans-serif);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.itc-expertise-tile p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    max-width: 36ch;
}

.itc-expertise-arrow {
    position: absolute;
    left: 24px;
    bottom: 22px;
    opacity: 0.85;
    transition: transform 0.3s ease;
}

.itc-expertise-tile:hover .itc-expertise-arrow {
    transform: translateX(6px);
}

.itc-expertise-arrow svg,
.itc-expertise-arrow i {
    width: 22px;
    height: 22px;
}

.itc-expertise-cursor,
.itc-segment-cursor {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translate(-50%, -50%);
    transition: opacity 0.15s ease;
}

.itc-expertise-cursor[hidden],
.itc-segment-cursor[hidden] {
    display: none !important;
}

.itc-expertise-cursor-dot,
.itc-segment-cursor-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e53935;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.itc-expertise-cursor-dot::after,
.itc-segment-cursor-dot::after {
    content: "←";
    font-weight: 700;
}

.itc-expertise-cursor-label,
.itc-segment-cursor-label {
    padding: 8px 14px;
    background: #fff;
    color: #1565c0;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

/* ============================================================
   Transpes-style: acordeão horizontal de segmentos
   ============================================================ */
.itc-segments-section {
    padding: clamp(56px, 8vw, 88px) 0;
    background: var(--site-surface);
}

.itc-segments-head {
    max-width: 720px;
    margin-bottom: 36px;
}

.itc-segments-head h2 {
    margin: 0 0 12px;
    font-family: var(--font-display, Manrope, sans-serif);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--site-dark);
}

.itc-segments-head p {
    margin: 0;
    color: var(--site-text-soft);
    line-height: 1.65;
}

.itc-segments-accordion {
    display: flex;
    height: clamp(380px, 52vh, 520px);
    gap: 6px;
    padding: 0 clamp(12px, 2vw, 24px);
}

.itc-segment-panel {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.65s cubic-bezier(.2, .8, .2, 1);
    outline: none;
}

.itc-segment-panel.is-active,
.itc-segment-panel:hover,
.itc-segment-panel:focus-visible {
    flex: 3.2 1 0;
}

.itc-segment-link {
    display: block;
    height: 100%;
    color: #fff;
    text-decoration: none;
}

.itc-segment-bg {
    position: absolute;
    inset: 0;
    background-image: var(--segment-image);
    background-size: cover;
    background-position: var(--segment-image-position, center);
    transform: scale(1.05);
    transition: transform 0.8s cubic-bezier(.2, .8, .2, 1);
}

.itc-segment-panel.is-active .itc-segment-bg,
.itc-segment-panel:hover .itc-segment-bg {
    transform: scale(1);
}

.itc-segment-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 17, 31, 0.55) 0%, rgba(7, 17, 31, 0.35) 40%, rgba(7, 17, 31, 0.65) 100%);
    transition: opacity 0.4s ease;
}

.itc-segment-panel.is-active .itc-segment-scrim,
.itc-segment-panel:hover .itc-segment-scrim {
    opacity: 0.75;
}

.itc-segment-title {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 28px 22px;
    font-family: var(--font-display, Manrope, sans-serif);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

@media (max-width: 900px) {
    .itc-expertise-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .itc-expertise-tile:nth-child(3n) {
        border-right: 1px solid rgba(255, 255, 255, 0.12);
    }

    .itc-expertise-tile:nth-child(2n) {
        border-right: none;
    }

    .itc-segments-accordion {
        flex-direction: column;
        height: auto;
    }

    .itc-segment-panel,
    .itc-segment-panel.is-active,
    .itc-segment-panel:hover {
        flex: none;
        min-height: 120px;
    }

    .itc-segment-panel.is-active,
    .itc-segment-panel:hover {
        min-height: 200px;
    }
}

@media (max-width: 640px) {
    .itc-expertise-grid {
        grid-template-columns: 1fr;
    }

    .itc-expertise-tile {
        border-right: none !important;
    }

    .itc-expertise-cursor,
    .itc-segment-cursor {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .itc-segment-panel,
    .itc-segment-bg,
    .itc-expertise-tile {
        transition: none !important;
    }
}
