@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #1F4D3A;
    --primary-light: #2a634c;
    --secondary: #C0392B;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F5;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --white: #ffffff;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Curva de animação mais fluida e premium */
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%; /* Impede o iOS de ajustar o tamanho do texto sozinho */
}

/* Global Reset for Mobile Zoom Prevention */
input, textarea, select, button {
    font-size: 16px !important; /* Força os 16px para ignorar qualquer outra regra */
    appearance: none;
    -webkit-appearance: none;   /* Remove estilos nativos que podem afetar o tamanho */
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    touch-action: manipulation;
}

/* Blindagem Nível 2 - Contenção de Rolagem Lateral */
#app-wrapper {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    /* transition removido daqui para evitar lags globais */
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(31, 77, 58, 0.2);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
}

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

/* Utility Classes */
.bg-light {
    background-color: var(--bg-secondary);
}

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

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

/* Hero Content Alignment (Logic for the Hero-Video section) */
.hero-text {
    max-width: 750px;
    text-align: left;
    /* desktop default */
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    /* desktop default */
    margin-top: 30px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Image Premium Treatments */
.premium-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: var(--transition);
}

.premium-img:hover {
    transform: scale(1.02);
}

.image-stack {
    position: relative;
    padding: 20px;
}

.accent-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80%;
    height: 80%;
    background: var(--bg-secondary);
    z-index: -1;
    border-radius: var(--radius);
}

.founder-card {
    position: relative;
    padding: 10px;
}

/* Essence Section */
.essence-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.essence-image img {
    max-height: 500px;
    object-fit: cover;
}

header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
    /* Protection shadow */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background: var(--white) !important;
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

header.scrolled .nav-links a {
    color: var(--text-primary);
}

header.scrolled .logo img {
    filter: none;
}

header.scrolled .menu-toggle {
    color: var(--primary);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px;
    filter: brightness(0) invert(1);
    /* Initial white logo for video bg */
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--white);
}

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

.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Video Section */
.hero-video {
    position: relative;
    height: 80vh;
    /* Reduced from 100vh */
    min-height: 550px;
    /* Reduced from 700px */
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    padding-top: 60px;
    /* Space for the fixed header */
    background-color: var(--primary);
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none; /* Impede que o usuário interaja ou veja controles de vídeo */
}

.video-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0; /* Começa invisível para esconder o ícone de play do Safari */
    transition: opacity 0.8s ease-in-out; /* Transição suave ao aparecer */
    pointer-events: none;
}

/* Força o Safari e Chrome a esconderem QUALQUER controle de mídia ou botão de Play */
video::-webkit-media-controls {
    display: none !important;
}
video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}
video::-webkit-media-controls-panel {
    display: none !important;
    -webkit-appearance: none;
}
video::-webkit-media-controls-play-button {
    display: none !important;
    -webkit-appearance: none;
}
video::-internal-media-controls-download-button {
    display: none !important;
}
video::-webkit-media-controls-enclosure {
    display: none !important;
}

.video-slide.active {
    z-index: 1;
    /* Opacidade removida para controle exclusivo via JS após o play real */
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(31, 77, 58, 0.8), rgba(0, 0, 0, 0.2)),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 20%);
    /* Top shadow for menu */
    z-index: 2;
}

.hero-video-content-fluid {
    position: relative;
    z-index: 10;
    width: 100%;
    padding-left: 12%;
    /* Slightly further right for perfect balance */
    display: flex;
    justify-content: flex-start;
}

.hero-text {
    max-width: 550px;
    text-align: left;
    margin-top: 60px; /* Descendo um pouco mais conforme solicitado */
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 550px;
    /* Narrow title */
}

.hero-text h1 span {
    color: #4CAF50;
    /* A brighter health green for contrast on dark background */
}

.hero-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    text-align: left;
    max-width: 500px;
    /* Even more narrow description */
}
.btn-whatsapp-hero i {
    margin-right: 10px; /* Breathing space between icon and label */
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: nowrap; /* Forces buttons to stay side-by-side */
    width: max-content; /* Allows it to expand beyond the text's max-width if needed */
    margin-top: 30px;
}

.btn {
    white-space: nowrap; /* Prevents text inside buttons from wrapping */
}

.btn-whatsapp-hero {
    background-color: #25D366;
    /* WhatsApp Vibrant Green */
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    border: 2px solid #25D366;
}

.btn-whatsapp-hero:hover {
    background-color: #1eb954;
    border-color: #1eb954;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

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

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
}

/* Original Hero (Backup or alternative) */
.hero {
    padding-top: 180px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7f4 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 50px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content h1 span {
    display: block;
    color: var(--primary-light);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-image img {
    border-radius: 40px;
    box-shadow: 20px 20px 60px rgba(31, 77, 58, 0.1);
}

/* Problem Solution */
.content-box {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 60px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.problem-solution {
    padding: 40px 0 !important; /* Forces removal of redundant global padding */
}

.emotional-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-secondary);
    margin: 20px 0;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 20px 0; /* Left alignment for Desktop as default */
    border-radius: 2px;
}

.content-box .divider {
    margin: 20px auto; /* Centered only inside content-box */
}

.solution-text {
    font-size: 1.4rem;
    color: var(--primary);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    will-change: transform, box-shadow; /* Alerta o navegador para otimizar via GPU */
    backface-visibility: hidden;
    /* Elastic feel */
    text-align: center;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px) translateZ(0); /* Força aceleração 3D */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: rgba(31, 77, 58, 0.1);
}

/* Mobile Touch Feedback (Selected effect) */
.service-card.active-touch {
    transform: translateY(-5px) scale(0.98) translateZ(0);
    background-color: #fdfdfd;
    border-color: var(--secondary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card.active-touch i,
.service-card.active-touch h4 {
    color: var(--secondary) !important;
}

.service-card i {
    font-size: 45px;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover i {
    color: var(--secondary);
    transform: rotate(-5deg);
}

.service-card h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    transition: var(--transition);
}

.service-card:hover h4 {
    color: var(--secondary);
}

.services-intro {
    max-width: 850px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.subsection-title {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: var(--primary);
}

.multidisciplinary-section p {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.professionals-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.pro-tag {
    background: var(--white);
    padding: 10px 22px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid rgba(31, 77, 58, 0.1);
    transition: var(--transition);
    font-size: 0.95rem;
}

.pro-tag i {
    color: var(--secondary);
    font-size: 1rem;
}

.pro-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

/* Differentials */
.diff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.diff-image img {
    border-radius: var(--radius);
}

.diff-list {
    margin-top: 30px;
}

.diff-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}

.diff-list li i {
    color: var(--primary);
    font-size: 1.5rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--secondary);
    color: white;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(192, 57, 43, 0.3);
}

.experience-badge span {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
}

.mission-vision-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.mvr-item h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mvr-item h5 i {
    color: var(--secondary);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.info-item i {
    width: 45px;
    height: 45px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-info p {
    margin-bottom: 40px;
    /* Added more breathing space */
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 20px;
}

input,
textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    border-color: var(--primary);
}

/* Footer */
footer {
    background: #0d2119;
    color: #e0e0e0;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-links h5,
.footer-social h5 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
}

.social-icons a:hover {
    background: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.dev-credit {
    font-size: 0.75rem;
    opacity: 0.6;
    transition: var(--transition);
}

.dev-credit a {
    text-decoration: underline;
}

.dev-credit:hover {
    opacity: 1;
}

/* Helpers */
.mt-50 {
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 992px) {

    .hero-grid,
    .diff-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        padding-top: 120px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .hero-video-content-fluid {
        padding-left: 0;
        justify-content: center;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .hero-text {
        text-align: center;
        padding: 0 20px;
        /* Center protect all hero text on mobile */
    }

    .hero-text p {
        text-align: center; /* Ensures the description also stays centered on mobile */
        margin: 0 auto 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-logo img {
        margin: 0 auto 20px;
    }

    .social-icons {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }

    .contact .section-title {
        text-align: left;
        margin-left: 0;
    }

    .contact .section-title::after {
        left: 0;
        transform: none;
        margin-left: 0;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding-left: 10px;
        /* Breathing room from edge */
    }

    .contact-item {
        flex-direction: row;
        text-align: left;
        gap: 20px;
        /* More space between icon and text */
        margin-bottom: 25px;
        align-items: center;
    }

    .contact-form {
        padding: 30px 20px;
    }

    /* Prevent iOS auto-zoom on focus by ensuring 16px font-size */
    input, textarea, select {
        font-size: 16px !important;
    }

    .contact-item i {
        margin: 0;
    }

    .essence-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .essence-image {
        order: -1;
        /* Ensure photo is always on top if grid order changes */
    }

    .essence-image img {
        max-height: 350px;
        margin: 0 auto;
    }

    .divider {
        margin: 30px auto !important;
        /* Force center for ALL dividers on mobile */
    }

    .essence-content .divider {
        margin: 40px auto !important;
        width: 60px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        /* Glue to header bottom */
        left: 0;
        width: 100%;
        background: var(--primary);
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        gap: 20px;
        text-align: center;
    }

    .nav-links a {
        color: var(--white) !important;
        font-size: 1.2rem;
    }

    .nav-links.active {
        display: flex;
    }

    header {
        background: var(--primary);
        /* Protection on start */
        padding: 10px 0;
        position: fixed;
    }

    .hero-video {
        height: auto;
        min-height: 550px;
        padding-top: 100px;
        padding-bottom: 60px;
        background-color: var(--primary);
        position: relative;
        display: flex;
        align-items: center;
        overflow: hidden;
    }

    .video-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        /* Move to positive z-index but behind content */
    }

    .hero-overlay {
        z-index: 2;
    }

    .hero-video-content-fluid {
        position: relative;
        z-index: 10;
    }

    .hero-text h1 {
        font-size: 2.2rem;
        margin-top: 20px;
    }

    .logo img {
        height: 45px;
    }

    .menu-toggle {
        display: block;
        color: var(--white);
        /* Ensure hamburger is white */
    }
}