/* ================================================
   PRIM3 - Gestão de Condomínios
   style.css
   ================================================ */

/* --- Variáveis --- */
:root {
    --roxo-escuro: #3f0647;
    --roxo-medio: #6c3082;
    --cinza-claro: #f8f9fa;
    --branco: #ffffff;
    --borda: #dee2e6;
}

/* --- Base --- */
body {
    background-color: var(--branco);
    color: var(--roxo-escuro);
}

/* --- Navbar --- */
.navbar-custom {
    background-color: transparent;
    transition: background-color 0.3s, padding 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-custom.scrolled {
    background-color: var(--cinza-claro);
    padding: 10px 0;
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: var(--roxo-escuro) !important;
    font-size: 15px;
    padding: 8px 15px;
    margin: 0 6px;
}

.navbar-custom .nav-link:hover {
    color: var(--roxo-medio) !important;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%2831, 45, 61, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* --- Dropdown --- */
.dropdown-menu {
    background-color: var(--branco);
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: var(--roxo-escuro);
}

.dropdown-item:hover {
    background-color: var(--cinza-claro);
    color: var(--roxo-medio);
}

/* --- Header image --- */
.header-image {
    width: 100%;
    height: 500px;
    background: url('../img/paisagem.jpeg') no-repeat center center;
    background-size: cover;
    transition: opacity 0.5s ease;
    position: relative;
}

.header-image.hidden {
    opacity: 0;
}

/* --- Header content (index) --- */
.header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
    text-align: center;
    color: #fff;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.header-content.inactive {
    opacity: 0;
}

.header-content .text {
    flex: 1;
    text-align: left;
    margin-right: 20px;
    animation: slideInLeft 1s forwards;
    margin-top: 140px;
}

.header-content .logo {
    flex: 0;
    text-align: right;
    animation: slideInRight 1s forwards;
    margin-right: 160px;
}

.header-content .logo img {
    height: 300px;
    margin-top: 50px;
}

.highlighted-text {
    font-size: 1.5em;
    color: #ffffff;
}

/* Header menor para páginas internas */
.header-image-small {
    height: 300px;
}

/* --- Animações --- */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-100px); }
    to   { opacity: 1; transform: translateX(0); }
}

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

/* --- Main --- */
main {
    padding-top: 80px;
}

/* --- Info section --- */
.info-section {
    padding: 50px 0;
    background-color: var(--cinza-claro);
}

.info-section .info-left,
.info-section .info-right {
    padding: 20px;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.info-section .info-right {
    transform: translateX(50px);
}

.info-section .info-left.visible,
.info-section .info-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.info-section .info-left.border-right-divider {
    border-right: 1px solid var(--borda);
}

.info-section h2 {
    color: var(--roxo-medio);
}

/* --- Content sections (cards) --- */
.content-section {
    text-align: center;
    padding: 20px;
    color: var(--roxo-escuro);
    background-color: var(--cinza-claro);
    margin-bottom: 20px;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 0;
}

.content-section:hover {
    background-color: var(--branco);
    color: var(--roxo-medio);
}

.content-section i {
    font-size: 3em;
    margin-bottom: 10px;
    color: var(--roxo-escuro);
}

/* --- Form section --- */
.form-section {
    text-align: center;
    padding: 20px;
    color: var(--roxo-escuro);
    background-color: var(--cinza-claro);
    margin-bottom: 20px;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-section h2 {
    color: var(--roxo-medio);
    margin-bottom: 20px;
}

.form-section .form-control {
    border-color: #ced4da;
    margin-bottom: 15px;
    border-radius: 10px;
    padding: 12px;
    font-size: 18px;
}

.form-section .btn-primary {
    background-color: var(--roxo-medio);
    border-color: var(--roxo-medio);
    border-radius: 10px;
    padding: 10px 30px;
    font-size: 18px;
}

.form-section .btn-primary:hover {
    background-color: var(--roxo-escuro);
    border-color: var(--roxo-escuro);
}

/* --- History section (quemsomos) --- */
.history-section {
    padding: 60px 0;
    background-color: var(--branco);
}

.history-section h2 {
    color: var(--roxo-escuro);
    margin-bottom: 20px;
    font-size: 2.2em;
}

.history-section p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
}

.history-section .highlight {
    color: var(--roxo-medio);
    font-weight: bold;
}

.history-section .image-container {
    text-align: center;
}

.history-section .image-container img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- Footer --- */
.footer {
    position: relative;
    background: url('../img/paisagem.jpeg') no-repeat center center;
    background-size: cover;
    color: var(--roxo-medio);
    padding: 20px 0;
    border-top: 1px solid var(--borda);
}

.footer-content {
    position: relative;
    z-index: 2;
    color: var(--roxo-medio);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.footer .footer-logo img {
    height: 80px;
    transition: transform 0.2s;
}

.footer .footer-logo img:hover {
    transform: scale(1.1);
}

.footer .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.footer .contact-info p {
    margin: 0;
    text-align: center;
}

.footer .social-media {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}

.footer .social-media a {
    color: var(--roxo-medio);
    font-size: 1em;
    margin: 0 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.footer .social-media a:hover {
    color: var(--roxo-escuro);
}

.footer .social-media span {
    margin-left: 5px;
}

/* --- WhatsApp float --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #1ebd5a;
    color: white;
}

.whatsapp-float i {
    font-size: 30px;
}

/* --- Responsividade --- */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }

    .header-content .text {
        margin: 0;
        margin-top: 20px;
        text-align: center;
        font-size: 1.2em;
    }

    .header-content .logo {
        display: none;
    }

    .info-section .info-left.border-right-divider {
        border-right: none;
        border-bottom: 1px solid var(--borda);
    }
}
