/* =============================================================================
   Salk Medical — Landing Page CSS v4.1
   Escopado em body.salk-landing-page para evitar conflitos com tema ativo.
   Variáveis definidas em :root E body.salk-landing-page (dupla garantia).
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700;900&display=swap');

/* ── Variáveis no :root — garante que funcionam mesmo se o escopo body falhar ── */
:root {
    --verde-salk:        #3BBDB7;
    --verde-salk-escuro: #2C7D79;
    --branco-puro:       #FFFFFF;
    --cinza-salk:        #9FA1A4;
    --cinza-fundo:       #f8f9fa;
    --texto-escuro:      #212529;
    --texto-claro:       #6c757d;
    --shadow-sm:         0 4px 15px rgba(0,0,0,0.06);
    --shadow-md:         0 8px 30px rgba(0,0,0,0.1);
}

/* ── Variáveis também no body para maior especificidade ───────────────────── */
body.salk-landing-page {
    --verde-salk:        #3BBDB7;
    --verde-salk-escuro: #2C7D79;
    --branco-puro:       #FFFFFF;
    --cinza-salk:        #9FA1A4;
    --cinza-fundo:       #f8f9fa;
    --texto-escuro:      #212529;
    --texto-claro:       #6c757d;
    --shadow-sm:         0 4px 15px rgba(0,0,0,0.06);
    --shadow-md:         0 8px 30px rgba(0,0,0,0.1);
}

/* ── Reset global da página LP ─────────────────────────────────────────────── */
body.salk-landing-page {
    font-family: 'Roboto', sans-serif !important;
    line-height: 1.7 !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: var(--branco-puro) !important;
    -webkit-font-smoothing: antialiased;
    color: var(--texto-escuro);
}

body.salk-landing-page *,
body.salk-landing-page *::before,
body.salk-landing-page *::after {
    box-sizing: border-box;
}

body.salk-landing-page a {
    text-decoration: none;
}

body.salk-landing-page img {
    max-width: 100%;
    height: auto;
    display: block;
}

body.salk-landing-page .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

html { scroll-behavior: smooth; }


/* ── CABEÇALHO ─────────────────────────────────────────────────────────────── */
/*
 * Fix do "header gigante": estilos explícitos com !important para sobrescrever
 * qualquer CSS do Hello Elementor / Elementor que afete a tag <header>.
 */
body.salk-landing-page header.main-header {
    display: flex !important;
    align-items: center !important;
    background-color: rgba(248, 249, 250, 0.97) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 68px !important;
    min-height: unset !important;
    max-height: 68px !important;
    border-bottom: 1px solid #e9ecef !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    font-family: 'Roboto', sans-serif !important;
    /* Anula qualquer padding-top/bottom do tema */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.salk-landing-page header.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

body.salk-landing-page header.main-header .logo {
    height: 36px !important;
    width: auto !important;
    flex-shrink: 0;
    display: block;
}

body.salk-landing-page header.main-header nav {
    display: flex;
    align-items: center;
    gap: 0;
}

body.salk-landing-page header.main-header nav a {
    text-decoration: none;
    color: var(--texto-claro);
    margin-left: 32px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

body.salk-landing-page header.main-header nav a:hover {
    color: var(--verde-salk);
}

body.salk-landing-page .cta-button-header {
    background: var(--verde-salk) !important;
    color: var(--branco-puro) !important;
    padding: 10px 22px !important;
    border-radius: 50px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    transition: background 0.3s ease, transform 0.2s ease !important;
}

body.salk-landing-page .cta-button-header:hover {
    background: var(--verde-salk-escuro) !important;
    transform: translateY(-2px);
}


/* ── HERO ──────────────────────────────────────────────────────────────────── */
body.salk-landing-page #hero-v2 {
    min-height: 90vh;
    display: flex;
    align-items: center;
    color: var(--branco-puro);
    position: relative;
    background: url('assets/imagens/sala-cirurgica-inteligente-wide-4.jpg') no-repeat center center / cover;
}

body.salk-landing-page .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(44, 125, 121, 0.88), rgba(59, 189, 183, 0.72));
}

body.salk-landing-page .hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

body.salk-landing-page #hero-v2 h1 {
    font-family: "Gill Sans MT", "Gill Sans", 'Roboto', sans-serif !important;
    font-size: clamp(2.2rem, 5vw, 3.8rem) !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.18 !important;
    font-weight: 700 !important;
    color: var(--branco-puro) !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

body.salk-landing-page #hero-v2 p {
    font-size: clamp(1rem, 2vw, 1.2rem) !important;
    margin: 0 0 35px 0 !important;
    font-weight: 300 !important;
    max-width: 600px;
    color: rgba(255,255,255,0.92) !important;
    line-height: 1.6 !important;
}

body.salk-landing-page .cta-button {
    display: inline-block;
    background: var(--verde-salk);
    color: var(--branco-puro);
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    font-family: 'Roboto', sans-serif;
}

body.salk-landing-page .cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.22);
    background: var(--verde-salk-escuro);
    color: var(--branco-puro);
}


/* ── SEÇÕES GERAIS ─────────────────────────────────────────────────────────── */
body.salk-landing-page section {
    padding: 100px 0;
}

body.salk-landing-page h2.section-title {
    font-family: "Gill Sans MT", "Gill Sans", 'Roboto', sans-serif !important;
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
    margin: 0 0 25px 0 !important;
    font-weight: 700 !important;
    color: var(--texto-escuro) !important;
    line-height: 1.2 !important;
}


/* ── SEÇÃO PRODUTOS ────────────────────────────────────────────────────────── */
body.salk-landing-page .products-section {
    background-color: var(--cinza-fundo);
}

body.salk-landing-page .products-section .section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: var(--texto-claro);
    font-size: 1.05rem;
}

body.salk-landing-page .tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 12px;
    flex-wrap: wrap;
}

body.salk-landing-page .tab-button {
    background: var(--branco-puro);
    border: 2px solid var(--verde-salk);
    color: var(--verde-salk);
    padding: 11px 26px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

body.salk-landing-page .tab-button:hover,
body.salk-landing-page .tab-button.active {
    background: var(--verde-salk);
    color: var(--branco-puro);
    box-shadow: var(--shadow-sm);
}

body.salk-landing-page .tab-content {
    display: none;
    animation: salkFadeInTab 0.45s ease forwards;
}

body.salk-landing-page .tab-content.active {
    display: block;
}

body.salk-landing-page .product-item {
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--branco-puro);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

body.salk-landing-page .product-item img {
    flex: 1;
    max-width: 48%;
    border-radius: 10px;
    object-fit: cover;
}

body.salk-landing-page .product-item .product-details {
    flex: 1;
}

body.salk-landing-page .product-item h3 {
    font-family: "Gill Sans MT", "Gill Sans", 'Roboto', sans-serif !important;
    font-size: 1.8rem !important;
    color: var(--texto-escuro) !important;
    margin: 0 0 20px 0 !important;
    text-align: left !important;
    font-weight: 700 !important;
}

body.salk-landing-page .product-item ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.salk-landing-page .product-item ul li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%233BBDB7" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-8.83"/><polyline points="22 4 12 14.01 9 11.01"/></svg>') no-repeat left 2px;
    background-size: 18px;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 1rem;
    color: var(--texto-escuro);
    line-height: 1.5;
}


/* ── SEÇÃO BENEFÍCIOS POR PERFIL ───────────────────────────────────────────── */
body.salk-landing-page .benefits-section {
    background-color: var(--branco-puro);
}

body.salk-landing-page .benefits-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 20px;
}

body.salk-landing-page .benefit-card {
    background: var(--cinza-fundo);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

body.salk-landing-page .benefit-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--verde-salk);
}

body.salk-landing-page .benefit-card.active {
    background: var(--verde-salk);
    border-color: var(--verde-salk);
}

body.salk-landing-page .benefit-card .card-header {
    background: var(--branco-puro);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #e9ecef;
}

body.salk-landing-page .benefit-card.active .card-header {
    background: var(--verde-salk-escuro);
    border-color: transparent;
}

body.salk-landing-page .benefit-card .card-header h3 {
    font-family: 'Roboto', sans-serif !important;
    font-size: 1.2rem !important;
    margin: 0 !important;
    text-align: left !important;
    color: var(--texto-escuro) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

body.salk-landing-page .benefit-card.active .card-header h3 {
    color: var(--branco-puro) !important;
}

body.salk-landing-page .benefit-card .card-header .icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    stroke: var(--verde-salk);
}

body.salk-landing-page .benefit-card.active .card-header .icon {
    stroke: var(--branco-puro);
}

body.salk-landing-page .benefit-card .card-content {
    padding: 24px 28px;
    color: var(--texto-escuro);
}

body.salk-landing-page .benefit-card.active .card-content {
    color: var(--branco-puro);
}

body.salk-landing-page .benefit-card .card-content p {
    margin: 0 0 12px 0;
    font-size: 0.97rem;
    line-height: 1.6;
}

body.salk-landing-page .benefit-card .card-content strong {
    color: var(--verde-salk-escuro);
}

body.salk-landing-page .benefit-card.active .card-content strong {
    color: rgba(255,255,255,0.85);
}

body.salk-landing-page .benefit-card .card-content .cta-button {
    padding: 10px 22px;
    font-size: 0.88rem;
    box-shadow: none;
    margin-top: 16px;
}

body.salk-landing-page .benefit-card.active .card-content .cta-button {
    background: var(--branco-puro);
    color: var(--verde-salk-escuro);
}

body.salk-landing-page .benefit-card .card-content .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}


/* ── SEÇÃO DEPOIMENTOS / CARROSSEL ─────────────────────────────────────────── */
body.salk-landing-page .social-proof-section {
    background-color: var(--cinza-fundo);
    padding: 90px 0;
}

body.salk-landing-page .social-proof-section .section-title {
    margin-bottom: 50px;
}

body.salk-landing-page .testimonial-carousel-wrapper {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

body.salk-landing-page .testimonial-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

body.salk-landing-page .testimonial-slide {
    min-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    text-align: center;
}

body.salk-landing-page .testimonial-slide-content {
    padding: 30px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

body.salk-landing-page .testimonial-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid var(--verde-salk);
    fill: var(--cinza-salk);
    background: var(--branco-puro);
    padding: 6px;
}

body.salk-landing-page .testimonial-text {
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.65;
    color: var(--texto-claro);
    margin: 0 0 18px 0;
    max-width: 640px;
}

body.salk-landing-page .testimonial-author {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--verde-salk-escuro);
    letter-spacing: 0.02em;
}

body.salk-landing-page .carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 28px;
    gap: 8px;
}

body.salk-landing-page .prev-btn,
body.salk-landing-page .next-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.salk-landing-page .prev-btn:hover,
body.salk-landing-page .next-btn:hover {
    background: rgba(59, 189, 183, 0.1);
}

body.salk-landing-page .prev-btn svg,
body.salk-landing-page .next-btn svg {
    width: 28px;
    height: 28px;
    fill: var(--cinza-salk);
    transition: fill 0.3s ease;
}

body.salk-landing-page .prev-btn:hover svg,
body.salk-landing-page .next-btn:hover svg {
    fill: var(--verde-salk);
}

body.salk-landing-page .carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 8px;
}

body.salk-landing-page .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--cinza-salk);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    opacity: 0.5;
}

body.salk-landing-page .dot.active {
    background-color: var(--verde-salk);
    opacity: 1;
    transform: scale(1.2);
}


/* ── SEÇÃO CONTATO ─────────────────────────────────────────────────────────── */
body.salk-landing-page .contact-section-v2 {
    background: var(--verde-salk-escuro);
    text-align: center;
    color: var(--branco-puro);
    padding: 90px 0;
}

body.salk-landing-page .contact-section-v2 h2 {
    color: var(--branco-puro) !important;
    font-family: "Gill Sans MT", "Gill Sans", 'Roboto', sans-serif !important;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem) !important;
    margin: 0 0 20px 0 !important;
}

body.salk-landing-page .contact-section-v2 p {
    color: rgba(255,255,255,0.82);
    max-width: 620px;
    margin: 0 auto 40px auto;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Bitrix24 form override para adaptar ao fundo escuro */
body.salk-landing-page .contact-section-v2 .b24-form-wrapper {
    max-width: 580px;
    margin: 0 auto;
}


/* ── RODAPÉ ────────────────────────────────────────────────────────────────── */
body.salk-landing-page footer.main-footer {
    background-color: #1a4f4c !important;
    color: var(--branco-puro) !important;
    padding: 48px 0 0 0 !important;
    margin: 0 !important;
    font-size: 0.92rem;
    font-family: 'Roboto', sans-serif !important;
}

body.salk-landing-page .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

body.salk-landing-page .footer-info {
    flex: 2;
    min-width: 220px;
}

body.salk-landing-page .footer-links {
    flex: 1;
    min-width: 140px;
}

body.salk-landing-page .footer-social {
    flex: 1;
    min-width: 120px;
    display: flex;
    gap: 14px;
    align-items: center;
    padding-top: 8px;
}

body.salk-landing-page .footer-logo {
    height: 42px;
    margin-bottom: 14px;
    display: block;
    width: auto;
}

body.salk-landing-page .footer-info p {
    margin: 4px 0;
    line-height: 1.5;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
}

body.salk-landing-page .footer-info p strong {
    color: rgba(255,255,255,0.95);
}

body.salk-landing-page .footer-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

body.salk-landing-page .footer-links a:hover {
    color: var(--verde-salk);
}

body.salk-landing-page .footer-social a svg {
    height: 28px;
    width: 28px;
    fill: rgba(255,255,255,0.65);
    transition: fill 0.3s ease, transform 0.2s ease;
    display: block;
}

body.salk-landing-page .footer-social a:hover svg {
    fill: var(--verde-salk);
    transform: translateY(-2px);
}

body.salk-landing-page .footer-bottom {
    text-align: center;
    padding: 18px 0;
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
}


/* ── ANIMAÇÕES ─────────────────────────────────────────────────────────────── */
body.salk-landing-page .fade-in,
body.salk-landing-page .fade-in-delay1,
body.salk-landing-page .fade-in-delay2 {
    opacity: 0;
    transform: translateY(22px);
    animation: salkFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

body.salk-landing-page .fade-in-delay1 { animation-delay: 0.2s; }
body.salk-landing-page .fade-in-delay2 { animation-delay: 0.4s; }

@keyframes salkFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes salkFadeInTab {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Bitrix24 widget z-index */
body.salk-landing-page .b24-widget-button-wrapper,
body.salk-landing-page .b24-crm-button-pulse {
    z-index: 8888 !important;
}


/* ── RESPONSIVIDADE ────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    body.salk-landing-page .product-item {
        flex-direction: column;
        gap: 30px;
    }

    body.salk-landing-page .product-item img {
        max-width: 100%;
    }

    body.salk-landing-page .benefits-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body.salk-landing-page section {
        padding: 70px 0;
    }

    body.salk-landing-page header.main-header {
        height: auto !important;
        max-height: none !important;
        padding: 12px 0 !important;
    }

    body.salk-landing-page header.main-header .container {
        flex-direction: column;
        gap: 12px;
        padding: 0 16px;
    }

    body.salk-landing-page header.main-header nav a {
        margin-left: 16px;
        font-size: 0.88rem;
    }

    body.salk-landing-page #hero-v2 {
        min-height: 85vh;
        text-align: center;
    }

    body.salk-landing-page .hero-content {
        text-align: center;
        max-width: 100%;
        padding: 0 10px;
    }

    body.salk-landing-page .testimonial-slide-content {
        padding: 20px 24px;
        min-height: 240px;
    }

    body.salk-landing-page .testimonial-text {
        font-size: 1rem;
    }

    body.salk-landing-page .footer-content {
        flex-direction: column;
        gap: 24px;
    }

    body.salk-landing-page .footer-social {
        padding-top: 0;
    }
}

@media (max-width: 480px) {
    body.salk-landing-page .tab-buttons {
        flex-direction: column;
        align-items: center;
    }

    body.salk-landing-page .tab-button {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    body.salk-landing-page .product-item {
        padding: 24px 20px;
    }

    body.salk-landing-page .cta-button {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
}
