/*
Theme Name: BEM Engenharia e Gestao 3D
Theme URI: https://bemengenharia.com
Description: Tema premium e moderno para BEM Engenharia com estética de Engenharia Civil (Blueprint / Grids técnicos).
Version: 4.0
Author: Antigravity AI
Text Domain: bem-engenharia-theme
*/

/* ==========================================================================
   Configurações Globais e Variáveis
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0056B3;       /* Azul BEM */
    --primary-dark: #003B80;
    --secondary: #00B4D8;
    
    /* Cores de Engenharia / Blueprint */
    --blueprint-blue: #0A2540; /* Azul escuro blueprint */
    --blueprint-grid: rgba(0, 86, 179, 0.08); /* Linhas da grade milimetrada */
    --blueprint-grid-light: rgba(255, 255, 255, 0.06);
    --cota-color: #64748B;    /* Cor das linhas de cota */
    
    --dark: #0F172A;          /* Slate Dark */
    --text: #334155;          /* Slate Gray */
    --bg-light: #F8FAFC;      /* Fundo da prancheta */
    --bg-white: #FFFFFF;
    --border: #E2E8F0;
    --success: #25D366;       /* Verde WhatsApp */
    --success-hover: #128C7E;
    
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    color: var(--dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ==========================================================================
   Blueprint Grid Patterns (Grades de Desenho Técnico)
   ========================================================================== */
.grid-blueprint {
    background-image: 
        linear-gradient(var(--blueprint-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--blueprint-grid) 1px, transparent 1px);
    background-size: 20px 20px;
    background-color: var(--bg-light);
}

.grid-blueprint-dark {
    background-image: 
        linear-gradient(var(--blueprint-grid-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--blueprint-grid-light) 1px, transparent 1px);
    background-size: 24px 24px;
    background-color: var(--blueprint-blue);
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
    border-bottom: 1px solid var(--border);
}

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

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 15px;
    font-weight: 800;
    position: relative;
    display: inline-block;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--cota-color);
    max-width: 600px;
    margin: 0 auto 50px;
    font-weight: 400;
}

/* ==========================================================================
   Botões e Elementos Comuns
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white) !important;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.15);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--success);
    color: var(--bg-white) !important;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.15);
}

.btn-accent:hover {
    background-color: var(--success-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary) !important;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-white) !important;
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--bg-white);
    color: var(--blueprint-blue) !important;
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Linha de Cota Decorativa (Estilo Desenho Técnico CAD) */
.cota-container {
    position: relative;
    padding: 15px 0;
    margin: 20px 0;
}

.cota-line {
    height: 1px;
    background-color: var(--cota-color);
    position: relative;
    width: 100%;
}

.cota-line::before, .cota-line::after {
    content: '';
    position: absolute;
    top: -4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--cota-color);
}

.cota-line::before { left: 0; }
.cota-line::after { right: 0; }

.cota-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-light);
    padding: 0 10px;
    font-size: 0.75rem;
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--cota-color);
    letter-spacing: 1px;
}

.cota-white-bg .cota-text {
    background-color: var(--bg-white);
}

/* ==========================================================================
   Header (Navegação)
   ========================================================================== */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: block;
}

.logo-img {
    height: 52px;
    width: auto;
    display: block;
}

.logo-gear-spin {
    transform-origin: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================================================================
   Hero Section (Nova Imagem + Overlays Flutuantes)
   ========================================================================== */
.hero-custom-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--dark);
}

.hero-banner-wrapper {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    min-height: 550px;
    object-fit: cover;
    display: block;
}

/* Overlay Escuro na Imagem inteira para manter o contraste das caixas */
.hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.1) 60%);
    pointer-events: none;
}

.hero-logo-badge {
    position: absolute;
    left: 5%;
    top: 10%;
    background: none;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: fadeInUp 0.8s ease;
}

/* Caixa flutuante da Chamada/Texto (Bottom-Left) */
.hero-text-badge {
    position: absolute;
    left: 5%;
    bottom: 8%;
    width: calc(100% - 10%);
    max-width: 480px;
    background-color: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--bg-white);
    animation: fadeInUp 1s ease;
}

.hero-badge-title {
    font-size: 2.1rem;
    line-height: 1.15;
    margin-bottom: 15px;
    font-weight: 800;
    color: var(--bg-white);
}

.hero-badge-title span {
    color: var(--secondary);
}

.hero-badge-subtitle {
    font-size: 1rem;
    color: #e2e8f0;
    margin-bottom: 25px;
    font-weight: 400;
}

.hero-badge-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Bento Grid de Serviços (Estilo Desenho Técnico/Modular)
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.bento-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    border: 1px solid rgba(0, 86, 179, 0.12);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Bento card sizes */
.bento-w-6 { grid-column: span 6; }
.bento-w-4 { grid-column: span 4; }
.bento-w-8 { grid-column: span 8; }
.bento-w-12 { grid-column: span 12; }

/* Adiciona um background sutil de prancheta de desenho nos cards no hover */
.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 86, 179, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 86, 179, 0.04) 1px, transparent 1px);
    background-size: 15px 15px;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    z-index: 1;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

.bento-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.bento-icon {
    width: 55px;
    height: 55px;
    background-color: rgba(0, 86, 179, 0.06);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    border: 1px solid rgba(0, 86, 179, 0.12);
}

.bento-tag {
    font-size: 0.72rem;
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(0, 86, 179, 0.2);
    padding: 3px 10px;
    border-radius: 4px;
}

.bento-card-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 800;
    color: var(--dark);
    position: relative;
    z-index: 2;
}

.bento-card-desc {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 30px;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.bento-spec-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--cota-color);
    background-color: var(--bg-light);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
    width: fit-content;
}

.bento-spec-badge i {
    color: var(--primary);
}

.bento-card-footer {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Seção de Normas Técnicas ABNT (Detalhes Prediais)
   ========================================================================== */
.norms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.norm-box {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 8px;
    position: relative;
    transition: var(--transition);
}

.norm-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: var(--cota-color);
    transition: var(--transition);
}

.norm-box:hover::before {
    background-color: var(--primary);
}

.norm-box:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 86, 179, 0.15);
}

.norm-code {
    font-family: var(--font-secondary);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.norm-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.norm-desc {
    font-size: 0.88rem;
    color: var(--text);
}

/* ==========================================================================
   Seção Sobre Nós (Planta Baixa / Desenho Técnico)
   ========================================================================== */
.about-blueprint-container {
    background-color: var(--blueprint-blue);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    padding: 60px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.about-blueprint-container .section-title {
    color: var(--bg-white);
}

.about-blueprint-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-tech-specs {
    border-left: 1px dashed rgba(255, 255, 255, 0.15);
    padding-left: 40px;
}

.tech-spec-item {
    margin-bottom: 30px;
}

.tech-spec-title {
    font-family: var(--font-secondary);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.tech-spec-val {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--bg-white);
}

/* ==========================================================================
   Contato (CAD Grid)
   ========================================================================== */
.contact-card-layout {
    background-color: var(--bg-white);
    border: 1px solid rgba(0, 86, 179, 0.12);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
}

.contact-tech-info {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-form-side {
    padding: 50px;
    border-left: 1px solid var(--border);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--dark);
    color: #94a3b8;
    padding: 50px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copy {
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 38px;
    height: 38px;
    background-color: rgba(255,255,255,0.04);
    color: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* ==========================================================================
   Breakpoints de Responsividade
   ========================================================================== */
@media (max-width: 992px) {
    .bento-w-6, .bento-w-4, .bento-w-8 {
        grid-column: span 12;
    }
    
    .hero-banner-img {
        min-height: 380px;
    }
    
    .hero-logo-badge {
        position: relative;
        left: 0;
        top: 0;
        margin: 20px 20px 0;
        display: inline-flex;
        animation: none;
    }
    
    .hero-text-badge {
        position: relative;
        left: 0;
        bottom: 0;
        margin: 20px;
        width: calc(100% - 40px);
        max-width: none;
        animation: none;
    }
    
    .about-blueprint-container {
        padding: 30px;
    }
    
    .about-blueprint-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-tech-specs {
        border-left: none;
        border-top: 1px dashed rgba(255, 255, 255, 0.15);
        padding-left: 0;
        padding-top: 30px;
    }
    
    .contact-card-layout {
        grid-template-columns: 1fr;
    }
    
    .contact-tech-info {
        padding: 25px;
    }
    
    .contact-form-side {
        padding: 25px;
        border-left: none;
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .logo-img {
        height: 42px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 1001; /* Fica acima da nav-menu aberta */
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 50px 0;
        gap: 30px;
        transition: var(--transition);
        box-shadow: var(--shadow-md);
        z-index: 1000; /* Fica abaixo do botão toggle mas acima do site */
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .header-cta-item {
        margin-top: 15px;
    }
    
    .hero-banner-img {
        min-height: 380px;
        height: 380px;
        object-fit: cover;
        object-position: right center;
    }
    
    .hero-banner-wrapper {
        position: relative;
        display: block;
    }
    
    .hero-text-badge {
        position: absolute;
        left: 10px;
        bottom: 10px;
        width: 240px;
        background-color: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        padding: 12px;
        border-radius: 8px;
        box-shadow: var(--shadow-md);
        animation: none;
        z-index: 5;
    }
    
    .hero-badge-title {
        font-size: 1.05rem;
        margin-bottom: 4px;
        line-height: 1.2;
    }
    
    .hero-badge-subtitle {
        font-size: 0.72rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .hero-badge-actions {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .hero-badge-actions .btn {
        padding: 6px 10px;
        font-size: 0.7rem;
        text-align: center;
        width: 100%;
        display: block;
    }
    
    .bento-grid {
        gap: 20px;
    }
    
    .bento-card {
        padding: 20px;
    }
}

/* ==========================================================================
   Estilo Folha de Desenho Técnico (Blueprint / Prancheta)
   ========================================================================== */
.technical-drawing-sheet-wrapper {
    position: relative;
    margin: 40px auto;
    width: calc(100% - 40px);
    max-width: 1200px;
    border: 2px solid #000000;
    padding: 30px 30px 30px 45px; /* Margem maior na esquerda (25mm) para encadernação */
    background-color: #ffffff;
    background-image: 
        linear-gradient(rgba(0, 86, 179, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 86, 179, 0.025) 1px, transparent 1px),
        linear-gradient(rgba(0, 86, 179, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 86, 179, 0.06) 1px, transparent 1px);
    background-size: 10px 10px, 10px 10px, 50px 50px, 50px 50px;
    box-shadow: var(--shadow-lg);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .technical-drawing-sheet-wrapper {
        padding: 15px 15px 15px 25px;
        margin: 15px auto;
        width: calc(100% - 20px);
    }
}

/* Carimbo de Legenda Técnico */
.drawing-carimbo {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 2px solid #000000;
    border-left: 2px solid #000000;
    margin-top: 50px;
    width: 100%;
    font-family: var(--font-secondary);
    font-size: 0.72rem;
    color: #000000;
}

.carimbo-cell {
    border-right: 2px solid #000000;
    border-bottom: 2px solid #000000;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 52px;
}

.carimbo-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #475569;
    margin-bottom: 2px;
}

.carimbo-value {
    font-weight: 800;
    font-size: 0.78rem;
    color: #000000;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .drawing-carimbo {
        grid-template-columns: 1fr;
        border-left: 2px solid #000000;
        border-right: none;
    }
    .carimbo-cell {
        border-right: 2px solid #000000;
    }
}

/* ==========================================================================
   Especialidades Técnico (Hover Slide-Up)
   ========================================================================== */
.specialty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 992px) {
    .specialty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .specialty-grid {
        grid-template-columns: 1fr;
    }
}

.specialty-card {
    position: relative;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    height: 310px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.specialty-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.specialty-card-front {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.specialty-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.specialty-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
    font-family: var(--font-secondary);
    line-height: 1.3;
}

.specialty-card-hover-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.97);
    color: #ffffff;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
}

.specialty-card:hover .specialty-card-hover-panel {
    top: 0;
}

.specialty-hover-content {
    overflow-y: auto;
    font-size: 0.85rem;
    line-height: 1.45;
    padding-right: 5px;
}

/* Estilo barra de rolagem interna do painel hover */
.specialty-hover-content::-webkit-scrollbar {
    width: 4px;
}
.specialty-hover-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
.specialty-hover-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.specialty-hover-title {
    font-size: 1.15rem;
    font-weight: 800;
    font-family: var(--font-secondary);
    color: var(--secondary);
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    padding-bottom: 6px;
}

.specialty-hover-item {
    margin-bottom: 10px;
}

.specialty-hover-item:last-child {
    margin-bottom: 0;
}

.specialty-hover-label {
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 1px;
}

.specialty-hover-desc {
    color: #e2e8f0;
}

