/* ============================
   FINDLAR – CSS GLOBAL
   Escopo: portal público + base para telas internas
   ============================ */

/* Paleta base como variáveis */
:root {
    --findlar-bg: #0f172a;
    --findlar-primary: #1d4ed8;
    --findlar-primary-soft: #0ea5e9;
    --findlar-accent: #f97316;
    --findlar-accent-soft: #fed7aa;
    --findlar-surface: #020617;
    --findlar-surface-soft: #0b1120;
}

/* Reset leve adicional ao Tailwind (só o que importa pra identidade) */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--findlar-bg);
    color: #e5e7eb; /* slate-200 */
}

/* Seleção */
::selection {
    background-color: rgba(249, 115, 22, 0.25);
    color: #f9fafb;
}

/* Scrollbar (desktop) */
@media (min-width: 768px) {
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #020617;
    }
    ::-webkit-scrollbar-thumb {
        background: #1f2937;
        border-radius: 999px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #4b5563;
    }
}

/* ============================
   Utilitários de marca
   ============================ */

.bg-findlar-primary {
    background-color: var(--findlar-primary) !important;
}

.text-findlar-primary {
    color: var(--findlar-primary) !important;
}

.bg-findlar-accent {
    background-color: var(--findlar-accent) !important;
}

.text-findlar-accent {
    color: var(--findlar-accent) !important;
}

.border-findlar-accent {
    border-color: var(--findlar-accent) !important;
}

/* Glass effect + elevação padrão de card */
.glass {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 1.25rem;
}

.card-elevated {
    border: 1px solid rgba(30, 64, 175, 0.6);
    box-shadow:
            0 18px 45px rgba(15, 23, 42, 0.9),
            0 0 0 1px rgba(15, 23, 42, 0.9);
}

/* Logo suave */
.logo-icon {
    transition: transform 0.2s ease, filter 0.2s ease;
}

.logo-icon:hover {
    transform: translateY(-1px) scale(1.02);
}

/* ============================
   Navegação
   ============================ */

.nav-link {
    color: #e5e7eb;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover {
    color: var(--findlar-accent);
    opacity: 0.95;
}

.mobile-link {
    display: block;
    color: #e5e7eb;
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: var(--findlar-accent);
}

/* ============================
   Tipografia de seções
   ============================ */

.section-title {
    font-size: 1.5rem; /* 24px */
    line-height: 1.25;
    font-weight: 700;
    color: #f9fafb;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 1.875rem; /* 30px */
    }
}

.section-subtitle {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* ============================
   Componentes – Botões
   ============================ */

.btn-primary,
.btn-accent,
.btn-outline,
.btn-ghost,
.btn-accent-small,
.btn-outline-small {
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.55rem 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.18s ease-out;
    white-space: nowrap;
}

/* Botão principal (azul) */
.btn-primary {
    background-color: var(--findlar-primary);
    color: #f9fafb;
}

.btn-primary:hover {
    background-color: #1e40af; /* blue-800 */
    transform: translateY(-1px);
}

/* Botão destaque (laranja) */
.btn-accent,
.btn-accent-small {
    background-color: var(--findlar-accent);
    color: #0b1120;
}

.btn-accent:hover,
.btn-accent-small:hover {
    background-color: #ea580c; /* orange-600 */
    transform: translateY(-1px);
}

/* Botão contornado */
.btn-outline,
.btn-outline-small {
    border: 1px solid #4b5563;
    color: #e5e7eb;
    background: transparent;
}

.btn-outline:hover,
.btn-outline-small:hover {
    border-color: var(--findlar-accent);
    color: var(--findlar-accent);
    transform: translateY(-1px);
}

/* Versões “small” para header */
.btn-accent-small,
.btn-outline-small {
    font-size: 0.75rem;
    padding: 0.4rem 0.9rem;
}

/* Ghost (admin) */
.btn-ghost {
    border: 1px solid #4b5563;
    background-color: #020617;
    color: #e5e7eb;
}

.btn-ghost:hover {
    border-color: var(--findlar-accent);
    color: var(--findlar-accent);
    background-color: #020617;
    transform: translateY(-1px);
}

/* ============================
   Componentes – Chips / Badges
   ============================ */

.chip {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background-color: rgba(15, 23, 42, 0.85);
    border: 1px solid #374151;
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
}

.badge {
    font-size: 0.675rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.6);
    color: #6ee7b7;
}

.badge-info {
    background-color: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.6);
    color: #93c5fd;
}

.badge-accent {
    background-color: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.6);
    color: var(--findlar-accent-soft);
}

/* ============================
   Componentes – Cards
   ============================ */

.card-findlar {
    border-radius: 1rem;
    border: 1px solid #1f2937;
    background-color: rgba(15, 23, 42, 0.85);
    padding: 1.25rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.85);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.card-findlar:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.8);
    background-color: #020617;
    box-shadow:
            0 20px 60px rgba(15, 23, 42, 0.95),
            0 0 0 1px rgba(15, 23, 42, 1);
}

.card-featured {
    border-radius: 1rem;
    border: 1px solid rgba(249, 115, 22, 0.7);
    background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 55%),
    rgba(15, 23, 42, 0.96);
    box-shadow:
            0 22px 70px rgba(15, 23, 42, 1),
            0 0 0 1px rgba(15, 23, 42, 1),
            0 0 30px rgba(249, 115, 22, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card-featured:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.9);
    box-shadow:
            0 26px 80px rgba(15, 23, 42, 1),
            0 0 40px rgba(249, 115, 22, 0.2);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #f9fafb;
}

.card-text {
    font-size: 0.875rem;
    color: #9ca3af;
}

.card-list {
    font-size: 0.75rem;
    color: #d1d5db;
    list-style: none;
    padding-left: 0;
}

/* ============================
   Componentes – Formulário
   ============================ */

.field-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.field-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.625rem;
    border: 1px solid #374151;
    background-color: #020617;
    font-size: 0.85rem;
    color: #e5e7eb;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.field-input::placeholder {
    color: #6b7280;
}

.field-input:focus {
    border-color: var(--findlar-accent);
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.5);
    background-color: #020617;
}

/* Tabs de operação (comprar, alugar, todos) */
.tab-pill {
    flex: 1 1 0;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.18s ease;
}

.tab-pill:hover {
    color: #e5e7eb;
}

.tab-pill-active {
    background-color: #0b1120;
    color: #f9fafb;
}

/* ============================
   Steps "Como funciona"
   ============================ */

.step-card {
    border-radius: 1rem;
    background-color: rgba(15, 23, 42, 0.9);
    border: 1px solid #1f2937;
    padding: 1rem;
    font-size: 0.875rem;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.step-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
}

.step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background-color: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.step-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 0.25rem;
}

.step-text {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ============================
   Links
   ============================ */

.link-accent {
    font-size: 0.875rem;
    color: var(--findlar-accent);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.18s ease;
}

.link-accent:hover {
    color: #fb923c;
}

.link-muted {
    font-size: 0.7rem;
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.18s ease;
}

.link-muted:hover {
    color: var(--findlar-accent);
}

/* ============================
   Footer
   ============================ */

.footer-title {
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-list {
    list-style: none;
    padding-left: 0;
    font-size: 0.75rem;
    color: #9ca3af;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.18s ease;
}

.footer-link:hover {
    color: var(--findlar-accent);
}

.footer-icon {
    color: #9ca3af;
    transition: color 0.18s ease, transform 0.18s ease;
}

.footer-icon:hover {
    color: var(--findlar-accent);
    transform: translateY(-1px);
}

/* ============================
   Animações
   ============================ */

.fade-in-up {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover leve em cards, se quiser aplicar em outros lugares */
.hover-lift {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.9);
}

/* ============================
   Responsividade fina
   ============================ */

@media (max-width: 640px) {
    .card-elevated {
        border-radius: 1rem;
    }

    .card-findlar,
    .card-featured {
        padding: 1rem;
    }
}
