/* Home hero – background video */
.hero-video-slide {
    position: relative;
    overflow: hidden;
    min-height: 100vh !important;
    min-height: 100svh !important;
    height: 100vh;
    height: 100svh;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 23, 60, 0.7) 0%, rgba(0, 23, 60, 0.3) 50%, rgba(0, 23, 60, 0) 100%),
        linear-gradient(0deg, rgba(0, 23, 60, 0.55) 0%, rgba(0, 23, 60, 0) 30%);
}

.hero-video-slide > .container {
    position: relative;
    z-index: 2;
    /* leave room for the fixed navbar, scale with viewport height */
    padding-top: clamp(80px, 10vh, 110px);
    padding-bottom: clamp(40px, 10vh, 110px);
}

.hero-video-slide .slider-content {
    margin-top: 0 !important;
}

.hero-video-slide .slider-content h1,
.hero-video-slide .slider-content h2 {
    /* sized by whichever is tighter: width or height of the screen */
    font-size: clamp(36px, min(6vw, 9vh), 90px);
    line-height: 1.15;
    margin-bottom: clamp(14px, 3vh, 32px);
}

.hero-video-slide .slider-content p {
    max-width: 680px;
    font-size: clamp(15px, min(1.3vw, 2.3vh), 18px);
    line-height: 1.6;
}

.hero-video-slide .slider-content h1,
.hero-video-slide .slider-content h2,
.hero-video-slide .slider-content p {
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero-video-slide .slider-btn {
    margin-top: clamp(18px, 3.5vh, 36px) !important;
    margin-bottom: 0 !important;
}

@media (max-width: 991px) {
    .hero-video {
        object-position: 70% center;
    }
    .hero-video-overlay {
        background: linear-gradient(180deg, rgba(0, 23, 60, 0.4) 0%, rgba(0, 23, 60, 0.65) 100%);
    }
}

/* very short screens (landscape phones): let the section grow instead of clipping */
@media (max-height: 500px) {
    .hero-video-slide {
        height: auto;
    }
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: clamp(16px, 4vh, 36px);
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-scroll:hover,
.hero-scroll:focus-visible {
    color: #ee690c;
}

.hero-scroll-mouse {
    position: relative;
    width: 24px;
    height: 38px;
    border: 2px solid currentColor;
    border-radius: 14px;
}

.hero-scroll-wheel {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: currentColor;
    animation: hero-scroll-wheel 1.8s ease-in-out infinite;
}

.hero-scroll-text {
    white-space: nowrap;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
}

@keyframes hero-scroll-wheel {
    0%   { opacity: 0; transform: translateY(0); }
    30%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(12px); }
}

@media (max-height: 560px) {
    .hero-scroll {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
    .hero-scroll-wheel {
        animation: none;
    }
}

/* Our Technological Proficiencies — the four boxes
   Numbers removed; the boxes are tighter and equal in height per row, with
   the icon kept at the bottom. */
.home-proficiencies .row > [class*="col-"] {
    display: flex;
}
.home-proficiencies .services-08-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: clamp(28px, 3vw, 40px) clamp(24px, 3vw, 44px);
}
.home-proficiencies .services-08-content {
    flex: 1 1 auto;
}
.home-proficiencies .services-08-content h3 {
    margin-bottom: 14px;
}
.home-proficiencies .services-08-content p {
    margin-bottom: 0;
}
.home-proficiencies .services-08-thumb {
    margin-top: 24px;
}
.home-proficiencies .services-08-thumb img {
    height: 48px;
}

/* ---------------------------------------------------------- mobile rhythm */
@media (max-width: 767px) {
    /* Our Technological Proficiencies: less air above, title on one line */
    #about.about-area {
        padding-bottom: 36px !important;
    }
    .home-proficiencies {
        padding-top: 32px !important;
        padding-bottom: 36px !important;
    }
    .home-proficiencies .section-title {
        margin-bottom: 28px !important;
        width: 100% !important;
    }
    .home-proficiencies .section-title h2 {
        /* sized to its own text and centred on the screen, so it stays
           centred even when the line is wider than the column */
        width: max-content;
        max-width: calc(100vw - 16px);
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
        margin-right: 0;
        font-size: clamp(19px, 6.5vw, 30px);
        font-weight: 600;
        white-space: nowrap;
        letter-spacing: -0.01em;
    }
    /* Why Choose Real Consulting: less air above */
    .home-proficiencies + .service-details-two {
        padding-top: 48px !important;
    }
    .home-proficiencies + .service-details-two .mt-50 {
        margin-top: 0 !important;
    }
    /* Why Choose Real Consulting: small icon to the left of the title,
       description full width below */
    .dark_mini_section .services-box07 .sr-contner {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        column-gap: 16px;
    }
    .dark_mini_section .services-box07 .sr-contner .text {
        display: contents;
    }
    .dark_mini_section .services-box07 .sr-contner .icon {
        width: 56px;
        margin: 0;
    }
    .dark_mini_section .services-box07 .sr-contner .icon img {
        width: 100%;
        height: auto;
    }
    .dark_mini_section .services-box07 .sr-contner .text h3,
    .dark_mini_section .services-box07 .sr-contner .text h5 {
        margin: 0;
    }
    .dark_mini_section .services-box07 .sr-contner .text p {
        grid-column: 1 / -1;
    }
}

/* Mobile hero: grow with the content instead of clipping to the screen, and
   keep a reserved band at the bottom for the scroll cue so it can never sit
   on top of the button (small phones, enlarged system text). */
@media (max-width: 767px) {
    .hero-video-slide {
        height: auto !important;
        min-height: 100vh !important;
        min-height: 100svh !important;
    }
    .hero-video-slide > .container {
        padding-bottom: 120px;
    }
    .hero-scroll {
        bottom: 22px;
    }
}
