/* ==========================================================================
   CONFIGURAÇÕES BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 110px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 16%, #ffffff 100%);
    color: #2c3e50;
    overflow-x: hidden;
}

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2000;
    padding: 10px 14px;
    color: #ffffff;
    background: #111827;
    border-radius: 6px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #d30c14;
    outline-offset: 3px;
}

/* ==========================================================================
   BARRA DE NAVEGAÇÃO & LOGO COMPACTA HORIZONTAL
   ========================================================================== */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 6%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.logo-horizontal {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- Ícone do Monitor Compactado --- */
.mini-logo-symbol {
    position: relative;
    width: 75px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mini-monitor {
    width: 48px;
    height: 32px;
    border: 3px solid #1a1a1a;
    border-radius: 5px;
    background-color: #ffffff;
    position: relative;
    z-index: 2;
}

.mini-screen-content {
    position: absolute;
    bottom: 2px;
    right: 4px;
    display: flex;
    gap: 2px;
}

.m-dot {
    width: 3px;
    height: 3px;
    display: inline-block;
}
.m-dot-black { background-color: #1a1a1a; }
.m-dot-red { background-color: #d30c14; }

.mini-neck {
    width: 6px;
    height: 6px;
    background-color: #1a1a1a;
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
}

.mini-base {
    width: 24px;
    height: 3px;
    background-color: #1a1a1a;
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 5px 5px;
}

.mini-orbit {
    position: absolute;
    width: 70px;
    height: 26px;
    border: 3px solid #d30c14;
    border-radius: 50%;
    transform: rotate(-10deg);
    z-index: 1;
}

/* --- Texto Alinhado --- */
.logo-text-side {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #111111;
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-title span {
    color: #d30c14;
}

.logo-subtitle {
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #555555;
    margin-top: 2px;
}

/* --- Links de Navegação --- */
.nav-menu a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    margin-left: 20px;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: #d30c14;
}

/* ==========================================================================
   BANNER PRINCIPAL (HERO) - CORRIGIDO E CENTRALIZADO
   ========================================================================== */
.hero-banner {
    background: linear-gradient(rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.82)), 
                url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=1920') no-repeat center center;
    background-size: cover;
    min-height: 65vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    width: 100%;
    position: relative;
}

.hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(211, 12, 20, 0.18), transparent 35%, transparent 70%, rgba(255, 255, 255, 0.06));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 980px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    color: #ffffff;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    max-width: 850px;
}

.hero-content p {
    font-size: 18px;
    color: #d1d5db;
    max-width: 720px;
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
}

.btn-primary,
.btn-secondary {
    text-decoration: none;
    padding: 15px 32px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: #d30c14;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(211, 12, 20, 0.3);
}

.btn-primary:hover {
    background-color: #b00910;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.hero-capabilities {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    width: 100%;
}

.hero-capabilities div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 150px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.hero-capabilities strong {
    color: #ffffff;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.hero-capabilities span {
    color: #d1d5db;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* ==========================================================================
   SEÇÃO QUEM SOMOS
   ========================================================================== */
.about-section {
    padding: 80px 8%;
    background-color: #ffffff;
}

.about-text {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.tag-line {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #d30c14;
    letter-spacing: 2px;
}

.about-text h2 {
    font-size: 32px;
    color: #111111;
    margin: 10px 0 20px 0;
}

.about-text p {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.8;
}

/* ==========================================================================
   SEÇÃO SEUS SERVIÇOS
   ========================================================================== */
.benefits-section {
    padding: 80px 8% 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.benefit-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 22px;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.benefit-item:hover {
    transform: translateY(-6px);
    border-color: rgba(211, 12, 20, 0.2);
    box-shadow: 0 18px 32px rgba(17, 24, 39, 0.1);
}

.benefit-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 14px;
    background: rgba(211, 12, 20, 0.08);
    color: #d30c14;
    font-size: 24px;
}

.benefit-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #111111;
}

.benefit-item p {
    color: #4b5563;
    line-height: 1.7;
    font-size: 14px;
}

.process-section {
    padding: 80px 8% 20px;
    background: #f8fafc;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.process-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px 22px 22px;
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.05);
    position: relative;
}

.process-card h3 {
    color: #111111;
    font-size: 19px;
    margin-bottom: 10px;
}

.process-step {
    display: block;
    margin: 0 0 6px;
    color: #d30c14;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.process-card p {
    color: #4b5563;
    line-height: 1.7;
    font-size: 14px;
}

.services-section {
    padding: 60px 8% 80px;
    background-color: #f9fafb;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: clamp(2rem, 3vw, 2.7rem);
    color: #111111;
    letter-spacing: -0.02em;
    font-weight: 600;
}

.title-line {
    width: 78px;
    height: 4px;
    background: linear-gradient(90deg, #d30c14 0%, #ef4444 100%);
    margin: 15px auto 0 auto;
    border-radius: 999px;
}

.section-description {
    max-width: 660px;
    margin: 12px auto 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 6px;
    border-bottom: 3px solid transparent;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom-color: #d30c14;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.card-icon {
    font-size: 35px;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.service-card:hover .card-icon {
    color: #d30c14;
}

.service-card h3 {
    font-size: 18px;
    color: #111111;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

.technology-note {
    max-width: 900px;
    margin: 28px auto 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

/* ==========================================================================
   SEÇÃO PORTFÓLIO DE SISTEMAS SUPERVISÓRIOS
   ========================================================================== */
.portfolio-section {
    padding: 80px 8%;
    background-color: #ffffff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* --- SUPERVISÓRIO INTERATIVO --- */
.simulator-panel {
    margin: 45px 0 55px;
    padding: 30px;
    color: #e8edf0;
    background: #172127;
    border: 1px solid #34434a;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.14);
}

.simulator-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid #34434a;
}

.simulator-kicker,
.reading-caption,
.equipment-state,
.control-title,
.range-ends {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
}

.simulator-kicker {
    color: #f16c61;
    font-size: 10px;
    font-weight: 700;
}

.simulator-heading h3 {
    margin-top: 7px;
    color: #ffffff;
    font-size: 22px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #b7c5ca;
    font-size: 12px;
    font-weight: 700;
}

.status-indicator {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #62c990;
    box-shadow: 0 0 12px rgba(98, 201, 144, 0.65);
}

.simulator-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.1fr);
    gap: 30px;
    padding: 28px 0 18px;
}

.process-area {
    position: relative;
    display: block;
    min-height: 390px;
    padding: 14px;
    overflow: hidden;
    background-color: #202e34;
    background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 24px 24px;
    border-radius: 5px;
}

.transfer-route {
    --pump-x: clamp(102px, 32%, 170px);
    position: relative;
    height: 360px;
}

.vessel-unit {
    position: absolute;
    z-index: 1;
    top: 46px;
    display: flex;
    width: min(90px, 24%);
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.source-vessel { left: 5%; }
.destination-vessel { right: 5%; }

.vessel-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #aab9bf;
    font-size: 8px;
    text-transform: uppercase;
}

.vessel-label strong {
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
}

.vessel-instrument {
    color: #819198;
    font-family: 'Orbitron', sans-serif;
    font-size: 8px;
}

.tank-shell {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: rgba(8, 16, 20, 0.55);
    border: 3px solid #aab9bf;
    border-radius: 12px 12px 24px 24px;
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.035), 0 8px 18px rgba(0, 0, 0, 0.22);
}

.tank-shell::before,
.tank-shell::after {
    position: absolute;
    z-index: 2;
    right: 0;
    left: 0;
    height: 5px;
    content: '';
    background: #aab9bf;
}

.tank-shell::before { top: 31%; }
.tank-shell::after { top: 56%; }

.tank-level {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 62%;
    background: linear-gradient(90deg, #197c91, #25b1b4 48%, #16889b);
    transition: height 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.destination-level {
    background: linear-gradient(90deg, #197c91, #25b1b4 48%, #16889b);
}

.water-surface {
    position: absolute;
    top: -5px;
    left: -20%;
    width: 140%;
    height: 10px;
    border-radius: 50%;
    background: rgba(139, 239, 228, 0.7);
    animation: water-drift 3s ease-in-out infinite alternate;
}

.tank-level-label {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 12px;
    left: 0;
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
}

.pump-cell {
    position: absolute;
    z-index: 3;
    top: 285px;
    left: var(--pump-x);
    width: 84px;
    height: 66px;
}

.process-pipe {
    position: absolute;
    z-index: 2;
    overflow: hidden;
    background: #37474f;
    border: 3px solid #aab9bf;
    border-radius: 5px;
}

.suction-drop {
    top: 264px;
    left: calc(5% + 41px);
    width: 9px;
    height: 57px;
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
}

.suction-run {
    top: 313px;
    left: calc(5% + 41px);
    right: calc(100% - var(--pump-x));
    height: 9px;
    border-right: 0;
    border-radius: 5px 0 0 5px;
}

.discharge-riser {
    top: 20px;
    left: calc(var(--pump-x) + 32px);
    width: 9px;
    height: 286px;
    border-top: 0;
    border-radius: 0 0 5px 5px;
}

.discharge-header {
    top: 18px;
    left: calc(var(--pump-x) + 32px);
    right: 5%;
    height: 9px;
    border-left: 0;
    border-radius: 0 5px 5px 0;
}

.destination-drop {
    top: 18px;
    right: 5%;
    width: 9px;
    height: 61px;
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
}

.destination-inlet {
    top: 73px;
    right: 5%;
    width: 15px;
    height: 9px;
    border-left: 0;
    border-radius: 0 5px 5px 0;
}

.flow-particle {
    position: absolute;
    top: 1px;
    left: 0;
    width: 5px;
    height: 3px;
    background: #6ce0d5;
    opacity: 0;
}

.pump-unit {
    position: absolute;
    top: 50%;
    left: 0;
    display: flex;
    width: 84px;
    height: 54px;
    align-items: center;
    justify-content: center;
    color: #e1e8e9;
    transform: translateY(-50%);
}

.centrifugal-pump {
    display: block;
    width: 84px;
    height: 54px;
    overflow: visible;
}

.pump-unit.is-running { color: #71dfaa; }
.pump-casing { fill: #73878d; stroke: #c4d0d3; stroke-width: 1.5; }
.pump-casing-detail { fill: none; stroke: #dbe4e6; stroke-linecap: round; stroke-width: 1.4; }
.pump-motor { fill: #bac6c9; stroke: #e4eaeb; stroke-width: 1.2; }
.pump-foot { fill: #7b8e94; }
.pump-nozzle,
.pump-flange { fill: #d5dfe1; }
.pump-impeller-hub { fill: #26363c; stroke: #d9e4e6; stroke-width: 1.5; }
.pump-impeller-center,
.pump-bolt { fill: #edf2f3; }
.pump-impeller { transform-box: view-box; transform-origin: 34.8% 47.2%; }
.pump-impeller path { fill: none; stroke: #bac6c9; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; }
.pump-shaft { stroke: #aab9bf; stroke-width: 3; }
.pump-motor-fin { fill: none; stroke: #65787e; stroke-width: 1.1; }
.pump-terminal { fill: #8da0a5; stroke: #dce5e7; stroke-width: 1; }
.pump-end-cap { fill: #87999e; stroke: #dce5e7; stroke-width: 1; }
.pump-unit.is-running .pump-casing { fill: #3d7961; stroke: #a4e8c3; }
.pump-unit.is-running .pump-motor { fill: #b7dfc8; }
.pump-unit.is-running .pump-impeller path { stroke: #71dfaa; }
.pump-unit.is-running .pump-impeller { animation: pump-spin 1s linear infinite; }
.transfer-route.is-running .flow-particle { animation: water-flow 0.75s linear infinite; opacity: 1; }
.flow-particle:nth-child(2) { animation-delay: 0.4s !important; }
.suction-drop .flow-particle,
.destination-drop .flow-particle { animation-name: water-flow-down !important; }
.discharge-riser .flow-particle { animation-name: water-flow-up !important; }

.process-readings {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.reading-block {
    min-width: 0;
    padding: 12px 10px;
    background: #202e34;
    border-left: 3px solid #29b4b5;
}

.temperature-reading { border-left-color: #ed765f; }
.destination-reading { border-left-color: #71dfaa; }

.reading-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b7c5ca;
    font-size: 11px;
    font-weight: 700;
}

.reading-label i { color: #5cd3d0; }
.destination-reading .reading-label i { color: #71dfaa; }
.temperature-reading .reading-label i { color: #ff967c; }

.reading-block strong {
    display: block;
    margin-top: 9px;
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 27px;
}

.reading-block strong small {
    margin-left: 3px;
    color: #9aabb1;
    font-size: 13px;
}

.reading-caption {
    display: block;
    margin-top: 7px;
    color: #819198;
    font-size: 8px;
}

.trend-panel {
    margin-top: 14px;
    padding: 12px 13px 10px;
    background: #202e34;
    border: 1px solid #34434a;
    border-radius: 4px;
}

.trend-heading,
.trend-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.trend-heading {
    color: #dce5e7;
    font-size: 10px;
    font-weight: 700;
}

.trend-heading span:last-child {
    color: #819198;
    font-size: 8px;
    font-weight: 400;
}

.trend-chart {
    display: block;
    width: 100%;
    height: 76px;
    margin-top: 6px;
    overflow: visible;
}

.trend-gridline {
    stroke: #405158;
    stroke-dasharray: 3 5;
    stroke-width: 1;
}

.trend-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
    vector-effect: non-scaling-stroke;
}

.trend-level { stroke: #48d2cc; }
.trend-destination { stroke: #71dfaa; }
.trend-temperature { stroke: #ff8a70; }

.trend-legend {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #aab9bf;
    font-size: 8px;
}

.trend-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trend-key {
    width: 12px;
    height: 2px;
    background: #48d2cc;
}

.temperature-key { background: #ff8a70; }
.destination-key { background: #71dfaa; }

.equipment-state {
    display: grid;
    gap: 10px;
    padding: 17px 0;
    color: #aab9bf;
    font-size: 9px;
    text-transform: uppercase;
}

.equipment-state span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.equipment-state strong { color: #e8edf0; }

.control-group {
    padding-top: 15px;
    border-top: 1px solid #34434a;
}

.control-title {
    display: block;
    margin-bottom: 11px;
    color: #aab9bf;
    font-size: 9px;
    text-transform: uppercase;
}

.command-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.command-button {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    color: #dce5e7;
    background: #2b3a40;
    border: 1px solid #495960;
    border-radius: 4px;
    cursor: pointer;
    font: 700 10px 'Montserrat', sans-serif;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.command-button:hover { background: #394b52; }
.command-button:focus-visible { outline: 2px solid #f16c61; outline-offset: 2px; }
.pump-command[aria-pressed="true"] { color: #b8f1d2; border-color: #62c990; background: #254739; }
.heater-command[aria-pressed="true"] { color: #ffd0bd; border-color: #ed765f; background: #50352f; }

.setpoint-control {
    display: block;
    margin-top: 17px;
}

.setpoint-control > span:first-child {
    display: flex;
    justify-content: space-between;
    color: #b7c5ca;
    font-size: 10px;
    font-weight: 700;
}

.setpoint-control strong { color: #ffffff; font-family: 'Orbitron', sans-serif; font-size: 10px; }
.setpoint-control input { width: 100%; margin: 13px 0 4px; accent-color: #ed765f; cursor: pointer; }
.range-ends { display: flex; justify-content: space-between; color: #819198; font-size: 8px; }

.simulator-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    color: #aab9bf;
    font-size: 11px;
}

.simulator-note i { color: #62c990; }

@keyframes water-flow {
    to { left: calc(100% - 5px); }
}

@keyframes water-flow-down {
    to { top: calc(100% - 5px); }
}

@keyframes water-flow-up {
    to { top: 0; }
}

@keyframes pump-spin {
    to { transform: rotate(360deg); }
}

@keyframes water-drift {
    to { transform: translateX(12px) scaleY(0.7); }
}

@media (max-width: 900px) {
    .simulator-panel { padding: 20px 16px; }
    .simulator-layout { grid-template-columns: 1fr; gap: 22px; }
    .process-area { min-height: 390px; padding: 14px; }
    .transfer-route { --pump-x: clamp(102px, 32%, 170px); height: 360px; }
    .tank-shell { height: 190px; }
}

@media (max-width: 420px) {
    .simulator-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .process-area { min-height: 390px; padding: 10px 8px; }
    .transfer-route { --pump-x: clamp(96px, 32%, 130px); height: 360px; }
    .vessel-unit { width: min(76px, 100%); }
    .tank-shell { height: 155px; }
    .suction-drop { top: 229px; height: 92px; }
    .vessel-label strong { font-size: 9px; }
    .pump-cell { width: 72px; }
    .pump-unit { width: 72px; }
    .centrifugal-pump { width: 72px; height: 46px; }
    .discharge-riser { left: calc(var(--pump-x) + 28px); }
    .discharge-header { left: calc(var(--pump-x) + 28px); }
    .process-readings { grid-template-columns: 1fr 1fr; }
    .temperature-reading { grid-column: 1 / -1; }
    .command-buttons { grid-template-columns: 1fr; }
}

.portfolio-card {
    background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
    border-color: rgba(211, 12, 20, 0.18);
}

.premium-card {
    position: relative;
}

.premium-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d30c14, #f59e0b);
}

.portfolio-img-wrapper {
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.portfolio-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.02);
    filter: saturate(1.1);
}

.portfolio-info {
    padding: 26px 22px 24px;
}

.portfolio-info h3 {
    font-size: 21px;
    color: #111111;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.portfolio-info p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

/* --- LIGHTBOX MODAL PREVIEW --- */
.modal-preview {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-conteudo {
    max-width: 85%;
    max-height: 85%;
    border-radius: 6px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.5);
}

.modal-fechar {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* ==========================================================================
   CONTATO & FORMULÁRIO (ESPAÇAMENTO SIMÉTRICO E CORRIGIDO)
   ========================================================================== */
.contact-section {
    padding: 80px 8%;
    background: linear-gradient(135deg, #0b1020 0%, #101827 40%, #0f172a 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(211,12,20,0.22), transparent 28%);
    pointer-events: none;
}

.contact-container {
    position: relative;
    z-index: 1;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-info p {
    color: #cbd5e1;
    margin-bottom: 28px;
    font-size: 16px;
    line-height: 1.7;
}

.contact-highlight {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    padding: 18px 18px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.contact-highlight span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
    font-size: 14px;
}

.contact-highlight i {
    color: #22c55e;
}

.info-item-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-line {
    font-size: 16px;
    color: #e5e7eb;
    line-height: 1.4;
}

.info-line strong {
    color: #ffffff;
    font-weight: 700;
}

.info-line a {
    color: inherit;
    text-decoration-color: rgba(255, 255, 255, 0.45);
    text-underline-offset: 3px;
}

.info-line a:hover {
    color: #ffffff;
    text-decoration-color: #ffffff;
}

.contact-form {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 18px;
    padding: 28px 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.form-header {
    margin-bottom: 18px;
}

.form-header span {
    color: #fca5a5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.form-header h3 {
    margin-top: 8px;
    font-size: 24px;
    color: #ffffff;
}

.form-note {
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.6;
    margin: 0 0 16px;
}

.form-note a {
    color: #ffffff;
    text-underline-offset: 3px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    background-color: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    color: #ffffff;
    margin-bottom: 15px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: #94a3b8;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: rgba(211, 12, 20, 0.8);
    box-shadow: 0 0 0 3px rgba(211, 12, 20, 0.15);
}

.btn-submit {
    background: linear-gradient(135deg, #d30c14, #b00910);
    color: #ffffff;
    border: none;
    padding: 16px 30px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 20px rgba(211, 12, 20, 0.25);
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 24px rgba(211, 12, 20, 0.3);
}

/* ==========================================================================
   BOTÃO FLUTUANTE DO WHATSAPP
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba56;
}

/* RESPONSIVIDADE (PARA CELULAR) */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 15px; text-align: center; }
    .nav-menu { display: flex; gap: 5px; }
    .nav-menu a { margin: 0 8px; font-size: 11px; }
    .hero-content h1 { font-size: 28px; }
    .hero-banner { padding-top: 48px; padding-bottom: 48px; }
    .hero-capabilities { gap: 12px; }
    section[id] { scroll-margin-top: 150px; }
    .about-text h2 { font-size: 28px; }
}

/* ==========================================================================
   RODAPÉ CORPORATIVO
   ========================================================================== */
.footer-corporate {
    background-color: #0b0f19;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #1f2937;
}

.footer-content p {
    color: #9ca3af;
    font-size: 14px;
}

.footer-sub {
    font-size: 12px !important;
    margin-top: 5px;
    color: #4b5563 !important;
}