@font-face {
    font-family: 'Gotham';
    src: url('/assets/assetsperplan/fonts/Gotham-Book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Gotham', 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    /* permitir scroll vertical no desktop */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-image: url(/assets/images/bg-site.png);
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 2rem;
    padding: 20px;
    /* permitir que cresça conforme o conteúdo */
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.row {
    display: flex;
    gap: 30px;
    margin: 0;
    flex: 1;
    align-items: center;
    width: 100%;
}

.perplan-incorporacao, 
.perplan-urbanismo {
    position: relative;
    width: 100%;
    /* usar min-height em vez de fixar altura para permitir scroll quando necessário */
    min-height: 650px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* garantir que o background pseudo-element seja cortado pelo border-radius do pai */
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    padding: 40px 20px;
    transition: transform 0.3s ease;
}

.perplan-incorporacao::before,
.perplan-urbanismo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 0;
    /* garantir que a imagem de fundo respeite o border-radius do pai */
    border-radius: 20px;
    /* garantir recorte dos cantos arredondados mesmo ao aplicar transform/scale */
    -webkit-clip-path: inset(0 round 20px);
    clip-path: inset(0 round 20px);
    transform-origin: center center;
    will-change: transform;
    pointer-events: none;
}

.perplan-incorporacao::before {
    background-image: url(/assets/assetsperplan/images/bg-perplan-incorporacao.png);
}

.perplan-urbanismo::before {
    background-image: url(/assets/assetsperplan/images/bg-perplan-urbanismo.png);
}

.perplan-incorporacao:hover::before,
.perplan-urbanismo:hover::before {
    transform: scale(1.05);
}

.content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    justify-content: space-between;
    padding: 20px 0;
}

.logo-box {
    margin-bottom: 20px;
    flex: 0 0 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.card-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    text-align: center;
    padding-top: 50px;
}

.logo-box svg {
    max-width: 160px;
    height: auto;
}

.title {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-transform: none;
    letter-spacing: 0;
}

.tagline {
    color: #fff;
    font-size: 1.35rem;
    font-style: normal;
    text-align: center;
    max-width: 85%;
    margin: 0 auto 15px auto;
    line-height: 1.4;
    font-weight: 400;
}

.description {
    color: #fff;
    font-size: 1rem;
    font-style: normal;
    text-align: center;
    max-width: 70%;
    margin: 0 auto 30px auto;
    line-height: 1.4;
    opacity: 0.9;
}

.btn {
    padding: 14px 40px;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.btn svg {
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn-blue {
    background: rgba(0, 56, 101, 0.4);
}

.btn-blue:hover {
    background: rgba(0, 56, 101, 0.6);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.35);
}

.btn-green {
    background: rgba(78, 103, 46, 0.4);
}

.btn-green:hover {
    background: rgba(78, 103, 46, 0.6);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.35);
}

.mission-footer {
    margin-top: 40px;
    text-align: center;
    width: 100%;
    color: #444;
}

.mission-footer hr {
    border: 0;
    border-top: 1px solid #ddd;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.mission-footer p {
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    font-weight: 300;
    padding: 0 20px;
    /* permitir quebra de linha para que o texto não fique escondido */
    white-space: normal;
}

.mission-footer strong {
    font-weight: 700;
    color: #222;
}

.footer {
    text-align: center;
    padding: 30px 0;
    font-size: 0.8rem;
    color: #999;
}

.footer a {
    color: #666;
    text-decoration: none;
}

/* Responsividade Rápida */
@media (max-width: 992px) {
    body, html {
        height: auto;
        overflow: auto;
    }

    .container {
        padding: 40px 20px;
    }

    .row {
        flex-direction: column;
        gap: 30px;
    }

    .perplan-incorporacao, 
    .perplan-urbanismo {
        height: auto;
        min-height: 500px;
    }

    .title {
        font-size: 1.8rem;
    }
    
    .mission-footer p {
        white-space: normal;
        font-size: 1.1rem;
    }
}