/*
 * This Time, Come Home to Yours — page-come-home.php.
 *
 * Standalone: loaded instead of main.css. Mi Vida brand (plum + gold, Mark
 * Pro), set warm: deep evening plum for the hero, booking and closing bands,
 * warm paper in between. The one festive gesture is light, not ornament: a
 * low gold glow behind the hero photographs. Also styles the shared landing
 * parts the page uses (webinar-header, footer, mobile_scroll_trigger).
 */

/* ----------------------------------------------------------------- Fonts -- */

@font-face {
    font-family: "Mark Pro";
    src: url("../fonts/MarkPro-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Mark Pro";
    src: url("../fonts/MarkPro.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Mark Pro";
    src: url("../fonts/MarkPro-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ---------------------------------------------------------------- Tokens -- */

:root {
    --ch-night: #2A121F;
    --ch-plum-deep: #3A1B29;
    --ch-plum: #52283B;
    --ch-gold: #FDC533;
    --ch-gold-hover: #FFD45C;
    --ch-paper: #FBF6EF;
    --ch-sand: #F1E7DA;
    --ch-ink: #2B2326;
    --ch-muted: #675A60;
    --ch-on-dark: #F4ECE6;
    --ch-on-dark-muted: #CDBCC4;
    --ch-line: rgba(82, 40, 59, 0.14);
    --ch-line-dark: rgba(244, 236, 230, 0.16);
    --ch-error: #B3261E;
    --ch-error-on-dark: #FFB4AB;
    --ch-font: "Mark Pro", Helvetica, Arial, sans-serif;
    --ch-header-h: 72px;
    --ch-radius: 14px;
    --ch-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ch-space: clamp(72px, 9vw, 128px);
}

/* ------------------------------------------------------------------ Base -- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--ch-header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body.come-home-landing-page {
    margin: 0;
    background: var(--ch-paper);
    color: var(--ch-ink);
    font-family: var(--ch-font);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.come-home-landing-page img {
    display: block;
    max-width: 100%;
    height: auto;
}

.come-home-landing-page :where(h1, h2, h3, p, ul, figure, fieldset) {
    margin: 0;
}

.come-home-landing-page :where(ul) {
    padding: 0;
    list-style: none;
}

.come-home-landing-page :where(a) {
    color: inherit;
}

.come-home-landing-page :focus-visible {
    outline: 3px solid var(--ch-gold);
    outline-offset: 3px;
}

.come-home-landing-page em {
    font-style: normal;
}

.svg_hidden {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.screen_reader_text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.ch_icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

/* -------------------------------------------------------------- Header -- */

.come-home-landing-page .header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--ch-header-h);
    background: var(--ch-paper);
    border-bottom: 1px solid var(--ch-line);
}

.come-home-landing-page .header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 100%;
}

.come-home-landing-page .mivida_logo img {
    width: 140px;
}

.come-home-landing-page .header_cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--ch-plum);
    color: var(--ch-gold);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.come-home-landing-page .header_cta:hover {
    background: var(--ch-plum-deep);
}

/* ------------------------------------------------------------- Shared -- */

.ch_section {
    padding: var(--ch-space) 0;
}

.ch_eyebrow {
    margin-bottom: 20px;
    color: var(--ch-plum);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ch_eyebrow--gold {
    color: var(--ch-gold);
}

.ch_title {
    color: var(--ch-plum-deep);
    font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.ch_title--light {
    color: #fff;
}

.ch_lead {
    font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
    line-height: 1.55;
    color: var(--ch-ink);
}

/* Image disclosure: renders and illustrative scenes are labelled (brief). */
.ch_label {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(42, 18, 31, 0.78);
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.ch_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 30px;
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.25s var(--ch-ease);
}

.ch_btn:hover {
    transform: translateY(-2px);
}

.ch_btn:active {
    transform: translateY(0);
}

.ch_btn--gold {
    background: var(--ch-gold);
    color: var(--ch-night);
}

.ch_btn--gold:hover {
    background: var(--ch-gold-hover);
}

.ch_btn--plum {
    background: var(--ch-plum);
    color: var(--ch-gold);
}

.ch_btn--plum:hover {
    background: var(--ch-plum-deep);
}

.ch_btn--block {
    width: 100%;
}

.ch_btn[disabled] {
    opacity: 0.7;
    cursor: progress;
    transform: none;
}

/* ---------------------------------------------------------------- Hero -- */

.ch_hero {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 7vw, 104px) 0 clamp(64px, 8vw, 120px);
    background: var(--ch-plum-deep);
    color: var(--ch-on-dark);
}

/* Warm window-light behind the photographs. */
.ch_hero::before {
    content: "";
    position: absolute;
    right: -10%;
    top: 10%;
    width: 70%;
    aspect-ratio: 1;
    background: radial-gradient(closest-side, rgba(253, 197, 51, 0.22), rgba(253, 197, 51, 0));
    pointer-events: none;
}

.ch_hero_grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.ch_hero_title {
    color: #fff;
    font-size: clamp(2.7rem, 1.4rem + 4.4vw, 5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.ch_hero_title em {
    color: var(--ch-gold);
}

.ch_hero_text {
    max-width: 34em;
    margin: 28px 0 36px;
    color: var(--ch-on-dark);
    font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
}

.ch_hero_note {
    max-width: 30em;
    margin-top: 18px;
    color: var(--ch-on-dark-muted);
    font-size: 15px;
    line-height: 1.5;
}

.ch_hero_media {
    position: relative;
    padding-bottom: 14%;
}

.ch_hero_photo,
.ch_hero_inset {
    position: relative;
    overflow: hidden;
    border-radius: var(--ch-radius);
}

.ch_hero_photo img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
}

.ch_hero_photo .ch_label {
    top: 12px;
    bottom: auto;
}

/* "Blended with a Mi Vida property": the home they could come back to. */
.ch_hero_inset {
    position: absolute;
    left: -8%;
    bottom: 0;
    width: 46%;
    border: 6px solid var(--ch-plum-deep);
    border-radius: calc(var(--ch-radius) + 4px);
}

.ch_hero_inset img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* ------------------------------------------------------- A closer look -- */

.ch_closer {
    padding-bottom: 0;
}

.ch_closer_grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(24px, 5vw, 80px);
    align-items: start;
}

/* ------------------------------------------------- What could yours be -- */

.ch_yours_grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: center;
}

.ch_yours_photo {
    position: relative;
    overflow: hidden;
    border-radius: var(--ch-radius);
}

.ch_yours_photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.ch_yours_copy > p {
    margin: 24px 0 36px;
    color: var(--ch-muted);
    font-size: 1.1rem;
}

.ch_goals {
    border-top: 1px solid var(--ch-line);
}

.ch_goal {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 76px;
    padding: 16px 4px;
    border-bottom: 1px solid var(--ch-line);
    color: var(--ch-plum-deep);
    text-decoration: none;
    transition: padding 0.3s var(--ch-ease), color 0.2s;
}

.ch_goal_num {
    color: var(--ch-plum);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

.ch_goal_title {
    flex: 1;
    font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
    font-weight: 700;
    line-height: 1.25;
}

.ch_goal .ch_icon {
    transition: transform 0.3s var(--ch-ease);
}

.ch_goal:hover {
    padding-left: 12px;
    color: var(--ch-plum);
}

.ch_goal:hover .ch_icon {
    transform: translateX(4px);
}

/* ---------------------------------------------------------- Properties -- */

.ch_properties {
    background: var(--ch-sand);
}

.ch_properties_head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 12px 32px;
    margin-bottom: 48px;
}

.ch_properties_head p {
    max-width: 28em;
    color: var(--ch-muted);
}

.ch_cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 28px;
}

.ch_card {
    display: flex;
    flex-direction: column;
}

.ch_card_media {
    position: relative;
    overflow: hidden;
    border-radius: var(--ch-radius);
}

.ch_card_media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.8s var(--ch-ease);
}

.ch_card:hover .ch_card_media img {
    transform: scale(1.03);
}

.ch_card_body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding-top: 20px;
}

.ch_card_stage {
    color: var(--ch-plum);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ch_card h3 {
    margin-top: 6px;
    color: var(--ch-plum-deep);
    font-size: 1.5rem;
    line-height: 1.2;
}

.ch_card_location {
    color: var(--ch-muted);
}

.ch_card_actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    margin-top: auto;
    padding-top: 18px;
}

.ch_card_link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ch-plum-deep);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--ch-gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.ch_card_link:hover {
    color: var(--ch-plum);
}

.ch_card_add {
    min-height: 44px;
    padding: 0 16px;
    border: 1.5px solid var(--ch-line);
    border-radius: 999px;
    background: transparent;
    color: var(--ch-plum);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.ch_card_add:hover {
    border-color: var(--ch-plum);
}

.ch_card_add_on {
    display: none;
}

.ch_card_add[aria-pressed="true"] {
    border-color: var(--ch-plum);
    background: var(--ch-plum);
    color: var(--ch-gold);
}

.ch_card_add[aria-pressed="true"] .ch_card_add_off {
    display: none;
}

.ch_card_add[aria-pressed="true"] .ch_card_add_on {
    display: inline;
}

.ch_properties_note {
    max-width: 52em;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--ch-line);
    color: var(--ch-muted);
}

.ch_properties_note strong {
    color: var(--ch-plum-deep);
}

/* ------------------------------------------------------------- Booking -- */

.ch_book {
    background: var(--ch-plum-deep);
    color: var(--ch-on-dark);
}

.ch_book_grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.ch_book_copy {
    position: sticky;
    top: calc(var(--ch-header-h) + 40px);
}

.ch_book_copy p {
    margin-top: 24px;
    color: var(--ch-on-dark-muted);
    font-size: 1.1rem;
}

.ch_form_card {
    padding: clamp(24px, 4vw, 48px);
    border-radius: calc(var(--ch-radius) + 6px);
    background: var(--ch-paper);
    color: var(--ch-ink);
}

/* Form controls */

.ch_form_card .form_group {
    margin-bottom: 20px;
}

.form_group_label {
    display: block;
    margin-bottom: 8px;
    color: var(--ch-plum-deep);
    font-size: 15px;
    font-weight: 700;
}

.ch_optional {
    margin-left: 6px;
    color: var(--ch-muted);
    font-size: 13px;
    font-weight: 400;
}

.ch_form_card input[type="text"],
.ch_form_card input[type="email"],
.ch_form_card input[type="tel"],
.ch_form_card input[type="date"],
.ch_form_card textarea,
.ch_select select {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 1.5px solid rgba(82, 40, 59, 0.22);
    border-radius: 10px;
    background: #fff;
    color: var(--ch-ink);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.ch_form_card textarea {
    min-height: 96px;
    resize: vertical;
}

.ch_form_card input::placeholder,
.ch_form_card textarea::placeholder {
    color: #998C92;
}

.ch_form_card input:focus,
.ch_form_card textarea:focus,
.ch_select select:focus {
    border-color: var(--ch-plum);
    box-shadow: 0 0 0 3px rgba(82, 40, 59, 0.14);
    outline: none;
}

.ch_select {
    position: relative;
}

.ch_select::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--ch-plum);
    border-bottom: 2px solid var(--ch-plum);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.ch_select select {
    padding-right: 44px;
    cursor: pointer;
}

.ch_form_card input.error,
.ch_form_card textarea.error,
.ch_select.error select {
    border-color: var(--ch-error);
}

.ch_form_card label.error {
    display: block;
    margin-top: 6px;
    color: var(--ch-error);
    font-size: 14px;
    line-height: 1.4;
}

.ch_hint {
    margin-top: 6px;
    color: var(--ch-muted);
    font-size: 14px;
}

.ch_notice {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-left: 4px solid var(--ch-error);
    border-radius: 8px;
    background: #FBEAE8;
    color: #7A1A14;
    font-size: 15px;
}

.ch_notice[hidden] {
    display: none;
}

/* The trip: dates first, laid out like the travel plan it is. */
.ch_trip {
    margin: 0 0 28px;
    padding: 20px 20px 4px;
    border: 1.5px dashed rgba(82, 40, 59, 0.3);
    border-radius: 14px;
    background: var(--ch-sand);
}

.ch_trip legend {
    padding: 0 8px;
    margin-left: -8px;
    color: var(--ch-plum);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ch_trip_range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.ch_trip_sep {
    display: flex;
    align-items: center;
    height: 52px;
    margin-top: 31px;
    color: var(--ch-plum);
}

.ch_trip_tour {
    padding-top: 16px;
    border-top: 1px dashed rgba(82, 40, 59, 0.3);
}

.ch_fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
}

.ch_phone {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 8px;
}

/* The native select spans the box, transparent, over a short "+44" badge,
   so the long country names never squeeze the number field. */
.ch_phone_country select {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
}

.ch_phone_dial {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 36px 0 16px;
    border: 1.5px solid rgba(82, 40, 59, 0.22);
    border-radius: 10px;
    background: #fff;
    font-weight: 700;
}

.ch_phone_country.error .ch_phone_dial {
    border-color: var(--ch-error);
}

.ch_phone_country select:focus-visible + .ch_phone_dial {
    border-color: var(--ch-plum);
    box-shadow: 0 0 0 3px rgba(82, 40, 59, 0.14);
}

.ch_choice {
    min-width: 0;
    padding: 0;
    border: 0;
}

.ch_choice legend {
    padding: 0;
}

.ch_pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ch_pill {
    position: relative;
    cursor: pointer;
}

.ch_pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ch_pill span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1.5px solid rgba(82, 40, 59, 0.22);
    border-radius: 999px;
    background: #fff;
    font-size: 15px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.ch_pill:hover span {
    border-color: var(--ch-plum);
}

.ch_pill input:checked + span {
    border-color: var(--ch-plum);
    background: var(--ch-plum);
    color: #fff;
}

.ch_pill input:focus-visible + span {
    outline: 3px solid var(--ch-gold);
    outline-offset: 2px;
}

.ch_choice.error .ch_pill span {
    border-color: var(--ch-error);
}

.ch_check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15px;
    line-height: 1.5;
    cursor: pointer;
}

.ch_check input {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: var(--ch-plum);
}

.ch_check a {
    color: var(--ch-plum);
    font-weight: 700;
}

.ch_consent.error .ch_check input {
    outline: 2px solid var(--ch-error);
    outline-offset: 2px;
}

.ch_submit_note {
    margin-top: 12px;
    color: var(--ch-muted);
    font-size: 14px;
    text-align: center;
}

.ch_confirmation {
    padding: 24px 0;
    text-align: center;
}

.ch_confirmation_icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    color: var(--ch-plum);
}

.ch_confirmation h3 {
    color: var(--ch-plum-deep);
    font-size: 1.9rem;
    line-height: 1.15;
}

.ch_confirmation p {
    max-width: 30em;
    margin: 14px auto 0;
}

.ch_confirmation_sub {
    color: var(--ch-muted);
}

/* ----------------------------------------------------------------- FAQ -- */

.ch_faq_grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(24px, 5vw, 80px);
}

.ch_faq_list {
    border-top: 1px solid var(--ch-line);
}

.ch_faq_item {
    border-bottom: 1px solid var(--ch-line);
}

.ch_faq_item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding: 18px 0;
    color: var(--ch-plum-deep);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    list-style: none;
    cursor: pointer;
}

.ch_faq_item summary::-webkit-details-marker {
    display: none;
}

.ch_faq_item summary .ch_icon {
    color: var(--ch-plum);
    transition: transform 0.3s var(--ch-ease);
}

.ch_faq_item[open] summary .ch_icon {
    transform: rotate(45deg);
}

.ch_faq_item p {
    max-width: 40em;
    padding: 0 40px 22px 0;
    color: var(--ch-muted);
}

/* ------------------------------------------------------------- Closing -- */

.ch_closing {
    padding: clamp(80px, 10vw, 144px) 0;
    background: var(--ch-night);
    color: #fff;
    text-align: center;
}

.ch_closing_title {
    max-width: 18em;
    margin: 0 auto 40px;
    font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.ch_closing_title em {
    display: block;
    color: var(--ch-gold);
}

.ch_disclaimer {
    padding: 20px 0;
    background: var(--ch-night);
    border-top: 1px solid var(--ch-line-dark);
    color: var(--ch-on-dark-muted);
    font-size: 13px;
    line-height: 1.55;
}

.ch_disclaimer .wrap {
    display: block;
}

/* -------------------------------------------------------------- Footer -- */

.come-home-landing-page .footer {
    padding: 24px 0 32px;
    background: var(--ch-night);
    color: var(--ch-on-dark-muted);
    font-size: 14px;
}

.come-home-landing-page .footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
}

.come-home-landing-page .footer_left {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.come-home-landing-page .footer_left a {
    color: #fff;
    text-decoration: none;
}

.come-home-landing-page .footer_left a:hover {
    color: var(--ch-gold);
}

/* Sticky "Plan My Property Tour" on phones; come-home.js shows it once the
   hero is behind the visitor and hides it while the form is on screen. */
.come-home-landing-page .mobile_scroll_trigger {
    display: none;
}

/* ---------------------------------------------------------- Responsive -- */

@media (max-width: 1023px) {
    .ch_cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ch_book_grid,
    .ch_faq_grid,
    .ch_closer_grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ch_book_copy {
        position: static;
    }
}

@media (max-width: 767px) {
    :root {
        --ch-header-h: 64px;
    }

    body.come-home-landing-page {
        font-size: 16px;
    }

    .come-home-landing-page .mivida_logo img {
        width: 112px;
    }

    .come-home-landing-page .header_cta {
        display: none;
    }

    .ch_hero_grid,
    .ch_yours_grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ch_hero_media {
        padding-bottom: 0;
    }

    .ch_hero_photo img {
        aspect-ratio: 4 / 3;
    }

    /* One image on phones: short and quick (brief). */
    .ch_hero_inset {
        display: none;
    }

    .ch_hero .ch_btn {
        width: 100%;
    }

    .ch_yours_photo img {
        aspect-ratio: 4 / 3;
    }

    .ch_cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .ch_fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .ch_trip {
        padding: 16px 14px 2px;
    }

    .ch_trip_range {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .ch_trip_sep {
        display: none;
    }

    .come-home-landing-page .mobile_scroll_trigger {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 40;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 54px;
        border-radius: 999px;
        background: var(--ch-gold);
        color: var(--ch-night);
        font-weight: 700;
        text-decoration: none;
        box-shadow: 0 8px 24px rgba(42, 18, 31, 0.28);
        transform: translateY(calc(100% + 24px));
        transition: transform 0.35s var(--ch-ease);
    }

    .come-home-landing-page .mobile_scroll_trigger.is-visible {
        transform: none;
    }

    /* Room under the footer so the bar never covers the last line. */
    .come-home-landing-page .footer {
        padding-bottom: 96px;
    }
}

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

    .come-home-landing-page *,
    .come-home-landing-page *::before,
    .come-home-landing-page *::after {
        transition-duration: 0.01ms !important;
    }
}

/* Name and phone take the full row; email + country share one. */
.ch_span {
    grid-column: 1 / -1;
}

/* ------------------------------------------------- Festive: hat + sparkle -- */

.ch_hero_grid {
    z-index: 1;
}

.ch_sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ch_sparkle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    height: var(--s);
    color: var(--ch-gold);
    opacity: 0.4;
    filter: drop-shadow(0 0 6px rgba(253, 197, 51, 0.7));
    animation: ch-twinkle 3.2s ease-in-out var(--d) infinite;
}

@keyframes ch-twinkle {
    0%, 100% { opacity: 0.35; transform: scale(0.65) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.1) rotate(20deg); }
}

/* A Santa hat perched on the corner of the family photo. */
.ch_hat {
    position: absolute;
    top: -58px;
    right: -30px;
    z-index: 2;
    width: 140px;
    height: auto;
    transform: rotate(16deg);
    transform-origin: 30% 90%;
    filter: drop-shadow(0 6px 10px rgba(20, 6, 14, 0.35));
    animation: ch-hat 7s ease-in-out infinite;
}

@keyframes ch-hat {
    0%, 100% { transform: rotate(16deg); }
    50% { transform: rotate(11deg); }
}

@media (max-width: 767px) {
    .ch_hat {
        top: -38px;
        right: -10px;
        width: 96px;
    }

    .ch_sparkle:nth-child(n+9) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ch_sparkle,
    .ch_hat {
        animation: none;
    }

    .ch_sparkle {
        opacity: 0.6;
    }
}
