@font-face {
    font-family: 'Rezerv';
    src: url('fonts/Rezerv.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    background: #f8f9fa;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: #2d3748;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #1e3a8a;
}

.navbar {
    background: #3300CC; /* Cor consistente com o index.php */
    padding: 16px 24px;
    border-bottom-left-radius: 20px; /* Contorno no canto inferior esquerdo */
    border-bottom-right-radius: 20px; /* Contorno no canto inferior direito */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); /* Ajustar sombra para destacar a navbar */
    position: sticky; /* Para garantir que a navbar fique fixa no topo ao rolar */
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 20px;
    font-weight: bold;
    color: #fff; /* Ajustar a cor do texto para branco, para contrastar com o fundo azul escuro */
    font-family: 'Montserrat', sans-serif;
}

.back-button {
    flex: 0 0 auto;
}

.category-title {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

/* Estilo do Carrossel com Rolamento Horizontal e Tamanho Padrão */
.carousel {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-item {
    flex: 0 0 100%;
    height: 100%;
}

.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
    display: block;
    transform: translateX(0);
    height: 100%;
}

.carousel-item-next {
    transform: translateX(100%);
}

.carousel-item-prev {
    transform: translateX(-100%);
}

.carousel-item-next.carousel-item-start,
.carousel-item-prev.carousel-item-end {
    transform: translateX(0);
}

@media (prefers-reduced-motion: no-preference) {
    .carousel-item-next,
    .carousel-item-prev {
        transition: transform 0.5s ease-in-out;
    }
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .carousel {
        height: 200px;
    }
}

/* Banner Fixo Abaixo do Carrossel */
.fixed-banner {
    margin: -37px 0;
    text-align: center;
    width: 100%;
}

.fixed-banner img {
    border-radius: 0;
    width: 100%;
    height: 100px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .fixed-banner img {
        height: 80px;
    }
}

/* Banner do Rodapé Fixo */
.footer-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.05);
    background: transparent;
}

.footer-banner img {
    border-radius: 0;
    width: 100%;
    height: 60px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .footer-banner img {
        height: 50px;
    }
}

.section {
    padding: 40px 0;
}

.section-title {
    font-size: 28px;
    margin-bottom: 24px;
    color: #1e3a8a;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 24px;
        margin-bottom: 16px;
    }
}

.category-card {
    background: none; /* Remove o fundo branco */
    border: none; /* Remove qualquer borda */
    box-shadow: none; /* Remove sombra */
    border-radius: 0; /* Remove arredondamento */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margens */
    text-align: center;
    transition: transform 0.3s ease; /* Mantém apenas a transição de transform */
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: none; /* Garante que não haja sombra no hover */
}

.category-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
}

a.category-card {
    text-decoration: none;
}

.category-card h5 {
    font-size: 14px;
    color: #2d3748;
    margin: 0;
    font-family: 'Rezerv', 'Montserrat', sans-serif;
    text-decoration: none;
}

.anuncie-card {
    background: #1e3a8a;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    padding: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 16px;
}

.anuncie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(30, 58, 138, 0.3);
}

.anuncie-card i {
    font-size: 24px;
    color: #fff;
    margin-bottom: 8px;
}

a.anuncie-card {
    text-decoration: none;
}

.anuncie-card h5 {
    font-size: 14px;
    color: #fff;
    margin: 0;
    font-family: 'Rezerv', 'Montserrat', sans-serif;
    text-decoration: none;
}

.footer {
    background: #fff;
    padding: 24px 0;
    padding-bottom: 100px;
    text-align: center;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.05);
    color: #2d3748;
    font-family: 'Montserrat', sans-serif;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.subcategory-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    padding: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 16px;
}

.subcategory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .category-card, .anuncie-card, .subcategory-card {
        padding: 12px;
    }

    .category-card img {
        width: 48px;
        height: 48px;
    }

    .category-card h5, .anuncie-card h5, .subcategory-card h5 {
        font-size: 12px;
    }

    .anuncie-card i {
        font-size: 20px;
    }
}

/* Estilos para empresas.php */
.card {
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    object-fit: cover;
    height: 300px;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

@media (max-width: 768px) {
    .card-img-top {
        height: 200px;
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 16px;
    border-bottom: none;
    background: none;
}

.card-title {
    color: #1e3a8a;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.selo-recomendacao {
    width: 120px;
    height: 30px;
    object-fit: contain;
}

.card-description {
    color: #2d3748;
    font-size: 14px;
    margin: 8px 16px 0;
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 768px) {
    .card-img-top {
        height: 200px;
    }

    .card-title {
        font-size: 16px;
    }

    .selo-recomendacao {
        width: 96px;
        height: 24px;
    }

    .card-description {
        font-size: 12px;
        margin: 4px 12px 0;
    }
}

.card-body {
    padding: 0 16px 16px;
}

.card-text {
    color: #2d3748;
}

.card-body a {
    color: #1e3a8a;
    text-decoration: none;
}

.card-body a:hover {
    text-decoration: underline;
}

/* Estilos para empresa-detalhe.php */
.company-header {
    position: relative;
    margin-bottom: 20px;
}

.company-cover {
    width: 100%;
    height: 400px;
}

.company-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

@media (max-width: 768px) {
    .company-cover {
        height: 200px;
    }
}

.company-title-section {
    padding: 20px 0;
}

.company-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-title {
    font-size: 32px;
    margin: 0;
    color: #1e3a8a;
}

@media (max-width: 768px) {
    .company-title {
        font-size: 24px;
    }
}

.company-info-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.company-info-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.company-info-card p {
    margin: 8px 0;
    font-size: 16px;
}

@media (max-width: 768px) {
    .company-info-card {
        padding: 16px;
    }

    .company-info-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .company-info-card p {
        font-size: 14px;
    }
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-ligar {
    background-color: #1e3a8a;
    color: #fff;
}

.btn-ligar:hover {
    background-color: #2d4eb8;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background-color: #20bd57;
}

.social-links {
    margin-top: 20px;
}

.social-links h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.social-btn span {
    display: inline-block;
}

@media (max-width: 768px) {
    .social-btn span {
        display: none;
    }

    .social-btn {
        padding: 12px;
        width: 48px;
        height: 48px;
        justify-content: center;
    }

    .action-btn {
        padding: 12px;
        width: 48px;
        height: 48px;
        justify-content: center;
        font-size: 0;
    }

    .action-btn i {
        font-size: 20px;
    }
}

.btn-instagram {
    background-color: #E1306C;
    color: #fff;
}

.btn-instagram:hover {
    background-color: #c72b5e;
}

.btn-facebook {
    background-color: #3b5998;
    color: #fff;
}

.btn-facebook:hover {
    background-color: #324b80;
}

.btn-site {
    background-color: #17a2b8;
    color: #fff;
}

.btn-site:hover {
    background-color: #138496;
}

.company-map {
    margin-top: 20px;
}

.company-map h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.company-gallery {
    margin-top: 20px;
}

.company-gallery h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .gallery-item img {
        height: 120px;
    }
}

.highlight-footer {
    background: #1e3a8a;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.highlight-footer p {
    margin: 0;
    font-size: 16px;
}

/* Estilo para Botões Flutuantes */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.floating-btn.btn-ligar {
    background-color: #1e3a8a;
}

.floating-btn.btn-whatsapp {
    background-color: #25D366;
}

@media (max-width: 768px) {
    .floating-buttons {
        bottom: 15px;
        right: 15px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Remover a media query antiga para display-mode: standalone, já que a cor agora é fixa */