/* ===========================================================
   HeavenMotion – custom overrides for index-heavenmotion.html
   (keeps the original Udrone template files untouched)
   =========================================================== */

/* ---------- Logo in header ---------- */
header #logo img {
    height: 66px;
    width: auto;
    max-width: none;
}
header.smaller #logo img {
    height: 54px;
}
@media (max-width: 991px) {
    header #logo img,
    header.smaller #logo img {
        height: 48px;
    }
}

/* ---------- HERO ---------- */
.hm-hero {
    position: relative;
    padding: 175px 0 0;
    overflow: hidden;
}
.hm-hero .jarallax-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.hm-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(8,13,26,.55) 0%, rgba(8,13,26,.25) 35%, rgba(8,13,26,.85) 100%),
        radial-gradient(ellipse at 50% 40%, rgba(8,13,26,.10) 0%, rgba(8,13,26,.70) 100%);
}
.hm-hero .container { z-index: 2; }

.hm-hero-sub {
    letter-spacing: .35em;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    opacity: .9;
}
.hm-hero-title {
    font-size: clamp(2.8rem, 8.5vw, 7.5rem);
    line-height: .92;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: -.015em;
    margin-bottom: 1.4rem;
}
.hm-hero-lead {
    max-width: 600px;
    margin: 0 auto 1.8rem;
    font-size: 1.12rem;
    line-height: 1.6;
    opacity: .88;
}
.hm-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

/* ---------- Cool matched button pair ---------- */
.hm-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 17px 34px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1;
    position: relative;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, background .35s ease, color .35s ease, border-color .35s ease;
}
.hm-btn .hm-arrow {
    display: inline-block;
    transition: transform .3s ease;
}
.hm-btn:hover .hm-arrow { transform: translateX(5px); }

.hm-btn-primary {
    background: linear-gradient(135deg, #8BCEF7 0%, #2f93d8 100%);
    color: #08121f;
    box-shadow: 0 12px 30px rgba(58,160,224,.35);
}
.hm-btn-primary:hover {
    color: #08121f;
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(58,160,224,.55);
}
/* shine sweep on hover */
.hm-btn-primary::after {
    content: "";
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
}
.hm-btn-primary:hover::after { left: 140%; }

.hm-btn-outline {
    background: rgba(255,255,255,.05);
    color: #fff;
    border: 1px solid rgba(255,255,255,.55);
    backdrop-filter: blur(4px);
}
.hm-btn-outline:hover {
    background: #fff;
    border-color: #fff;
    color: #08121f;
    transform: translateY(-3px);
}

/* scroll hint */
.hm-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 12px;
    letter-spacing: .25em;
    text-transform: uppercase;
    opacity: .6;
    animation: hmBounce 2.2s infinite;
}
@keyframes hmBounce {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 8px); }
}

/* ---------- Pilots band (full image visible) ---------- */
.hm-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 1.6rem 0 0;
}
.hm-badges li {
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 30px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}
.hm-pilot-band {
    position: relative;
    margin-top: 60px;
    line-height: 0;
}
.hm-pilot-band > img {
    display: block;
    width: 100%;
    height: auto;
}

/* explained drone diagram, centred over the empty sky between the pilots */
.hm-drone-overlay {
    position: absolute;
    left: 50%;
    top: 56%;
    transform: translate(-50%, -50%);
    width: 41%;
    max-width: 640px;
    z-index: 3;
    line-height: normal;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,.45));
}
.hm-drone-overlay > .relative > img {
    width: 100%;
    height: auto;
}
@media (max-width: 1199px) { .hm-drone-overlay { width: 50%; } }
@media (max-width: 767px)  { .hm-drone-overlay { width: 68%; top: 46%; } }

/* numbered, brand-coloured hotspots on the diagram drone */
.hm-drone-overlay .de-dot::before,
.hm-drone-overlay .de-dot::after {
    width: 26px;
    height: 26px;
    background: #8BCEF7;
}
.hm-drone-overlay .de-dot:hover::after,
.hm-drone-overlay .de-dot.active::after { background: #ffffff; }

/* solid, readable tooltips */
.hm-drone-overlay .de-dot .d-content {
    position: relative;
    z-index: 2;
    background: rgba(8, 18, 31, .97);
    border: 1px solid rgba(139, 206, 247, .35);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
    color: #fff;
}
.hm-drone-overlay .de-dot .d-content h4 { color: #8BCEF7; }

/* layering: keep the blinking dot + number ON TOP of the popup */
.hm-drone-overlay .de-dot { z-index: 30; }
.hm-drone-overlay .de-dot:hover,
.hm-drone-overlay .de-dot.active { z-index: 50; }
.hm-drone-overlay .de-dot::before { z-index: 4; }
.hm-drone-overlay .de-dot::after  { z-index: 4; }
.hm-drone-overlay .de-dot .hm-dot-num { z-index: 5; }

/* short caption over the empty sky */
.hm-pilot-caption {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    width: 92%;
    text-align: center;
    line-height: normal;
}
.hm-pilot-caption .subtitle { margin-bottom: 6px; }
.hm-pilot-caption h3 {
    margin: 0;
    font-size: clamp(1.4rem, 2.6vw, 2.2rem);
    text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
@media (max-width: 767px) {
    .hm-pilot-caption { top: 3%; }
    .hm-pilot-caption h3 { font-size: 1.1rem; }
}
.hm-dot-num {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    font-size: 12px;
    font-weight: 800;
    color: #08121f;
    line-height: 1;
    pointer-events: none;
}

/* always-visible feature legend under the drone diagram */
.hm-drone-legend {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 26px;
    margin-top: 64px;
}
.hm-feat {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-align: left;
}
.hm-feat-num {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8BCEF7 0%, #2f93d8 100%);
    color: #08121f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 6px 16px rgba(58,160,224,.3);
}
.hm-feat h5 {
    margin: 0 0 5px;
    font-size: 16px;
    line-height: 1.25;
}
.hm-feat p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    opacity: .68;
}
@media (max-width: 991px) {
    .hm-drone-legend { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 575px) {
    .hm-drone-legend { grid-template-columns: 1fr; }
}
