/* ==========================================================================
   Vitale Prainha — Teaser
   ========================================================================== */

/* Fonts
   ========================================================================== */
@font-face {
    font-family: "Summer Grupole";
    src: url("../fonts/SummerGrupoleRegular.woff2?v=2109954c77f4") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Nunito";
    src: url("../fonts/Nunito-VariableFont_wght.ttf?v=5c6862b14b1b") format("truetype");
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}

/* Base
   ========================================================================== */
:root {
    --blue: #27669b;
    --blue-deep: #27669b;
    --orange: #f5853e;
    --orange-badge: #f48c4a;
    --cream: #fff6f0;
    --white: #ffffff;
    --placeholder: #777777;
    --display: "Summer Grupole", "Arial Narrow", Arial, sans-serif;
    --body: "Nunito", Arial, Helvetica, sans-serif;
    /* Coluna de conteúdo: logo e formulário sempre partem do mesmo eixo */
    --content-left: 13.8%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100%;
    font-family: var(--body);
    background: var(--blue);
    color: var(--blue);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

:focus-visible {
    outline: 1px solid var(--orange-badge);
    outline-offset: 1px;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100;
    padding: 12px 18px;
    background: var(--cream);
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Page
   ========================================================================== */
.page {
    position: relative;
    min-height: max(100svh, 600px);
    background-color: var(--blue);
    overflow: hidden;
}

.hero {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Full-bleed hero photo (art-directed via <picture>) */
.hero__bg {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 0;
    pointer-events: none;
}

.hero__bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Decorative frames
   ========================================================================== */
.decor {
    display: block;
    position: absolute;
    top: 0;
    width: clamp(260px, 21vw, 470px);
    height: auto;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.decor img {
    display: block;
    width: 100%;
    height: auto;
    -webkit-user-drag: none;
}

.decor--left {
    left: 0;
}

.decor--right {
    right: 0;
    transform: scaleX(-1);
}

/* Brand
   ========================================================================== */
.brand {
    position: absolute;
    left: var(--content-left);
    top: 14.15%;
    width: clamp(260px, 19vw, 380px);
    max-width: 464px;
    z-index: 3;
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
    margin: auto;
}

/* Offer
   ========================================================================== */
.offer {
    position: absolute;
    left: 47.05%;
    top: 14.15%;
    width: max-content;
    min-width: 280px;
    z-index: 3;
}

.offer__title {
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(35px, 2.78vw, 56px);
    line-height: 0.82;
    color: var(--white);
    white-space: nowrap;
}

.offer__title-line {
    display: block;
}

.offer__title-line--one {
    letter-spacing: 0.32em;
}

.offer__title-line--two {
    letter-spacing: 0.1em;
}

.offer__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: clamp(14px, 1.05vw, 21px);
}

.rooms {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: clamp(340px, 21.7vw, 434px);
    column-gap: clamp(24px, 1.8vw, 36px);
    row-gap: clamp(8px, 0.5vw, 10px);
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.room__title {
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(33px, 2.08vw, 42px);
    line-height: 1;
    color: var(--blue);
    white-space: nowrap;
}

.room + .room {
    margin-top: 0;
}

.room__suite {
    margin: -0.13em 0 0;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(26px, 1.65vw, 33px);
    line-height: 1;
    color: var(--orange);
    white-space: nowrap;
}

.room__parking {
    margin: 0.08em 0 0;
    font-family: var(--body);
    font-weight: 400;
    font-size: clamp(16px, 1.1vw, 22px);
    line-height: 1.25;
    color: var(--blue);
    white-space: nowrap;
}

.room__parking--inline {
    display: inline;
    margin: 0 0 0 0.18em;
    font-size: 0.62em;
    line-height: 1;
    vertical-align: 0.02em;
}

.badge {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: clamp(120px, 8.05vw, 161px);
    aspect-ratio: 158 / 68;
    margin: clamp(20px, 1.15vw, 23px) 0 0;
    padding: 0 0.4em;
    background: var(--orange-badge);
    color: var(--white);
    font-family: var(--body);
    font-weight: 800;
    font-size: clamp(11px, 0.95vw, 19px);
    line-height: 1.12;
    text-align: center;
    letter-spacing: 0.01em;
}

/* Mobile scroll cue (hidden on desktop) */
.scroll-cue {
    display: none;
}

/* Form
   ========================================================================== */
.form-section {
    position: absolute;
    left: var(--content-left);
    top: 35.4%;
    width: clamp(260px, 19vw, 380px);
    z-index: 4;
}

.form-title {
    margin: 0 0 clamp(26px, 1.85vw, 37px);
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(40px, 2.45vw, 49px);
    line-height: 1;
    letter-spacing: 0.03em;
    color: var(--blue);
    text-align: center;
}

.lead-form {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.field {
    position: relative;
    margin: 0 0 clamp(8px, 0.5vw, 10px);
}

.field:last-of-type {
    margin-bottom: clamp(24px, 2vw, 40px);
}

.field__input {
    display: block;
    width: 100%;
    height: clamp(42px, 2.2vw, 44px);
    padding: 0 clamp(14px, 1.25vw, 25px);
    border: 0;
    border-radius: 3px;
    background: var(--cream);
    color: #000000;
    font-family: var(--body);
    font-size: clamp(14px, 0.85vw, 17px);
    line-height: 1;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.18s ease;
}

.field .iti {
    display: block;
    width: 100%;
}

.field .iti input.field__input {
    width: 100%;
}

.iti__selected-dial-code,
.iti__dial-code {
    color: #000;
}

.field__input::placeholder {
    color: var(--placeholder);
    opacity: 1;
}

.field__input:focus {
    box-shadow: 0 0 0 3px rgba(244, 140, 74, 0.6);
}

.field.has-error .field__input {
    box-shadow: 0 0 0 2px #d93025;
}

.field__error {
    display: none;
    margin: 5px 2px 0;
    color: #ffe0d8;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

.field.has-error .field__error {
    display: block;
}

.submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 63%;
    height: clamp(44px, 2.4vw, 48px);
    padding: 0 16px;
    border: 0;
    border-radius: 0;
    background: var(--orange-badge);
    color: var(--white);
    font-family: var(--display);
    font-size: clamp(22px, 1.4vw, 28px);
    line-height: 1;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.submit:hover {
    background: #e67f3c;
}

.submit:active {
    transform: translateY(1px);
}

.submit:disabled {
    cursor: progress;
    opacity: 0.75;
}

.form-status {
    display: none;
    margin: 14px 0 0;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

.form-status.is-visible {
    display: block;
}

.form-status.is-error {
    color: #ffe0d8;
}

/* Footer
   ========================================================================== */
.site-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    padding: 0 4.85vw 4.2vh 2.5vw;
    z-index: 4;
}

.legal {
    order: 1;
    flex: 0 0 43.75vw;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--body);
    font-size: clamp(5.5px, 0.28vw, 7px);
    line-height: 1.45;
    text-align: justify;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.address {
    order: 2;
    display: flex;
    align-items: flex-start;
    gap: clamp(8px, 0.65vw, 13px);
    margin: 0 0 0 1.65vw;
    font-family: var(--display);
    font-size: clamp(20px, 1.52vw, 30px);
    font-style: normal;
    line-height: 1.08;
    letter-spacing: 0.02em;
    color: var(--white);
    white-space: nowrap;
}

.address svg {
    flex: 0 0 auto;
    width: clamp(22px, 1.6vw, 32px);
    height: auto;
    margin-top: 0.08em;
}

.credits {
    order: 3;
    display: flex;
    align-items: flex-start;
    gap: clamp(24px, 2.6vw, 52px);
    margin-left: auto;
}

.credit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.credit__label {
    margin: 0;
    color: var(--white);
    font-family: var(--body);
    font-size: clamp(7px, 0.65vw, 13px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.14em;
    white-space: nowrap;
}

.credit__logo {
    height: auto;
}

.credit__logo--vitale {
    width: clamp(90px, 6.55vw, 131px);
    margin-top: clamp(10px, 1.25vw, 25px);
}

.credit__note {
    margin: 0.2em 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--body);
    font-size: clamp(5px, 0.32vw, 6.5px);
    line-height: 1;
    letter-spacing: 0.18em;
    white-space: nowrap;
}

.credit__logo--caixa {
    flex: 0 0 auto;
    width: clamp(132px, 10vw, 162px);
}

@media screen and (min-width: 901px) and (max-width: 1200px) {
    .site-footer {
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 12px 18px;
        padding: 0 4vw 3vh;
    }

    .address {
        flex: 1 1 220px;
        margin: 0;
    }

    .credits {
        flex: 0 0 auto;
        gap: clamp(24px, 3vw, 36px);
        margin-left: 0;
    }

    .credit {
        flex: 0 0 auto;
    }

    .legal {
        order: 4;
        flex: 0 0 100%;
        width: 100%;
        margin: 0;
    }
}

/* ==========================================================================
   Mobile / tablet
   ========================================================================== */
@media screen and (max-width: 900px) {
    html {
        scroll-padding-top: 16px;
    }

    .page {
        min-height: 100svh;
        background-color: var(--blue);
        overflow: visible;
    }

    .hero {
        position: relative;
        inset: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 100svh;
        padding: 100px 5vw 0;
        background-color: #4f9ec0;
        overflow: hidden;
    }

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(8, 48, 78, 0.42) 0%, rgba(8, 48, 78, 0) 38%);
        pointer-events: none;
        z-index: 1;
    }

    .hero::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 20%;
        background: linear-gradient(to bottom, rgba(39, 102, 155, 0) 0%, var(--blue) 92%);
        pointer-events: none;
        z-index: 1;
    }

    .decor {
        width: clamp(150px, 38vw, 240px);
        z-index: 2;
    }

    .brand {
        position: relative;
        left: auto;
        top: auto;
        width: min(calc(100% - 4vw), 480px);
        max-width: none;
        margin-top: 0;
        z-index: 3;
    }

    .brand img {
        max-width: 280px;
    }

    .offer {
        position: relative;
        left: auto;
        top: auto;
        width: min(100%, 560px);
        min-width: 0;
        margin: clamp(18px, 5vw, 40px) 0 auto;
        padding: 0;
        background: none;
        border-radius: 0;
        box-shadow: none;
        text-align: center;
        z-index: 3;
    }

    .offer__title {
        color: var(--white);
        font-size: clamp(18px, 5vw, 40px);
        line-height: 0.9;
        text-shadow: 0 3px 22px rgba(4, 32, 53, 0.35);
    }

    .offer__title-line {
        display: inline;
    }

    .offer__title-line--one {
        margin-right: -0.16em;
        letter-spacing: 0.16em;
    }

    .offer__title-line--two {
        margin-right: -0.05em;
        letter-spacing: 0.05em;
    }

    .offer__body {
        flex-direction: column;
        align-items: center;
        gap: clamp(14px, 4vw, 22px);
        margin-top: clamp(16px, 4vw, 22px);
    }

    .rooms {
        grid-template-columns: repeat(2, max-content);
        justify-content: center;
        width: auto;
        column-gap: clamp(14px, 4.5vw, 24px);
        row-gap: clamp(10px, 2.6vw, 15px);
        text-align: left;
    }

    .room__title {
        font-size: clamp(23px, 6.4vw, 34px);
        color: var(--blue);
        text-shadow: 0 1px 8px rgba(255, 255, 255, 0.22);
    }

    .room + .room {
        margin-top: 0;
    }

    .room__suite {
        font-size: clamp(19px, 5.2vw, 27px);
    }

    .room__parking {
        font-size: clamp(13px, 3.6vw, 18px);
    }

    .badge {
        width: clamp(96px, 28vw, 130px);
        margin-top: 0;
        font-size: clamp(12px, 3.2vw, 15px);
    }

    .scroll-cue {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 20px;
        margin: 0 0 clamp(22px, 6vw, 36px);
        border-radius: 7px;
        background: var(--orange-badge);
        color: var(--white);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
        z-index: 3;
        transition: transform 0.2s ease, background-color 0.2s ease;
    }

    .scroll-cue:hover {
        background: #e67f3c;
        transform: translateY(2px);
    }

    .scroll-cue svg {
        display: block;
    }

    .form-section {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        padding: clamp(42px, 12vw, 70px) 6vw clamp(46px, 12vw, 72px);
        background: var(--blue);
        z-index: 3;
    }

    .form-title {
        margin-bottom: clamp(22px, 6vw, 34px);
        color: var(--white);
        font-size: clamp(34px, 10vw, 50px);
    }

    .lead-form {
        width: min(100%, 480px);
        margin: 0 auto;
    }

    .field {
        margin-bottom: 10px;
    }

    .field:last-of-type {
        margin-bottom: clamp(22px, 6vw, 32px);
    }

    .field__input {
        padding: 0 18px;
        font-size: 16px;
    }

    .field__error {
        font-size: 12px;
    }

    .submit {
        width: 100%;
        height: clamp(52px, 14vw, 60px);
        font-size: clamp(22px, 6.5vw, 30px);
    }

    .form-status {
        font-size: 14px;
    }

    .site-footer {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        display: block;
        padding: 0px 6vw clamp(30px, 8vw, 44px);
        background: var(--blue-deep);
        z-index: 3;
    }

    .address {
        order: 1;
        justify-content: center;
        margin: 0 auto;
        font-size: clamp(20px, 5.8vw, 28px);
        line-height: 1.1;
        white-space: normal;
    }

    .address svg {
        width: 24px;
        margin-top: 0.1em;
    }

    .credits {
        order: 2;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: clamp(28px, 10vw, 60px);
        width: 100%;
        margin: clamp(28px, 8vw, 40px) 0 0;
    }

    .credit {
        flex: 0 0 auto;
    }

    .credit__label {
        font-size: 9px;
        letter-spacing: 0.12em;
    }

    .credit__logo--vitale {
        width: 100px;
        margin-top: 8px;
    }

    .credit__note {
        font-size: 7px;
    }

    .credit__logo--caixa {
        width: 132px;
    }

    .legal {
        order: 3;
        flex: none;
        width: 100%;
        margin-top: clamp(28px, 8vw, 40px);
        padding-top: clamp(20px, 6vw, 28px);
        border-top: 1px solid rgba(255, 255, 255, 0.18);
        color: rgba(255, 255, 255, 0.72);
        font-size: 9px;
        line-height: 1.55;
        text-align: justify;
    }
}

/* Tablets em retrato: mantém o conteúdo acima da família da foto */
@media screen and (min-width: 201px) and (max-width: 900px) {
    .decor {
        width: clamp(170px, 24vw, 230px);
    }

    .brand {
        width: min(calc(100% - 4vw), 480px);
    }

    .offer {
        margin-top: clamp(16px, 3vw, 28px);
    }

    .offer__title {
        font-size: 23px;
    }

    .room__title {
        font-size: clamp(24px, 4vw, 26px);
    }

    .rooms {
        column-gap: clamp(18px, 3vw, 28px);
        row-gap: clamp(8px, 1.4vw, 12px);
    }

    .room__suite {
        font-size: clamp(20px, 3.2vw, 20.7px);
    }

    .room__parking {
        font-size: clamp(14px, 2.3vw, 17px);
    }

    .badge {
        width: clamp(96px, 15vw, 122px);
        font-size: clamp(12px, 1.9vw, 14px);
    }
}

/* Telas baixas (celulares antigos): comprime o topo para caber acima da foto */
@media screen and (max-width: 900px) and (max-height: 700px) {
    .hero__bg img {
        height: 116%;
        object-position: center top;
    }

    .brand {
        width: clamp(150px, 40vw, 220px);
    }

    .offer {
        margin-top: clamp(10px, 3vw, 18px);
    }

    .offer__title {
        font-size: clamp(18px, 5vw, 36px);
    }

    .offer__body {
        gap: 10px;
        margin-top: 14px;
    }

    .room__title {
        font-size: clamp(21px, 5.8vw, 28px);
    }

    .rooms {
        column-gap: 12px;
        row-gap: 7px;
    }

    .room__suite {
        font-size: clamp(18px, 4.8vw, 23px);
    }

    .room__parking {
        font-size: clamp(12px, 3.4vw, 16px);
    }

    .badge {
        width: clamp(86px, 24vw, 110px);
        font-size: 11px;
    }

    .scroll-cue {
        width: 44px;
        height: 44px;
        margin-bottom: 16px;
    }
}

@media screen and (max-width: 380px) {
    .hero {
        padding-left: 4vw;
        padding-right: 4vw;
    }

    .offer__body {
        gap: clamp(14px, 4vw, 22px)
    }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}