/*
Theme Name: Nuvem Car Theme
Theme URI: https://nuvemcar.pt
Description: Tema personalizado para a concessionária Nuvem Car, convertido de protótipo HTML.
Version: 1.0.0
Author: Antigravity
Author URI: https://google.com
Text Domain: nuvem-car
*/

/* Reset e scroll behavior suave */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #0f172a;
    background: #ffffff;
}

.hero-gradient {
    background: linear-gradient(135deg, rgba(37,99,235,0.92) 0%, rgba(30,64,175,0.88) 100%);
}

.card-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.float-anim {
    animation: float 3s ease-in-out infinite;
}

.nav-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

input:focus, textarea:focus, select:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.spec-row:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
}

/* Slider hero — garante que preenche o fundo */
#hero > .absolute.inset-0 > *:not(.hero-gradient) {
    width: 100%;
    height: 100%;
}

#hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Favorite button */
.favorite-btn {
    transition: all 0.2s ease;
}

.favorite-btn .heart-icon {
    transition: all 0.2s ease;
    stroke: #94a3b8;
    fill: none;
}

.favorite-btn:hover .heart-icon {
    stroke: #ef4444;
}

.favorite-btn.favorited .heart-icon {
    stroke: #ef4444;
    fill: #ef4444;
}

.favorite-btn:hover {
    transform: scale(1.1);
}

/* Hero search bar */
#hero-search-input {
    font-size: 0.95rem;
}

#hero-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.5);
}

/* Dynamic filter buttons */
.marca-btn, .fuel-btn {
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.marca-btn:focus, .fuel-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.4);
}
