/* ==========================================================================
   SEÇÃO CONTATO - INOVANOC (REDESENHADA)
   Design moderno e interativo para a seção de contato
   ========================================================================== */

.contact {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--primary-blue) 50%, var(--blue-light) 100%);
    color: var(--white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Elementos decorativos de fundo */
.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 138, 0, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(0, 138, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.03) 0%, transparent 25%);
    animation: contactFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes contactFloat {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    25% {
        transform: translateX(20px) translateY(-30px) rotate(1deg);
    }
    50% {
        transform: translateX(-15px) translateY(-20px) rotate(-0.5deg);
    }
    75% {
        transform: translateX(10px) translateY(-40px) rotate(0.8deg);
    }
}

/* NOVA ESTRUTURA: Header centralizado + Grid */
.contact-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.contact-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--primary-green);
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
}

.contact-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 700;
    line-height: 1.1;
    position: relative;
}

.contact-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-green);
    border-radius: 2px;
}

.contact-tagline {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
    line-height: 1.4;
    color: var(--white);
}

.contact-description {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Grid com informações e ilustração */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

/* Informações de contato */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.contact-item:hover::before {
    left: 100%;
}

.contact-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 138, 0, 0.3);
}

.contact-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-green), var(--green-light));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item:hover .contact-icon::after {
    opacity: 1;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--white);
    transition: var(--transition);
}

.contact-item:hover .contact-icon i {
    transform: scale(1.1);
}

.contact-details h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: 600;
}

.contact-details span {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* CTA Button especial para contato */
.contact-cta {
    background: var(--primary-green);
    color: var(--white);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    box-shadow: 0 6px 25px rgba(0, 138, 0, 0.4);
    border: 2px solid transparent;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.contact-cta:hover::before {
    left: 100%;
}

.contact-cta:hover,
.contact-cta:focus {
    background: var(--green-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0, 138, 0, 0.5);
    border-color: var(--green-light);
}

.contact-cta:active {
    background: #005C00;
    transform: translateY(-1px);
}

.contact-cta i {
    font-size: 1.3em;
    transition: var(--transition);
}

.contact-cta:hover i {
    transform: scale(1.1);
}

/* Área da ilustração */
.contact-illustration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-illustration::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 138, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.1;
    }
}

.contact-illustration img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: var(--radius);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 8px 20px rgba(0, 138, 0, 0.2);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.contact-illustration img:hover {
    transform: scale(1.02) rotate(1deg);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 12px 30px rgba(0, 138, 0, 0.3);
}

/* Elementos decorativos extras */
.contact-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.contact-floating-element {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-green);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.contact-floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.contact-floating-element:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.contact-floating-element:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.contact-floating-element:nth-child(4) {
    top: 40%;
    right: 25%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */

@media (max-width: 1024px) {
    .contact-content {
        gap: 3rem;
    }

    .contact-header h2 {
        font-size: 2.5rem;
    }

    .contact-tagline {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 4rem 0;
    }

    .contact-header {
        margin-bottom: 3rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-header h2 {
        font-size: 2.2rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .contact-item:nth-child(odd) {
        transform: translateX(-10px);
    }

    .contact-item:nth-child(even) {
        transform: translateX(10px);
    }

    .contact-item:hover {
        transform: translateY(-3px) translateX(0);
    }

    .contact-illustration {
        order: -1;
    }

    .contact-illustration img {
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 3rem 0;
    }

    .contact-header {
        margin-bottom: 2rem;
    }

    .contact-content {
        gap: 2rem;
    }

    .contact-header h2 {
        font-size: 1.8rem;
    }

    .contact-tagline {
        font-size: 1.1rem;
    }

    .contact-description {
        font-size: 1rem;
    }

    .contact-item {
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
    }

    .contact-icon i {
        font-size: 1.2rem;
    }

    .contact-details h4 {
        font-size: 1.1rem;
    }

    .contact-details span {
        font-size: 0.9rem;
    }

    .contact-cta {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }

    .contact-illustration img {
        max-width: 300px;
    }
}

/* Animações de entrada */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.1s;
}

.fade-in-delay-2 {
    animation-delay: 0.2s;
}

.fade-in-delay-3 {
    animation-delay: 0.3s;
}

.fade-in-delay-4 {
    animation-delay: 0.4s;
}

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