/* tes-tank-cfd.css — the TES tank CFD landing page (/services/tes-tank-cfd/) only.
   Linked from that page's $headExtra, after main.css, and built on its tokens and
   components (hero--alt, why-us cards, faq, cta-banner, the contact form). Layout
   from the owner's approved mockup v22; the synced player and chart it styles are
   driven by public/assets/js/tes-sim.js. */

.tes-h2 { margin-top: var(--space-4); }

.tes-lead {
    color: var(--color-muted-foreground);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    max-width: 46rem;
    margin-top: var(--space-4);
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.tes-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.tes-hero__facts {
    list-style: none;
    margin: var(--space-7) 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-7);
    color: rgba(53, 52, 79, 0.8);
    font-size: 0.95rem;
}
.tes-hero__facts li {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .tes-hero__facts { color: rgba(255, 255, 255, 0.8); }
    .tes-hero__facts .check-list__icon { background: rgba(255, 255, 255, 0.12); color: #5fe0c4; }
}
/* Below 1024px the hero copy sits on white (main.css), where a white button needs an edge. */
@media (max-width: 1023px) {
    .tes-hero .btn--secondary { box-shadow: inset 0 0 0 1px var(--color-gray-200); }
}

/* ── What the analysis answers ─────────────────────────────────────────────── */
.tes-answers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-8) var(--space-12);
    margin: var(--space-10) 0 0;
}
.tes-answers div {
    border-top: 1px solid var(--color-gray-200);
    padding-top: var(--space-4);
    min-width: 0;
}
.tes-answers dt {
    font-size: var(--font-size-xl);
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--color-foreground);
}
.tes-answers dd {
    margin: 0.35rem 0 0;
    color: var(--color-muted-foreground);
}

/* ── Discharge simulation ──────────────────────────────────────────────────── */
.tes-sim {
    background-color: #eef0fb;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.tes-sim__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-6) var(--space-8);
    margin-bottom: var(--space-7);
}

.tes-clock {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    padding: 12px 16px;
    font-variant-numeric: tabular-nums;
}
.tes-clock__t {
    font: 600 1.75rem/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    color: var(--color-foreground);
    min-width: 4.6ch;
    text-align: right;
}
.tes-clock__lbl {
    font-size: 0.8rem;
    color: var(--color-muted-foreground);
    line-height: 1.3;
}
.tes-clock__bar {
    width: 130px;
    height: 4px;
    background: var(--color-gray-200);
    margin-top: 6px;
}
.tes-clock__bar i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--color-primary);
}

/* The three Fluent videos, one clock; each sits over its readout (a row per case on phones). */
.tes-cases {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.tes-case {
    margin: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    --tes-case: var(--color-gray-500);
}
.tes-case--baffles3 { --tes-case: #219aa6; }
.tes-case--glycol { --tes-case: #1F6CA4; }
.tes-case__media {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-bottom: 0;
    padding: 14px 12px 12px;
    min-width: 0;
}
.tes-case__label {
    align-self: stretch;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    line-height: 1.3;
    color: var(--color-foreground);
}
.tes-case__label i {
    width: 18px;
    height: 3px;
    flex-shrink: 0;
    background: var(--tes-case);
}
.tes-case video {
    display: block;
    width: 100%;
    max-width: 270px;
    height: auto;
    aspect-ratio: 494 / 960;
    background: var(--color-white);
}

.tes-tag {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-left: 8px solid var(--color-primary);
    padding: 14px 16px;
    min-width: 0;
}
.tes-tag__lbl {
    font-size: 0.8rem;
    color: var(--color-muted-foreground);
}
.tes-tag__temp {
    font: 600 1.6rem/1.1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-variant-numeric: tabular-nums;
    margin-top: 4px;
    color: var(--color-foreground);
}
.tes-tag__u {
    font-size: 1rem;
    margin-left: 0.1em;
}
.tes-tag__temp small {
    font: 400 0.82rem var(--font-body);
    color: var(--color-muted-foreground);
    margin-left: 0.5em;
    white-space: nowrap;
}
.tes-chip {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.25em 0.6em;
    background: var(--color-primary-10);
    color: var(--color-primary);
}
.tes-tag--over { border-left-color: #d9472f; }
.tes-tag--over .tes-chip {
    background: rgba(217, 71, 47, 0.1);
    color: #d9472f;
}

.tes-sim__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 0.88rem;
    color: var(--color-muted-foreground);
}
.tes-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
/* Colours read off the Fluent "Static Temperature [C]" legend in the source videos, 20 to 35 °C. */
.tes-legend__ramp {
    width: clamp(72px, 26vw, 200px);
    height: 10px;
    background: linear-gradient(90deg, #0000b3 0%, #1f00c7 8%, #6a04bc 17%, #b408b4 25%, #c71e8b 33%, #d83260 42%, #e94734 50%, #fa5d09 58%, #fe8000 67%, #fea900 75%, #fecd18 83%, #fee461 92%, #fdfbab 100%);
}
.tes-sim__caption { font-style: italic; }
.tes-controls {
    display: flex;
    gap: 8px;
}
.tes-controls button {
    font: 500 0.85rem var(--font-body);
    color: var(--color-foreground);
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    padding: 0.5em 0.9em;
    cursor: pointer;
}
.tes-controls button:hover { border-color: var(--color-primary); }

.tes-result {
    margin-top: var(--space-5);
    font-size: var(--font-size-lg);
    font-weight: 500;
    max-width: 52rem;
    color: var(--color-foreground);
}

.tes-chart {
    margin-top: var(--space-7);
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    padding: 20px 20px 8px;
}
.tes-chart__title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: -0.5px;
    margin-bottom: 0.15rem;
}
.tes-chart__desc {
    color: var(--color-muted-foreground);
    font-size: 0.9rem;
}
.tes-chart__scroll { overflow-x: auto; }
.tes-chart__svg {
    display: block;
    width: 100%;
    min-width: 600px;
    height: auto;
}

/* ── Two-column explainer, deliverables and inputs ─────────────────────────── */
.tes-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 80px);
    align-items: start;
}
.tes-prose {
    color: var(--color-muted-foreground);
    line-height: var(--line-height-relaxed);
    max-width: 40rem;
}
.tes-prose p + p { margin-top: 1em; }
.tes-quote {
    margin-top: var(--space-6);
    border-left: 8px solid var(--color-primary);
    padding: 0.25rem 0 0.25rem 1.25rem;
    font-size: var(--font-size-xl);
    font-weight: 500;
    line-height: 1.5;
    max-width: 34rem;
    color: var(--color-foreground);
}

.tes-checks {
    list-style: none;
    margin: var(--space-7) 0 0;
    padding: 0;
    display: grid;
    gap: 0.9rem;
}
.tes-need {
    list-style: none;
    margin: var(--space-7) 0 0;
    padding: 0;
    border-top: 1px solid var(--color-gray-200);
}
.tes-need li {
    border-bottom: 1px solid var(--color-gray-200);
    padding: 0.75rem 0;
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
}
.tes-need li span:first-child {
    font-weight: 500;
    color: var(--color-foreground);
}
.tes-need li span:last-child {
    color: var(--color-muted-foreground);
    text-align: right;
}

/* ── Scope cards (main.css .why-us__card) ──────────────────────────────────── */
.tes-scope,
.tes-who { background: var(--color-gray-50); }
.tes-scope__head {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-10);
}
.tes-scope__head .tes-lead { text-align: center; }
.tes-scope__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tes-scope .why-us__card-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    line-height: 1.6;
}

.tes-who__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--space-7);
}
.tes-who__list span {
    background: var(--color-primary-10);
    color: var(--color-primary);
    padding: 0.6em 1.1em;
}

/* ── FAQ (main.css .faq) ───────────────────────────────────────────────────── */
.tes-faq .faq__heading { margin-top: var(--space-4); }

/* ── Call to action with the form (main.css .cta-banner, .callback-form) ───── */
.tes-cta__inner { align-items: center; }
.tes-cta__title { max-width: 42rem; margin-bottom: 0; }
.tes-cta__sub {
    color: rgba(255, 255, 255, 0.85);
    margin-top: var(--space-4);
    max-width: 34rem;
    line-height: var(--line-height-relaxed);
}
.tes-cta__form {
    background: var(--color-white);
    padding: 24px;
}
.callback-form--tes { max-width: none; }
.callback-form--tes .callback-form__form { gap: 12px; }
.callback-form__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}
.callback-form--tes .callback-form__input { border-radius: 0; }
.callback-form--tes .callback-form__submit {
    width: auto;
    border-radius: 0;
    padding: var(--space-3) var(--space-5);
    background: var(--gradient-cta);
}
.callback-form--tes .callback-form__submit:hover { background: var(--gradient-cta); }
.callback-form__note {
    font-size: 0.85rem;
    color: var(--color-muted-foreground);
}

/* ── Smaller screens ───────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
    .tes-split { grid-template-columns: minmax(0, 1fr); }
    .tes-answers,
    .tes-scope__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .tes-cases { grid-template-columns: minmax(0, 1fr); }
    .tes-case { flex-direction: row; }
    .tes-case__media {
        flex: 0 0 44%;
        border-bottom: 1px solid var(--color-gray-200);
        border-right: 0;
        padding: 12px 10px;
    }
    .tes-case__label { font-size: 0.9rem; }
    .tes-case .tes-tag {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
    .tes-tag__temp small {
        display: block;
        margin: 2px 0 0;
    }
}
@media (max-width: 560px) {
    .tes-answers,
    .tes-scope__grid,
    .callback-form__row { grid-template-columns: minmax(0, 1fr); }
}
