/* ==========================================================================
   Mountain Delights – homepage hero
   ========================================================================== */
.mdhero { --ink: #0a2540; position: relative; isolation: isolate; min-height: 78vh; min-height: 78svh; display: flex; align-items: flex-end; color: #fff; background: #0f2746; overflow: hidden; margin-bottom: 0; }
.mdhero *, .mdhero *::before, .mdhero *::after { box-sizing: border-box; }
.mdhero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.mdhero-media video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); animation: mdhero-drift 28s ease-in-out infinite alternate; }
@keyframes mdhero-drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
.mdhero-shade { position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(180deg, rgba(6, 30, 52, .35) 0%, rgba(6, 30, 52, .15) 35%, rgba(6, 30, 52, .72) 100%),
    linear-gradient(90deg, rgba(6, 30, 52, .55) 0%, rgba(6, 30, 52, .15) 60%, rgba(6, 30, 52, 0) 100%); }
.mdhero-inner { position: relative; display: flex; flex-direction: column; gap: 28px; padding-top: 72px; padding-bottom: 36px; width: 100%; }
.mdhero-copy { max-width: 720px; }
.mdhero-eyebrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 13px; font-weight: 600; letter-spacing: .01em; color: #fff; }
.mdhero-eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .7); }
.mdhero-title { margin: 0 0 12px; font-size: clamp(36px, 6.2vw, 68px); font-weight: 800; line-height: 1.04; letter-spacing: -.015em; color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); text-wrap: balance; }
.mdhero-sub { margin: 0 0 22px; max-width: 560px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.5; color: rgba(255, 255, 255, .9); }
.mdhero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.mdhero-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; transition: transform .18s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.mdhero-btn.primary { background: #0073ad; color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 126, 196, .8); }
.mdhero-btn.primary:hover { background: #0a93d8; transform: translateY(-2px); color: #fff; }
.mdhero-btn.primary i { transition: transform .18s; }
.mdhero-btn.primary:hover i { transform: translateX(3px); }
.mdhero-btn.ghost { background: rgba(255, 255, 255, .1); color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.mdhero-btn.ghost:hover { background: rgba(255, 255, 255, .22); border-color: #fff; transform: translateY(-2px); color: #fff; }
.mdhero-btn.ghost i { font-size: 18px; color: #25d366; }
.mdhero-btn:active { transform: translateY(0) scale(.98); }
.mdhero-search { display: flex; align-items: center; gap: 10px; max-width: 560px; padding: 6px 6px 6px 18px; border-radius: 999px; background: #fff; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); transition: box-shadow .2s; }
.mdhero-search:focus-within { box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55), 0 0 0 4px rgba(0, 126, 196, .35); }
.mdhero-search i { color: #5b6f85; font-size: 16px; }
.mdhero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); padding: 10px 0; }
.mdhero-search input::placeholder { color: #7b8794; }
.mdhero-search button { border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-weight: 700; font-size: 14px; padding: 11px 20px; cursor: pointer; transition: background .2s, transform .15s; }
.mdhero-search button:hover { background: #0073ad; }
.mdhero-search button:active { transform: scale(.97); }
.mdhero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.mdhero-chips span { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin-right: 4px; }
.mdhero-chips a { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: background .2s, border-color .2s, transform .15s; }
.mdhero-chips a:hover { background: #fff; color: var(--ink); border-color: #fff; transform: translateY(-1px); }

.mdhero-trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); }
.mdhero-reviews { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 0; padding: 0; }
.mdhero-reviews li { display: block; }
.mdhero-reviews a { display: flex; flex-direction: column; text-decoration: none; color: #fff; }
.mdhero-reviews strong { font-size: 22px; font-weight: 800; line-height: 1.1; }
.mdhero-reviews span { font-size: 12px; color: rgba(255, 255, 255, .75); }
.mdhero-reviews a:hover strong { color: #7fc4ee; }
.mdhero-members { display: flex; align-items: center; gap: 10px; }
.mdhero-members span { font-size: 12px; color: rgba(255, 255, 255, .75); margin-right: 4px; }
.mdhero-members img { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 4px; object-fit: contain; }
.mdhero-scroll { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: 36px; height: 36px; display: none; align-items: center; justify-content: center; border-radius: 50%; color: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .35); animation: mdhero-bob 2.2s ease-in-out infinite; text-decoration: none; }
@keyframes mdhero-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
#mdhome-start { position: relative; top: -60px; }

/* entrance */
.mdhero-copy > *, .mdhero-trust { opacity: 0; transform: translateY(18px); animation: mdhero-in .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.mdhero-copy > :nth-child(1) { animation-delay: .1s; }
.mdhero-copy > :nth-child(2) { animation-delay: .2s; }
.mdhero-copy > :nth-child(3) { animation-delay: .3s; }
.mdhero-copy > :nth-child(4) { animation-delay: .4s; }
.mdhero-copy > :nth-child(5) { animation-delay: .5s; }
.mdhero-copy > :nth-child(6) { animation-delay: .6s; }
.mdhero-trust { animation-delay: .75s; }
@keyframes mdhero-in { to { opacity: 1; transform: none; } }

@media (min-width: 1024px) {
    .mdhero { min-height: calc(100vh - 84px); min-height: calc(100svh - 84px); }
    .mdhero-inner { padding-top: 96px; padding-bottom: 64px; gap: 40px; }
    .mdhero-scroll { display: inline-flex; }
}
@media (max-width: 767.98px) {
    .mdhero { min-height: 86svh; }
    .mdhero-inner { padding-top: 56px; padding-bottom: 24px; gap: 22px; }
    .mdhero-eyebrow { font-size: 12px; padding: 6px 12px; }
    .mdhero-eyebrow .dot, .mdhero-eyebrow span:last-child { display: none; }
    .mdhero-actions { flex-direction: column; }
    .mdhero-btn { width: 100%; }
    .mdhero-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
    .mdhero-chips::-webkit-scrollbar { display: none; }
    .mdhero-chips a { flex-shrink: 0; }
    .mdhero-trust { padding-top: 16px; gap: 12px; }
    .mdhero-reviews { gap: 8px 20px; }
    .mdhero-reviews strong { font-size: 18px; }
    .mdhero-members span { display: none; }
    .mdhero-members img { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
    .mdhero-media video, .mdhero-scroll { animation: none; }
    .mdhero-copy > *, .mdhero-trust { animation: none; opacity: 1; transform: none; }
}

/* --- revision: minimal popular line, review platform logos --- */
.mdhero-popular { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: rgba(255, 255, 255, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdhero-popular span { font-weight: 700; color: rgba(255, 255, 255, .7); }
.mdhero-popular a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); transition: border-color .15s, color .15s; }
.mdhero-popular a:hover { border-color: #fff; }
.mdhero-popular i { font-style: normal; color: rgba(255, 255, 255, .45); }
.mdhero-copy { max-width: 680px; }
@media (max-width: 767.98px) {
    .mdhero-popular { font-size: 14px; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 2px 16px; text-overflow: clip; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
    .mdhero-popular::-webkit-scrollbar { display: none; }
    .mdhero-reviews { gap: 8px; }
    .mdhero-reviews a { padding: 7px 10px; gap: 6px; }
    .mdhero-reviews .count { font-size: 12px; }
    .mdhero-members { display: none; }
}

.mdhero-reviews { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.mdhero-reviews a { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; padding: 8px 12px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; text-decoration: none; transition: background .2s, transform .15s; }
.mdhero-reviews a:hover { background: rgba(255, 255, 255, .22); transform: translateY(-1px); }
.mdhero-reviews svg { flex-shrink: 0; display: block; }
.mdhero-reviews .name { font-size: 13px; font-weight: 700; }
.mdhero-reviews .stars { font-size: 11px; letter-spacing: 1.5px; color: #fbbf24; line-height: 1; }
.mdhero-reviews .stars.ta { color: #34e0a1; font-size: 9px; letter-spacing: 1px; }
.mdhero-reviews .stars.tp { color: #00b67a; }
.mdhero-reviews .count { font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.mdhero-reviews .count::after { content: " reviews"; }
.mdhero-members { display: flex; align-items: center; gap: 8px; }
.mdhero-members img { width: 36px; height: 36px; }
@media (max-width: 767.98px) {
    .mdhero-reviews { flex-wrap: nowrap; gap: 6px; }
    .mdhero-reviews li { flex: 1 1 0; min-width: 0; }
    .mdhero-reviews a { width: 100%; justify-content: center; padding: 8px 6px; gap: 5px; }
    .mdhero-reviews .name { display: none; }
    .mdhero-reviews .stars { font-size: 10px; letter-spacing: 1px; }
    .mdhero-reviews .count::after { content: ""; }
    .mdhero-trust { padding-top: 14px; }
}


/* ---------- round 20 (PageSpeed) ----------
   poster image is the first paint (and the LCP); the video fades in over it once it is actually playing.
   Headline/copy no longer start at opacity 0 (Chrome ignores invisible text for LCP): they only rise 12px. */
.mdhero-media .mdhero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); }
.mdhero-media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.mdhero-media video.is-playing { opacity: 1; }
.mdhero-copy > *, .mdhero-trust { opacity: 1; transform: translateY(12px); animation-name: mdhero-rise; }
@keyframes mdhero-rise { to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .mdhero-copy > *, .mdhero-trust { transform: none; } .mdhero-media video { display: none; } }

/* round 24 (W5): the new H1 is a full sentence - smaller on phones so it fits in three or four lines */
@media (max-width: 575.98px) { .mdhero .mdhero-title { font-size: 29px !important; line-height: 1.16 !important; letter-spacing: -.01em; } }
@media (min-width: 576px) and (max-width: 991.98px) { .mdhero .mdhero-title { font-size: 40px !important; } }
@media (min-width: 992px) { .mdhero .mdhero-copy { max-width: 820px; } .mdhero .mdhero-title { font-size: clamp(40px, 3.9vw, 56px) !important; line-height: 1.08 !important; } }
