/* WM Oficina — Landing industrial
   As cores vêm todas das variáveis --wm-* emitidas pelo layout, derivadas das
   cores cadastradas em Configurações. Não há cor de marca fixa neste arquivo. */

body {
    background-color: rgb(var(--wm-surface));
    color: rgb(var(--wm-on-surface));
    font-family: Inter, system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
    /* compensa o header fixo ao pular por âncora */
    scroll-padding-top: 84px;
}

/* Texto sobre a cor de ação: claro ou escuro conforme o contraste exigir */
.bg-secondary-container,
.hover\:bg-action-orange:hover,
.hover\:bg-secondary:hover {
    color: rgb(var(--wm-on-action));
}

/* Brilho das CTAs na cor de ação do sistema */
.wm-glow {
    box-shadow: 0 0 15px rgba(var(--wm-action-rgb), 0.35);
}

.wm-glow:hover {
    box-shadow: 0 0 25px rgba(var(--wm-action-rgb), 0.55);
}

.wm-glow-sm {
    box-shadow: 0 0 10px rgba(var(--wm-action-rgb), 0.25);
}

/* ------------------------------------------------------------------
   Navegação + scrollspy
   ------------------------------------------------------------------ */

.wm-nav-link {
    position: relative;
    padding-bottom: 0.25rem;
    color: rgb(var(--wm-on-surface-variant));
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.wm-nav-link:hover {
    color: rgb(var(--wm-action-text));
}

.wm-nav-link.active {
    color: rgb(var(--wm-action-text));
    border-bottom-color: rgb(var(--wm-action-text));
    font-weight: 700;
}

.wm-nav-mobile-link.active {
    color: rgb(var(--wm-action-text));
    font-weight: 700;
}

/* Ícones de ação no header (login / agendar) */
.wm-nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(var(--wm-outline));
    background: rgb(var(--wm-surface));
    color: rgb(var(--wm-on-surface));
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.wm-nav-icon-btn .material-symbols-outlined {
    font-size: 1.25rem;
}

.wm-nav-icon-btn:hover {
    color: rgb(var(--wm-action-text));
    border-color: rgb(var(--wm-action-text));
    background: rgba(var(--wm-action-rgb), 0.08);
}

.wm-nav-icon-btn--primary {
    border-color: transparent;
    background: rgb(var(--wm-action-text));
    color: rgb(var(--wm-on-action));
    box-shadow: 0 2px 8px rgba(var(--wm-action-rgb), 0.35);
}

.wm-nav-icon-btn--primary:hover {
    background: rgb(var(--wm-action-hover));
    color: rgb(var(--wm-on-action));
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(var(--wm-action-rgb), 0.45);
}

/* Barra de progresso da leitura */
.wm-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, rgb(var(--wm-structure-text)), rgb(var(--wm-action-text)));
    z-index: 60;
    pointer-events: none;
}

/* ------------------------------------------------------------------
   Hero — faixa escura própria.
   O restante da página é claro, mas o hero mantém a foto com véu escuro
   para preservar o impacto e a legibilidade do texto branco.
   ------------------------------------------------------------------ */

.wm-hero {
    background-color: rgb(var(--wm-hero-bg));
}

.wm-hero-scrim {
    background: linear-gradient(
        to right,
        rgb(var(--wm-hero-bg)) 0%,
        rgb(var(--wm-hero-bg) / 0.86) 38%,
        rgb(var(--wm-hero-bg) / 0.3) 100%
    );
}

.wm-hero-fade {
    background: linear-gradient(to top, rgb(var(--wm-hero-bg)), transparent);
}

/* Dentro do hero o conteúdo vive sobre imagem escura */
.wm-hero .text-on-surface {
    color: #ffffff;
}

.wm-hero .text-on-surface-variant {
    color: rgb(255 255 255 / 0.86);
}

.wm-hero .text-secondary,
.wm-hero .hover\:text-secondary:hover {
    color: rgb(var(--wm-action-on-dark));
}

.wm-hero .border-inverse-primary {
    border-color: rgb(255 255 255 / 0.35);
}

.wm-hero .hover\:border-secondary:hover {
    border-color: rgb(var(--wm-action-on-dark));
}

.wm-hero .bg-surface-variant\/50 {
    background-color: rgb(255 255 255 / 0.1);
}

/* Trecho destacado do título (escrito com **texto** no admin) */
.wm-hero-destaque {
    color: rgb(var(--wm-action-on-dark));
    text-shadow: 0 0 30px rgb(var(--wm-action-on-dark) / 0.4);
}

/* ------------------------------------------------------------------
   Serviços — mesmo tratamento de foto do modelo
   ------------------------------------------------------------------ */

.wm-servico-media {
    background-color: rgb(var(--wm-surface-highest));
}

.wm-servico-img {
    opacity: 0.72;
    transform: scale(1);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.group:hover .wm-servico-img {
    opacity: 1;
    transform: scale(1.06);
}

/* Véu que funde a foto ao card, como no modelo */
.wm-servico-scrim {
    background: linear-gradient(to top, rgb(var(--wm-surface-high)), transparent);
    pointer-events: none;
}

/* Sem foto: ícone grande que acende na cor de ação */
.wm-servico-icone {
    color: rgb(var(--wm-structure-text));
    opacity: 0.5;
    transform: scale(1);
    transition: color 0.3s ease, opacity 0.3s ease, transform 0.5s ease;
}

.group:hover .wm-servico-icone {
    color: rgb(var(--wm-action-text));
    opacity: 1;
    transform: scale(1.1);
}

.wm-servico-halo {
    background: radial-gradient(circle at 50% 50%, rgba(var(--wm-action-rgb), 0.22), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.group:hover .wm-servico-halo {
    opacity: 1;
}

/* Faixa superior acende no hover */
.wm-servico-card {
    transition: border-color 0.3s ease;
}

.wm-servico-card:hover {
    border-top-color: rgb(var(--wm-action-text));
}

/* ------------------------------------------------------------------
   Produtos — mesmo movimento do modelo (zoom da mídia no hover do card),
   valendo também para os produtos sem foto.
   ------------------------------------------------------------------ */

.wm-produto-media {
    position: relative;
    overflow: hidden;
    background-color: rgb(var(--wm-surface-highest));
}

/* Zoom da imagem ou do ícone, como no modelo */
.wm-produto-media img,
.wm-produto-media .wm-produto-icone {
    transition: transform 0.5s ease, opacity 0.5s ease, color 0.3s ease;
    transform: scale(1);
}

.group:hover .wm-produto-media img,
.group:hover .wm-produto-media .wm-produto-icone {
    transform: scale(1.1);
}

/* Produtos sem foto: o ícone assume a cor de ação e ganha brilho */
.wm-produto-icone {
    color: rgb(var(--wm-structure-text));
    opacity: 0.45;
}

.group:hover .wm-produto-icone {
    color: rgb(var(--wm-action-text));
    opacity: 1;
}

/* Halo que acende por trás da mídia */
.wm-produto-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 55%, rgba(var(--wm-action-rgb), 0.28), transparent 68%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.group:hover .wm-produto-media::after {
    opacity: 1;
}

/* Faixa superior de destaque no card, como nos cards de serviço do modelo */
.wm-produto-card {
    border-top: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.wm-produto-card:hover {
    border-top-color: rgb(var(--wm-action-text));
}

.filter-pill {
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.filter-pill.active {
    border-color: rgb(var(--wm-action-text));
    color: rgb(var(--wm-action-text));
    background: rgba(var(--wm-action-rgb), 0.16);
}

.produto-item.wm-hidden {
    display: none !important;
}

/* Filtros de produtos — scroll horizontal no mobile */
#categoryFilters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    padding-bottom: 0.25rem;
    max-width: 100%;
}

#categoryFilters::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    #categoryFilters {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
    }
}

/* Nav mobile — links em largura total; ícones lado a lado */
#navMobile .wm-nav-mobile-link {
    width: 100%;
    text-align: left;
}

#navMobile .wm-nav-icon-btn {
    width: auto;
    min-width: 2.75rem;
}

/* Hamburger apenas no mobile; ícones e links no desktop */
@media (min-width: 768px) {
    #navToggle {
        display: none !important;
    }

    .wm-nav-desktop-actions {
        display: flex !important;
    }

    #navLinks {
        display: flex !important;
    }
}

@media (max-width: 767.98px) {
    #navToggle {
        display: inline-flex !important;
    }

    .wm-nav-desktop-actions,
    #navLinks {
        display: none !important;
    }
}

/* ------------------------------------------------------------------
   Modal de depoimento (padrão VitaCore adaptado à landing)
   ------------------------------------------------------------------ */

.wm-landing-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.wm-landing-modal-overlay.is-open {
    display: flex;
}

.wm-landing-modal {
    width: 100%;
    max-width: 28rem;
    border-radius: 1rem;
    overflow: hidden;
    background: rgb(var(--wm-surface));
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
    border: 1px solid rgb(var(--wm-outline));
}

.wm-landing-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--wm-primary) 0%, var(--wm-secondary) 100%);
    color: #fff;
}

.wm-landing-modal-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.wm-landing-modal-title-icon {
    font-size: 1.35rem;
    opacity: 0.95;
}

.wm-landing-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wm-landing-modal-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.wm-landing-modal-body {
    padding: 1.25rem;
}

.wm-landing-field + .wm-landing-field {
    margin-top: 1rem;
}

.wm-landing-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--wm-primary);
}

.wm-landing-input {
    width: 100%;
    border: 1px solid rgb(var(--wm-outline));
    border-radius: 0.625rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.9375rem;
    color: rgb(var(--wm-on-surface));
    background: rgb(var(--wm-surface-container));
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wm-landing-input:focus {
    outline: none;
    border-color: var(--wm-primary);
    box-shadow: 0 0 0 3px rgba(var(--wm-action-rgb), 0.15);
}

.wm-landing-textarea {
    min-height: 6rem;
}

.wm-landing-modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
    padding-top: 0.25rem;
}

.wm-landing-btn-outline,
.wm-landing-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.wm-landing-btn-outline {
    border: 1px solid rgb(var(--wm-outline));
    background: transparent;
    color: rgb(var(--wm-on-surface-variant));
}

.wm-landing-btn-outline:hover {
    border-color: rgb(var(--wm-action-text));
    color: rgb(var(--wm-action-text));
}

.wm-landing-btn-primary {
    border: 0;
    background: linear-gradient(135deg, var(--wm-primary) 0%, var(--wm-secondary) 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(var(--wm-action-rgb), 0.3);
}

.wm-landing-btn-primary:hover {
    box-shadow: 0 4px 14px rgba(var(--wm-action-rgb), 0.4);
}

/* ------------------------------------------------------------------
   Depoimentos — scroll infinito contínuo
   ------------------------------------------------------------------ */

.wm-infinite-scroll {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.wm-infinite-scroll-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 1rem;
    will-change: transform;
}

.wm-infinite-scroll-track.is-animated {
    animation: wm-depo-scroll var(--wm-scroll-duration, 40s) linear infinite;
}

.wm-infinite-scroll-track.is-animated:hover {
    animation-play-state: paused;
}

@keyframes wm-depo-scroll {
    to {
        transform: translateX(calc(-50% - 0.5rem));
    }
}

.depoimento-slide {
    flex: 0 0 auto;
    width: min(90vw, 320px);
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .depoimento-slide {
        width: 380px;
    }
}

@media (min-width: 1024px) {
    .depoimento-slide {
        width: 420px;
    }
}

.wm-carousel-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(var(--wm-structure-rgb), 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(var(--wm-action-text));
    background: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.wm-carousel-btn:hover {
    background: rgba(var(--wm-action-rgb), 0.18);
    border-color: rgb(var(--wm-action-text));
    transform: translateY(-2px);
}

.wm-carousel-btn:active {
    transform: translateY(0);
}

/* Card de depoimento — aspas decorativas via CSS (evita glifo "99" do Material Symbols) */
.wm-depoimento-card::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 4rem;
    line-height: 1;
    font-family: Georgia, 'Times New Roman', serif;
    color: rgb(var(--wm-action-text));
    opacity: 0.12;
    pointer-events: none;
    user-select: none;
}

.wm-star {
    font-variation-settings: 'FILL' 0, 'wght' 400;
}

.wm-star-filled {
    font-variation-settings: 'FILL' 1, 'wght' 400;
}

/* Estrelas do modal de depoimento */
.star-pick.text-active {
    color: rgb(var(--wm-action-text));
    font-variation-settings: 'FILL' 1;
}

/* ------------------------------------------------------------------
   WhatsApp flutuante
   ------------------------------------------------------------------ */

.wm-whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 60;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s;
}

.wm-whatsapp-float:hover {
    transform: scale(1.08);
    color: #fff;
}

/* ------------------------------------------------------------------
   Acessibilidade — respeita quem prefere menos movimento
   ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .gs-reveal,
    .gs-card,
    .gs-hero-item {
        opacity: 1 !important;
        transform: none !important;
    }

    .wm-produto-media img,
    .wm-produto-media .wm-produto-icone {
        transition: none;
    }

    .wm-infinite-scroll-track.is-animated {
        animation: none !important;
    }
}

/* Contato — link WhatsApp na seção Nossa Estrutura */
.wm-contato-whatsapp-link {
    color: inherit;
    text-decoration: none;
}

.wm-contato-whatsapp-link:hover {
    color: var(--wm-secondary, #f59e0b);
    transform: scale(1.05);
}

.wm-contato-whatsapp-link .material-symbols-outlined {
    transition: transform 0.2s ease, color 0.2s ease;
}

.wm-contato-whatsapp-link:hover .material-symbols-outlined {
    transform: scale(1.1);
}
