/* ==========================================================================
   Verenna — responsivo (desktop / tablet / mobile)
   Ajustes de adaptação apenas. Não altera o visual desktop.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tablet (≤ 1024px)
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    :root {
        --container: min(70rem, calc(100% - 2rem));
        --space-section: clamp(2.5rem, 6vw, 4.5rem);
    }

    .hero__title {
        margin: 0;
    }

    .hero__title-logo {
        width: min(14rem, 40vw);
    }

    .hero__subtitle {
        width: min(max-content, 100%);
        max-width: calc(100% - 0.5rem);
        margin: 0.5rem auto 0;
        justify-items: center;
        text-align: center;
    }

    .hero__subtitle-line {
        white-space: nowrap;
        max-width: 100%;
    }

    .hero__leaf {
        width: min(96vw, 48rem);
    }

    /* Arquitetura — coluna central entre as torres (como no print) */
    .towers {
        height: auto;
        min-height: min(88vh, 48rem);
        padding: 2.75rem 1.25rem 3.25rem;
        align-items: start;
    }

    .towers__content {
        width: min(24rem, 52vw);
        margin: 0.5rem auto 0;
        gap: 2.5rem;
    }

    .towers__block--1 {
        justify-self: start;
    }

    .towers__block--2 {
        justify-self: end;
    }

    .towers__script {
        font-size: clamp(2.5rem, 6.5vw, 3.4rem);
    }

    .towers__title {
        font-size: clamp(0.9rem, 2vw, 1.05rem);
    }

    .towers__text {
        font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    }

    .pool {
        min-height: min(92vh, 48rem);
        padding: 2.25rem 1.25rem 2.75rem;
    }

    .pool__card {
        width: min(26rem, calc(100% - 1.5rem));
    }

    .vivapark {
        min-height: 0;
        padding: clamp(2rem, 4vw, 3rem) 0;
    }

    .vivapark__panel {
        width: min(78%, 34rem);
        margin-left: clamp(0.75rem, 3vw, 1.5rem);
        margin-right: auto;
    }

    .aerial__panel {
        width: min(26rem, calc(100% - 2rem));
        margin-right: clamp(1rem, 4vw, 2rem);
    }

    .amenities__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-flow: row;
        gap: 0.5rem 1.25rem;
    }

    .amenities__inner {
        width: min(56rem, calc(100% - 2rem));
    }

    .site-footer__inner {
        width: min(42rem, calc(100% - 2rem));
    }
}

/* --------------------------------------------------------------------------
   Mobile / tablet pequeno (≤ 720px)
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {
    :root {
        --header-h: 3.75rem;
        --container: min(70rem, calc(100% - 1.25rem));
        --fs-section: clamp(1.2rem, 5.8916vw, 1.55rem);
        --fs-lead: clamp(0.95rem, 4.0788vw, 1.1rem);
        --fs-body: clamp(0.9rem, 3.8522vw, 1rem);
        --fs-small: clamp(0.8rem, 3.5123vw, 0.88rem);
    }

    .btn {
        min-height: 2.85rem;
        width: 100%;
        max-width: 22rem;
        padding: 0.9rem 1.35rem;
        font-size: 0.95rem;
    }

    /* Hero */
    .hero__content {
        width: min(34rem, calc(100% - 1.25rem));
        padding: clamp(1.75rem, 5vh, 2.75rem) 0.75rem 0;
        box-sizing: border-box;
    }

    .hero__leaf {
        display: none;
    }

    .hero__logos {
        flex-wrap: wrap;
        gap: 0.5rem 0.7rem;
        margin-bottom: 1rem;
        max-width: 100%;
    }

    .hero__logos-divider {
        height: 1.44rem;
    }

    .hero__logo--vivapark {
        height: clamp(1.94rem, 7.5vw, 2.5rem);
        max-width: 42vw;
    }

    .hero__logo--conrado {
        height: clamp(1.5rem, 6vw, 1.94rem);
        max-width: 42vw;
    }

    .hero__title {
        margin: 0 0 0.35rem;
        max-width: 100%;
    }

    .hero__title-logo {
        width: min(12.5rem, 56vw);
    }

    .hero__subtitle {
        width: 100%;
        max-width: 100%;
        margin: 0.35rem auto 0;
        font-size: clamp(1.05rem, 4.2vw, 1.25rem);
        text-align: center;
        justify-items: center;
        box-sizing: border-box;
        padding-inline: 0.25rem;
    }

    .hero__subtitle-line {
        white-space: normal;
        max-width: 100%;
    }

    .hero__subtitle-script {
        font-size: 2.15em;
        margin-left: 0.15rem;
    }

    /* Arquitetura — mantém composição do print (Refúgio esq. / Presença dir.) */
    .towers {
        height: auto;
        min-height: min(78vh, 40rem);
        padding: 2rem 0.85rem 2.5rem;
        align-items: start;
    }

    .towers__bg {
        object-position: center 30%;
    }

    .towers__content {
        width: min(20.5rem, calc(100% - 1.5rem));
        margin: 0.25rem auto 0;
        gap: 2rem;
    }

    .towers__block,
    .towers__block--1,
    .towers__block--2 {
        width: 100%;
        max-width: 18.5rem;
    }

    .towers__block--1 {
        justify-self: start;
    }

    .towers__block--2 {
        justify-self: end;
    }

    .towers__heading {
        flex-wrap: nowrap;
        gap: 0.25rem 0.4rem;
    }

    .towers__block--1 .towers__heading {
        justify-content: flex-start;
    }

    .towers__block--2 .towers__heading {
        justify-content: flex-end;
    }

    .towers__script {
        font-size: clamp(2.15rem, 9.5vw, 2.85rem);
    }

    .towers__title {
        font-size: clamp(0.82rem, 3.4vw, 0.95rem);
        margin-bottom: 0.15em;
    }

    .towers__text {
        max-width: none;
        font-size: clamp(0.78rem, 3.2vw, 0.88rem);
        text-align: left;
        overflow-wrap: break-word;
    }

    .towers__block--2 .towers__text {
        max-width: none;
        margin-left: auto;
        text-align: right;
    }

    /* Pool / lazer */
    .pool {
        min-height: 38rem;
        padding: 1.75rem 0.85rem 2.25rem;
    }

    .pool__title {
        width: min(22rem, 100%);
        font-size: clamp(0.95rem, 3.8vw, 1.08rem);
    }

    .pool__card {
        width: min(21.5rem, calc(100% - 0.25rem));
        max-width: 100%;
        padding: 1.35rem 1.15rem;
        box-sizing: border-box;
    }

    .pool__features-list {
        gap: 0.8rem;
        width: 100%;
    }

    .pool__features-icon {
        flex-basis: 1.9rem;
        width: 1.9rem;
        height: 1.9rem;
    }

    .pool__features-text {
        font-size: clamp(0.9rem, 3.6vw, 1.02rem);
        overflow-wrap: break-word;
    }

    /* Balcony */
    .balcony {
        min-height: 30rem;
        padding: 1.75rem 1rem;
    }

    .balcony__card {
        width: min(40rem, 100%);
        margin: clamp(3.5rem, 14vh, 7rem) 0 1.25rem;
        padding: 1.5rem 1.2rem;
        box-sizing: border-box;
    }

    .balcony__text {
        overflow-wrap: break-word;
    }

    /* Contact / formulário */
    .contact {
        min-height: 0;
        padding: 2.5rem 1rem;
    }

    .contact__leaf {
        display: none;
    }

    .contact__panel {
        width: min(26rem, 100%);
        max-width: 100%;
        padding: 1.35rem 1.1rem 1.5rem;
        box-sizing: border-box;
    }

    .contact__title {
        font-size: clamp(1.35rem, 5.5vw, 1.65rem);
    }

    .contact__field input,
    .contact__field textarea {
        min-height: 3rem;
        padding: 0.95rem 1rem;
        font-size: 1rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact__field textarea {
        min-height: 7rem;
    }

    .contact__submit {
        min-height: 3rem;
        max-width: none;
    }

    /* Location — alinhamento à esquerda como no print */
    .location__scene {
        min-height: min(62vh, 30rem);
    }

    .location__copy {
        width: 100%;
        max-width: 100%;
        padding: 2.25rem 1.25rem 2rem 1.35rem;
        text-align: left;
        box-sizing: border-box;
    }

    .location__title,
    .location__subtitle,
    .location__text {
        text-align: left;
    }

    .location__title {
        font-size: clamp(1.45rem, 6vw, 1.85rem);
    }

    .location__subtitle {
        font-size: clamp(1rem, 4vw, 1.15rem);
        margin-bottom: 1.5rem;
    }

    .location__text {
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .location__map-wrap {
        padding: 1.5rem 1rem 2rem;
    }

    .location__map {
        width: 100%;
        height: 15rem;
        max-width: 100%;
    }

    /* Vivapark — imagem + painel empilhados, conteúdo sempre visível */
    .vivapark {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
        padding: 0;
        overflow: visible;
    }

    .vivapark__bg {
        position: relative;
        inset: auto;
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        min-height: 14rem;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        object-position: center center;
    }

    .vivapark__panel {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 1.5rem 1.15rem 1.85rem;
        box-sizing: border-box;
    }

    .vivapark__logo {
        height: clamp(2rem, 8vw, 2.6rem);
    }

    .vivapark__texts {
        gap: 1rem;
    }

    .vivapark__text {
        overflow-wrap: break-word;
        font-size: clamp(0.9rem, 3.6vw, 1rem);
    }

    .vivapark__badges {
        gap: 0.65rem;
        margin-top: 1rem;
    }

    .vivapark__badge img {
        height: clamp(3.25rem, 16vw, 4.5rem);
        max-width: min(5.5rem, 28vw);
    }

    /* Aerial */
    .aerial {
        min-height: 0;
        height: auto;
    }

    .aerial__stage {
        min-height: 0;
        display: block;
        height: auto;
    }

    .aerial__media,
    .aerial__media img {
        position: relative;
        inset: auto;
        width: 100%;
        min-height: 14rem;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .aerial__panel {
        width: 100%;
        margin: 0;
        border-radius: 0;
        background: #143333;
        backdrop-filter: none;
        box-sizing: border-box;
    }

    .aerial__label {
        font-size: 0.92rem;
        overflow-wrap: break-word;
    }

    .aerial__tour {
        padding: 1.1rem 1rem;
    }

    .aerial__tour-label {
        font-size: 1.05rem;
        white-space: normal;
        text-align: right;
    }

    .aerial__tour-qr {
        width: 4rem;
        flex-shrink: 0;
    }
/* Amenities / masterplan */
    .amenities__inner {
        width: min(40rem, calc(100% - 1.25rem));
        padding: 2.5rem 0 3rem;
        box-sizing: border-box;
    }

    .amenities__header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .amenities__title {
        text-align: center;
    }

    .amenities__map {
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .amenities__list {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-flow: row;
        gap: 0.55rem;
        width: 100%;
    }

    .amenities__item-label {
        font-size: 0.88rem;
        overflow-wrap: break-word;
    }

    /* Footer */
    .site-footer__inner {
        width: min(40rem, calc(100% - 1.25rem));
        padding: 2.35rem 0;
        box-sizing: border-box;
    }

    .site-footer__visit {
        font-size: 0.95rem;
    }

    .site-footer__address {
        font-size: 0.84rem;
        margin-bottom: 1.5rem;
        overflow-wrap: break-word;
    }

    .site-footer__social {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-footer__social-link {
        width: 2.85rem;
        height: 2.85rem;
    }

    .site-footer__legal {
        font-size: 0.7rem;
        max-width: 22rem;
        overflow-wrap: break-word;
    }
}

/* --------------------------------------------------------------------------
   Mobile estreito (≤ 480px)
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
    .hero__logos {
        gap: 0.4rem 0.55rem;
    }

    .towers {
        min-height: min(72vh, 36rem);
        padding: 1.65rem 0.65rem 2rem;
    }

    .towers__content {
        width: calc(100% - 1rem);
        gap: 1.65rem;
    }

    .towers__script {
        font-size: clamp(1.95rem, 11vw, 2.45rem);
    }

    .towers__title {
        font-size: 0.78rem;
    }

    .towers__text {
        font-size: 0.76rem;
        line-height: 1.45;
    }

    .hero__title-logo {
        width: min(11rem, 62vw);
    }

    .hero__subtitle-script {
        font-size: 1.85em;
        display: inline;
    }

    .pool {
        min-height: 34rem;
        padding: 1.5rem 0.65rem 2rem;
    }

    .pool__card {
        width: 100%;
        padding: 1.2rem 1rem;
    }

    .pool__features-text {
        font-size: 0.92rem;
    }

    .balcony__card {
        padding: 1.35rem 1rem;
    }

    .contact__panel {
        padding: 1.2rem 0.95rem 1.35rem;
    }

    .location__map {
        height: 13.5rem;
    }

    .vivapark__bg {
        min-height: 12rem;
        aspect-ratio: 16 / 11;
    }

    .vivapark__panel {
        margin: 0;
        padding: 1.25rem 1rem 1.5rem;
        gap: 0.9rem;
    }

    .vivapark__badge img {
        height: clamp(2.85rem, 18vw, 3.75rem);
        max-width: min(4.75rem, 26vw);
    }

    .aerial__item {
        gap: 0.65rem;
    }

    .aerial__icon {
        flex-basis: 2rem;
        width: 2rem;
        height: 2rem;
        background-size: 1.05rem;
    }

    .site-footer__social {
        gap: 0.55rem;
    }

    .site-footer__legal {
        max-width: 100%;
        padding-inline: 0.25rem;
    }
}
