body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #ffffff;
    color: #333;
}

/* Navbar padrão */
.navbar {
    padding: 0px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Estilo do logo */
.navbar img {
    height: 150px;
    width: auto;
}

/* Links de navegação */
.navbar-nav .nav-link {
    margin-right: 20px;
}

.navbar-nav .nav-link:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border: 1px solid #b30000;
    border-radius: 20px;
}

/* Estilo do botão de hamburguer */
.navbar-toggler {
    background: transparent;
    border: none;
}

.navbar-toggler:hover { 
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border: 1px solid #b30000;
}

/* Estilo do item selecionado */
.navbar-brand:hover { 
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(135, 2, 2, 0.2);
    border: 1px solid #b30000;
    border-radius: 20px;
}

/* Botões com bordas arredondadas */
.btn-danger {
    border-radius: 20px;
    background-color: #b22222;
    font-size: medium;
}

.btn-danger:hover { 
    transform: scale(1.1);
    background-color: #fff;
    color: #b71c1c;
    border: 2px solid #b71c1c;
}

.cta:hover { 
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border: 1px solid #b30000;
}

/* Ajustes para dispositivos móveis */
@media (max-width: 768px) {
    /* Estilo do menu hambúrguer */
    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    
    /* Centraliza "Preciso de um cuidador" */
    .navbar-nav .nav-item {
        text-align: center;
        width: 100%;
    }

    /* Centraliza os botões */
    .navbar-nav .nav-link, .btn-danger {
        display: block;
        width: 100%;
        padding: 12px 0;
        margin: 5px 0;
        font-size: 1.2em;
        text-align: center;
    }

    /* Estilo dos botões no modo hambúrguer */
    .navbar-toggler {
        display: block;
        margin: 10px auto;
        font-size: 1.5em;
    }
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: white;
    text-align: center;
    background-image: url('fotos/cuidador.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 500px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.356);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}
.hero-text .cta {
    background-color: #ffffff;
    color: #b22222;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
}
.hero-text .cta i {
    margin-left: 10px;
}
.hero-text .secondary-cta {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}
.hero-text .secondary-cta span {
    text-decoration: underline;
} 
.hero-text p {
    font-size: 1em;
    margin: 15px 0;
    font-family: 'Lato', sans-serif;
}

.hero-text h1 {
    font-size: 2em;
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-weight: bold; 
}

.header-container {
    background-color: #b22222;
    color: white;
    padding: 20px;
    text-align: center;
}

.header {
    max-width: 1200px;
    margin: 0 auto;
}
.header h1 {
    font-size: 28px;
    margin: 0;
}
.header p {
    font-size: 16px;
    margin: 5px 0 20px;
    text-decoration: underline;
}
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    text-align: center;
} 
.container h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #b30000;
    font-weight: bold; 
}
.container p {
    font-size: 16px;
    color: #666666;
} 
.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Espaçamento entre os itens */
    margin-top: 50px;
}

.step {
    width: calc(50% - 40px); /* 50% da largura menos a margem */
    margin: 10px; /* Margem entre os itens */
    padding: 20px;
    border: 1px solid #b30000;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.step .number {
    font-size: 36px;
    color: #b22222;
    border: 2px solid #b22222;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    line-height: 60px;
    margin: 0 auto 20px;
}

.step h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #b22222;
    font-weight: bold; 
}

.step p {
    font-size: 16px;
    color: #666666;
}

/* Responsividade */
@media (max-width: 768px) {
    .step {
        width: calc(100% - 40px); /* 100% da largura menos a margem em dispositivos móveis */
    }
}
.reasons {
    padding: 0 20px;
    text-align: center;
    margin-top: 40px;
}

.reasons h2 {
    font-size: 24px; /* Aumentei o tamanho do título */
    margin-bottom: 20px; /* Aumentei a margem inferior para mais espaçamento */
    color: #b22222;
    border-bottom: 2px solid #b22222;
    display: inline-block;
    padding-bottom: 10px; /* Aumentei o padding inferior */
    font-weight: bold; 
}


.reason-items {
    display: flex;
    flex-wrap: wrap; /* Permite que os itens se movam para a linha seguinte se não houver espaço */
    justify-content: center; /* Centraliza os itens horizontalmente */
    background-color: #b30000;
    padding: 20px; /* Aumentei o padding para mais espaço ao redor dos itens */
    margin-top: 1px; /* Aumentei a margem superior */
}

.reason {
    flex: 1 1 150px; /* Permite que os itens cresçam e encolham, com uma largura mínima de 150px */
    max-width: 200px; /* Limita a largura máxima de cada item */
    margin: 0 25px; /* Aumentei a margem para espaçamento entre os itens */
    text-align: center;
    color: #ffffff;
    transition: transform 0.3s, box-shadow 0.3s;
   
   
}

.reason:hover {
    transform: scale(1.1); /* Aumentei um pouco mais o efeito de hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Aumentei a intensidade da sombra */
}

.reason i {
    font-size: 40px; /* Aumentei o tamanho do ícone */
    color: #ffffff;
    margin-bottom: 15px; /* Ajustei a margem inferior do ícone */
}

.reason h3 {
    font-size: 20px; /* Aumentei o tamanho do título dentro de cada item */
    font-weight: bold; 
    margin-bottom: 10px;
    color: #ffffff;
}

.reason p {
    font-size: 13px; /* Aumentei o tamanho do texto do parágrafo */
    color: #ffffff;
}
.service-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap; /* Permite que os itens quebrem linha */
}

.service-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex: 1 1 30%; /* Flex-grow, flex-shrink, flex-basis */
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 60%;
    margin: 10px;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border: 1px solid #b30000;
}

.service-card img {
    width: 100%;
    border-radius: 8px;
    height: 200px;
    width: 300px;
}

.service-card p {
    font-size: 14px;
    color: #666;
}

.service-card h3 {
    font-size: 18px;
    margin: 10px 0;
    color: #b30000;
    font-weight: bold;
}

/* Media query para telas menores */
@media (max-width: 768px) {
    .service-row {
        flex-direction: column; /* Muda para coluna */
        align-items: center; /* Centraliza os itens */
    }
    
    .service-card {
        width: 80%; /* Aumenta a largura dos cards em telas menores */
    }
}

.footer {
    background-color: #b30000;
    color: white;
    padding: 20px;
    text-align: left;
}

.footer .content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer .content .text {
    max-width: 70%;
}

.footer .content p {
    margin: 5px 0;
}

.footer .content .highlight {
    font-weight: bold;
    font-size: 18px;
}

.footer .content .button {
    background-color: white;
    color: #b30000;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.button:hover {  
    transform: scale(1.1);
    background-color: #fff;
    color: #b71c1c;
    border: 2px solid #b71c1c;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 50px;
}

.step {
    flex: 1 1 300px; /* Flex-grow, flex-shrink, flex-basis */
    margin: 20px;
    padding: 20px;
    border: 1px solid #b30000;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.reason-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #b30000;
    padding: 10px 10px;
    margin-top: 3px;
}

.reason {
    flex: 1 1 350px; /* Flex-grow, flex-shrink, flex-basis */
    margin: 20px;
    text-align: center;
    color: #ffffff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.reason:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.testimonials {
    margin-top: 50px;
}
.testimonials h2 {
    font-size: 24px;
    color: #b71c1c; 
    font-weight: bold; 
}

.testimonial-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 20px;
}

.testimonial-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    flex: 1 1 30%; /* Flex-grow, flex-shrink, flex-basis */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: scale(1.05);
    border-color: #b71c1c;
}
.testimonial-card h3 {
    font-size: 18px;
    color: #b71c1c;
    margin: 10px 0 5px;
    font-weight: bold; 
}
.testimonial-card .date {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}
.testimonial-card p {
    font-size: 14px;
    color: #666;
}
.testimonial-card .stars {
    color: #f5c518;
}

.contact-button {
    margin-top: 50px;
}

.contact-button a {
    display: inline-block;
    background-color: #b71c1c;
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.contact-button a:hover {
    transform: scale(1.1);
    background-color: #fff;
    color: #b71c1c;
    border: 2px solid #b71c1c;
}

.Final {
    text-align: center;
    max-width: 800px;
    padding: 20px;
    color: #b30000;
}

.Final h1 {
    font-size: 2em;
    margin-bottom: 10px;
     font-weight: bold; 
}

.Final p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.logo--2 {
    margin: 20px 0;
    text-align: center;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #b22222;
    color: #fff;
}

.footer .left-section {
    flex: 1;
    text-align: center;
}

.footer .social-icons a {
    margin: 0 10px;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
} 

@media (max-width: 768px) {
    .service-card {
        flex: 1 1 100%; /* Em telas menores, cada cartão ocupa 100% da largura */
    }

    .testimonial-card {
        flex: 1 1 100%; /* Em telas menores, cada cartão de depoimento ocupa 100% da largura */
    }

    .reason {
        flex: 1 1 100%; /* Em telas menores, cada razão ocupa 100% da largura */
    }

    .step {
        flex: 1 1 100%; /* Em telas menores, cada passo ocupa 100% da largura */
    }
}