/*
 * landing.css — SOS Conserto de Portões
 * CSS compartilhado entre todas as Landing Pages.
 *
 * IMPORTANTE: este arquivo cobre apenas os estilos customizados (variáveis,
 * animações, componentes e layout do template). As classes utilitárias
 * (max-w-*, px-*, grid, flex etc.) requerem Tailwind CSS compilado.
 * Compilar antes de deploy: npx tailwindcss -i ./input.css -o ./landing.css --minify
 * Fonte de scan: paginas-de-venda/**/_wordpress-ready.html
 */

/* ============================================================
   VARIÁVEIS
   ============================================================ */
:root {
    --primary:   #13807f;
    --secondary: #3cc7c6;
    --dark:      #0f1720;
    --cta:       #ff7a00;
    --glow:      #00bfff;
    --urgency:   #ff5f6d;
    --whatsapp:  #25D366;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Nunito', sans-serif;
    background: var(--dark);
    color: #f5f7fa;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Força Barlow Condensed em elementos com font-display,
   sobrepondo qualquer regra do tema WordPress */
.font-display { font-family: 'Barlow Condensed', sans-serif !important; }

/* ============================================================
   TEMPLATE: TOPBAR E HEADER
   ============================================================ */
.lp-topbar {
    background: var(--primary);
    color: #ffffff;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 12px;
}

.lp-header {
    background: #0f1720;
    border-bottom: 3px solid var(--secondary);
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 4px 24px rgba(0,0,0,.5);
}
.lp-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.lp-header-logo {
    height: 110px;
    width: auto;
    object-fit: contain;
    display: block;
    min-width: 140px;
    max-width: 220px;
}
.lp-header-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 8px 12px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform .2s ease, background .3s ease;
    animation: pulse-green 2s infinite;
}
.lp-header-btn:hover {
    background: linear-gradient(135deg, #ff7a00, #ff9a00);
    transform: scale(1.03);
}

@media (min-width: 768px) {
    .lp-header-btn { font-size: 0.875rem; padding: 12px 20px; }
}
@media (max-width: 640px) {
    .lp-header-logo { height: auto; max-height: 55px; width: auto; max-width: 130px; min-width: 0; }
}

/* ============================================================
   TEMPLATE: FOOTER
   ============================================================ */
.lp-footer {
    background: #0f1720;
    border-top: 4px solid var(--secondary);
    padding: 32px 16px;
    text-align: center;
}

/* ============================================================
   ANIMAÇÕES
   ============================================================ */
@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.7); }
    70%       { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
}
.btn-whatsapp-animated { animation: pulse-green 2s infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
.float-anim { animation: float 3s ease-in-out infinite; }

@keyframes badge-pulse {
    0%, 100% { opacity:1; transform:scale(1); }
    50%       { opacity:.85; transform:scale(1.03); }
}
.badge-pulse { animation: badge-pulse 2s ease-in-out infinite; }

@keyframes glow-tech {
    0%, 100% { box-shadow: 0 0 10px rgba(0,191,255,.3); }
    50%       { box-shadow: 0 0 28px rgba(0,191,255,.6), 0 0 56px rgba(0,191,255,.15); }
}
.glow-tech { animation: glow-tech 3s ease-in-out infinite; }

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: marquee 32s linear infinite;
    will-change: transform;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-container {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

@keyframes modal-in {
    from { opacity:0; transform:scale(.92) translateY(16px); }
    to   { opacity:1; transform:scale(1) translateY(0); }
}
.modal-box { animation: modal-in .3s ease-out; }

/* ============================================================
   COMPONENTES
   ============================================================ */

/* Glass */
.glass {
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.08);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #13807f, #3cc7c6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* CTA button */
.btn-cta {
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(135deg, #25D366, #128C7E);
    transition: background .3s ease, transform .2s ease;
    position: relative;
    overflow: hidden;
}
.btn-cta:hover {
    background: linear-gradient(135deg, #ff7a00, #ff9a00);
    transform: scale(1.03);
}
.btn-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
    opacity: 0;
    transition: opacity .3s;
}
.btn-cta:hover::before { opacity: 1; }

/* Botão de ação secundário (fora do hero) */
.btn-orange {
    -webkit-appearance: none;
    appearance: none;
    background: #25D366;
    box-shadow: 0 6px 24px rgba(37,211,102,0.4);
    transition: background .3s ease, transform .2s ease, box-shadow .3s ease;
    position: relative;
    overflow: hidden;
}
.btn-orange:hover {
    background: #128C7E;
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(37,211,102,0.4);
}

/* Card hover */
.card-hover {
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,191,255,.12);
    border-color: rgba(60,199,198,.4) !important;
}

/* Service icon */
.service-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* Step number */
.step-number {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    color: var(--secondary);
    opacity: .13;
    line-height: 1;
    user-select: none;
}

/* Divider */
.divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(60,199,198,.35), transparent);
}

/* ============================================================
   MODAL DARK (#modal-overlay)
   ============================================================ */
#modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
#modal-overlay.show { display: flex; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding .3s ease;
}
.faq-answer.open  { max-height: 300px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .3s ease; }

/* ============================================================
   STICKY BUTTON
   ============================================================ */
#sticky-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 1; transform: none; }
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

/* ============================================================
   UTILITÁRIOS — subset das classes Tailwind usadas nas landing pages
   Elimina dependência de cdn.tailwindcss.com ou compilação npm.
   Adicionar novas classes conforme novas páginas forem criadas.
   ============================================================ */

/* Display */
.block        { display: block; }
.inline-block { display: inline-block; }
.flex         { display: flex; }
.inline-flex  { display: inline-flex; }
.grid         { display: grid; }
.hidden       { display: none; }

/* Flexbox direction / wrap */
.flex-col  { flex-direction: column; }
.flex-row  { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }

/* Flexbox sizing */
.flex-1       { flex: 1 1 0%; }
.flex-shrink-0{ flex-shrink: 0; }
.flex-grow    { flex-grow: 1; }

/* Flexbox alignment */
.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between{ justify-content: space-between; }

/* Gap */
.gap-0    { gap: 0; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2    { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-5  { gap: 1.25rem; }
.gap-6  { gap: 1.5rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-14 { gap: 3.5rem; }
.gap-16 { gap: 4rem; }

/* Space-y (filhos consecutivos) */
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Grid columns */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col-span-2  { grid-column: span 2 / span 2; }

/* Width */
.w-full      { width: 100%; }
.w-2         { width: 0.5rem; }
.w-2\.5      { width: 0.625rem; }
.w-5         { width: 1.25rem; }
.w-6         { width: 1.5rem; }
.w-8         { width: 2rem; }
.w-9         { width: 2.25rem; }
.w-16        { width: 4rem; }
.w-56        { width: 14rem; }
.w-72        { width: 18rem; }
.w-80        { width: 20rem; }
.w-96        { width: 24rem; }
.w-\[500px\] { width: 500px; }

/* Height */
.h-2         { height: 0.5rem; }
.h-2\.5      { height: 0.625rem; }
.h-5         { height: 1.25rem; }
.h-6         { height: 1.5rem; }
.h-8         { height: 2rem; }
.h-9         { height: 2.25rem; }
.h-16        { height: 4rem; }
.h-56        { height: 14rem; }
.h-72        { height: 18rem; }
.h-96        { height: 24rem; }
.h-\[500px\] { height: 500px; }
.h-px        { height: 1px; }

/* Max-width */
.max-w-md  { max-width: 28rem; }
.max-w-lg  { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-6xl { max-width: 72rem; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }

/* Insets */
.inset-0     { inset: 0; }
.top-0       { top: 0; }
.right-0     { right: 0; }
.left-0      { left: 0; }
.top-4       { top: 1rem; }
.right-4     { right: 1rem; }
.left-4      { left: 1rem; }
.top-16      { top: 4rem; }
.right-8     { right: 2rem; }
.left-8      { left: 2rem; }
.bottom-24   { bottom: 6rem; }
.-top-4      { top: -1rem; }
.-left-4     { left: -1rem; }
.-right-4    { right: -1rem; }
.-bottom-4   { bottom: -1rem; }
.-right-3    { right: -0.75rem; }
.top-1\/2    { top: 50%; }
.bottom-full { bottom: 100%; }

/* Z-index */
.z-10 { z-index: 10; }

/* Margin */
.mx-auto  { margin-left: auto; margin-right: auto; }
.mb-1     { margin-bottom: 0.25rem; }
.mb-2     { margin-bottom: 0.5rem; }
.mb-3     { margin-bottom: 0.75rem; }
.mb-4     { margin-bottom: 1rem; }
.mb-6     { margin-bottom: 1.5rem; }
.mb-8     { margin-bottom: 2rem; }
.mb-10    { margin-bottom: 2.5rem; }
.mb-12    { margin-bottom: 3rem; }
.mb-14    { margin-bottom: 3.5rem; }
.mt-0\.5  { margin-top: 0.125rem; }
.mt-1     { margin-top: 0.25rem; }
.mt-4     { margin-top: 1rem; }
.mt-5     { margin-top: 1.25rem; }
.mt-8     { margin-top: 2rem; }
.mt-10    { margin-top: 2.5rem; }
.mt-12    { margin-top: 3rem; }

/* Padding */
.p-4      { padding: 1rem; }
.p-5      { padding: 1.25rem; }
.p-6      { padding: 1.5rem; }
.px-3     { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4     { padding-left: 1rem;    padding-right: 1rem; }
.px-5     { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6     { padding-left: 1.5rem;  padding-right: 1.5rem; }
.px-8     { padding-left: 2rem;    padding-right: 2rem; }
.px-10    { padding-left: 2.5rem;  padding-right: 2.5rem; }
.px-12    { padding-left: 3rem;    padding-right: 3rem; }
.py-1     { padding-top: 0.25rem;  padding-bottom: 0.25rem; }
.py-1\.5  { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2     { padding-top: 0.5rem;   padding-bottom: 0.5rem; }
.py-3     { padding-top: 0.75rem;  padding-bottom: 0.75rem; }
.py-4     { padding-top: 1rem;     padding-bottom: 1rem; }
.py-5     { padding-top: 1.25rem;  padding-bottom: 1.25rem; }
.py-6     { padding-top: 1.5rem;   padding-bottom: 1.5rem; }
.py-16    { padding-top: 4rem;     padding-bottom: 4rem; }
.py-20    { padding-top: 5rem;     padding-bottom: 5rem; }
.py-24    { padding-top: 6rem;     padding-bottom: 6rem; }
.py-28    { padding-top: 7rem;     padding-bottom: 7rem; }
.pb-5     { padding-bottom: 1.25rem; }
.pb-8     { padding-bottom: 2rem; }
.pt-4     { padding-top: 1rem; }
.pl-16    { padding-left: 4rem; }
.pr-4     { padding-right: 1rem; }

/* Font size */
.text-xs   { font-size: 0.75rem;  line-height: 1rem; }
.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem;     line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem;  line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem;   line-height: 2rem; }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }

/* Font weight */
.font-light    { font-weight: 300; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-black    { font-weight: 900; }

/* Line height */
.leading-tight   { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* Text align / transform / decoration */
.text-center      { text-align: center; }
.text-left        { text-align: left; }
.uppercase        { text-transform: uppercase; }
.underline        { text-decoration-line: underline; }
.whitespace-nowrap{ white-space: nowrap; }
.select-none      { user-select: none; }

/* Letter spacing */
.tracking-wide  { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }

/* Text colors */
.text-white   { color: #ffffff; }
.text-gray-200{ color: #e5e7eb; }
.text-gray-300{ color: #d1d5db; }
.text-gray-400{ color: #9ca3af; }
.text-gray-500{ color: #6b7280; }
.text-gray-600{ color: #4b5563; }
.text-green-400{ color: #4ade80; }

/* Background */
.bg-green-400 { background-color: #4ade80; }

/* Border radius */
.rounded-full { border-radius: 9999px; }
.rounded-xl   { border-radius: 0.75rem; }
.rounded-2xl  { border-radius: 1rem; }
.rounded-lg   { border-radius: 0.5rem; }

/* Border */
.border-2             { border-width: 2px; border-style: solid; }
.border-4             { border-width: 4px; border-style: solid; }
.border-transparent   { border-color: transparent; }
.border-t-transparent { border-top-color: transparent; }
.border-green-500     { border-color: #22c55e; }

/* Object / overflow */
.object-cover      { object-fit: cover; }
.overflow-hidden   { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }

/* Shadow */
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }

/* Opacity */
.opacity-0  { opacity: 0; }
.opacity-20 { opacity: 0.2; }
.opacity-25 { opacity: 0.25; }
.opacity-30 { opacity: 0.3; }

/* Filter */
.blur-2xl { filter: blur(40px); }
.blur-3xl { filter: blur(64px); }

/* Transform */
.-translate-y-1\/2 { transform: translateY(-50%); }

/* Transitions */
.transition-colors {
    transition-property: color, background-color, border-color;
    transition-duration: 150ms;
    transition-timing-function: ease-in-out;
}
.transition-opacity {
    transition-property: opacity;
    transition-duration: 150ms;
    transition-timing-function: ease-in-out;
}
.transition-transform {
    transition-property: transform;
    transition-duration: 150ms;
    transition-timing-function: ease-in-out;
}
.duration-200 { transition-duration: 200ms; }

/* Pointer events / cursor */
.pointer-events-none { pointer-events: none; }

/* Focus */
.focus\:outline-none:focus { outline: none; }

/* Placeholder */
.placeholder-gray-600::placeholder { color: #4b5563; }

/* Hover states */
.hover\:scale-105:hover    { transform: scale(1.05); }
.hover\:scale-110:hover    { transform: scale(1.1); }
.hover\:text-white:hover   { color: #ffffff; }
.hover\:bg-white\/10:hover { background-color: rgba(255,255,255,0.1); }

/* Group hover */
.group:hover .group-hover\:opacity-100 { opacity: 1; }

/* Tailwind keyframes (nomes prefixados para não conflitar com animações customizadas acima) */
@keyframes tw-bounce {
    0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
    50%       { transform: translateY(0);   animation-timing-function: cubic-bezier(0,0,0.2,1); }
}
.animate-bounce { animation: tw-bounce 1s infinite; }

@keyframes tw-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}
.animate-pulse { animation: tw-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }

@keyframes tw-spin {
    to { transform: rotate(360deg); }
}
.animate-spin { animation: tw-spin 1s linear infinite; }

/* ---- Mobile (≤767px): imagens com altura controlada + botões ---- */
@media (max-width: 767px) {
    #hero img,
    #problemas img,
    #como-funciona img {
        object-fit: cover !important;
        max-height: 220px !important;
        width: 100% !important;
        height: auto !important;
    }
    #autoridade img {
        object-fit: cover !important;
        max-height: 240px !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }
    .btn-cta {
        font-size: 0.85rem !important;
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        letter-spacing: 0.02em !important;
    }
    .lp-header-btn {
        font-size: 0.7rem !important;
        letter-spacing: 0.03em !important;
        white-space: nowrap !important;
    }
    #hero-h1 {
        font-size: 2.5rem !important;
        line-height: 1.15 !important;
        letter-spacing: -0.01em !important;
    }
    footer img {
        object-fit: contain !important;
        height: auto !important;
        max-height: 55px !important;
    }
}

/* ---- Responsivo sm (≥640px) ---- */
@media (min-width: 640px) {
    .sm\:flex-row    { flex-direction: row; }
    .sm\:w-80        { width: 20rem; }
    .sm\:w-auto      { width: auto; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:col-span-2  { grid-column: span 2 / span 2; }
    .sm\:px-6        { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:text-xl     { font-size: 1.25rem; line-height: 1.75rem; }
    .sm\:text-base   { font-size: 1rem;    line-height: 1.5rem; }
}

/* ---- Responsivo md (≥768px) ---- */
@media (min-width: 768px) {
    .md\:py-20       { padding-top: 5rem;  padding-bottom: 5rem; }
    .md\:py-24       { padding-top: 6rem;  padding-bottom: 6rem; }
    .md\:py-28       { padding-top: 7rem;  padding-bottom: 7rem; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:flex        { display: flex; }
    .md\:p-8         { padding: 2rem; }
}

/* ---- Responsivo lg (≥1024px) ---- */
@media (min-width: 1024px) {
    .lg\:block            { display: block !important; }
    .lg\:hidden           { display: none  !important; }
    .lg\:px-8             { padding-left: 2rem; padding-right: 2rem; }
    .lg\:flex-row         { flex-direction: row; }
    .lg\:flex-row-reverse { flex-direction: row-reverse; }
    .lg\:gap-6            { gap: 1.5rem; }
    .lg\:gap-14           { gap: 3.5rem; }
    .lg\:gap-16           { gap: 4rem; }
    .lg\:mt-0             { margin-top: 0; }
    .lg\:w-2\/5           { width: 40%; }
    .lg\:grid-cols-3      { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Performance: pausa animacoes infinitas fora da tela (controlado por animations.js) e respeita reduced-motion */
.anim-pause { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
    .btn-whatsapp-animated, .lp-header-btn, .glow-tech, .marquee-track, .float-anim, .badge-pulse, .animate-pulse, .animate-bounce { animation: none !important; }
}

/* FAQ: botao sem reset mostrava fundo cinza do navegador com texto branco (contraste 1,13:1) */
.faq-item > button {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
