/* Enhanced Styles for Rio Holding Website */

/* Melhorias nos Hovers */
.project-card {
    background-color: var(--background-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

.project-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(20, 33, 61, 0), rgba(20, 33, 61, 0.8));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.project-card:hover:before {
    opacity: 1;
}

.project-info {
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.project-card:hover .project-info {
    transform: translateY(-5px);
}

.project-card:hover .project-info h3, 
.project-card:hover .location,
.project-card:hover .description {
    color: #141D3D;
}

/* Modificação para deixar o "Saiba mais" e flecha brancos no hover */
.project-card:hover .text-link {
    color: #ffffff;
}

.project-card:hover .text-link i {
    color: #ffffff;
}

.cta-button {
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(252, 163, 17, 0.3);
}

/* Melhorias nos Social Icons */
.social-icons a {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    background-color: var(--accent-color);
    color: white !important;
}

/* Animações de Scroll Aprimoradas */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-left {
    opacity: 0;
    transform: translateX(-50px);
}

.animate-right {
    opacity: 0;
    transform: translateX(50px);
}

.animate-up {
    opacity: 0;
    transform: translateY(50px);
}

.animate-down {
    opacity: 0;
    transform: translateY(-50px);
}

.animate-zoom {
    opacity: 0;
    transform: scale(0.5);
}

.animate-left.in-view {
    animation: fadeInLeft 0.8s forwards;
}

.animate-right.in-view {
    animation: fadeInRight 0.8s forwards;
}

.animate-up.in-view {
    animation: fadeInUp 0.8s forwards;
}

.animate-down.in-view {
    animation: fadeInDown 0.8s forwards;
}

.animate-zoom.in-view {
    animation: zoomIn 0.8s forwards;
}

/* Delay de animações */
.delay-200 {
    animation-delay: 0.2s !important;
}

.delay-400 {
    animation-delay: 0.4s !important;
}

.delay-600 {
    animation-delay: 0.6s !important;
}

.delay-800 {
    animation-delay: 0.8s !important;
}

/* Formulário de Contato Estilizado */
.contact-form-block {
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px;
    overflow: hidden;
}

.contact-form-block:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eaeaea;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(252, 163, 17, 0.2);
    outline: none;
    background-color: #fff;
}

.form-group input:focus + label,
.form-group select:focus + label,
.form-group textarea:focus + label {
    color: var(--accent-color);
}

.contact-form .cta-button {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border: none;
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form .cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(252, 163, 17, 0.3);
}

/* Mensagem de sucesso do formulário */
.form-success-message {
    display: none;
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    animation: fadeInUp 0.5s forwards;
}

.form-error-message {
    display: none;
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    animation: fadeInUp 0.5s forwards;
}

/* Media Queries para Responsividade */
@media (max-width: 992px) {
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .project-card {
        transform: none !important;
    }
    
    .project-card:hover {
        transform: translateY(-10px) !important;
    }
    
    .contact-form-block {
        padding: 30px 20px;
    }
    
    .hero-video-background video {
        height: 100%;
        width: auto;
        max-width: none;
    }
    
    /* Alternativa para dispositivos que não suportam autoplay */
    .hero-fallback-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(rgba(20, 33, 61, 0.7), rgba(20, 33, 61, 0.7)), url('../images/hero-bg.jpg');
        background-size: cover;
        background-position: center;
        display: none;
        z-index: 0;
    }
}

/* Otimizações para carregar o vídeo sem afetar a performance */
@media (prefers-reduced-data: reduce) {
    .hero-video-background {
        display: none;
    }
    
    .hero-fallback-background {
        display: block !important;
    }
}

/* Verificação de vídeo em pausa para dispositivos que não suportam autoplay */
.video-paused .hero-video-background {
    opacity: 0;
}

.video-paused .hero-fallback-background {
    display: block;
}

/* Estilos mínimos para o efeito parallax do vídeo */
.hero-video-background {
    will-change: transform;
}

.hero-video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

/* Contenção do vídeo na seção hero */
.hero {
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    will-change: transform;
    z-index: 0;
}

/* Garantir que as seções abaixo do hero fiquem acima do vídeo */
.about-preview,
section:not(.hero):not(.featured-projects) {
    position: relative;
    z-index: 3;
    background-color: #fff;
}

/* Seção featured-projects com a cor de fundo corrigida */
.featured-projects {
    position: relative;
    z-index: 3;
    background-color: var(--secondary-color);
}

/* Responsividade aprimorada para Hero Section */
@media (max-width: 1200px) {
    .hero-content {
        max-width: 650px;
        margin-left: 8%;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .hero {
        height: 100vh;
    }
    
    .hero-content {
        max-width: 550px;
        margin-left: 5%;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    /* Ajuste do parallax para telas médias */
    .hero-video-background {
        transform: none !important;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 100vh;
        align-items: center;
        justify-content: center;
        padding-top: 0;
    }
    
    .hero-content {
        max-width: 90%;
        margin: 0 auto;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.3rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-transition-image {
        bottom: -1px;
    }
    
    /* Ajustes para vídeo em mobile */
    .hero-video-background video {
        width: 100%;
        height: 100%;
        transform: translateX(-50%) translateY(-50%) scale(1.2);
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 100vh;
        padding-top: 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-content .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Ajustes específicos para dispositivos em orientação paisagem */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        padding-top: 0;
    }
    
    .hero-content {
        max-width: 80%;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
}

/* Filtro de Empreendimentos */
.filter-container {
    margin-bottom: 40px;
    padding: 25px;
    background-color: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-box {
    display: flex;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #eaeaea;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(252, 163, 17, 0.2);
}

.search-button {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background-color: #e9940a;
}

.filter-selects {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.select-container {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.filter-select {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    appearance: none;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(252, 163, 17, 0.2);
}

.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    pointer-events: none;
}

.clear-filter-button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.clear-filter-button:hover {
    background-color: #d9d9d9;
}

.clear-filter-button i {
    font-size: 0.8rem;
}

.filter-results {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.filter-results span {
    font-weight: 600;
    color: var(--accent-color);
}

/* Media queries para o filtro */
@media (min-width: 768px) {
    .filter-wrapper {
        flex-direction: row;
        align-items: center;
    }
    
    .search-box {
        width: 40%;
        margin-right: 20px;
    }
    
    .filter-selects {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .filter-selects {
        justify-content: space-between;
    }
    
    .select-container {
        flex: 0 0 calc(50% - 10px);
    }
    
    .clear-filter-button {
        flex: 1;
        justify-content: center;
        margin-top: 10px;
    }
}

/* Classes para controlar a visibilidade dos cards */
.project-card.hidden {
    display: none;
}

.no-results-message {
    text-align: center;
    padding: 30px;
    font-size: 1.2rem;
    color: var(--text-color);
    background-color: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 20px 0;
}

/* Estilos para a seção de investimento */
.investment-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 400px;
    width: 100%;
}

.investment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.investment-image:hover img {
    transform: scale(1.05);
}

.investment-text {
    padding-right: 30px;
}

.investment-text h2 {
    margin-bottom: 20px;
}

.investment-text p {
    margin-bottom: 25px;
    line-height: 1.7;
}

/* Correções responsivas para a seção de investimento */
@media (max-width: 992px) {
    .investment-grid {
        gap: 40px;
    }

    .investment-image {
        height: 350px;
        margin: 0 auto;
        max-width: 600px;
    }

    .investment-text {
        padding-right: 0;
        text-align: center;
    }

    .investment-benefits {
        display: inline-block;
        text-align: left;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .investment-image {
        height: 300px;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .investment-image {
        height: 250px;
    }
}

/* Estilos para logos de parceria */
.parceria-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}
.parceria-logo span {
    margin-right: 10px;
    color: #777;
}
.parceria-logo img {
    height: 30px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.parceria-logo img:hover {
    opacity: 1;
} 