﻿/* --- CORE MODERN FRONTEND THEMING TOKENS --- */
:root {
    --tm-navy-dark: #1E293B; /* Deep Midnight Slate Base */
    --tm-cyan-bright: #0ea5e9; /* Vibrant Corporate Cyan */
    --tm-cyan-hover: #0284c7;
    --tm-bg-gray: #F8FAFC; /* Sub-grid Shading Shaders */
    --tm-border-color: #E2E8F0;
    --tm-transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    color: #0F172A;
    background-color: #ffffff;
    /* Adds top spacing buffer variables to prevent the fixed navbar from overlapping your background video elements */
    padding-top: 86px !important;
}

/* Smooth scrolling physics adjustment when landing on anchored section targets */
html {
    scroll-padding-top: 100px !important;
}

/* --- SITE NAVIGATION HEADER LANDMARKS --- */
/* Guarantee absolute layout layer stacking positions for the fixed nav grid wrapper */
.tm-nav.fixed-top {
    z-index: 1050 !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.25) !important; /* Adds a modern translucent deep shadow layer as you scroll */
}

.tm-nav {
    background-color: var(--tm-navy-dark) !important;
}
/* --- BRAND IDENTIFICATION GRAPHIC PARAMETERS --- */
.tm-brand-icon {
    /* Removes the font color variables from the old unicode symbol setup */
    font-size: 1rem !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.tm-brand-logo-img {
    /* Restricts the premium geometric circle logo height metrics so it scales naturally without stretching your nav layout rows */
    height: 46px !important;
    width: auto !important;
    object-fit: contain !important;
    will-change: filter, transform;
    transition: var(--tm-transition-smooth);
}

/* Subtle tactile transform scale highlight when users hover on your logo mark */
.navbar-brand:hover .tm-brand-logo-img {
    transform: scale(1.025);
    filter: brightness(1.08);
}

.active-line {
    position: relative;
}

    .active-line::after {
        content: "";
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--tm-cyan-bright);
    }

/* --- BRAND SPECIFIC COMPONENT ACTIONS --- */
.tm-btn-pill-blue {
    background-color: var(--tm-cyan-bright) !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    transition: var(--tm-transition-smooth);
}

    .tm-btn-pill-blue:hover {
        background-color: var(--tm-cyan-hover) !important;
    }

.tm-btn-dark {
    background-color: var(--tm-navy-dark) !important;
    border: none !important;
    border-radius: 50px !important;
    transition: var(--tm-transition-smooth);
}

    .tm-btn-dark:hover:not(:disabled) {
        opacity: 0.95;
        transform: translateY(-1px);
    }

.tm-badge-cyan {
    background-color: #e0f2fe !important;
    color: var(--tm-cyan-bright) !important;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 50px;
}
/* --- PILL TAB LABELS & COMPONENT INTERACTION --- */
.tm-tab-control {
    color: #475569 !important;
    background-color: #F1F5F9 !important;
    border: 1px solid #E2E8F0 !important;
    transition: var(--tm-transition-smooth);
}

    .tm-tab-control:hover {
        background-color: #E2E8F0 !important;
    }

    .tm-tab-control.active {
        background-color: var(--tm-navy-dark) !important;
        color: #ffffff !important;
        border-color: var(--tm-navy-dark) !important;
        box-shadow: 0 4px 12px rgba(30, 41, 59, 0.15);
    }

/* --- ACCESSIBLE SEMANTIC BULLET MARKUPS --- */
.tm-feature-list {
    list-style: none;
    padding-left: 0;
}

.tm-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.25rem;
    color: #475569;
}

.tm-item--check::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--tm-cyan-bright);
    font-weight: 900;
    font-size: 1.1rem;
}

.tm-item--cross::before {
    content: "\2716";
    position: absolute;
    left: 0;
    color: #EF4444;
    font-weight: 900;
    font-size: 1rem;
}

/* --- EXTENDED GRID TIMELINE MATRIX LAYOUTS --- */
.fs-7 {
    font-size: 0.875rem !important;
}

.tm-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background-color: #ffffff;
}

.tm-schedule-table {
    min-width: 900px;
}

.tm-table-head {
    background-color: var(--tm-bg-gray);
    border-bottom: 2px solid var(--tm-border-color);
}

    .tm-table-head th {
        color: var(--tm-navy-dark);
        font-weight: 700;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 16px 12px;
    }

.tm-parent-row {
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

    .tm-parent-row:hover {
        background-color: var(--tm-bg-gray);
    }

.tm-selected-row-active {
    background-color: #F0F9FF !important;
    border-left: 4px solid var(--tm-cyan-bright);
}

.tm-table-tag {
    display: inline-block;
    background-color: #F0FDF4;
    color: #16A34A;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
}

.tm-btn-table-action {
    border: 1px solid var(--tm-cyan-bright) !important;
    color: var(--tm-cyan-bright) !important;
    background: transparent;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--tm-transition-smooth);
}

    .tm-btn-table-action:hover, .tm-btn-table-action.tm-selected-active {
        background-color: var(--tm-cyan-bright) !important;
        color: #ffffff !important;
    }

/* --- ANIMATED INNER COLLAPSE TRANSITIONS --- */
.tm-nested-detail-row {
    background-color: var(--tm-bg-gray) !important;
    animation: tableCollapseReveal 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes tableCollapseReveal {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- STATUS TIERS & CUSTOM CHECKBOXES --- */
.tm-status-label {
    font-size: 0.725rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: block;
    margin-top: 2px;
}

.tm-status--started {
    color: #2563EB;
}

.tm-status--half {
    color: #D97706;
}

.tm-status--fast {
    color: #EA580C;
}

.tm-status--critical {
    color: #DC2626;
}

.tm-custom-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--tm-cyan-bright);
}

/* --- ZERO-DEPENDENCY POP-UP INTERFACE CONFIGURATIONS --- */
.tm-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

    .tm-popup-overlay.tm-popup-show {
        opacity: 1;
        pointer-events: auto;
    }

.tm-popup-window {
    background-color: #ffffff;
    width: 100%;
    max-width: 460px;
    margin: 20px;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tm-popup-overlay.tm-popup-show .tm-popup-window {
    transform: scale(1);
}

.tm-popup-icon {
    font-size: 2.25rem;
    line-height: 1;
    margin-bottom: 12px;
    display: inline-block;
}

.tm-popup-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tm-navy-dark);
    margin-bottom: 8px;
}

.tm-popup-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 24px;
}

.tm-popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.tm-btn-popup-primary {
    background-color: var(--tm-navy-dark);
    color: #ffffff;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 8px;
    transition: opacity 0.15s ease;
}

    .tm-btn-popup-primary:hover {
        opacity: 0.9;
    }

.tm-btn-popup-secondary {
    background-color: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.15s ease;
}

    .tm-btn-popup-secondary:hover {
        background-color: #E2E8F0;
    }

/* --- UTILITY INPUT FIELD RENDERS --- */
.form-control:focus, .form-select:focus {
    border-color: var(--tm-cyan-bright) !important;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15) !important;
}

.tm-spinner-inline {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.custom-video {
    position: absolute;
    top: 0;
    left: 0;
    object-fit: fill;
    width: 100%;
    height: 100%;
}
/* --- FULL SCREEN VIDEO HERO EXTENSIONS --- */
.tm-video-hero-banner {
    height: 85vh; /* Optimal viewport view balance, drops above fold targets */
    background-color: var(--tm-navy-dark);
}

/* Enforces opacity dimming across video background engine layouts */
.tm-video-hero-overlay {
    background-color: rgba(15, 23, 42, 0.75); /* Deep slate shading optimizes text legibility */
}

/* Clear typographical segregation states */
.tm-hero-line-1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
}

.tm-hero-line-2 {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    max-width: 800px;
    margin: 0 auto;
}

.tm-hero-line-3 {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--tm-cyan-bright) !important;
}

/* --- SMOOTH HERO SCROLL TRIGGER HOOKS --- */
.tm-hero-scroll-trigger {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    transition: var(--tm-transition-smooth);
    animation: tmHeroBounce 2s infinite;
}

    .tm-hero-scroll-trigger:hover {
        border-color: var(--tm-cyan-bright);
        background-color: rgba(14, 165, 233, 0.15);
        transform: translate(-50%, -2px);
    }

.tm-scroll-arrow {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1;
}

/* Keyframes calculation loop for micro-bounce animation */
@keyframes tmHeroBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -8px);
    }

    60% {
        transform: translate(-50%, -4px);
    }
}
/* --- INTERACTIVE 3-COLUMN GALLERY ENGINE --- */
.tm-gallery-column {
    height: 240px;
    cursor: pointer;
    background-color: var(--tm-navy-dark);
    will-change: transform, box-shadow;
    transition: var(--tm-transition-smooth);
}

    .tm-gallery-column:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    }

.tm-gallery-img {
    object-fit: cover;
    transition: var(--tm-transition-smooth);
}

.tm-gallery-column:hover .tm-gallery-img {
    transform: scale(1.04);
    filter: brightness(0.8);
}

/* Interactive Play Icon Overlay Layout */
.tm-gallery-hover-overlay {
    background-color: rgba(15, 23, 42, 0.4);
    opacity: 0;
    transition: var(--tm-transition-smooth);
    z-index: 2;
}

.tm-gallery-column:hover .tm-gallery-hover-overlay {
    opacity: 1;
}

.tm-gallery-play-icon {
    width: 56px;
    height: 56px;
    background-color: var(--tm-cyan-bright);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    padding-left: 4px; /* Corrects geometric visual imbalance of triangle mark */
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tm-gallery-column:hover .tm-gallery-play-icon {
    transform: scale(1.1);
}

/* Fluid Single-Line Typography Label Overlay */
.tm-gallery-label {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0) 100%);
    font-size: 0.95rem;
    letter-spacing: -0.2px;
    z-index: 3;
    transition: var(--tm-transition-smooth);
}

.tm-gallery-column:hover .tm-gallery-label {
    padding-bottom: 20px !important;
    color: var(--tm-cyan-bright) !important;
}

/* --- SCREEN-ADJUSTED RESPONSIVE VIDEO POPUP OVERRIDE --- */
.tm-popup-video-container {
    width: 100%;
    max-width: 800px; /* Expands modal frame explicitly to support widescreen streaming */
}

/* --- DYNAMIC FEEDBACK FORM CONTROL ELEMENTS --- */
#btnResetFeedback {
    border: 2px solid #E2E8F0 !important;
    color: #475569 !important;
    transition: var(--tm-transition-smooth);
}

    #btnResetFeedback:hover {
        background-color: #F1F5F9 !important;
        border-color: #CBD5E1 !important;
        color: #0F172A !important;
    }
/* Lock textarea focus borders to match corporate cyan system tokens */
#feedbackMessage:focus {
    border-color: var(--tm-cyan-bright) !important;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15) !important;
}

/* --- BRANDED BUSINESS & COMPLIANCE FOOTER REGIONS --- */
.tm-site-footer {
    /* Smoothly shifts background color from secondary slate into your primary brand navy */
    background-color: var(--tm-navy-dark) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset 0 20px 40px rgba(0, 0, 0, 0.25) !important; /* Adds deep dimensional shading context */
}

    .tm-site-footer h4 {
        color: #ffffff !important;
        font-size: 0.9rem;
    }

.tm-footer-link {
    transition: var(--tm-transition-smooth);
    display: inline-block;
}

    .tm-footer-link:hover {
        color: var(--tm-cyan-bright) !important;
        transform: translateX(3px);
    }

@media (max-width: 767px) {
    .tm-footer-link:hover {
        transform: translateY(-1px);
    }
}

.fs-7 {
    font-size: 0.875rem !important;
}

.fs-8 {
    font-size: 0.75rem !important;
}
