/* ETL Sistemas — tema escuro (#212529) com detalhes âmbar (#F4AA00) */

:root {
    --mt-bg: #212529;
    --mt-bg-elevated: #2c3034;
    --mt-bg-card: #343a40;
    --mt-accent: #F4AA00;
    --mt-accent-hover: #ffc233;
    --mt-accent-muted: rgba(244, 170, 0, 0.18);
    --mt-accent-soft: rgba(244, 170, 0, 0.12);
    --mt-heading: #f8f9fa;
    --mt-body: rgba(255, 255, 255, 0.78);
    --mt-muted: rgba(255, 255, 255, 0.55);
    --mt-border: rgba(255, 255, 255, 0.1);
    --mt-footer: #1a1d20;
    --primary-color: var(--mt-accent);
    --secondary-color: var(--mt-muted);
    --success-color: #75b798;
    --info-color: #6ea8fe;
    --warning-color: var(--mt-accent);
    --danger-color: #ea868f;
    --light-color: var(--mt-bg-elevated);
    --dark-color: var(--mt-bg);
    --bs-primary: #F4AA00;
    --bs-primary-rgb: 244, 170, 0;
    --bs-body-bg: #212529;
    --bs-body-color: rgba(255, 255, 255, 0.85);
    --bs-secondary-color: rgba(255, 255, 255, 0.55);
}

body.layout-marttech {
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
    color: var(--mt-body);
    line-height: 1.65;
    background: var(--mt-bg);
}

body.layout-marttech .text-muted {
    color: var(--mt-muted) !important;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    color: var(--mt-heading);
    font-family: 'DM Sans', system-ui, sans-serif;
    letter-spacing: -0.02em;
}

/* Cards Bootstrap (páginas internas) */
body.layout-marttech .card {
    background-color: var(--mt-bg-card);
    border-color: var(--mt-border);
    color: var(--mt-body);
}

body.layout-marttech .card-title,
body.layout-marttech .card-header {
    color: var(--mt-heading);
}

body.layout-marttech .list-group-item {
    background-color: var(--mt-bg-card);
    border-color: var(--mt-border);
    color: var(--mt-body);
}

/* ——— Header ——— */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(33, 37, 41, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--mt-border);
    transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    border-bottom-color: rgba(244, 170, 0, 0.2);
}

.site-header .navbar {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.site-header .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.95rem;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
    color: var(--mt-accent) !important;
}

.site-header .navbar-toggler {
    border-color: var(--mt-border);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, var(--mt-accent), #d49400);
    color: #212529;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: -0.03em;
}

.brand-mark--footer {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.8rem;
}

.brand-text {
    color: var(--mt-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.navbar-brand-logo {
    object-fit: contain;
    max-height: 42px;
    width: auto;
    max-width: 180px;
}

.btn-mt-cta {
    --bs-btn-bg: var(--mt-accent);
    --bs-btn-border-color: var(--mt-accent);
    --bs-btn-hover-bg: var(--mt-accent-hover);
    --bs-btn-hover-border-color: var(--mt-accent-hover);
    --bs-btn-active-bg: #c58f00;
    --bs-btn-active-border-color: #c58f00;
    color: #212529 !important;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.55rem 1.35rem;
    font-size: 0.95rem;
    border: none;
}

.btn-mt-cta:hover {
    color: #212529 !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(244, 170, 0, 0.35);
}

.dropdown-menu-mt {
    border-radius: 0.75rem;
    padding: 0.5rem;
    min-width: 15rem;
    background: var(--mt-bg-elevated);
    border: 1px solid var(--mt-border);
}

.dropdown-menu-mt .dropdown-item {
    border-radius: 0.5rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.88);
}

.dropdown-menu-mt .dropdown-item:hover,
.dropdown-menu-mt .dropdown-item:focus {
    background: var(--mt-accent-muted);
    color: var(--mt-heading);
}

.dropdown-menu-mt .dropdown-divider {
    border-color: var(--mt-border);
}

/* ——— Footer ——— */
.site-footer {
    background: linear-gradient(180deg, var(--mt-bg) 0%, var(--mt-footer) 100%);
    border-top: 1px solid var(--mt-border);
}

.footer-lead {
    max-width: 32rem;
    line-height: 1.7;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: inline-block;
    padding: 0.2rem 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--mt-accent);
}

.footer-contact-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-contact-link:hover {
    color: var(--mt-accent);
}

.footer-legal {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

.footer-legal:hover {
    color: var(--mt-accent);
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.text-mt-accent {
    color: var(--mt-accent) !important;
}

.footer-brand-logo {
    object-fit: contain;
    max-width: 140px;
}

/* ——— Home: hero e seções ——— */
.hero-mt {
    background: var(--mt-bg);
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 992px) {
    .hero-mt {
        padding: 4.5rem 0 5rem;
    }
}

.hero-mt::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -15%;
    width: min(70vw, 520px);
    height: min(70vw, 520px);
    background: radial-gradient(circle, rgba(244, 170, 0, 0.14) 0%, transparent 70%);
    pointer-events: none;
}

.hero-eyebrow {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mt-accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.12;
    color: var(--mt-heading);
    margin-bottom: 1.25rem;
}

.hero-title .hero-accent {
    color: var(--mt-accent);
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--mt-body);
    max-width: 36rem;
}

.hero-sub strong {
    color: var(--mt-heading);
}

.trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--mt-bg-elevated);
    border: 1px solid var(--mt-border);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mt-heading);
}

.trust-pill i {
    color: var(--mt-accent);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.btn-mt-outline {
    border: 2px solid var(--mt-accent);
    color: var(--mt-accent);
    font-weight: 600;
    border-radius: 999px;
    padding: 0.55rem 1.5rem;
    background: transparent;
}

.btn-mt-outline:hover {
    background: var(--mt-accent);
    color: #212529;
}

.hero-side-note {
    font-size: 0.85rem;
    color: var(--mt-muted);
    margin-top: 1rem;
}

.hero-brand-image {
    max-height: min(55vh, 400px);
    width: auto;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    border: 1px solid var(--mt-border);
}

.hero-placeholder-icon {
    font-size: clamp(4rem, 12vw, 9rem);
    color: var(--mt-accent-muted);
}

/* Seções */
.section-mt {
    padding: 4rem 0;
}

.section-mt--soft {
    background: var(--mt-bg-elevated);
}

.section-kicker {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mt-accent);
    margin-bottom: 0.5rem;
}

.section-title-mt {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--mt-heading);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--mt-body);
    max-width: 40rem;
}

.pain-card {
    background: var(--mt-bg-card);
    border-radius: 1rem;
    padding: 1.75rem;
    height: 100%;
    border: 1px solid var(--mt-border);
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.pain-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(-3px);
    border-color: rgba(244, 170, 0, 0.25);
}

.pain-num {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--mt-accent-soft);
    margin-bottom: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.pain-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--mt-heading);
}

.ba-card {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--mt-border);
    height: 100%;
    background: var(--mt-bg-card);
}

.ba-card__head {
    padding: 0.65rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ba-card__head--before {
    background: rgba(220, 53, 69, 0.2);
    color: #f8a0a8;
}

.ba-card__head--after {
    background: var(--mt-accent-muted);
    color: var(--mt-accent-hover);
}

.ba-card__body {
    padding: 1.25rem 1.25rem 1.5rem;
    font-size: 0.95rem;
    color: var(--mt-body);
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.stat-strip--surface {
    background: var(--mt-bg-card);
    border: 1px solid var(--mt-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

@media (max-width: 576px) {
    .stat-strip {
        grid-template-columns: 1fr;
    }
}

.stat-strip__value {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--mt-accent);
    line-height: 1;
}

.stat-strip__label {
    font-size: 0.9rem;
    color: var(--mt-muted);
    margin-top: 0.35rem;
}

.feature-box-mt {
    padding: 1.5rem;
    border-radius: 1rem;
    background: var(--mt-bg-card);
    border: 1px solid var(--mt-border);
    height: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-box-mt:hover {
    border-color: rgba(244, 170, 0, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.feature-box-mt .icon-wrap {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: var(--mt-accent-muted);
    color: var(--mt-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-box-mt h3 {
    color: var(--mt-heading);
}

.step-mt {
    position: relative;
    padding-left: 3.25rem;
    margin-bottom: 2rem;
}

.step-mt:last-child {
    margin-bottom: 0;
}

.step-mt__num {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background: var(--mt-accent);
    color: #212529;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-mt h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--mt-heading);
}

.cta-mt {
    background: linear-gradient(135deg, #1a1d20 0%, var(--mt-bg-card) 40%, rgba(244, 170, 0, 0.15) 100%);
    border: 1px solid rgba(244, 170, 0, 0.25);
    color: #fff;
    border-radius: 1.25rem;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.cta-mt h2 {
    color: #fff;
}

.cta-mt .lead {
    color: rgba(255, 255, 255, 0.88);
}

.btn-cta-light {
    background: var(--mt-accent);
    color: #212529 !important;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.65rem 2rem;
    border: none;
}

.btn-cta-light:hover {
    background: var(--mt-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(244, 170, 0, 0.35);
}

.card-mt {
    border: 1px solid var(--mt-border);
    border-radius: 1rem;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    height: 100%;
    background: var(--mt-bg-card);
}

.card-mt:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
    border-color: rgba(244, 170, 0, 0.2);
}

.card-mt .card-body {
    padding: 1.75rem;
}

.card-mt h3 {
    color: var(--mt-heading);
}

.gallery-thumb {
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-tile figcaption {
    font-size: 0.75rem;
}

.etl-brand-img {
    max-height: 400px;
    object-fit: contain;
}

/* Cookie consent */
body.cookie-banner-visible {
    padding-bottom: 8rem;
}

@media (min-width: 992px) {
    body.cookie-banner-visible {
        padding-bottom: 5rem;
    }
}

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1060;
    background: var(--mt-bg);
    border-top: 1px solid rgba(244, 170, 0, 0.25);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent-link {
    color: var(--mt-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent-link:hover {
    color: var(--mt-accent-hover);
}

.btn-cookie-accept {
    background: var(--mt-accent);
    border: none;
    color: #212529;
    font-weight: 700;
}

.btn-cookie-accept:hover {
    background: var(--mt-accent-hover);
    color: #212529;
}

.btn-cookie-essential {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.9);
}

.btn-cookie-essential:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Globais */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

.service-icon {
    transition: transform 0.3s ease;
}

.card:hover .service-icon {
    transform: scale(1.1);
}

.stat-card {
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.tech-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    border: 1px solid transparent;
    background: var(--mt-bg-card);
    color: var(--mt-body);
}

.tech-item:hover {
    background-color: var(--mt-bg-elevated);
    border-color: rgba(244, 170, 0, 0.35);
    transform: translateY(-2px);
}

.tech-item .text-primary {
    color: var(--mt-accent) !important;
}

.tech-item p {
    color: var(--mt-muted);
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:not(.btn-mt-cta):not(.btn-mt-outline):not(.btn-cta-light):not(.btn-cookie-accept):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

.btn-primary {
    --bs-btn-bg: var(--mt-accent);
    --bs-btn-border-color: var(--mt-accent);
    --bs-btn-hover-bg: var(--mt-accent-hover);
    --bs-btn-hover-border-color: var(--mt-accent-hover);
    --bs-btn-active-bg: #c58f00;
    --bs-btn-active-border-color: #c58f00;
    --bs-btn-color: #212529;
    --bs-btn-hover-color: #212529;
}

.btn-outline-primary {
    --bs-btn-color: var(--mt-accent);
    --bs-btn-border-color: var(--mt-accent);
    --bs-btn-hover-bg: var(--mt-accent);
    --bs-btn-hover-border-color: var(--mt-accent);
    --bs-btn-active-bg: var(--mt-accent);
    --bs-btn-active-border-color: var(--mt-accent);
    --bs-btn-hover-color: #212529;
    --bs-btn-active-color: #212529;
}

.text-primary {
    color: var(--mt-accent) !important;
}

.bg-primary {
    background-color: var(--mt-accent) !important;
    color: #212529 !important;
}

.border-primary {
    border-color: var(--mt-accent) !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@media (max-width: 768px) {
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--mt-accent);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-control, .form-select {
    border-radius: 8px;
    background-color: var(--mt-bg-card);
    border: 1px solid var(--mt-border);
    color: var(--mt-heading);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control::placeholder {
    color: var(--mt-muted);
}

.form-control:focus, .form-select:focus {
    background-color: var(--mt-bg-card);
    border-color: var(--mt-accent);
    color: var(--mt-heading);
    box-shadow: 0 0 0 0.2rem rgba(244, 170, 0, 0.25);
}

.form-label {
    color: var(--mt-heading);
}

.alert {
    border-radius: 8px;
    border: none;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Hero legado (outras views) */
.hero-section {
    background: linear-gradient(135deg, var(--mt-bg-elevated) 0%, var(--mt-bg) 100%);
    min-height: 50vh;
    display: flex;
    align-items: center;
    color: var(--mt-body);
}

.hero-section h1,
.hero-section h2 {
    color: var(--mt-heading);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--mt-bg-card) 0%, var(--mt-bg) 100%) !important;
}

.bg-light {
    background-color: var(--mt-bg-elevated) !important;
}
