/*
 * Bloom Up Travel: a burgundy "boarding pass" hero with a plane flying its
 * route, and the steps towards the first trip.
 */

.travel {
    position: relative;
    isolation: isolate;
    overflow-x: clip;
    padding-bottom: clamp(90px, 9vw, 150px);
    background: var(--c-sand);
}

.travel__inner {
    position: relative;
    z-index: 2;
    max-width: calc(1180px + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- hero ---------- */

.travel-hero {
    --eyebrow-color: var(--c-gold);
    position: relative;
    margin-top: clamp(20px, 3.4vw, 48px);
    overflow: hidden;
    border-radius: 28px;
    color: var(--c-cream);
    background:
        radial-gradient(ellipse 70% 80% at 12% 15%, #86213A 0, transparent 65%),
        radial-gradient(ellipse 60% 70% at 95% 100%, #4A0B16 0, transparent 70%),
        var(--c-accent);
    box-shadow: 0 40px 80px -40px rgba(60, 10, 20, .75);
}

.travel-hero :focus-visible { outline-color: var(--c-cream); }

.travel-hero__route { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; opacity: .45; }

.travel-hero__plane {
    offset-path: path("M700 500C760 420 820 400 900 330S1060 170 1160 70");
    offset-rotate: auto;
    animation: travel-fly 14s linear infinite;
}

@keyframes travel-fly {
    from { offset-distance: 0%; }
    to { offset-distance: 100%; }
}

.travel-hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.travel-hero__main { padding: clamp(36px, 5vw, 80px) clamp(26px, 5vw, 76px); }

.travel-hero__title {
    margin: .25em 0 0;
    font-family: var(--font-script);
    font-weight: 400;
    font-size: clamp(3.75rem, 7.4vw, 7.5rem);
    line-height: 1;
    color: var(--c-cream);
}

.travel-hero__title em { display: block; font-style: normal; color: var(--c-gold); }

.travel-hero__lead { max-width: 30em; margin: 1.1em 0 0; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); color: var(--c-cream-2); text-wrap: pretty; }
.travel-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3vw, 38px); }

/* the ticket stub: punched notches on the perforation */
.travel-stub {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: clamp(30px, 4vw, 60px) clamp(24px, 3vw, 48px);
    border-left: 2px dashed rgba(244, 233, 220, .28);
}

.travel-stub::before,
.travel-stub::after { content: ""; position: absolute; left: -17px; width: 32px; height: 32px; border-radius: 50%; background: var(--c-sand); }
.travel-stub::before { top: -16px; }
.travel-stub::after { bottom: -16px; }

.travel-stub dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin: 0; }
.travel-stub dt { font-size: 0.75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--c-gold); }
.travel-stub dd { margin: 4px 0 0; font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.5rem, 2.1vw, 1.875rem); line-height: 1.05; }

.travel-stamp {
    display: grid;
    place-items: center;
    align-self: flex-start;
    width: clamp(128px, 11vw, 156px);
    aspect-ratio: 1;
    margin: 0;
    border: 2px solid var(--c-gold);
    border-radius: 50%;
    text-align: center;
    color: var(--c-gold);
    box-shadow: inset 0 0 0 6px var(--c-accent), inset 0 0 0 7px rgba(217, 184, 143, .6);
    transform: rotate(-12deg);
}

.travel-stamp span span { display: block; font-size: 0.75rem; letter-spacing: .26em; text-transform: uppercase; }
.travel-stamp strong { display: block; margin: 4px 0; font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.625rem, 2.3vw, 2rem); line-height: 1; }

/* ---------- progress ---------- */

.travel-progress { margin-top: clamp(80px, 9vw, 130px); }

.travel-progress__title {
    margin: .35em 0 0;
    font-family: var(--font-script);
    font-weight: 400;
    font-size: clamp(2.75rem, 4.4vw, 4.1875rem);
    line-height: 1.05;
    color: var(--c-accent);
    text-wrap: balance;
}

.travel-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: clamp(34px, 4vw, 56px) 0 0;
    padding: 0;
    list-style: none;
}

/* the line between the steps, filled up to the current one */
.travel-steps::before {
    content: "";
    position: absolute;
    top: 27px;
    right: 16.66%;
    left: 16.66%;
    height: 2px;
    background: linear-gradient(90deg, var(--c-accent) 0 var(--done, 50%), rgba(110, 20, 35, .18) var(--done, 50%) 100%);
}

.travel-step { position: relative; padding: 0 10px; text-align: center; }

.travel-step__dot {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--c-white);
    color: var(--c-accent);
    box-shadow: 0 0 0 8px var(--c-sand), inset 0 0 0 1.5px rgba(110, 20, 35, .35);
}

.travel-step__dot svg { width: 24px; height: 24px; }

.travel-step--done .travel-step__dot { background: var(--c-accent); color: #fff; box-shadow: 0 0 0 8px var(--c-sand); }
.travel-step--now .travel-step__dot { box-shadow: 0 0 0 8px var(--c-sand), inset 0 0 0 2px var(--c-accent), 0 0 0 14px rgba(110, 20, 35, .12); }

/* the current step pulses */
.travel-step--now .travel-step__dot::after {
    content: "";
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(110, 20, 35, .35);
    animation: travel-pulse 2.2s ease-out infinite;
}

@keyframes travel-pulse {
    to { box-shadow: 0 0 0 18px rgba(110, 20, 35, 0); }
}

.travel-step__state {
    display: inline-block;
    margin-top: 16px;
    padding: 3px 12px;
    border-radius: 999px;
    background: rgba(110, 20, 35, .08);
    color: var(--c-accent);
    font-size: 0.7812rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.travel-step--later .travel-step__state { background: transparent; color: var(--c-ink-2); box-shadow: inset 0 0 0 1px rgba(110, 20, 35, .2); }

.travel-step__title { margin: 10px 0 0; font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.5rem, 1.9vw, 1.75rem); color: var(--c-accent); }
.travel-step__text { max-width: 22em; margin: 6px auto 0; font-size: 1rem; color: var(--c-ink-soft); }

/* ---------- sign-up form (styled by contact.css) ---------- */

.travel-signup { margin-top: clamp(90px, 10vw, 140px); scroll-margin-top: 24px; }
.travel-signup__sub { max-width: 36em; margin: .9em auto 0; font-size: clamp(1rem, 1.2vw, 1.125rem); color: var(--c-ink-2); text-wrap: balance; }
.travel-signup__card { max-width: 820px; margin: clamp(34px, 4vw, 56px) auto 0; }
.travel-signup .contact-form { margin-top: 0; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
    .travel-hero__route { display: none; }
    .travel-hero__grid { grid-template-columns: minmax(0, 1fr); }

    .travel-stub {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        border-top: 2px dashed rgba(244, 233, 220, .28);
        border-left: 0;
    }

    .travel-stub::before,
    .travel-stub::after { top: -17px; }
    .travel-stub::before { left: -16px; }
    .travel-stub::after { right: -16px; bottom: auto; left: auto; }
}

@media (max-width: 640px) {
    .travel-steps { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .travel-steps::before { display: none; }
    .travel-hero__cta .btn { width: 100%; }
    .travel-signup__card { --frame-x: 8px; --frame-y: 8px; margin-right: 8px; }
    .travel-stamp { transform: rotate(-8deg); }
}

@media (prefers-reduced-motion: reduce) {
    .travel-hero__plane { animation: none; offset-distance: 62%; }
    .travel-step--now .travel-step__dot::after { animation: none; }
}
