/* Estilos para a seção Hero */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #27ae60;
    --text-color: #333;
    --light-color: #f8f9fa;
    --accent-color: #3498db;
}

/* Cores específicas para os itens de navegação */
.nav-home {
    color: #777777 !important; /* Cinza */
}

.nav-ablauf {
    color: var(--secondary-color) !important; /* Verde */
}

.nav-vorher {
    color: #FFDF00 !important; /* Amarelo */
}

.nav-chirurg {
    color: #3498db !important; /* Azul */
}

.nav-bonus {
    color: #e74c3c !important; /* Vermelho */
}

/* Efeito hover para os itens coloridos */
.nav-home:hover, .nav-ablauf:hover, .nav-vorher:hover, .nav-chirurg:hover, .nav-bonus:hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* Estilos para a caixa de pacote completo */
.hero-package-box {
    background-color: rgba(39, 174, 96, 0.1); /* Cor secundária com transparência */
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-package-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.2);
}

.hero-package-box h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.hero-package-box p {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.hero-package-box p:last-child {
    margin-bottom: 0;
    font-weight: 500;
}

/* Estilos para a caixa de pacote premium */
.hero-premium-box {
    background-color: rgba(128, 128, 128, 0.05); /* Fundo cinza muito suave */
    border: 2px solid #888888; /* Borda cinza */
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(128, 128, 128, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-premium-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(128, 128, 128, 0.2);
}

.hero-premium-box h3 {
    color: #555555; /* Cinza escuro para o título principal */
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.hero-premium-box h4 {
    color: #666666; /* Cinza médio para o subtítulo */
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
    font-style: italic;
}

.hero-premium-box p {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.premium-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
}

.premium-feature {
    color: #555555;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.premium-highlight {
    color: #333333 !important;
    font-weight: 600;
    font-style: italic;
    margin-top: 15px;
    margin-bottom: 0;
}

/* Estilos para as features dos pacotes */
.package-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
}

.package-feature {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.package-highlight {
    color: var(--secondary-color) !important;
    font-weight: 600;
    font-style: italic;
    margin-top: 15px;
    margin-bottom: 0;
}

/* Adicionar subtítulo para o primeiro pacote */
.hero-package-box h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
    font-style: italic;
}

/* Responsividade para a caixa de pacote */
@media (max-width: 768px) {
    .hero-package-box {
        padding: 15px;
        margin: 20px 0;
    }
    
    .hero-package-box h3 {
        font-size: 1.3rem;
    }
    
    .hero-package-box p {
        font-size: 0.95rem;
    }
}

/* Responsividade para a caixa premium */
@media (max-width: 768px) {
    .hero-premium-box {
        padding: 15px;
        margin: 15px 0;
    }
    
    .hero-premium-box h3 {
        font-size: 1.3rem;
    }
    
    .hero-premium-box h4 {
        font-size: 1rem;
    }
    
    .hero-premium-box p, .premium-feature {
        font-size: 0.95rem;
    }
}

/* Responsividade para as features dos pacotes */
@media (max-width: 768px) {
    .package-feature {
        font-size: 0.95rem;
    }
    
    .hero-package-box h4 {
        font-size: 1rem;
    }
}

.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-color: var(--light-color);
    overflow: hidden;
    padding-top: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Estilos da Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    position: relative;
    z-index: 1000;
    flex-wrap: nowrap; /* Prevent wrapping */
}

.logo {
    display: flex;
    align-items: center;
    gap: 5px; /* Reduced from 10px to move text more to the left */
    flex-shrink: 0; /* Prevent logo from shrinking */
    margin-right: 15px; /* Add right margin to push nav items further right */
}

.logo img {
    height: 60px;
    width: auto;
}

.company-name {
    font-size: 1rem;
    font-weight: 600;
    color: #302681; /* Azul da bandeira brasileira */
    margin: 0;
    margin-left: -3px; /* Negative margin to pull text slightly left */
    transform: translateX(-5px); /* Further shift left */
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.2rem; /* Reduced from 2rem to allow more items in the same row */
    margin: 0;
    padding: 0;
    flex-wrap: nowrap; /* Prevent wrapping */
}

.nav-links li {
    white-space: nowrap; /* Prevent text wrapping within nav items */
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.btn-contato {
    background-color: var(--secondary-color);
    color: white !important;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-contato:hover {
    background-color: #219653;
    color: white !important;
}

.menu-hamburguer {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 1001;
}

.menu-hamburguer span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
    position: relative;
}

/* Animação do menu hamburger quando ativo */
.menu-hamburguer.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-hamburguer.active span:nth-child(2) {
    opacity: 0;
}

.menu-hamburguer.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Conteúdo Principal da Hero */
.hero-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 2rem 0 4rem 0;
    gap: 30px;
    min-height: calc(100vh - 120px);
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

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

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

.hero-image {
    flex: 1;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero-image img:first-child {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    max-height: 600px;
}

/* Estilo específico para a imagem antes/depois no hero */
.hero-before-after {
    margin-top: 20px;
    max-height: 400px !important;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Esconder a imagem antes/depois em dispositivos móveis e tablets */
@media (max-width: 1024px) {
    .hero-before-after {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-image img {
        max-height: 450px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .hero-image img {
        max-height: 350px;
    }
}

/* Botão de WhatsApp */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none; /* Remove o sublinhado */
}

.whatsapp-button:hover {
    transform: scale(1.1);
    color: white; /* Mantém a cor branca ao passar o mouse */
    text-decoration: none; /* Garante que o sublinhado não apareça no hover */
}

/* Responsividade */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 3rem 0;
    }
    
    .hero-text {
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 767px) {
    /* Ocultar a foto do médico em dispositivos móveis */
    .hero-image {
        display: none;
    }
    
    /* Ajustar o espaçamento quando a imagem está oculta */
    .hero-text {
        margin-bottom: 0;
        padding-bottom: 20px;
        width: 100%;
    }
    
    /* Melhorar espaçamento vertical */
    .hero-text h1 {
        margin-bottom: 1rem;
    }
    
    .hero-text p {
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
      .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-in-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .menu-hamburguer {
        display: flex;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    /* Ajustes para o hero em dispositivos móveis */
    .hero {
        min-height: auto;
        padding-top: 10px;
        padding-bottom: 30px;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
}

/* Ajustes adicionais para dispositivos muito pequenos */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .logo img {
        height: 80px !important;
    }
    
    .company-name {
        font-size: 0.8rem !important;
    }
}

/* Media query adicional para tablets e mobile landscape */
@media (max-width: 768px) {
    .company-name {
        font-size: 0.9rem;
    }
}

/* Responsividade para telas maiores e médias */
@media (min-width: 993px) and (max-width: 1200px) {
    .nav-links {
        gap: 1rem; /* Ainda menor para telas médias */
    }
    
    .nav-links li a {
        font-size: 0.9rem; /* Reduzir um pouco o tamanho da fonte */
    }
    
    .btn-contato {
        padding: 8px 12px;
    }
}

@media (min-width: 1201px) {
    .container {
        max-width: 1300px; /* Ligeiramente maior para telas grandes */
    }
    
    .nav-links {
        gap: 1.4rem;
    }
}

/* Ajuste do tamanho do logo para desktops */
@media (min-width: 992px) {
    .logo img {
        height: 50px; /* Logo um pouco menor em desktop para ganhar espaço */
        width: auto;
    }
    
    .company-name {
        transform: translateX(-7px); /* Maior deslocamento à esquerda em desktop */
    }
    
    /* Garantir que a navegação não quebre em telas maiores */
    .navbar {
        justify-content: space-between;
        width: 100%;
    }
    
    /* Evitar que o menu encolha demais */
    .nav-links {
        flex: 1;
        justify-content: flex-end;
        margin-left: 10px; /* Add some space between logo and nav */
    }
}

/* Tablets e telas médias - exibir menu hamburguer */
@media (max-width: 991px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-in-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .menu-hamburguer {
        display: flex;
    }
    
    /* Ajustes específicos para tablets */
    .logo img {
        height: 55px;
    }
    
    .company-name {
        font-size: 0.95rem;
    }
}
