/**
 * SignAuto - Public Pages CSS
 */

/* ==================== VARIABLES ==================== */
:root {
    --primary-color: #667eea;
    --primary-dark: #764ba2;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
}

/* ==================== BASE ==================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
}

a {
    text-decoration: none;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: var(--primary-gradient);
    min-height: 500px;
}

.hero-section .card {
    background: white;
    border-radius: 16px;
}

.hero-car {
    max-height: 350px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

.min-vh-50 {
    min-height: 50vh;
}

/* ==================== STATS ==================== */
.stat-card {
    background: white;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==================== STEPS ==================== */
.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==================== BENEFITS ==================== */
.benefit-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ==================== OFFER CARDS ==================== */
.offer-card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.offer-img {
    height: 180px;
    object-fit: cover;
    background: #f8f9fa;
}

.offer-img-placeholder {
    height: 180px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #dee2e6;
}

.offer-img-placeholder-lg {
    height: 400px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dee2e6;
}

/* ==================== LOCADORA LOGO ==================== */
.locadora-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
    background: white;
    padding: 2px;
    border: 1px solid #e9ecef;
}

.locadora-logo-lg {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: contain;
    background: white;
    padding: 4px;
    border: 1px solid #e9ecef;
}

/* ==================== GALLERY ==================== */
.offer-gallery-main {
    background: #f8f9fa;
}

.offer-gallery-main img {
    max-height: 450px;
    object-fit: contain;
}

.offer-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.offer-thumbnail:hover,
.offer-thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
}

/* ==================== FORMS ==================== */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.form-control-lg,
.form-select-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 10px;
}

/* ==================== BUTTONS ==================== */
.btn {
    font-weight: 500;
    border-radius: 10px;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: translateY(-1px);
}

/* ==================== CARDS ==================== */
.card {
    border-radius: 16px;
}

.card-header {
    border-radius: 16px 16px 0 0 !important;
}

/* ==================== PAGINATION ==================== */
.pagination {
    gap: 5px;
}

.page-link {
    border-radius: 8px !important;
    border: none;
    padding: 0.5rem 0.9rem;
    color: var(--secondary-color);
}

.page-item.active .page-link {
    background: var(--primary-color);
}

/* ==================== NAVBAR ==================== */
.navbar {
    padding: 0.75rem 0;
}

.navbar-brand img {
    max-height: 40px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: #333;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* ==================== FOOTER ==================== */
footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: white !important;
}

/* ==================== BADGES ==================== */
.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
    border-radius: 6px;
}

/* ==================== UTILITIES ==================== */
.bg-primary {
    background: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-gradient-primary {
    background: var(--primary-gradient);
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0,0,0,0.12) !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .hero-car {
        max-height: 250px;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .stat-card {
        padding: 1.5rem !important;
    }
    
    .offer-img {
        height: 160px;
    }
    
    .offer-gallery-main img {
        max-height: 300px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.offer-card {
    animation: fadeIn 0.5s ease forwards;
}

/* Stagger animation for cards */
.offer-card:nth-child(1) { animation-delay: 0.1s; }
.offer-card:nth-child(2) { animation-delay: 0.15s; }
.offer-card:nth-child(3) { animation-delay: 0.2s; }
.offer-card:nth-child(4) { animation-delay: 0.25s; }
.offer-card:nth-child(5) { animation-delay: 0.3s; }
.offer-card:nth-child(6) { animation-delay: 0.35s; }
