/* ============================================================
   JOMO — Carasso Nadlan Landing Page
   Design source : Figma "JOMO" (K0QRJrUIEwCBCY9LDLlRkW)
   Stack         : Static HTML/CSS | Cloudflare Pages | RTL
   ============================================================ */


/* ── Design tokens ── */
:root {
    /* Brand colors */
    --c-salmon: #FABEAB;
    /* hero-left panel background     */
    --c-form-bar: #320E0E;
    /* form bar / footer background   */
    --c-yellow: #E0EBB1;
    /* mobile CTA button              */
    --c-white: #FFFFFF;
    --c-black: #4d1912;
    --c-light-blue: #D2EDF4;
    --c-text-body: #4d1912;
    /* body copy on salmon            */
    --c-fomo-bg: #E4D838;
    /* NO MORE FOMO badge fill        */
    --c-fomo-border: #1C1C1C;

    /* Typography */
    /* --ff-hebrew:  'Heebo', Arial, sans-serif; */
    --ff-hebrew: 'NotoSansHebrew', sans-serif;
    --ff-display: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;

    /* Layout */
    --hero-left-w: 28%;
    /* desktop salmon panel width    */
    --form-bar-h: 130px;
    /* desktop form bar height       */
    --footer-h: 52px;
    /* desktop footer height         */
    --radius: 0;
}


/* Sticky Button */

.phone-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--c-yellow);
    color: var(--c-black);
    text-align: center;
    padding: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: var(--radius);
    width: 100%;
    text-decoration: none;
    transition: background 0.15s;
}

.phone-cta:hover {
    background: #c4b830;
}

/* Фиксированное состояние */
.phone-cta.is-fixed {
    position: fixed;
    bottom: 3%;
    /* right: 0; */
    left: 5%;
    z-index: 100;
    border-radius: 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
    width: 50px;
    height: 50px;
    gap: 0;
    border-radius: 10px;
}

.phone-cta.is-fixed .call-text {
    font-size: 0;
}

/* Placeholder чтобы контент не прыгал */
.cta-anchor.is-placeholder {
    height: 56px;
}



.call-me {
    background-color: var(--c-yellow);
    text-align: center;
    padding: 0.5em 1em;
    font-weight: 900;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
    border-radius: var(--radius);
}

.phone-icon {
    display: flex;
}



/* ============================================================
   RESET + BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--ff-hebrew);
    font-size: 16px;
    line-height: 1.5;
    color: var(--c-black);
    -webkit-text-size-adjust: 100%;
}

/* FIX FOR MACBOOK small screens */
@media (min-width: 1440px) and (max-width: 1920px) {
    html {
        font-size: 13px;
    }
}


@font-face {
    font-family: 'NotoSansHebrew';
    src: url('../fonts/NotoSansHebrew.ttf') format('truetype');
    font-weight: 100 900;
    /* весь диапазон — если это variable font */
    font-style: normal;
    font-display: swap;
}

body {
    background: var(--c-form-bar);
    /* avoids white flash outside hero */
    min-height: 100svh;
    overflow-x: clip;
    display: flex;
    flex-direction: column;
    /* font-family: 'NotoSansHebrew', sans-serif; */
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: var(--ff-hebrew);
}

.container {
    /* padding: 2em; */
    height: 100vh;
    position: relative;
}

.condition {
    color: var(--c-white);
    position: absolute;
    right: 1%;
    top: 40%;
    writing-mode: vertical-rl;
    transform: rotate(-180deg);
    /* переворачиваем чтобы читалось снизу вверх */
    text-align: center;
}

@media (min-width: 1025px) {
    .call-me {
        display: none;
    }

    .cta-anchor {
        height: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .container {
        background-image: url('../images/hero-bg.webp');
        background-size: cover;
        background-position: center top;
    }

    .no-more-fomo {
        position: absolute;
        top: 46%;
        right: 15%;
        z-index: 3;
        width: clamp(120px, 18vw, 328px);
        height: auto;
    }

    .desktop-price {
        display: block;
    }

    #leads-form h2 {
        max-width: 130px;
    }

    .footer {
        display: none;
    }

    .hero {
        padding: 2em;
    }

    h1 {
        width: 100%;
    }

    h1 img {
        max-width: 40vw;
        width: 100%
    }
}




.content-wrapper {
    display: flex;
    flex-direction: row;
    height: 70vh;
    position: absolute;
    top: 0%;
    width: 100%;

}

.left-side {
    padding: 3em 2em;
    background-color: var(--c-salmon);
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    height: fit-content;
}

.left-side h2 {
    font-size: clamp(1.6rem, 2.4vw, 2.6rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--c-black);

    text-align: center;
}

.left-side p {
    text-align: center;
    font-size: clamp(1.1rem, 0.9vw, 1.3rem);
    margin-bottom: 0.5em;
}

.right-side {
    width: 67%;
    position: relative;
    overflow: hidden;
}

.right-side .hero-bg-mobile {
    display: none;
}


.content-wrapper {
    display: grid;
    grid-template-columns: 1fr var(--hero-left-w);
    grid-template-rows: 1fr 100px;
    gap: 24px;
    padding: 3em 3em 2em;
    height: 100%;
}

.privacy-note {
    font-size: 0.86rem;
    line-height: 1.4;
    color: var(--c-white);
    padding: 0 16px 10px;
    text-align: right;
}

.privacy-note a {
    /* color: var(--c-yellow); */
    text-decoration: underline;
}


@media (max-width: 1024px) {

    /* Click-to-call CTA is hidden by default on mobile/tablet (fail-safe: a
       JS failure keeps it hidden, matching current production). The JS adds
       `cta-visible` to <body> only when the visibility gate passes, which
       reveals it. TESTING PHASE gate = ?utm_source=cta-test; the production
       gate (Google Ads) is switched on later in the JS. */
    .cta-anchor {
        display: none !important;
    }

    .phone-cta {
        display: none !important;
    }

    body.cta-visible .cta-anchor {
        display: block !important;
    }

    body.cta-visible .phone-cta {
        display: flex !important;
    }

    .privacy-note {
        padding: 0;
    }

    .container {
        padding: 0;
        height: auto;

    }

    .content-wrapper {

        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .right-side {
        width: 100%;
        /* min-height: 690px; */
        min-height: 86vh;
        height: fit-content;
    }

    .hero {
        padding: 0;
    }

    .hero h1 {
        margin: 1em auto 0;
        max-width: 80%;
    }

    .right-side {
        width: 100%;
        height: auto;
        position: relative;
    }

    .right-side .hero-bg-mobile {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -1;
        position: relative;
    }

    .right-side .no-more-fomo {
        position: absolute;
        top: 31%;
        right: 6%;
        z-index: 3;
        width: clamp(160px, 18vw, 300px);
        height: auto;
    }

    .carasso-logo-wrap {
        display: none;
    }

    .left-side {
        width: 100%;
        padding: 1em 2em 2em;
    }

    .desktop-price {
        display: none;
    }

    .form-container {
        padding: 2em;
        margin: 0 0 -1.5em 0;
    }

    .footer {
        display: flex;
        flex-direction: column;
        position: relative;
        background: var(--c-light-blue);
        text-align: center;
        padding: 2em 2em 2em;
        gap: 1em;
    }

    .footer .footer-logo {
        width: 40%;
        height: auto;
        margin: 0 auto 1em auto;
    }

    .condition {
        height: max-content;
        font-size: 0.6rem;
        top: 100%;
    }

}


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    display: flex;
    flex: 1;
    min-height: calc(100svh - var(--form-bar-h) - var(--footer-h));
    /* Full-screen background — covers the entire hero including salmon panel */
    /* background-color: #7AAAB8; */
    /* background-image: url('../images/hero-bg.jpg'); */
    background-size: cover;
    background-position: center top;
}


/* ── Right: transparent — shows hero background ── */
.hero-right {
    flex: 1;
    position: relative;
    overflow: hidden;
}


/* JOMO brand (top-right of photo section) */
.hero-brand {
    position: absolute;
    top: 28px;
    right: 36px;
    z-index: 2;
}

.jomo-logo-img {
    width: clamp(220px, 30vw, 440px);
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.2));
}


/* NO MORE FOMO badge — PNG image, absolutely positioned */
.fomo-badge {
    position: absolute;
    top: 46%;
    right: 10%;
    z-index: 3;
    width: clamp(120px, 18vw, 328px);
    height: auto;
    /* No rotation/border/bg — the PNG has those baked in */
}



/* Carasso logo bottom-right of photo */
.carasso-logo-wrap {
    position: absolute;
    bottom: 18px;
    right: 22px;
    z-index: 3;
}

.carasso-logo-img {
    width: 72px;
    height: auto;
}


/* Price overlay — hidden on desktop, shown on mobile */
.price-mobile {
    display: none;
}


/* ── Left: salmon content panel ── */
.hero-left {
    width: var(--hero-left-w);
    min-width: 280px;
    background: var(--c-salmon);
    display: flex;
    align-items: center;
    padding: 52px 52px;
    position: relative;
    z-index: 1;
}

.hero-left-inner {
    width: 100%;
}

.hero-title {
    font-size: clamp(1.6rem, 2.5vw, 2.6rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--c-black);
    margin-bottom: 18px;
}

.hero-desc {
    font-size: clamp(0.76rem, 0.92vw, 0.9rem);
    font-weight: 400;
    line-height: 1.72;
    color: var(--c-text-body);
    margin-bottom: 18px;
}

.hero-thumb {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 18px;
}

.hero-thumb img {
    width: 100%;
    height: 155px;
    object-fit: cover;
}


/* Price — desktop (PNG image in salmon panel) */
.price-desktop {
    margin-bottom: 18px;
}

.price-desktop img {
    max-width: 100%;
    height: auto;
}


/* ============================================================
   FORM BAR
   Desktop : CSS Grid — h2=RIGHT | fields+checkbox=MIDDLE | button=LEFT
   Mobile  : flex column, stacked
   Original form HTML is untouched — layout via CSS only.
   ============================================================ */
.form-container {
    background: var(--c-form-bar);
    grid-column: 1 / -1;
    align-self: start;
}


.form-bar {
    background: var(--c-form-bar);
    min-height: var(--form-bar-h);
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
}

/* Grid on the form itself — no wrapper divs needed */
#leads-form {
    display: grid;
    /* RTL: col1 = visual RIGHT (h2 label)
            col2 = visual MIDDLE (fields + checkbox)
            col3 = visual LEFT  (submit button) */
    grid-template-columns: auto 1fr var(--hero-left-w);
    grid-template-rows: 1fr auto;
    width: 100%;
}

/* h2 label — col1, spans both rows → visual RIGHT */
#leads-form h2 {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 0 10px 0;
    color: var(--c-white);
    font-size: clamp(0.88rem, 1.4vw, 1.6rem);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    /* border-inline-end: 1px solid rgba(255, 255, 255, 0.1); */
}

/* Fields row — col2, row1 */
.form-fields {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    gap: 1em;
    align-items: center;
    padding: 12px 16px 6px;
}

.form-fields .form-group {
    flex: 1;
    width: 100%;
}

.form-fields .form-group input {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    background: rgba(255, 255, 255, 0.09);
    border: 1.5px solid rgba(255, 255, 255, 1);
    /* border-radius: var(--radius); */
    color: var(--c-white);
    font-family: var(--ff-hebrew);
    font-size: 0.88rem;
    direction: rtl;
    transition: border-color 0.18s, background 0.18s;
}

.form-fields .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.46);
}

.form-fields .form-group input:focus {
    outline: none;
    border-color: var(--c-yellow);
    background: rgba(255, 255, 255, 0.13);
}

/* Checkbox — col2, row2 (small, below fields) */
.checkbox-group {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 0 16px;
    color: var(--c-white);
    font-size: 0.86rem;
    line-height: 1.4;
}

.checkbox-group a {
    color: var(--c-white);
    text-decoration: underline;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 1px;
    flex-shrink: 0;
    accent-color: var(--c-yellow);
    cursor: pointer;
}

.checkbox-group label {
    cursor: pointer;
}

/* Submit — col3, spans both rows → visual LEFT */
#btnSubmit {
    grid-column: 3;
    grid-row: 1 / 4;
    background: var(--c-light-blue);
    color: var(--c-form-bar);
    border: none;
    width: var(--hero-left-w);
    /* font-family: var(--ff-hebrew); */
    font-family: 'NotoSansHebrew', sans-serif;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 900;
    cursor: pointer;
    transition: background 0.15s;
    letter-spacing: 0.02em;
    width: 100%;
}

#btnSubmit:hover {
    background: #f0f0f0;
}


/* Footer removed per project requirements */


/* ============================================================
   RESPONSIVE — TABLET  769px – 1024px
   ============================================================ */
@media (max-width: 1024px) and (min-width: 769px) {
    :root {
        --hero-left-w: 36%;
        --form-bar-h: 100px;
    }

    .hero-left {
        padding: 36px 32px;
    }

    .hero-brand {
        top: 20px;
        right: 22px;
    }

    .jomo-logo-img {
        width: clamp(160px, 20vw, 280px);
    }

    .fomo-badge {
        width: clamp(100px, 16vw, 220px);
    }


    #leads-form h2 {
        padding: 0 16px 0 12px;
        font-size: 0.88rem;
    }

    .form-fields {
        gap: 1em;
    }

    .form-content {
        padding: 8px 12px;
    }

    #btnSubmit {
        padding: 0 30px;
        font-size: 0.96rem;
    }
}



/* Mobile hero: separate crop */
@media (max-width: 768px) {
    .hero {
        background-image: url('../images/hero-bg-mobile.jpg');
        background-position: center 15%;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE  ≤ 768px
   ============================================================ */
@media (max-width: 1024px) {
    :root {
        --form-bar-h: auto;
        --footer-h: auto;
    }

    /* On mobile: salmon bg prevents dark flash when scrolling */
    body {
        background: var(--c-salmon);
    }

    /* ── Hero: stack vertically ── */
    .hero {
        flex-direction: column;
        min-height: unset;
    }

    /* hero-right is 1st in DOM → TOP on mobile */
    .hero-right {
        width: 100%;
        aspect-ratio: 4 / 3;
        min-height: 260px;
        max-height: 440px;
    }

    .hero-brand {
        top: 14px;
        right: 14px;
    }

    .jomo-logo-img {
        width: clamp(130px, 36vw, 200px);
    }

    .fomo-badge {
        font-size: clamp(15px, 4.8vw, 24px);
        padding: 6px 10px;
        right: 6%;
        top: 40%;
        box-shadow: 3px 3px 0 var(--c-fomo-border);
    }


    .carasso-logo-wrap {
        bottom: 10px;
        right: 12px;
    }

    .carasso-logo-img {
        width: 50px;
    }

    /* Mobile price overlay (shown on mobile, overlaid on photo bottom) */
    .price-mobile {
        display: block;
        position: absolute;
        inset-inline: 0;
        bottom: 0;
        background: linear-gradient(to top, rgba(50, 14, 14, 0.90) 0%, transparent 100%);
        padding: 28px 16px 12px;
        color: var(--c-white);
    }

    .price-mobile .price-rooms {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 2px;
        color: var(--c-white);
    }

    .price-mobile .price-num {
        font-size: 1.55rem;
        font-weight: 700;
        color: var(--c-white);
    }

    .price-mobile .price-num strong {
        font-size: 1.7rem;
        font-weight: 900;
    }

    /* hero-left is 2nd in DOM → BOTTOM on mobile */
    .hero-left {
        width: 100%;
        min-width: unset;
        padding: 24px 18px 20px;
        align-items: flex-start;
    }

    .hero-title {
        font-size: clamp(1.3rem, 5.5vw, 1.75rem);
        margin-bottom: 12px;
    }

    .hero-desc {
        font-size: 0.88rem;
        line-height: 1.68;
        margin-bottom: 16px;
    }

    .hero-thumb img {
        height: 185px;
    }

    /* Hide desktop price on mobile (mobile price is in photo overlay) */
    .price-desktop {
        display: none;
    }


    /* ── Form bar: vertical stack on mobile ── */
    .form-bar {
        padding: 24px 18px;
    }

    #leads-form {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    #leads-form h2 {
        font-size: 1.5rem;
        width: 100%;
        padding: 0;
        border: none;
        white-space: normal;
        justify-content: center
    }

    .form-fields {
        flex-direction: column;
        gap: 1.5em;
        padding: 0;
        width: 100%;
        margin-top: 1em;
    }

    .form-fields .form-group input {
        height: 52px;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.1);
    }

    .checkbox-group {
        padding: 0;
        font-size: 0.78rem;
        color: var(--c-white);
        gap: 10px;
    }

    .checkbox-group input[type="checkbox"] {
        width: 17px;
        height: 17px;
        margin-top: 2px;
    }

    #btnSubmit {
        grid-column: unset;
        grid-row: unset;
        background: var(--c-yellow);
        color: var(--c-black);
        width: 100%;
        height: 56px;
        font-size: 1.1rem;
        border-radius: var(--radius);
    }


    /* Footer removed */
}


/* Very narrow screens */
@media (max-width: 360px) {
    .hero-left {
        padding: 20px 14px;
    }

    .form-bar {
        padding: 20px 14px;
    }

    .jomo-logo-img {
        width: 90px;
    }
}


/* ============================================================
   THANK-YOU PAGE  (/thank-you.html)
   ============================================================ */
.ty-page {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--c-form-bar);
}

.ty-card {
    background: var(--c-salmon);
    border-radius: 16px;
    padding: 52px 44px;
    max-width: 460px;
    width: 100%;
    text-align: center;
}

.ty-jomo {
    font-family: var(--ff-display);
    font-size: 78px;
    color: var(--c-form-bar);
    line-height: 0.9;
    letter-spacing: 4px;
}

.ty-sub {
    font-family: var(--ff-display);
    font-size: 14px;
    color: var(--c-form-bar);
    letter-spacing: 6px;
    margin-top: 6px;
    margin-bottom: 32px;
}

.ty-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--c-form-bar);
    margin-bottom: 12px;
}

.ty-msg {
    font-size: 1.05rem;
    color: var(--c-text-body);
    line-height: 1.7;
    margin-bottom: 32px;
}

.ty-back {
    display: inline-block;
    background: var(--c-form-bar);
    color: var(--c-white);
    padding: 13px 32px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    transition: opacity 0.18s;
    margin-bottom: 28px;
}

.ty-back:hover {
    opacity: 0.85;
}

.ty-footer-links {
    border-top: 1px solid rgba(50, 14, 14, 0.18);
    padding-top: 16px;
}

.ty-footer-links a {
    color: var(--c-text-body);
    font-size: 0.82rem;
}

@media (max-width: 480px) {
    .ty-card {
        padding: 36px 22px;
        border-radius: 12px;
    }

    .ty-jomo {
        font-size: 60px;
    }

    .ty-title {
        font-size: 1.85rem;
    }
}








.thank-you-container {
    color: var(--c-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10rem;

    background-position: center top;
    height: 100vh;
}

.thank-you-container h1 {
    width: 100%;
    display: flex;
    justify-content: center;
}


.thank-you-container .content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* height: 60vh; */
    gap: 15rem;
    padding: 2rem;
}

@media (max-width: 1024px) {
    .thank-you-container {
        background-image: url('../images/hero-bg-mobile.webp');
        background-size: cover;
    }

    .thank-you-container .content-wrapper {
        gap: 10em;
    }
}


.thank-you-message {
    display: grid;
    font-size: clamp(1.1rem, 1.5vw, 2.3rem);
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

.thank-you-container .ty-content-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.thank-you-container .ty-footer-links {
    border-top: none;
    padding-top: 0;
}

.thank-you-container .ty-footer-links a {
    color: var(--c-white);
    text-decoration: underline;
    opacity: 0.85;
    transition: opacity 0.15s;
}

.thank-you-container .ty-footer-links a:hover {
    opacity: 1;
}