/* ============================================
   C2F Maker - Estilos Personalizados
   ============================================ */

/* --- Global --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    scroll-behavior: smooth;
}

/* --- Navbar --- */
.navbar {
    border-bottom: 3px solid #0056b3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-navbar {
    background-color: white;
    border-radius: 6px;
    height: 52px;
    width: 112px;
    object-fit: contain;
}

.logo-footer {
    background-color: white;
    border-radius: 8px;
    height: 90px;
    width: 150px;
    object-fit: contain;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="2"/></svg>') repeat;
    background-size: 100px 100px;
    opacity: 0.5;
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* --- How it Works Section --- */
#como-funciona {
    background-color: #ffffff;
    scroll-margin-top: 80px;
}

#como-funciona .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#como-funciona .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* --- Cards do Catálogo --- */
.cuia-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.produto-sem-foto .card-body {
    min-height: 250px;
    padding: 1.5rem;
}

.cuia-img-container {
    height: 290px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #eef1f4;
    border-bottom: 1px solid #dee2e6;
}

.cuia-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.cuia-img-container img.foto-vertical {
    object-fit: cover;
    object-position: center center;
}

.cuia-card:hover .cuia-img-container img {
    transform: scale(1.03);
}

#catalogo {
    scroll-margin-top: 90px;
}

.cuia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

/* --- Botões --- */
.btn-primary {
    background-color: #0056b3;
    border-color: #004a9b;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #004a9b;
    border-color: #003d80;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.btn-dark {
    transition: all 0.3s ease;
}

.btn-dark:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 37, 41, 0.3);
}

.btn-loading {
    display: inline-flex;
    align-items: center;
}

/* --- Modal --- */
.modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 1.5rem;
}

/* --- Footer --- */
footer {
    border-top: 3px solid #0056b3;
}

/* --- Loading Spinner --- */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* --- Animações --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.5s ease forwards;
}

.row > div:nth-child(2) .card {
    animation-delay: 0.1s;
}

.row > div:nth-child(3) .card {
    animation-delay: 0.2s;
}

.row > div:nth-child(4) .card {
    animation-delay: 0.3s;
}

/* --- Responsivo --- */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }

    .cuia-img-container {
        height: 360px;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* --- Acessibilidade --- */
*:focus-visible {
    outline: 3px solid rgba(0, 86, 179, 0.5);
    outline-offset: 2px;
}
