/* Importa as fontes do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Lora:wght@400;700&display=swap');

/* Variáveis CSS para Cores da Marca Altitude 30K */
:root {
    --color-primary: #406566; /* Verde Marinho/Azulado (do logo) */
    --color-secondary: #ffde59; /* Amarelo Dourado (do logo) */
    --color-dark: #000000; /* Preto */
    --color-light: #ffffff; /* Branco */
    --color-text-dark: #333333; /* Texto escuro para contraste */
    --color-text-light: #f0f0f0; /* Texto claro para fundos escuros */

    --font-heading: 'Lora', serif;
    --font-body: 'Poppins', sans-serif;

    --max-width-content: 1100px;
    --section-padding-large: 100px 0;
    --section-padding-medium: 80px 0;
    --section-padding-small: 60px 0;
}

/* Reset Básico e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-light); /* Fundo padrão branco */
    scroll-behavior: smooth; /* Rolagem suave para âncoras */
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove espaço extra abaixo da imagem */
}

.container {
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding-medium);
}

.bg-dark {
    background-color: var(--color-primary); /* Fundo com a cor principal da marca */
    color: var(--color-text-light);
}

.bg-accent {
    background-color: var(--color-secondary); /* Fundo com a cor de destaque */
    color: var(--color-text-dark);
}

.light-text {
    color: var(--color-light);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-primary);
}

.section-title.light-text {
    color: var(--color-light);
}

.text-center {
    text-align: center;
}

/* Botões */
.button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.primary-button {
    background-color: var(--color-secondary); /* Amarelo de destaque */
    color: var(--color-dark); /* Texto preto */
}

.primary-button:hover {
    background-color: #f0c23c; /* Amarelo um pouco mais escuro no hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.secondary-button {
    background-color: var(--color-primary); /* Verde Marinho */
    color: var(--color-light); /* Texto branco */
    border: 2px solid var(--color-primary);
}

.secondary-button:hover {
    background-color: var(--color-dark); /* Preto no hover */
    border-color: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.large-button {
    padding: 18px 40px;
    font-size: 1.1em;
}

/* Cabeçalho Principal (Header) */
.main-header {
    background-color: rgba(0, 0, 0, 0.8); /* Preto semi-transparente para o header */
    padding: 10px 0; /* Diminui o padding vertical para a faixa ficar menor */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(5px); /* Efeito de vidro fosco, estilo Apple */
    -webkit-backdrop-filter: blur(5px); /* Para compatibilidade com Safari */
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px; /* Ajuste conforme o tamanho final do logo */
}

.main-header .logo img {
    height: 60px; /* Aumenta a altura do logo para 60px */
    width: auto;
    border-radius: 50%; /* Mantém redondo se for o logo Altitude 30K */
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--color-light);
    font-weight: 500;
    font-size: 1.05em;
    position: relative; /* Para o efeito de sublinhado */
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary); /* Amarelo de destaque */
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none; /* Escondido por padrão em telas grandes */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-light);
    margin-bottom: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh; /* Altura total da viewport */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-light); /* Texto claro sobre o fundo escuro */
    overflow: hidden; /* Garante que a imagem de fundo não vaze */

    /* Imagem de fundo para a seção Hero - você precisa desta imagem */
    background-image: url('hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay escuro para contraste */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4em; /* Título maior */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5em;
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Seções de Conteúdo (About, Services, Blog, Testimonials, Contact) */
.about-section {
    background-color: var(--color-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1em;
}

.about-content p {
    margin-bottom: 20px;
}

/* Estilos para os subtítulos de Missão, Visão, Valores */
.about-subtitle {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center; /* Alinha os subtítulos ao centro */
}

/* Estilos para a lista de valores */
.about-content ul {
    list-style: none; /* Remove marcadores padrão */
    padding: 0;
    margin-top: 20px;
    text-align: left; /* Alinha os itens da lista à esquerda */
    max-width: 600px; /* Limita a largura da lista para melhor leitura */
    margin-left: auto; /* Centraliza a lista */
    margin-right: auto; /* Centraliza a lista */
}

.about-content ul li {
    font-size: 1.05em;
    margin-bottom: 15px;
    display: flex; /* Para alinhar o ícone com o texto */
    align-items: flex-start; /* Alinha o início do texto com o topo do ícone */
    gap: 10px; /* Espaço entre o ícone e o texto */
    line-height: 1.4;
}

.about-content ul li .icon-check { /* Estilo para o ícone de check */
    color: var(--color-primary); /* Cor do ícone */
    font-size: 1.3em;
    flex-shrink: 0; /* Impede que o ícone encolha */
    margin-top: 2px; /* Pequeno ajuste vertical para alinhamento */
}

.services-section .service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Fixado para 3 colunas */
    gap: 30px;
    text-align: center;
}

.services-section .card {
    background-color: var(--color-dark); /* Fundo preto para cards de serviço */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.services-section .card i { /* Ícones */
    font-size: 3em;
    color: var(--color-secondary); /* Amarelo de destaque para os ícones */
    margin-bottom: 15px;
}

.services-section .card h3 {
    font-family: var(--font-heading);
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--color-light);
}

.services-section .card p {
    font-size: 0.95em;
    color: var(--color-text-light);
}

/* Seção Blog */
.blog-section {
    background-color: var(--color-light);
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post-card {
    background-color: var(--color-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.blog-post-card img {
    width: 100%;
    height: 200px; /* Altura fixa para as imagens do blog */
    object-fit: cover;
}

.blog-post-card .post-info {
    padding: 20px;
}

.blog-post-card .post-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3em;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.blog-post-card .post-info .post-meta {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 15px;
}

.blog-post-card .post-info p {
    font-size: 0.9em;
    color: var(--color-text-dark);
    margin-bottom: 15px;
}

.blog-post-card .post-info .read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--color-primary);
}

.blog-post-card .post-info .read-more:hover {
    color: var(--color-secondary);
}

/* Seção Depoimentos (Testimonials) */
.testimonials-section {
    background-color: var(--color-primary); /* Fundo verde marinho */
    color: var(--color-light);
    text-align: center;
    padding: var(--section-padding-medium) 20px; /* Adiciona padding nas laterais */
}

.testimonials-section .testimonial-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden; /* Importante para esconder os depoimentos fora de vista */
}

.testimonials-section .testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Transição suave para o movimento do slider */
}

.testimonials-section .testimonial-item {
    flex: 0 0 100%; /* Cada item ocupa 100% da largura do contêiner */
    background-color: rgba(0, 0, 0, 0.3); /* Fundo preto semi-transparente para o depoimento */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.testimonials-section .testimonial-item .quote {
    font-family: var(--font-heading);
    font-size: 1.6em;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.4;
}

.testimonials-section .testimonial-item .author {
    font-size: 1.1em;
    font-weight: 500;
    color: var(--color-secondary); /* Amarelo de destaque */
}

/* Estilo para os botões de navegação do slider */
.slider-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5); /* Fundo semi-transparente */
    color: var(--color-light);
    border: none;
    padding: 15px 10px; /* Ajuste para o tamanho do botão */
    cursor: pointer;
    font-size: 1.5em; /* Tamanho do ícone */
    border-radius: 5px;
    z-index: 5; /* Garante que os botões fiquem acima dos depoimentos */
    transition: background-color 0.3s ease;
}

.slider-nav-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.prev-button {
    left: 10px; /* Move um pouco para dentro */
}

.next-button {
    right: 10px; /* Move um pouco para dentro */
}

/* Call to Action Section (CTA) */
.cta-section {
    text-align: center;
    padding: var(--section-padding-large); /* Padding maior para esta seção */
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 3em;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Seção Contato */
.contact-section .contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-section .contact-info p {
    font-size: 1.1em;
    margin-bottom: 15px;
    display: flex; /* Para alinhar ícone e texto */
    align-items: center;
    justify-content: center;
    gap: 10px; /* Espaço entre ícone e texto */
}

.contact-section .contact-info a { /* Garante que os links de contato tenham a cor do texto normal, não do link padrão */
    color: inherit; /* Herda a cor do pai (var(--color-text-dark)) */
}

.contact-section .contact-info a:hover {
    color: var(--color-primary); /* Volta para a cor do link padrão no hover */
}


.contact-section .contact-info i { /* Ícones de contato */
    font-size: 1.5em;
    color: var(--color-primary);
}

/* Estilos para os Horários de Atendimento */
.contact-section .opening-hours {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1); /* Linha divisória */
}

.contact-section .opening-hours p {
    font-size: 1em; /* Um pouco menor para os detalhes */
    margin-bottom: 5px; /* Espaçamento menor entre as linhas */
    /* Reseta o display flex para que as linhas de horário fiquem em bloco */
    display: block;
    text-align: center;
}

.contact-section .opening-hours p:first-child {
    display: flex; /* Mantém o ícone de relógio alinhado com o texto "Horários de Atendimento" */
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px; /* Adiciona margem abaixo do título dos horários */
}

.contact-section .opening-hours p:last-child {
    margin-bottom: 0; /* Remove margem do último parágrafo */
}

/* Rodapé (Footer) */
.main-footer {
    background-color: var(--color-dark); /* Fundo preto para o rodapé */
    color: var(--color-text-light);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.main-footer .social-links a {
    color: var(--color-light);
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.main-footer .social-links a:hover {
    color: var(--color-secondary); /* Amarelo de destaque no hover */
}

/* Responsividade */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.5em;
    }
    .hero-title {
        font-size: 3.5em;
    }
    .hero-subtitle {
        font-size: 1.3em;
    }
    .cta-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 5px 0; /* Diminui ainda mais o padding do header em mobile */
    }
    .main-header .logo img {
        height: 50px; /* Ajusta o tamanho do logo para telas menores */
    }

    .main-nav {
        display: none; /* Esconde a navegação em telas menores por padrão */
        flex-direction: column;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        position: absolute;
        top: 80px; /* Abaixo do header */
        left: 0;
        padding: 20px 0;
        text-align: center;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav.active { /* Adicionado com JS para mostrar/esconder */
        display: flex;
    }

    .menu-toggle {
        display: block; /* Mostra o botão de menu em telas menores */
    }

    /* Animação do botão de menu */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.8em;
    }
    .hero-subtitle {
        font-size: 1.1em;
    }
    .section-title {
        font-size: 2em;
    }
    .section-padding {
        padding: var(--section-padding-small);
    }

    .services-section .service-cards {
        grid-template-columns: 1fr; /* Uma coluna em telas menores */
    }

    .services-section .card {
        padding: 25px;
    }

    .blog-posts {
        grid-template-columns: 1fr; /* Uma coluna em telas menores */
    }

    .blog-post-card img {
        height: 180px;
    }

    .testimonials-section {
        padding: var(--section-padding-small) 15px; /* Ajusta padding em telas menores */
    }

    .testimonials-section .testimonial-item {
        padding: 25px; /* Ajuste de padding em mobile */
    }

    .testimonials-section .testimonial-item .quote {
        font-size: 1.4em; /* Ajuste do tamanho da fonte em mobile */
    }

    /* Ajustes de responsividade para os botões do slider */
    .slider-nav-button {
        padding: 10px 8px;
        font-size: 1.2em;
    }
    .prev-button {
        left: 5px;
    }
    .next-button {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .main-header .logo img {
        height: 45px; /* Mais um ajuste para telas muito pequenas */
    }

    .hero-title {
        font-size: 2.2em;
    }
    .hero-subtitle {
        font-size: 1em;
    }
    .button.large-button {
        padding: 14px 25px;
        font-size: 1em;
    }
    /* Ajustes para telas muito pequenas para os botões do slider */
    .slider-nav-button {
        padding: 8px 5px;
        font-size: 1em;
    }
    .prev-button {
        left: 0;
    }
    .next-button {
        right: 0;
    }
}