/**
 * Homepage "Journeys Worth Remembering" call to action (Views/Home/Index.cshtml).
 *
 * Plain CSS - no Tailwind build step. A full-width coastal traveller photo
 * (traveller over a beach) with a slow zoom and an even deep-sea overlay,
 * centred copy with a shimmering gold word and a Build-your-trip button. The copy rises
 * into view on scroll where supported; all motion stops under
 * prefers-reduced-motion. Logical properties keep it correct in RTL.
 */

.journeys {
    --journeys-red: #8B2225;
    --journeys-plum: #5E1B33;
    --journeys-gold: #E3B95F;
    --journeys-gold-light: #F7DFA6;

    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    overflow: hidden;
    background: #0E1116;
    color: #FFFFFF;
    text-align: center;
}

.journeys .material-symbols-outlined {
    font-size: 19px;
    line-height: 1;
}

/* ---- Photo + wash ------------------------------------------------------ */

.journeys-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 55%;
    animation: journeys-zoom 28s ease-in-out infinite alternate;
}

@keyframes journeys-zoom {
    from { transform: scale(1.02); }
    to { transform: scale(1.08); }
}

/* Even deep-sea overlay over the whole photo (about 40%), a touch stronger
   behind the centred copy - enough for the white text, light enough that
   the turquoise water and boats stay bright. */
.journeys-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(50% 45% at 50% 50%, rgba(4, 30, 46, 0.34), rgba(4, 30, 46, 0) 100%),
        linear-gradient(to bottom, rgba(4, 30, 46, 0.22), rgba(4, 30, 46, 0.12) 50%, rgba(4, 30, 46, 0.26));
}

/* ---- Copy -------------------------------------------------------------- */

.journeys-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-block: 64px;
}

.journeys-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.journeys-chip .material-symbols-outlined {
    color: var(--journeys-gold-light);
}

.journeys-title {
    margin: 18px 0 0;
    font-size: 38px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.025em;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
    text-wrap: balance;
}

/* Gold word with a slow light sweep. */
.journeys-highlight {
    background: linear-gradient(100deg, var(--journeys-gold) 0%, var(--journeys-gold) 35%, #FFF3D1 50%, var(--journeys-gold) 65%, var(--journeys-gold) 100%);
    background-size: 250% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    /* text-shadow cannot follow gradient-clipped text; a filter can. */
    filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.35));
    animation: journeys-shimmer 5s ease-in-out infinite;
}

@keyframes journeys-shimmer {
    0%, 55% { background-position: 100% 0; }
    100% { background-position: -50% 0; }
}

.journeys-copy {
    max-width: 700px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.55;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
    text-wrap: balance;
}

.journeys-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.journeys-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 999px;
    font-size: 16.5px;
    font-weight: 800;
    text-decoration: none;
}

/* Brand red, like every other button on the site. */
.journeys-button-ghost {
    border: 2px solid var(--journeys-red);
    background: var(--journeys-red);
    color: #FFFFFF;
    box-shadow: 0 16px 32px -14px rgba(139, 34, 37, 0.85);
}

.journeys-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.7);
    outline-offset: 4px;
}

/* ---- Scroll reveal (progressive) --------------------------------------- */

@supports (animation-timeline: view()) {
    .journeys-content > * {
        animation: journeys-rise linear both;
        animation-timeline: view();
        /* Fully shown by the time each item has entered the viewport. */
        animation-range: entry 0% entry 100%;
    }
}

@keyframes journeys-rise {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---- Larger screens ---------------------------------------------------- */
/* 900px = the site's compact breakpoint. */
@media (min-width: 900px) {
    .journeys {
        min-height: 580px;
    }

    .journeys-content {
        padding-block: 80px;
    }

    .journeys-title {
        font-size: 66px;
    }

    .journeys-copy {
        font-size: 21px;
    }

    .journeys-button {
        min-height: 58px;
        padding: 0 34px;
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .journeys-image,
    .journeys-highlight,
    .journeys-content > * {
        animation: none;
    }
}
