/**
 * SignAuto - Public Pages CSS
 */

/* ==================== VARIABLES ==================== */
:root {
    --primary-color: #002855;
    --primary-dark: #001d40;
    --primary-gradient: #002855;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --cor-fonte: #002855;
}

/* ==================== 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-color);
    min-height: 500px;
    overflow: hidden;
}

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

.hero-content {
    max-width: 600px;
    margin-left: auto;
}

.hero-image-wrapper {
    position: relative;
    background: white;
    overflow: visible;
}

.hero-image-container {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-30%, -50%);
    z-index: 10;
}

.hero-image-full {
    width: auto;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

.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-color);
    border: none;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 40, 85, 0.4);
}

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

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

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

.btn-outline-fonte:hover {
    background: var(--primary-color);
    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: 60px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: var(--cor-fonte) !important;
    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;
}

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

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

.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; }

/* ==================== QUERO ASSINAR TABS ==================== */
#leadTabs {
    border: none;
}

#leadTabs .nav-link {
    border: none;
    border-radius: 0;
    color: #002855;
    background-color: #e9ecef;
    transition: all 0.3s ease;
}

#leadTabs .nav-link:hover {
    background-color: #d4a74a;
    color: white;
}

#leadTabs .nav-link.active {
    background-color: #A68953 !important;
    color: white !important;
}

#leadGenericoForm .form-control,
#leadGenericoForm .form-select {
    background-color: white;
    border: 1px solid #ced4da;
}

#leadGenericoForm .form-control:focus,
#leadGenericoForm .form-select:focus {
    border-color: #A68953;
    box-shadow: 0 0 0 0.2rem rgba(166, 137, 83, 0.25);
}

/* ==================== BOTÃO QUERO ASSINAR ==================== */
.btn-assinar {
    background-color: #A68953;
    color: white;
    border: 2px solid #A68953;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-assinar:hover {
    background-color: #8a7245;
    border-color: #8a7245;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(166, 137, 83, 0.4);
}

.btn-assinar:active {
    transform: translateY(0);
}

/* ==================== WHATSAPP FLOATING BUTTON ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.whatsapp-float i {
    line-height: 1;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 26px;
    }
}
