/**
 * MhSys Tecnologia Ltda. — Design System Institucional (www.mhsys.tec.br)
 * Arquitetura CSS3 Moderna: Custom Properties, Bento Grid, Glassmorphism & Bimodal Theme (Dark/Light)
 */

:root,
[data-theme="dark"] {
    /* Paleta Institucional Primaria & Acentos IA */
    --mh-primary: #0ea5e9;
    --mh-primary-deep: #0284c7;
    --mh-indigo: #4f46e5;
    --mh-purple-ai: #9333ea;
    --mh-cyan-ai: #06b6d4;
    --mh-emerald: #10b981;

    /* Superfícies Dark Mode (Ardósia Profundo / Midnight) */
    --mh-bg-body: #0b0f19;
    --mh-bg-alt: #0f172a;
    --mh-bg-card: #111827;
    --mh-bg-card-hover: #172033;
    --mh-bg-glass: rgba(15, 23, 42, 0.78);
    --mh-bg-navbar: rgba(11, 15, 25, 0.82);

    /* Tipografia & Contraste Dark Mode */
    --mh-text-main: #f8fafc;
    --mh-text-secondary: #cbd5e1;
    --mh-text-muted: #94a3b8;
    --mh-border-color: rgba(148, 163, 184, 0.14);
    --mh-border-strong: rgba(56, 189, 248, 0.35);

    /* Sombras & Brilhos */
    --mh-shadow-card: 0 18px 40px -15px rgba(2, 6, 23, 0.65);
    --mh-shadow-hover: 0 22px 48px -12px rgba(14, 165, 233, 0.22);
    --mh-glow-opacity: 0.22;

    /* Fontes */
    --mh-font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --mh-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Raios de Borda (Bento System) */
    --mh-radius-bento: 20px;
    --mh-radius-lg: 16px;
    --mh-radius-pill: 9999px;
}

[data-theme="light"] {
    /* Superfícies Light Mode (Branco Puro & Cartões #f8fafc) */
    --mh-bg-body: #ffffff;
    --mh-bg-alt: #f8fafc;
    --mh-bg-card: #f8fafc;
    --mh-bg-card-hover: #f1f5f9;
    --mh-bg-glass: rgba(255, 255, 255, 0.88);
    --mh-bg-navbar: rgba(255, 255, 255, 0.88);

    /* Tipografia & Contraste Light Mode */
    --mh-text-main: #0f172a;
    --mh-text-secondary: #334155;
    --mh-text-muted: #64748b;
    --mh-border-color: #e2e8f0;
    --mh-border-strong: rgba(2, 132, 199, 0.38);

    /* Sombras Light Mode */
    --mh-shadow-card: 0 12px 32px -10px rgba(15, 23, 42, 0.07);
    --mh-shadow-hover: 0 20px 40px -12px rgba(2, 132, 199, 0.16);
    --mh-glow-opacity: 0.10;
}

/* ==========================================================================
   1. RESET, BASE & TIPOGRAFIA
   ========================================================================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    font-family: var(--mh-font-body);
    background-color: var(--mh-bg-body);
    color: var(--mh-text-main);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, h5, h6,
.mh-hero-title,
.mh-section-title,
.mh-bento-title {
    font-family: var(--mh-font-heading);
    color: var(--mh-text-main);
    letter-spacing: -0.02em;
}

.mh-text-muted {
    color: var(--mh-text-muted) !important;
}

.mh-text-strong {
    color: var(--mh-text-main);
}

.mh-border-subtle {
    border-color: var(--mh-border-color) !important;
}

.max-w-3xl {
    max-width: 780px;
}

/* Gradientes Tipográficos */
.mh-text-gradient {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 45%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mh-text-gradient-ai {
    background: linear-gradient(135deg, #22d3ee 0%, #38bdf8 45%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   2. HEADER & NAVBAR FIXA COM BACKDROP BLUR
   ========================================================================== */
.mh-navbar-wrapper {
    background: var(--mh-bg-navbar);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--mh-border-color);
    transition: all 0.25s ease;
    z-index: 1040;
}

.mh-navbar-wrapper.navbar-scrolled {
    box-shadow: var(--mh-shadow-card);
}

.mh-navbar {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.mh-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--mh-primary-deep), var(--mh-primary), var(--mh-indigo));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mh-font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.32);
}

.mh-brand-accent {
    color: #bae6fd;
}

.mh-brand-title {
    font-family: var(--mh-font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--mh-text-main);
    letter-spacing: -0.03em;
}

.mh-brand-sub {
    font-family: var(--mh-font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--mh-primary);
}

.mh-domain-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.12rem 0.45rem;
    border-radius: var(--mh-radius-pill);
    background: rgba(14, 165, 233, 0.14);
    color: var(--mh-primary);
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.mh-brand-phonetic {
    font-size: 0.68rem;
    color: var(--mh-text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mh-nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--mh-text-secondary) !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--mh-radius-pill);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.mh-nav-link:hover,
.mh-nav-link.active {
    color: var(--mh-primary) !important;
    background-color: rgba(14, 165, 233, 0.09);
}

/* Alternador de Tema Dark/Light */
.mh-theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--mh-radius-pill);
    border: 1px solid var(--mh-border-color);
    background: var(--mh-bg-card);
    color: var(--mh-text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.mh-theme-toggle:hover {
    transform: translateY(-2px);
    border-color: var(--mh-primary);
    color: var(--mh-primary);
}

[data-theme="dark"] .mh-theme-toggle .icon-dark {
    display: none;
}

[data-theme="light"] .mh-theme-toggle .icon-light {
    display: none;
}

.mh-navbar-toggler {
    border: 1px solid var(--mh-border-color);
    color: var(--mh-text-main);
    padding: 0.35rem 0.6rem;
    border-radius: 10px;
}

/* Botões da Navbar & CTAs Pílula (Micro-interação translateY(-2px)) */
.mh-btn-saas-nav {
    border-radius: var(--mh-radius-pill);
    padding: 0.52rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--mh-text-main);
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border-strong);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.mh-btn-saas-nav:hover {
    transform: translateY(-2px);
    color: #ffffff;
    background: linear-gradient(135deg, var(--mh-primary-deep), var(--mh-indigo));
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.3);
}

.mh-btn-contact-pill,
.mh-btn-primary-pill {
    display: inline-flex;
    align-items: center;
    border-radius: var(--mh-radius-pill);
    padding: 0.55rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--mh-primary-deep) 0%, var(--mh-primary) 50%, var(--mh-indigo) 100%);
    border: none;
    box-shadow: 0 10px 24px -6px rgba(14, 165, 233, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.mh-btn-primary-pill {
    padding: 0.8rem 1.65rem;
    font-size: 0.96rem;
}

.mh-btn-contact-pill:hover,
.mh-btn-primary-pill:hover {
    transform: translateY(-2px);
    filter: brightness(1.07);
    box-shadow: 0 16px 32px -6px rgba(14, 165, 233, 0.55);
}

.mh-btn-outline-pill {
    display: inline-flex;
    align-items: center;
    border-radius: var(--mh-radius-pill);
    padding: 0.8rem 1.65rem;
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--mh-text-main);
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border-strong);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.mh-btn-outline-pill:hover {
    transform: translateY(-2px);
    color: var(--mh-primary);
    border-color: var(--mh-primary);
    background: var(--mh-bg-card-hover);
}

/* ==========================================================================
   3. SEÇÃO HERO & BENTO GRID DE SOLIDEZ
   ========================================================================== */
.mh-hero-section {
    padding-top: 8.5rem;
    padding-bottom: 5rem;
}

.mh-ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: var(--mh-glow-opacity);
    pointer-events: none;
    z-index: 0;
}

.mh-glow-primary {
    width: 520px;
    height: 520px;
    top: -120px;
    left: -100px;
    background: radial-gradient(circle, var(--mh-primary) 0%, var(--mh-indigo) 70%, transparent 100%);
}

.mh-glow-ai {
    width: 460px;
    height: 460px;
    top: 80px;
    right: -120px;
    background: radial-gradient(circle, var(--mh-purple-ai) 0%, var(--mh-cyan-ai) 70%, transparent 100%);
}

.mh-badge-pill {
    padding: 0.42rem 1rem;
    border-radius: var(--mh-radius-pill);
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.28);
    color: var(--mh-primary);
    font-size: 0.8rem;
    font-weight: 600;
}

.mh-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--mh-emerald);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22);
}

.mh-hero-title {
    font-size: clamp(2.15rem, 4.2vw, 3.45rem);
    font-weight: 800;
    line-height: 1.12;
}

.mh-hero-subtitle {
    font-size: 1.1rem;
    color: var(--mh-text-secondary);
    max-width: 640px;
}

.mh-phonetic-inline {
    color: var(--mh-text-muted);
    font-size: 0.95rem;
}

.mh-hero-trust-strip {
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--mh-text-muted);
}

/* Console Visual de Arquitetura na Hero */
.mh-hero-showcase-card {
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border-strong);
    border-radius: var(--mh-radius-bento);
    box-shadow: var(--mh-shadow-card);
    overflow: hidden;
}

.mh-showcase-header {
    padding: 0.9rem 1.25rem;
    background: rgba(14, 165, 233, 0.06);
    border-bottom: 1px solid var(--mh-border-color);
}

.mh-window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.dot-red { background-color: #ef4444; }
.dot-amber { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.mh-showcase-url {
    font-family: monospace;
    font-size: 0.78rem;
    color: var(--mh-text-muted);
}

.mh-badge-status {
    background: rgba(16, 185, 129, 0.14);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 600;
}

.mh-showcase-body {
    padding: 1.35rem;
}

.mh-arch-layer {
    padding: 0.95rem 1.1rem;
    border-radius: 14px;
    background: var(--mh-bg-alt);
    border: 1px solid var(--mh-border-color);
}

.mh-arch-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mh-primary);
}
.mh-arch-tag.tag-ai { color: #a855f7; }
.mh-arch-tag.tag-gov { color: #10b981; }

.mh-arch-metric {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: var(--mh-radius-pill);
    background: rgba(14, 165, 233, 0.12);
    color: var(--mh-primary);
}

.mh-btn-saas-mini {
    border-radius: var(--mh-radius-pill);
    padding: 0.4rem 0.95rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, var(--mh-primary-deep), var(--mh-indigo));
    border: none;
    transition: transform 0.2s ease;
}

.mh-btn-saas-mini:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

/* Bento Cards de Indicadores */
.mh-bento-card {
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border-color);
    border-radius: var(--mh-radius-bento);
    padding: 1.75rem;
    box-shadow: var(--mh-shadow-card);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.mh-bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--mh-border-strong);
    box-shadow: var(--mh-shadow-hover);
}

.mh-bento-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.icon-sky {
    background: rgba(14, 165, 233, 0.14);
    color: #38bdf8;
}
.icon-indigo {
    background: rgba(79, 70, 229, 0.15);
    color: #818cf8;
}
.icon-cyan {
    background: rgba(6, 182, 212, 0.14);
    color: #22d3ee;
}

.mh-bento-stat {
    font-family: var(--mh-font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.28rem 0.75rem;
    border-radius: var(--mh-radius-pill);
    background: rgba(14, 165, 233, 0.1);
    color: var(--mh-primary);
    border: 1px solid rgba(14, 165, 233, 0.22);
}

.mh-bento-desc {
    color: var(--mh-text-secondary);
    font-size: 0.94rem;
}

/* ==========================================================================
   4. SEÇÕES CORPORATIVAS, SOBRE, PILARES & SOB ENCOMENDA
   ========================================================================== */
.mh-section {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
}

.mh-section-alt {
    background-color: var(--mh-bg-alt);
}

.mh-section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mh-primary);
}

.mh-section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
}

.mh-lead-text {
    font-size: 1.08rem;
    color: var(--mh-text-secondary);
}

.mh-body-text {
    font-size: 0.96rem;
    color: var(--mh-text-secondary);
}

.mh-corporate-id-box {
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border-strong);
    border-radius: var(--mh-radius-bento);
    box-shadow: var(--mh-shadow-card);
}

.mh-meta-label {
    display: block;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mh-text-muted);
}

.mh-meta-value {
    font-size: 0.95rem;
    color: var(--mh-text-main);
}

.mh-meta-link {
    color: var(--mh-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.mh-meta-link:hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* Cards de Valores Centrais */
.mh-value-card {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    padding: 1.45rem;
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border-color);
    border-radius: var(--mh-radius-bento);
    box-shadow: var(--mh-shadow-card);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.mh-value-card:hover {
    transform: translateY(-3px);
    border-color: var(--mh-border-strong);
}

.mh-value-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #ffffff;
}

.bg-gradient-sky { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.bg-gradient-indigo { background: linear-gradient(135deg, #4f46e5, #818cf8); }
.bg-gradient-cyan { background: linear-gradient(135deg, #0891b2, #2dd4bf); }

.mh-value-desc {
    font-size: 0.92rem;
    color: var(--mh-text-secondary);
}

/* Cards de Pilares de Engenharia */
.mh-pillar-card {
    position: relative;
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border-color);
    border-radius: var(--mh-radius-bento);
    padding: 1.75rem;
    box-shadow: var(--mh-shadow-card);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.mh-pillar-card:hover {
    transform: translateY(-4px);
    border-color: var(--mh-border-strong);
}

.mh-pillar-ai {
    border-color: rgba(168, 85, 247, 0.35);
}

.mh-pillar-number {
    position: absolute;
    top: 1.25rem;
    right: 1.4rem;
    font-family: var(--mh-font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    color: rgba(148, 163, 184, 0.16);
}

.mh-pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(14, 165, 233, 0.12);
    color: var(--mh-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.1rem;
}

.mh-pillar-icon.icon-ai {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(168, 85, 247, 0.2));
    color: #c084fc;
}

.mh-pillar-text {
    font-size: 0.9rem;
    color: var(--mh-text-secondary);
}

.mh-pillar-list li {
    font-size: 0.84rem;
    color: var(--mh-text-secondary);
    margin-bottom: 0.4rem;
}

/* Banner de Desenvolvimento Sob Encomenda */
.mh-custom-dev-banner {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.1) 0%, rgba(79, 70, 229, 0.12) 100%);
    border: 1px solid var(--mh-border-strong);
    border-radius: 24px;
    box-shadow: var(--mh-shadow-card);
}

.mh-badge-custom-dev {
    padding: 0.35rem 0.9rem;
    border-radius: var(--mh-radius-pill);
    background: rgba(79, 70, 229, 0.16);
    color: #818cf8;
    font-size: 0.78rem;
    font-weight: 700;
}

.mh-mini-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.mh-custom-dev-cta-box {
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border-color);
    border-radius: var(--mh-radius-bento);
}

/* ==========================================================================
   5. SEÇÃO ESPECIAL: ECOSSISTEMA MHSYS SAAS, APP STORE & MHAX IA
   ========================================================================== */
.mh-glow-ecosystem-left {
    width: 480px;
    height: 480px;
    top: 15%;
    left: -140px;
    background: radial-gradient(circle, var(--mh-cyan-ai) 0%, transparent 70%);
}

.mh-glow-ecosystem-right {
    width: 500px;
    height: 500px;
    bottom: 10%;
    right: -140px;
    background: radial-gradient(circle, var(--mh-purple-ai) 0%, var(--mh-indigo) 65%, transparent 100%);
}

.mh-badge-ai {
    padding: 0.42rem 1.05rem;
    border-radius: var(--mh-radius-pill);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(147, 51, 234, 0.18));
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #38bdf8;
    font-size: 0.82rem;
    font-weight: 700;
}

.mh-eco-feature-card {
    display: flex;
    flex-direction: column;
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border-color);
    border-radius: var(--mh-radius-bento);
    padding: 1.85rem;
    box-shadow: var(--mh-shadow-card);
}

.mh-eco-card-ai {
    border-color: rgba(168, 85, 247, 0.4);
    background: linear-gradient(180deg, var(--mh-bg-card) 0%, rgba(147, 51, 234, 0.06) 100%);
}

.mh-eco-chip {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: var(--mh-radius-pill);
}
.chip-blue { background: rgba(14, 165, 233, 0.14); color: #38bdf8; }
.chip-indigo { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.chip-ai { background: rgba(168, 85, 247, 0.16); color: #c084fc; }

.mh-eco-check-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.88rem;
    color: var(--mh-text-secondary);
    margin-bottom: 0.45rem;
}

.mh-app-mini-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    background: var(--mh-bg-alt);
    border: 1px solid var(--mh-border-color);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mh-text-main);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.mh-app-mini-pill:hover {
    transform: translateY(-2px);
    border-color: var(--mh-primary);
}

.mh-ai-prompt-preview {
    padding: 1rem;
    border-radius: 14px;
    background: var(--mh-bg-alt);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.mh-ai-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #06b6d4, #9333ea);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* Filtros Interativos de Segmentos */
.mh-filter-btn {
    border-radius: var(--mh-radius-pill);
    padding: 0.48rem 1rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--mh-text-secondary);
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mh-filter-btn:hover {
    transform: translateY(-2px);
    color: var(--mh-primary);
    border-color: var(--mh-primary);
}

.mh-filter-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--mh-primary-deep), var(--mh-indigo));
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

/* Cards de Segmentos Atendidos */
.mh-segment-item {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.mh-segment-item.d-none-filtered {
    display: none !important;
}

.mh-segment-card {
    display: flex;
    flex-direction: column;
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border-color);
    border-radius: var(--mh-radius-bento);
    padding: 1.65rem;
    box-shadow: var(--mh-shadow-card);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.mh-segment-card:hover {
    transform: translateY(-4px);
    border-color: var(--mh-border-strong);
    box-shadow: var(--mh-shadow-hover);
}

.mh-segment-featured {
    border-color: rgba(14, 165, 233, 0.35);
}

.mh-segment-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: rgba(14, 165, 233, 0.12);
    color: var(--mh-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.mh-segment-badge {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.24rem 0.7rem;
    border-radius: var(--mh-radius-pill);
    background: var(--mh-bg-alt);
    border: 1px solid var(--mh-border-color);
    color: var(--mh-text-muted);
}

.mh-segment-desc {
    font-size: 0.9rem;
    color: var(--mh-text-secondary);
}

.mh-tag-item {
    font-size: 0.76rem;
    font-weight: 500;
    padding: 0.22rem 0.65rem;
    border-radius: 8px;
    background: var(--mh-bg-alt);
    border: 1px solid var(--mh-border-color);
    color: var(--mh-text-secondary);
}

.mh-segment-link {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--mh-primary);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.mh-segment-link:hover {
    text-decoration: underline;
}

.mh-segment-consult-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--mh-border-color);
    background: var(--mh-bg-alt);
    color: var(--mh-text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mh-segment-consult-btn:hover {
    color: var(--mh-primary);
    border-color: var(--mh-primary);
    transform: translateY(-2px);
}

/* Banner Glassmorphic Central do MhSys SaaS */
.mh-saas-cta-banner {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.16) 0%, rgba(79, 70, 229, 0.18) 55%, rgba(147, 51, 234, 0.16) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--mh-border-strong);
    border-radius: 24px;
    box-shadow: var(--mh-shadow-hover);
}

.mh-btn-saas-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--mh-radius-pill);
    padding: 0.95rem 1.75rem;
    font-size: 0.96rem;
    font-weight: 700;
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--mh-primary-deep) 0%, var(--mh-primary) 50%, var(--mh-indigo) 100%);
    border: none;
    box-shadow: 0 14px 32px -6px rgba(14, 165, 233, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mh-btn-saas-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px -6px rgba(14, 165, 233, 0.65);
}

/* ==========================================================================
   6. CONTATO INSTITUCIONAL, MAPA & FORMULÁRIO
   ========================================================================== */
.mh-contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border-color);
    border-radius: var(--mh-radius-lg);
    box-shadow: var(--mh-shadow-card);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.mh-contact-card:hover {
    transform: translateY(-2px);
    border-color: var(--mh-border-strong);
}

.mh-contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.icon-whatsapp { background: rgba(16, 185, 129, 0.14); color: #10b981; }
.icon-email { background: rgba(14, 165, 233, 0.14); color: #38bdf8; }
.icon-location { background: rgba(99, 102, 241, 0.14); color: #818cf8; }

.mh-contact-action-link {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--mh-primary);
    text-decoration: none;
}

.mh-contact-action-link:hover {
    text-decoration: underline;
}

.mh-map-card {
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border-color);
    border-radius: var(--mh-radius-lg);
    box-shadow: var(--mh-shadow-card);
}

.mh-map-header {
    border-bottom: 1px solid var(--mh-border-color);
}

.mh-map-frame iframe {
    border: 0;
    width: 100%;
    height: 100%;
    filter: contrast(1.02);
}

[data-theme="dark"] .mh-map-frame iframe {
    filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.mh-form-wrapper {
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border-color);
    border-radius: var(--mh-radius-bento);
    box-shadow: var(--mh-shadow-card);
}

.mh-security-shield-badge {
    padding: 0.3rem 0.75rem;
    border-radius: var(--mh-radius-pill);
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.25);
    color: var(--mh-text-secondary);
}

.mh-form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mh-text-main);
}

.mh-input-group .input-group-text {
    background: var(--mh-bg-alt);
    border-color: var(--mh-border-color);
    color: var(--mh-text-muted);
}

.mh-form-control {
    background-color: var(--mh-bg-alt) !important;
    border-color: var(--mh-border-color) !important;
    color: var(--mh-text-main) !important;
    font-size: 0.92rem;
    padding: 0.68rem 0.9rem;
    border-radius: 10px;
}

.mh-input-group .mh-form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.mh-form-control:focus {
    border-color: var(--mh-primary) !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18) !important;
}

/* ==========================================================================
   7. RODAPÉ CORPORATIVO, WHATSAPP FLUTUANTE & TOASTS MHSYS
   ========================================================================== */
.mh-footer {
    background: var(--mh-bg-body);
    border-top: 1px solid var(--mh-border-color);
}

.mh-footer-heading {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--mh-text-main);
}

.mh-footer-links li {
    margin-bottom: 0.5rem;
}

.mh-footer-links a,
.mh-footer-legal-link {
    font-size: 0.88rem;
    color: var(--mh-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mh-footer-links a:hover,
.mh-footer-legal-link:hover {
    color: var(--mh-primary);
}

.mh-compliance-tag {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border-color);
    color: var(--mh-text-secondary);
}

.mh-modal-content {
    background: var(--mh-bg-card);
    color: var(--mh-text-main);
    border: 1px solid var(--mh-border-strong);
    border-radius: var(--mh-radius-bento);
}

/* Botão Flutuante de WhatsApp */
.mh-floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.45);
    z-index: 1035;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mh-floating-whatsapp:hover {
    transform: translateY(-3px) scale(1.04);
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(16, 185, 129, 0.6);
}

/* Sistema de Notificações Toast (notificarMhSys) */
.mhsys-toast-container {
    position: fixed;
    top: 88px;
    right: 20px;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 390px;
    width: calc(100% - 40px);
    pointer-events: none;
}

.mhsys-toast-item {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border-strong);
    color: var(--mh-text-main);
    box-shadow: 0 18px 38px rgba(2, 6, 23, 0.45);
    animation: mhToastSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.mhsys-toast-item.toast-success { border-left: 4px solid #10b981; }
.mhsys-toast-item.toast-error { border-left: 4px solid #ef4444; }
.mhsys-toast-item.toast-info { border-left: 4px solid #0ea5e9; }

@keyframes mhToastSlideIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsividade Mobile */
@media (max-width: 991.98px) {
    .mh-hero-section {
        padding-top: 7.25rem;
        padding-bottom: 3.5rem;
    }
    .mh-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .mh-btn-saas-hero-cta {
        width: 100%;
        text-align: center;
    }
}

