/* CSS específico para página Marca e Agência */

/* Marca e Agência Hero Section */
.marca-agencia-hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0070d9 100%);
    padding: 120px 0 20px;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    margin-bottom: 1.5rem;
}

.hero-badge .badge {
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-image {
    text-align: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Solutions Section */
.solutions-section {
    padding: 20px 0;
    background: #f8f9fa;
}

.solution-card {
    background: #F5F5F5;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.solution-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.solution-icon img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

.solution-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.solution-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.solution-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    justify-content: center;
    margin-top: auto;
    flex-wrap: nowrap;
}

.solution-buttons .btn {
    min-width: 140px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.solution-buttons .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.solution-buttons .btn-primary:hover {
    background: #0052cc;
    border-color: #0052cc;
    transform: translateY(-2px);
}

.solution-buttons .btn-outline-primary {
    border: none;
    color: var(--primary-color);
    background: transparent;
}

.solution-buttons .btn-outline-primary:hover {
    background: transparent;
    color: #0070d9;
    transform: translateY(-2px);
}

.solution-icon img {
    max-width: 150px;
    max-height: 150px;
    height: 100px;
    object-fit: contain;
}

/* Grid Layout Adjustments */
@media (min-width: 992px)  {
    .solutions-section .row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .solutions-section .col-lg-4 {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Último card sozinho ocupa as 3 colunas */
    .solutions-section .row > .col-lg-4:nth-child(3n+1):nth-last-child(1) {
        grid-column: 1 / -1;
        justify-self: center;
    }
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-image {
    position: relative;
    text-align: center;
}

.contact-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.image-decoration {
    position: absolute;
    bottom: -20px;
    left: -20px;
    right: 20px;
    top: 20px;
    background: linear-gradient(45deg, #ff1493, #ffd700, #32cd32, #8a2be2);
    border-radius: 20px;
    z-index: 1;
    opacity: 0.3;
}

/* Footer */
.footer {
    background: #fff;
    border-top: 1px solid #e0e0e0;
}

.footer .contact-info p {
    color: #666;
    margin: 0;
}

.footer .social-links a {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    margin-right: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer .social-links a:hover {
    background: #0052cc;
    transform: translateY(-2px);
}

.footer ul {
    margin: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer ul li a:hover {
    color: var(--primary-color);
}

.footer-legal p {
    color: #666;
    margin: 0;
}

.footer hr {
    border-color: #e0e0e0;
    margin: 1rem 0;
}

/* Dropdown Menus */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: var(--primary-color);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .solution-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .solution-buttons .btn {
        font-size: 1.2rem;
        padding: 6px 12px;
        min-width: 100px;
    }
    
    .contact-content .section-title {
        font-size: 2rem;
    }
    
    .contact-form .form-control,
    .contact-form .form-select {
        margin-bottom: 1rem;
    }
    
    .image-decoration {
        display: none;
    }
    
    .footer .text-end {
        text-align: start !important;
    }
    
    .footer .row > div {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .solutions-section .row {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .marca-agencia-hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .solution-title {
        font-size: 1.1rem;
    }
    
    .solution-icon {
        height: 60px;
    }
    
    .solution-icon img {
        max-width: 40px;
        max-height: 40px;
    }
    
    .contact-content .section-title {
        font-size: 1.75rem;
    }
    
    .solution-description {
        font-size: 0.85rem;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Fix for disappearing sections */
.solutions-section,
.contact-section,
.marca-agencia-hero-section {
    opacity: 1 !important;
    visibility: visible !important;
}

.solution-card {
    opacity: 1;
    visibility: visible;
}

/* Prevent images from disappearing */
img {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Out Of Home card now spans full width - no special styling needed */