/* ===================================
   IMOBCOIN - HOME PAGE STYLES
   Cores oficiais: #FE1D86 (Rosa) → #4543FF (Roxo/Azul)
   Fontes: Inter (corpo) + Poppins (títulos)
   =================================== */

/* === RESET E BASE === */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === ANIMAÇÕES GLOBAIS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* === HEADER === */
header {
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-gradient-animated {
    position: relative;
}

.hero-gradient-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(254, 29, 134, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(69, 67, 255, 0.3) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

/* === CARDS === */
.card-hover {
    will-change: transform, box-shadow;
}

.card-hover:hover {
    box-shadow: 
        0 20px 40px rgba(69, 67, 255, 0.1),
        0 0 0 1px rgba(254, 29, 134, 0.1);
}

/* Efeito de imagem nos cards */
.card-hover img {
    will-change: transform;
}

/* === PROGRESS BAR === */
.progress-imob {
    position: relative;
    box-shadow: 0 4px 10px rgba(254, 29, 134, 0.2);
}

.progress-imob::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 2s infinite;
}

/* === BUTTONS === */
.btn-imob-primary {
    box-shadow: 0 4px 14px rgba(254, 29, 134, 0.3);
}

.btn-imob-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(254, 29, 134, 0.3);
}

/* === GRADIENTS === */
.imob-gradient {
    background: radial-gradient(circle at top left, #FE1D86 0%, #4543FF 100%);
}

.imob-gradient-text {
    background: radial-gradient(circle at top left, #FE1D86 0%, #4543FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === FILTROS === */
select:focus,
input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(254, 29, 134, 0.1);
}

/* === BADGES E TAGS === */
.badge-gradient {
    background: linear-gradient(135deg, #FE1D86 0%, #4543FF 100%);
    box-shadow: 0 4px 12px rgba(254, 29, 134, 0.3);
}

/* === MOBILE MENU === */
#mobileMenu {
    animation: fadeIn 0.3s ease-out;
}

#mobileMenu a {
    transition: all 0.2s ease;
}

#mobileMenu a:hover {
    transform: translateX(5px);
}

/* === SECTION ANIMATIONS === */
section {
    animation: fadeIn 0.6s ease-out;
}

/* === TYPOGRAPHY === */
.font-display {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em;
}

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* === LOADING STATE === */
.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* === HOVER EFFECTS === */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* === GLASS EFFECT === */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-gradient-animated {
        min-height: 500px;
    }
    
    .card-hover:hover {
        transform: none;
    }
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FE1D86 0%, #4543FF 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #d01770 0%, #3835e0 100%);
}

/* === UTILITIES === */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === CUSTOM APPSITE (iframe portal/cadastro) === */
.custom-appsite {
    width: 100%;
    min-height: calc(100vh - 5rem);
    display: block;
}
.custom-appsite iframe {
    width: 100%;
    height: calc(100vh - 5rem);
    min-height: 600px;
    border: 0;
    display: block;
}

/* === FOCUS STATES === */
a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(254, 29, 134, 0.5);
    outline-offset: 2px;
}

/* === PRINT === */
@media print {
    .no-print {
        display: none !important;
    }
}
