/* Main Styles for Hercules Website */

/* Global Styles */
:root {
    --primary-color: #1e3a5f;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.6;
    padding-top: 0; /* Removido o espaço entre o header e o conteúdo */
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-weight: 700;
    color: white !important;
}

.header-logo, .footer-logo {
    max-height: 40px;
    width: auto;
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(13, 110, 253, 0.8), rgba(13, 110, 253, 0.9));
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    margin-bottom: 30px;
    color: white;
}

/* Page Header with dynamic banner - will be set via JavaScript */
.page-header.with-banner {
    background-size: cover;
    background-position: center;
}

/* Cards */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

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

/* Product Cards */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.product-card .card-title {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
}

.product-card .card-text {
    margin-bottom: 0.5rem;
}

.product-card .btn-group {
    margin-top: auto;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.product-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: background-color 0.3s, transform 0.3s;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    color: white;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.whatsapp-float i {
    font-size: 1.5rem;
}

/* Product Modal */
.product-gallery {
    position: relative;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    color: #fff;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.gallery-nav:hover {
    color: #007bff;
    transform: translateY(-50%) scale(1.1);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 15px;
}

.main-image {
    width: 100%;
    height: auto;
    transition: transform 0.5s;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
    transform: scale(1.05);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 66px;
    }
    
    .page-header {
        padding: 50px 0;
    }
    
    .product-image {
        aspect-ratio: 1/1;
        object-fit: contain;
        background-color: #f8f9fa;
        min-height: 300px;
        height: 300px;
    }
    
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        padding: 8px 15px;
    }
    
    .whatsapp-float i {
        font-size: 1.2rem;
    }
    
    /* Esconder seção de boas-vindas na home em mobile */
    .hero-section {
        display: none;
    }
    
    /* Melhorias para navegação mobile */
    .navbar-collapse {
        background-color: var(--primary-color);
        padding: 15px;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-item {
        margin-bottom: 5px;
    }
    
    /* Ajustes para cards de produtos */
    .product-card .card-title {
        font-size: 1rem;
    }
    
    .product-card .card-text {
        font-size: 0.9rem;
    }
    
    /* Ajustes para footer */
    .footer {
        padding: 30px 0 15px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 10px;
    }
    
    /* Ajustes para galeria de produtos */
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .gallery-nav {
        width: 30px;
        height: 30px;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 576px) {
    .product-card .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .page-header .lead {
        font-size: 1rem;
    }
    
    /* Cards de produtos em mobile - 1 por linha */
    .col-lg-4.col-md-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        display: block !important;
        visibility: visible !important;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* About Us Page */
.about-content h4 {
    font-weight: 600;
}

.map-container {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Intermediation Page */
.process-steps .step-number {
    font-weight: bold;
}

.cta-section {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin-top: 40px;
}