/* =========================================
   VARIÁVEIS GLOBAIS E CONFIGURAÇÕES
========================================= */
:root {
    --bg-dark: #050505;
    --bg-card: #0c0c0c;
    --text-light: #F5F5F5;
    --cta-hover: #D4AF37;
    --highlight: #002244;
    --font-main: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-main);
    overflow-x: hidden;
    padding-top: 0 !important; /* Garante que a foto do hero encoste no topo sob o menu */
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =========================================
   1. HERO SECTION (BANNER PRINCIPAL)
========================================= */
.hero-section {
    position: relative; height: 100vh; display: flex; align-items: center;
    justify-content: center; text-align: center; overflow: hidden;
    background-image: url('../assets/images/bg-hero-studio.jpg') !important;
    background-size: cover !important; background-position: center center !important;
    background-repeat: no-repeat; background-attachment: fixed;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.6), rgba(5, 5, 5, 0.95)), radial-gradient(circle, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%); z-index: 0;
}
.hero-content { max-width: 800px; padding: 20px; position: relative; z-index: 1; }
.fade-in-title, .fade-in-subtitle, .fade-in-cta { opacity: 0; transform: translateY(20px); animation: fadeIn 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.fade-in-subtitle { animation-delay: 0.3s; }
.fade-in-cta { animation-delay: 0.6s; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }
.hero-content h1 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; font-weight: 300; margin-bottom: 40px; color: #cccccc; }
.cta-button { display: inline-block; padding: 15px 35px; background: transparent; color: var(--text-light); text-decoration: none; border: 1px solid rgba(255,255,255,0.3); border-radius: 4px; font-weight: 600; transition: all 0.3s ease; }
.cta-button:hover { border-color: var(--cta-hover); box-shadow: 0 0 15px rgba(13, 133, 232, 0.4); }

/* =========================================
   2. A JORNADA DO CLIENTE
========================================= */
.jornada-section { background-color: var(--bg-card); padding: 100px 0; }
.jornada-grid { display: flex; gap: 30px; flex-direction: column; }
@media (min-width: 768px) { .jornada-grid { flex-direction: row; } }
.jornada-card { flex: 1; background: #000000; padding: 40px 30px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.05); box-shadow: 0 15px 35px rgba(0,0,0,0.8); }
.jornada-icon { width: 100%; height: 200px; background-color: #000000; background-image: url('../assets/images/jornada-icons.jpeg') !important; background-size: 300% auto !important; background-repeat: no-repeat; margin-bottom: 25px; border-radius: 8px; }
.icon-fase1 { background-position: 0% 50% !important; }
.icon-fase2 { background-position: 50% 50% !important; }
.icon-fase3 { background-position: 100% 50% !important; }
.fase-tag { font-size: 0.85rem; color: #F76C39; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.jornada-card h3 { margin: 15px 0; font-size: 1.4rem; }
.jornada-card p { font-weight: 300; line-height: 1.6; color: #b3b3b3; }

/* =========================================
   3. ESPECIALIDADES DO LABORATÓRIO
========================================= */
.especialidades-section { position: relative; padding: 120px 0; background-color: var(--bg-dark); background-image: url('../assets/images/bg-setup-fhs.jpg') !important; background-size: cover !important; background-position: center center !important; background-repeat: no-repeat; background-attachment: fixed; }
.especialidades-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(5, 5, 5, 0.85); z-index: 1; }
.especialidades-content { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 40px; }
.especialidade-item { cursor: pointer; padding: 20px; border-left: 3px solid transparent; transition: all 0.3s ease; }
.especialidade-titulo { font-size: 2rem; margin-bottom: 10px; color: var(--text-light); transition: all 0.3s ease; }
.especialidade-item:hover { border-left: 3px solid var(--highlight); }
.especialidade-item:hover .especialidade-titulo { text-shadow: 0 0 10px rgba(105, 40, 145, 0.6); }
.especialidade-item p { font-weight: 300; color: #cccccc; max-width: 600px; }

/* =========================================
   3.5 PORTFÓLIO (GRADE FIXA DE SERVIÇOS)
========================================= */
.portfolio-section { padding: 100px 0; background-color: var(--bg-dark); }
.secao-header { text-align: center; margin-bottom: 60px; }
.secao-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.secao-header p { color: #a0a0a0; font-size: 1.1rem; }
.portfolio-carousel-container { position: relative !important; width: 100% !important; }
.portfolio-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)) !important; gap: 30px !important; width: 100% !important; overflow: visible !important; transform: none !important; }

.portfolio-card { scroll-snap-align: start; background: #111111; border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 8px; overflow: hidden; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.portfolio-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7); }
.portfolio-imagem { width: 100%; height: 250px; background-color: #1a1a1a; background-size: cover !important; background-position: center !important; background-repeat: no-repeat; transition: transform 0.6s ease; }
.portfolio-card:hover .portfolio-imagem { transform: scale(1.05); }
.portfolio-info { padding: 30px; position: relative; z-index: 2; background: #111111; }
.portfolio-categoria { font-size: 0.8rem; color: #F76C39; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 15px; display: block; }
.portfolio-info h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--text-light); }
.portfolio-info p { color: #999; font-size: 0.95rem; line-height: 1.6; margin-bottom: 25px; }
.portfolio-link { color: var(--text-light); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: color 0.3s ease; }
.portfolio-link:hover { color: #F76C39; }

.carousel-arrow { display: none !important; }

/* =========================================
   4. AUTORIDADE E MARCAS
========================================= */
.autoridade-section { background-color: var(--bg-dark); padding: 100px 0; position: relative; }
.autoridade-flex { display: flex; align-items: center; gap: 60px; justify-content: space-between; }
.autoridade-imagem { flex: 1; max-width: 450px; margin: 0 auto; }
.autoridade-imagem img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.8); border: 1px solid rgba(255, 255, 255, 0.05); }
.autoridade-texto { flex: 1.2; text-align: justify; }
.autoridade-texto h2 { font-size: 2.5rem; margin-bottom: 30px; color: var(--text-light); text-align: left; }
.autoridade-texto p { font-size: 1.2rem; line-height: 1.8; font-weight: 300; color: #e0e0e0; }

/* =========================================
   4.1 MARCAS PARCEIRAS (TICKER)
========================================= */
.marcas-section { background-color: #ffffff; padding: 25px 0; overflow: hidden; border-top: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0; }
.marcas-ticker { width: 100%; display: flex; }
.ticker-track { display: flex; white-space: nowrap; animation: scrollTicker 30s linear infinite; align-items: center; }
.ticker-track span { font-size: 1rem; font-weight: 700; letter-spacing: 2px; color: #FF5500; margin: 0 40px; text-transform: uppercase; }
.ticker-track .dot { color: #F76C39; font-size: 1.2rem; margin: 0; }
@keyframes scrollTicker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =========================================
   5. CONTATO E FOOTER
========================================= */
.contato-section { background-color: #111111; padding: 100px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.contato-container { display: flex; flex-direction: column; gap: 50px; align-items: center; max-width: 800px; margin: 0 auto; text-align: center; }
.contato-texto h2 { font-size: 2.5rem; margin-bottom: 20px; color: var(--text-light); }
.contato-texto p { font-size: 1.1rem; color: #b3b3b3; line-height: 1.6; }
.contato-form { width: 100%; display: flex; flex-direction: column; gap: 20px; }
.input-group input { width: 100%; padding: 18px 20px; background-color: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 4px; color: var(--text-light); font-family: var(--font-main); font-size: 1rem; outline: none; transition: all 0.3s ease; }
.input-group input:focus { border-color: var(--highlight); background-color: rgba(255, 255, 255, 0.05); box-shadow: 0 0 10px rgba(105, 40, 145, 0.2); }
.form-btn { width: 100%; margin-top: 10px; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; }

/* =========================================
   FOOTER (RODAPÉ)
========================================= */
.site-footer { 
    background-color: #020202; 
    padding: 80px 0 20px; 
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
}

.footer-content { 
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr; 
    gap: 40px; 
    margin-bottom: 60px; 
}

.footer-col h4 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-col p {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.brand-slogan {
    margin-top: 15px;
    color: #F76C39 !important; 
    font-style: italic;
    font-size: 0.9rem !important;
}

.footer-col ul {
    list-style: none !important; 
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: #cccccc !important; 
    text-decoration: none !important; 
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-col ul a:hover {
    color: #F76C39 !important; 
    padding-left: 5px; 
}

.footer-bottom { 
    text-align: center; 
    padding-top: 30px; 
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
    color: #666; 
    font-size: 0.85rem; 
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Botão WhatsApp */
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px; background-color: #25d366; border-radius: 50px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); z-index: 1000; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.whatsapp-float:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4); }
.wa-icon { width: 35px; height: 35px; fill: #ffffff; }

/* Páginas de Detalhes dos Serviços */
.servico-detalhe { padding: 100px 0; background-color: #050505; color: #e0e0e0; }
.servico-detalhe .container { max-width: 800px; line-height: 1.8; }
.servico-detalhe h1 { margin-bottom: 30px; color: #fff; font-size: 2.5rem; }
.servico-detalhe h2 { margin-top: 40px; margin-bottom: 20px; color: #F76C39; }
.servico-detalhe ul { margin-left: 20px; margin-bottom: 30px; }
.servico-detalhe li { margin-bottom: 10px; color: #cccccc; }

/* =========================================
   MENU DE NAVEGAÇÃO PREMIUM - BLINDADO
========================================= */
.header-fhs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(5, 5, 5, 0.35);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px; 
}

/* Logotipo */
.logo-box {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.logo-box img {
    max-height: 65px !important; 
    width: auto !important;
    height: auto !important;
    transform: none !important; 
    object-fit: contain;
}

/* Links */
.menu-principal ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.menu-principal a {
    text-decoration: none;
    color: #F5F5F5;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8); 
}

.menu-principal a:hover {
    color: #F76C39; 
}

/* Botão Agendar Diagnóstico */
.btn-nav {
    border: 1px solid rgba(247, 108, 57, 0.6) !important;
    padding: 10px 24px !important;
    border-radius: 6px;
    color: #F76C39 !important;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.4) !important;
    transition: all 0.3s ease;
    text-shadow: none !important;
}

.btn-nav:hover {
    background-color: #F76C39 !important;
    color: #050505 !important;
    box-shadow: 0 0 15px rgba(247, 108, 57, 0.4); 
}

/* =========================================
   BOTÃO HAMBÚRGUER (MOBILE)
========================================= */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    z-index: 10000;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* =========================================
   ESTILO BLINDADO DOS ÍCONES SOCIAIS (RODAPÉ)
========================================= */
.social-icons-wrapper {
    display: flex !important;
    gap: 15px !important;
    margin-top: 10px !important;
}

.social-icons-wrapper a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cccccc !important; 
    transition: all 0.3s ease !important;
    padding: 0 !important;
}

.social-icons-wrapper a svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    fill: currentColor !important;
    transition: all 0.3s ease !important;
}

.social-icons-wrapper a:hover {
    background-color: #F76C39 !important;
    border-color: #F76C39 !important;
    color: #050505 !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 5px 15px rgba(247, 108, 57, 0.3) !important;
}

/* =========================================
   FAQ EM ESTILO SANFONA (INTERATIVO)
========================================= */
.faq-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-card {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-card:hover {
    border-color: rgba(247, 108, 57, 0.4);
}

.faq-question {
    width: 100%;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 24px 30px;
    text-align: left;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: none !important;
}

.faq-question:hover {
    color: #F76C39;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #F76C39;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.faq-card.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 30px;
}

.faq-card.active .faq-answer {
    max-height: 250px;
    padding: 0 30px 24px 30px;
}

.faq-answer p {
    color: #b3b3b3;
    line-height: 1.7;
    font-weight: 300;
    margin: 0;
    font-size: 0.95rem;
}

/* ==========================================
   RESPONSIVIDADE E MENU HAMBÚRGUER (MOBILE)
   ========================================== */
@media screen and (max-width: 1024px) {
    .menu-toggle {
        display: flex !important;
    }

    .menu-principal {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.9);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 9998;
    }

    .menu-principal.active {
        right: 0 !important;
    }

    .menu-principal ul {
        flex-direction: column !important;
        gap: 25px !important;
        text-align: center;
    }

    .menu-principal a {
        font-size: 1.15rem !important;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-section {
        padding: 120px 15px 80px 15px;
        text-align: center;
        background-attachment: scroll !important;
    }

    .hero-content h1 {
        font-size: 2.1rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .jornada-grid {
        flex-direction: column;
        gap: 20px;
    }

    .especialidades-content {
        gap: 20px;
    }

    .portfolio-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .autoridade-flex {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .autoridade-texto h2 {
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 30px;
        text-align: center;
    }

    .footer-col.brand-col {
        align-items: center;
    }

    .social-icons-wrapper {
        justify-content: center;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .wa-icon {
        width: 28px;
        height: 28px;
    }
}