@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* HEADER GERAL (mantém seu estilo atual) */
.header {
    background-color: #5B7BA6;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: #4A6A96;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-size: 14px;
}

.header-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    flex-wrap: wrap;
}

.btn-header {
    background-color: transparent;
    border: 2px solid #FFE500;
    color: #FFE500;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-header:hover {
    background-color: #FFE500;
    color: #5B7BA6;
}

/* ========= VERSÃO MOBILE - ALTERAÇÕES APLICADAS AQUI (SEÇÕES DO HEADER/NAVBAR) ========= */
@media (max-width: 768px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        padding: 0.3rem 0;
    }

    .top-bar {
        padding: 6px;
        font-size: 12px;
    }

    /* ALTERAÇÃO 1: Garante que os botões fiquem lado a lado */
    .header-actions {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        padding: 8px 10px;
        gap: 5px;
    }

    /* ALTERAÇÃO 2: Ajusta os botões para dividirem o espaço de forma uniforme */
    .btn-header {
    /* FORMATO CIRCULAR */
    width: 90px;        /* Define o tamanho da largura */
    height: 90px;       /* Define o tamanho da altura (igual à largura para ser círculo) */
    border-radius: 50%; /* Transforma o quadrado em um círculo */
    
    /* CORES E TEXTO */
    background-color: #f77f00; /* Cor Laranja da imagem */
    color: white;           /* Texto branco */
    font-weight: bold;      /* Texto em negrito */
    font-size: 13px;        /* Tamanho da fonte */
    text-decoration: none;  /* Remove sublinhado */

    /* CENTRALIZAÇÃO DO TEXTO */
    display: flex;          /* Usa flexbox para alinhar o texto */
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center;     /* Centraliza verticalmente */
    text-align: center;      /* Garante a centralização */

    /* REMOVE PROPRIEDADES ANTIGAS CONFLITANTES */
    flex: none; /* Impede que ele se estique para ocupar a largura (essencial!) */
    margin: 0 5px; /* Espaçamento entre eles */
    
    transition: background-color 0.3s ease;
}

.btn-header:hover {
    background-color: #d16b00; /* Efeito ao passar o mouse */
}
    /* O estilo .navbar aqui estava redundante com o global abaixo e será ajustado */
    /* .navbar {
        text-align: center;
        margin-top: 6px;
    } */

    /* Regras da logo dentro do media query principal (768px) */
    .logo-img {
        width: 100px; /* Define largura fixa para a imagem */
        height: auto; /* Mantém a proporção com base na largura */
    }

    /* Os estilos de h1 e .logo-subtitle dentro deste media query serão removidos, pois a logo agora é uma imagem */
    /* .logo h1 {
        font-size: 20px;
        margin: 0;
        line-height: 1.1;
    } */
    /* .logo-subtitle {
        display: block;
        font-size: 14px;
    } */

    /* evita que o conteúdo fique atrás do header fixo */
    body {
        padding-top: 130px;
    }
}

/* Regras específicas para a logo em telas até 480px */
@media (max-width: 480px) {
    .logo-img {
        width: 50px; /* Define largura fixa para a imagem */
        height: auto; /* Mantém a proporção */
    }

    /* O estilo de h1 aqui também será removido, pois a logo agora é uma imagem */
    /* .logo h1 {
        font-size: 24px;
    } */
}

/* ========================================================================= */
/* O bloco de CSS que forçava os botões a empilharem (próximo à linha 316) FOI REMOVIDO */
/* ========================================================================= */


/* Navigation */
.navbar {
    background-color: #5B7BA6;
    padding: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ========================================= */
/* ESTILOS DA LOGO COM A IMAGEM (AJUSTADO)   */
/* ========================================= */

.logo {
    display: flex;
    justify-content: center; /* Centraliza a imagem da logo horizontalmente */
    align-items: center;     /* Centraliza a imagem da logo verticalmente */
    margin-top: 4px;         /* Mantém seu margin-top original */
    /* Se precisar limitar a largura do contêiner da logo em desktop, pode adicionar um max-width aqui */
    /* Ex: max-width: 180px; */
}

/* Estilos para telas menores, geralmente tablets e celulares */
@media (max-width: 768px) {

    /* Altera o tamanho da imagem da logo */
    .logo-img {
        /* Defina a nova largura que você quer para a logo no mobile */
        width: 240px; 
        /* Garante que a altura se ajuste proporcionalmente */
        height: auto; 
    }

    /* Opcional: Se a logo ficar muito apertada ou desalinhada, você pode ajustar o contêiner. */
    .logo {
        /* Adiciona um espaço extra acima e abaixo da logo no mobile, se necessário */
        padding: 10px 0; 
    }
}

/* Estilos para a imagem da logo em desktop (base) */
.logo-img {
    max-width: 90%; /* Garante que a imagem nunca ultrapasse a largura do contêiner pai (.logo) */
    height: auto;    /* Mantém a proporção da imagem ao redimensionar */
    display: block;  /* Remove espaços extras e permite controle total de layout */
    /* Se você tiver uma imagem de logo maior para desktop, defina um max-width aqui */
    /* Ex: max-width: 120px; */
}

/* Os estilos para h1 e .logo-subtitle dentro de .logo NÃO são mais aplicados à logo
   e foram removidos/comentados para evitar confusão ou estilos órfãos. */
/*
.logo h1 {
    color: #FFE500;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(255, 69, 0, 0.5);
}

.logo-subtitle {
    display: block;
    font-size: 30px;
    color: #FF4500;
    letter-spacing: 3px;
}
*/

#red {
    background-color: #FF4500;
    border-radius: 10px;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: #FFE500;
    margin: 4px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    display: block;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-menu li a:hover {
    color: #FFE500;
}

/* Hero Section */
.hero {
    background-color: #f5f5f5;
    padding: 40px 20px;
    width: 100%;
    min-height: 100vh; /* Preenche a tela inteira */
    background-image: url("src/imagens/pessoas_trabalhando.jpeg"); /* Imagem de fundo */
    background-size: cover; /* Faz a imagem cobrir tudo */
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.video-container {
    max-width: 1000px;
    margin: 0 auto 30px;
}

.video-placeholder {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
}

.play-button {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #5B7BA6;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-style: italic;
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: bold;
    font-style: italic;
}

/* Para garantir que as imagens do carrossel não apaguem o fundo */
.carousel-container {
    background: transparent;
}

/* Ajuste extra para deixar o carrossel com menos “altura” */
.carousel img {
    object-fit: cover;
    border-radius: 10px; /* opcional: deixa os cantos arredondados */
}

.emergency-text {
    font-size: 24px;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 15px;
}

.discount-text {
    font-size: 18px;
    color: #2c3e50;
    font-weight: bold;
}

/* About Section */
.about {
    padding: 60px 20px;
    background-color: white;
}

.about h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #5B7BA6;
    text-align: center;
}

.about p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}


/* Estilo geral da seção */
.about-us {
    padding: 40px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-us h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #333; /* Cor principal, ajuste conforme o seu site */
}

.intro-text {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 40px;
}

/* Container para a lista de membros */
.team-container {
    display: flex; /* Permite que os membros se alinhem lado a lado se houver espaço */
    flex-direction: column; /* Padrão: um membro abaixo do outro */
    gap: 40px; /* Espaço entre os perfis */
}

/* Estilo para cada membro da equipe */
.team-member {
    display: flex; /* Alinha a foto e a informação lado a lado */
    align-items: flex-start; /* Alinha o conteúdo ao topo */
    text-align: left;
    background-color: #f9f9f9; /* Fundo claro para o bloco do membro */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

/* Estilo da foto do membro */
.member-photo {
    width: 120px; /* Tamanho da foto (pequena) */
    height: 120px;
    border-radius: 50%; /* Transforma a foto em um círculo */
    object-fit: cover; /* Garante que a imagem preencha o espaço sem distorção */
    margin-right: 20px;
    flex-shrink: 0; /* Impede que a foto seja "encolhida" em telas menores */
    border: 3px solid #007bff; /* Borda colorida, ajuste a cor */
}

/* Estilo das informações do membro */
.member-info h2 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #333;
}

.member-info h3 {
    margin: 0 0 15px 0;
    color: #007bff; /* Cor para o cargo/função */
    font-weight: normal;
    font-size: 1em;
}

.member-info p {
    line-height: 1.6;
    color: #555;
}

/* Estilo para telas menores (responsividade) */
@media (max-width: 768px) {
    .team-member {
        flex-direction: column; /* Empilha a foto e o texto em telas menores */
        align-items: center; /* Centraliza a foto e o texto */
        text-align: center;
    }

    .member-photo {
        margin-right: 0;
        margin-bottom: 15px; /* Adiciona espaço abaixo da foto */
    }
}

/* Services Section */
.services {
    padding: 60px 20px;
    background-color: #f8f9fa;
    text-align: center;
}

.services h2 {
    font-size: 36px;
    margin-bottom: 50px;
    color: #5B7BA6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Service Card */
.service-card {
    position: relative;
    height: 280px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

/* Overlay for text */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 50, 0.6);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: background 0.3s ease;
}

.overlay h3 {
    color: #FFE500;
    font-size: 24px;
    margin-bottom: 10px;
}

.overlay p {
    font-size: 16px;
    max-width: 300px;
    margin-bottom: 15px;
}

.service-link {
    background-color: #FFE500;
    color: #5B7BA6;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.service-link:hover {
    background-color: #FFD700;
}

/* Responsividade de Serviços */
@media (max-width: 768px) {
    .service-card {
        height: 220px;
    }

    .overlay h3 {
        font-size: 20px;
    }

    .overlay p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .service-card {
        height: 180px;
    }

    .overlay h3 {
        font-size: 18px;
    }

    .overlay p {
        font-size: 13px;
    }

    .service-link {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Imagens config (agora responsiva) */
.config {
    width: 100%;
    max-width: 140px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    margin: 0 auto 15px auto;
}

/* 📸 Seção dos serviços com imagem lateral */
.plumbing-services {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin: 60px 0;
}

.services-text {
    flex: 1 1 350px;
}

.services-text h2 {
    color: #5B7BA6;
    margin-bottom: 20px;
    font-size: 32px;
}

.services-text ul {
    list-style: disc;
    padding-left: 20px;
    font-size: 18px;
    line-height: 1.8;
}

.services-image {
    flex: 1 1 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.services-image img {
    width: 100%;
    max-width: 420px;
    margin-top: 130px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

/* 📱 Responsivo */
@media (max-width: 768px) {
    .plumbing-services {
        flex-direction: row; /* Mantido como linha para evitar quebras indesejadas */
        align-items: center;
        text-align: center;
    }

    .services-text ul {
        padding-left: 0;
    }

    .services-image img {
        max-width: 90%;
    }
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #5B7BA6 0%, #4A6A96 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta p {
    font-size: 20px;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    background-color: #FFE500;
    color: #5B7BA6;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

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

.btn-cta-secondary {
    background-color: transparent;
    border: 2px solid #FFE500;
    color: #FFE500;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background-color: #FFE500;
    color: #5B7BA6;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    color: #FFE500;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FFE500;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4A6A96;
}

/* Page Content Styles */
.page-header {
    background: linear-gradient(135deg, #5B7BA6 0%, #4A6A96 100%);
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.page-content {
    padding: 60px 20px;
}

.page-content h2 {
    font-size: 32px;
    color: #5B7BA6;
    margin-bottom: 20px;
}

.page-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.page-content ul {
    margin: 20px 0;
    padding-left: 40px;
}

.page-content ul li {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Mobile Responsive (geral) */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    /* As animações do hambúrguer foram mantidas */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 180px; /* Ajuste se o header fixo mudar de altura em mobile */
        flex-direction: column;
        background-color: #5B7BA6;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        max-height: calc(100vh - 180px); /* Ajusta a altura máxima do menu */
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        padding: 15px;
        border-bottom: 1px solid #4A6A96;
    }

    /* Regras de mobile que não conflitam com a navegação foram mantidas */
    .video-placeholder {
        height: 250px;
    }

    .hero-content h2 {
        font-size: 22px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .emergency-text {
        font-size: 20px;
    }

    .discount-text {
        font-size: 16px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .services h2,
    .about h2 {
        font-size: 28px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta,
    .btn-cta-secondary {
        width: 90%;
        max-width: 300px;
    }

    /* Cards responsivos */
    .service-card {
        max-width: 90%; /* Ajuste o max-width aqui se necessário */
        padding: 20px;
    }

    .config {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    /* As regras da logo-img já estão mais acima, específicas para @media (max-width: 480px) */

    .page-header h1 {
        font-size: 28px;
    }

    .page-header p {
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        max-width: 95%; /* Ajuste o max-width aqui se necessário */
        padding: 15px;
    }

    .config {
        max-width: 100px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .service-card p {
        font-size: 15px;
    }

    .service-link {
        padding: 8px 18px;
        font-size: 14px;
    }
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
}

.carousel {
    position: relative;
}

.slide {
    display: none;
    width: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

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

.social-icons {
    display: flex;
    list-style: none;
    padding: 0;
}

.social-icons li {
    margin-right: 15px;
}
