/**
 * RAYZA IMÓVEIS - Página de Contato
 * Paleta: Vinho (#7A2E2E), Dourado (#D3A35E), Bege (#E9D7C6/#F5EDE4)
 * ============================================
 */

/* ==========================================
   HERO DESC
   ========================================== */

.page-hero__desc {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   CONTATO MAIN
   ========================================== */

.contato-main {
    padding: 6rem 0;
    background: #fff;
}

.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: start;
}

/* ==========================================
   COLUNA DE INFORMAÇÕES
   ========================================== */

.contato-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contato-info__header .subtitulo {
    margin-bottom: 0.5rem;
}

.contato-info__header h2 {
    font-family: var(--fonte-titulo);
    font-size: 2.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contato-info__texto {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
}

/* ==========================================
   LISTA DE CONTATOS
   ========================================== */

.contato-lista {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contato-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: #F5EDE4;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contato-item:hover {
    background: #fff;
    border-color: #D3A35E;
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(122, 46, 46, 0.1);
}

.contato-item__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #7A2E2E;
    border-radius: 12px;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contato-item:hover .contato-item__icon {
    background: #D3A35E;
}

.contato-item__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contato-item__label {
    font-size: 0.8125rem;
    color: #7A2E2E;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contato-item__valor {
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 500;
}

/* ==========================================
   HORÁRIO DE ATENDIMENTO
   ========================================== */

.contato-horario {
    background: #F5EDE4;
    padding: 1.5rem;
    border-radius: 12px;
}

.contato-horario__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(122, 46, 46, 0.15);
}

.contato-horario__header i {
    color: #7A2E2E;
    font-size: 1.125rem;
}

.contato-horario__header span {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1a;
}

.contato-horario__lista {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contato-horario__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contato-horario__item span:first-child {
    font-size: 0.9375rem;
    color: #666;
}

.contato-horario__item span:last-child {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #7A2E2E;
}

/* ==========================================
   REDES SOCIAIS
   ========================================== */

.contato-redes {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contato-redes > span {
    font-size: 0.9375rem;
    color: #666;
    font-weight: 500;
}

.contato-redes__links {
    display: flex;
    gap: 0.75rem;
}

.contato-redes__links a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5EDE4;
    border-radius: 10px;
    color: #7A2E2E;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contato-redes__links a:hover {
    background: #7A2E2E;
    color: #fff;
    transform: translateY(-3px);
}

/* ==========================================
   FORMULÁRIO
   ========================================== */

.contato-formulario__box {
    background: #F5EDE4;
    padding: 2.5rem;
    border-radius: 16px;
}

.contato-formulario__header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(122, 46, 46, 0.1);
}

.contato-formulario__header h3 {
    font-family: var(--fonte-titulo);
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.contato-formulario__header p {
    font-size: 0.9375rem;
    color: #666;
}

/* Form Contato */
.form-contato {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-grupo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-grupo label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
}

.obrigatorio {
    color: #7A2E2E;
}

.form-input-wrapper {
    position: relative;
}

.form-input-wrapper > i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.form-input-wrapper textarea ~ i,
.form-input-wrapper > i:has(+ textarea) {
    top: 1.125rem;
    transform: none;
}

.form-input-wrapper input,
.form-input-wrapper select,
.form-input-wrapper textarea {
    width: 100%;
    padding: 0.9375rem 1rem 0.9375rem 2.75rem;
    background: #fff;
    border: 2px solid #E9D7C6;
    border-radius: 10px;
    font-size: 0.9375rem;
    color: #1a1a1a;
    font-family: var(--fonte-principal);
    transition: all 0.3s ease;
}

.form-input-wrapper textarea {
    resize: vertical;
    min-height: 130px;
    padding-top: 0.9375rem;
}

.form-input-wrapper input:hover,
.form-input-wrapper select:hover,
.form-input-wrapper textarea:hover {
    border-color: #D3A35E;
}

.form-input-wrapper input:focus,
.form-input-wrapper select:focus,
.form-input-wrapper textarea:focus {
    outline: none;
    border-color: #7A2E2E;
    box-shadow: 0 0 0 3px rgba(122, 46, 46, 0.1);
}

.form-input-wrapper input::placeholder,
.form-input-wrapper textarea::placeholder {
    color: #999;
}

.form-input-wrapper select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237A2E2E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* Alertas */
.alerta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
}

.alerta i {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.alerta--sucesso {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alerta--erro {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Botão Submit */
.btn--full {
    width: 100%;
}

.btn--primario {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #7A2E2E;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn--primario:hover {
    background: #5c2323;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 46, 46, 0.3);
}

/* ==========================================
   MAPA
   ========================================== */

.mapa-section {
    background: #F5EDE4;
    padding: 0;
}

.mapa-wrapper {
    width: 100%;
    height: 450px;
}

.mapa-wrapper iframe {
    display: block;
    width: 100%;
    height: 100%;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.mapa-wrapper:hover iframe {
    filter: grayscale(0%);
}

/* ==========================================
   CTA
   ========================================== */

.cta-contato {
    background: #7A2E2E;
    padding: 4rem 0;
}

.cta-contato__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-contato__texto {
    flex: 1;
}

.cta-contato__texto .subtitulo {
    color: #D3A35E;
    margin-bottom: 0.5rem;
}

.cta-contato__texto h2 {
    font-family: var(--fonte-titulo);
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.cta-contato__texto p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.btn--dourado {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #D3A35E;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn--dourado:hover {
    background: #c49550;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(211, 163, 94, 0.4);
}

.btn--dourado i {
    font-size: 1.375rem;
}

/* ==========================================
   RESPONSIVO
   ========================================== */

@media (max-width: 1024px) {
    .contato-grid {
        gap: 3rem;
    }
    
    .contato-info__header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .contato-main {
        padding: 4rem 0;
    }
    
    .contato-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contato-info__header {
        text-align: center;
    }
    
    .contato-info__header h2 {
        font-size: 1.75rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contato-formulario__box {
        padding: 2rem 1.5rem;
    }
    
    .cta-contato__content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-contato__texto h2 {
        font-size: 1.5rem;
    }
    
    .mapa-wrapper {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .contato-main {
        padding: 3rem 0;
    }
    
    .contato-item {
        padding: 1rem 1.25rem;
    }
    
    .contato-item__icon {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }
    
    .contato-redes {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .contato-formulario__box {
        padding: 1.5rem 1.25rem;
    }
    
    .form-input-wrapper input,
    .form-input-wrapper select,
    .form-input-wrapper textarea {
        font-size: 16px; /* Previne zoom iOS */
    }
    
    .cta-contato {
        padding: 3rem 0;
    }
    
    .mapa-wrapper {
        height: 300px;
    }
}
