/* ============================================================
   Itabirito Imóveis — estilos base (complementa o Tailwind CDN)
   ============================================================ */

:root {
    --ii-primary: #E95620;
    --ii-secondary: #02709B;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.font-display {
    font-family: 'Playfair Display', serif;
}

::selection {
    background: #FDE4D7;
    color: #732913;
}

/* Scrollbar discreta */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ---- Formulários ---- */
.ii-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}

.ii-input {
    width: 100%;
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #1E293B;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ii-input::placeholder { color: #94A3B8; }

.ii-input:focus {
    outline: none;
    border-color: var(--ii-primary);
    box-shadow: 0 0 0 3px rgba(233, 86, 32, 0.14);
}

.ii-error {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #DC2626;
}

/* ---- Animações ---- */
@keyframes ii-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

.ii-fade-up { animation: ii-fade-up 0.6s ease both; }

@keyframes ii-skeleton {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.ii-skeleton {
    background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
    background-size: 200% 100%;
    animation: ii-skeleton 1.4s infinite linear;
    border-radius: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
    .ii-fade-up, .ii-skeleton { animation: none; }
    html { scroll-behavior: auto; }
}
