/* JundLajes: estilos complementares ao Tailwind (CDN) */

:root {
    --brand: #D82A24;
    --brand-dark: #B4211C;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Barlow', sans-serif;
    color: #333;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Montserrat', sans-serif;
}

/* ---------- Ticker de categorias ---------- */
.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker-scroll 28s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- Carrossel simples (scroll-snap) ---------- */
.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: .5rem;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track > * {
    scroll-snap-align: start;
    flex: 0 0 auto;
}

/* Carrossel que mostra 3 cards por vez (2 no tablet, 1 no celular) */
.carousel-3 > * {
    width: calc(100% - 1rem);
}

@media (min-width: 640px) {
    .carousel-3 > * {
        width: calc((100% - 1.5rem) / 2);
    }
}

@media (min-width: 1024px) {
    .carousel-3 > * {
        width: calc((100% - 3rem) / 3);
    }
}

/* ---------- Hero slider ----------
   Antes era display:none/block, e display não anima: a troca ficava seca.
   Agora os slides ficam empilhados na mesma célula de grid e a troca é feita
   por opacidade, que o navegador consegue animar. A duração vem do painel
   (--hero-fade, definido no site-header). */
.hero-slider {
    display: grid;
}

.hero-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--hero-fade, 1s) ease-in-out,
                visibility var(--hero-fade, 1s) ease-in-out;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

/* Quem prefere menos animação recebe a troca direta */
@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }
}

/* ---------- FAQ accordion ---------- */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.faq-item.is-open .faq-content {
    max-height: 800px;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

.faq-icon {
    transition: transform .25s ease;
}

/* ---------- Header: efeito vidro ao rolar (igual ao original) ---------- */
/* Só background/sombra fazem transição; o blur é aplicado na hora para não "piscar". */
#site-header {
    transition: background-color .25s ease, box-shadow .25s ease;
}

#site-header.is-scrolled {
    background-color: rgba(251, 251, 251, .314);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
}

/* ---------- Botão ORÇAMENTO (ícone branco, hover preto) ---------- */
.btn-orcamento {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    padding: 12px 24px;
    border-radius: 5px;
    transition: background-color .2s ease, color .2s ease;
}

.btn-orcamento:hover {
    background: #272727;
    color: #fff;
}

/* Deixa qualquer imagem (o símbolo da marca) totalmente branca */
.icon-white {
    filter: brightness(0) invert(1);
}

/* ---------- Barra de atalhos mobile ---------- */
.mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    height: 75px;
    padding: 0 10px;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #fff;
    flex: 1;
    line-height: 1;
}

.mobile-nav a i,
.mobile-nav a img {
    font-size: 23px;
    height: 23px;
    width: auto;
}

.mobile-nav a span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .2px;
}

/* Espaço para a barra não cobrir o rodapé */
body.has-mobile-nav {
    padding-bottom: 75px;
}

@media (min-width: 1024px) {
    body.has-mobile-nav {
        padding-bottom: 0;
    }
}

/* ---------- Rodapé com imagem de fundo ---------- */
.footer-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.footer-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(23, 23, 23, .78);
}

.footer-bg > * {
    position: relative;
    z-index: 1;
}

/* ---------- Fundo da seção "Fale Conosco" ---------- */
.contact-section-bg {
    background-color: #EEEEEE;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.contact-section-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .82);
}

.contact-section-bg > * {
    position: relative;
    z-index: 1;
}

/* ---------- Selo do reCAPTCHA ----------
   O Google permite esconder o selo flutuante DESDE QUE o aviso de que a página
   usa reCAPTCHA fique visível no formulário (está no rodapé do formulário, em
   fale-conosco.php). Não remover aquele texto: sem ele, esconder o selo passa a
   violar os termos de uso.
   Usa visibility em vez de display:none, que é o recomendado pelo Google e não
   interfere na verificação. */
.grecaptcha-badge {
    visibility: hidden;
}

/* ---------- Campo isca do anti-spam ----------
   Fica fora da tela (e não display:none) para que robôs que ignoram CSS
   ainda o encontrem e o preencham, se entregando. */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Botão flutuante do WhatsApp ---------- */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 50;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
    animation: wa-pulse 2.2s ease-in-out infinite;
}

.whatsapp-float:hover {
    background: #1ebe5b;
}

@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(0,0,0,.25), 0 0 0 0 rgba(37,211,102,.5); }
    50% { box-shadow: 0 6px 20px rgba(0,0,0,.25), 0 0 0 10px rgba(37,211,102,0); }
}

/* ---------- Mobile nav ---------- */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

#mobile-menu.is-open {
    max-height: 400px;
}

.rich-content ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.rich-content p {
    margin-bottom: .75rem;
}
