/* ==========================================================================
   RORA Enterprises — Modern UX & Visual Enhancement Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Global Smoothness & Scroll
   -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

::selection {
    background: #1f425d;
    color: #ffffff;
}

body {
    animation: roraFadeIn 0.45s ease-out;
}

@keyframes roraFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   2. Top Loading Progress Bar
   -------------------------------------------------------------------------- */
#rora-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #4ab9cf, #e21f2f);
    z-index: 99999;
    transition: width 0.2s ease, opacity 0.4s ease;
    width: 0%;
}

/* --------------------------------------------------------------------------
   3. Header & Navigation Refinements
   -------------------------------------------------------------------------- */
.navbar {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.navbar-shrink {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14) !important;
}

.navbar-nav > li.nav-item > a {
    position: relative;
    overflow: hidden;
}

.navbar-nav > li.nav-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #e21f2f;
    transition: width 0.3s ease, left 0.3s ease;
}

.navbar-nav > li.nav-item > a:hover::after,
.navbar-nav > li.nav-item > a.active::after {
    width: 100%;
    left: 0;
}

/* Dropdown Menu Animation */
@media (min-width: 992px) {
    .navbar .navbar-nav li.dropdown .dropdown-menu {
        display: block !important;
        opacity: 0;
        pointer-events: none;
        transform: translateY(10px);
        transition: opacity 0.25s ease, transform 0.25s ease;
        border: none !important;
        border-radius: 4px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
        padding: 6px 0 !important;
    }

    .navbar .navbar-nav li.dropdown:hover .dropdown-menu {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }
}

.navbar-nav .dropdown-menu li a {
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.navbar-nav .dropdown-menu li a:hover {
    background-color: #f7f9fb;
    color: #1f425d !important;
    padding-left: 20px !important;
}

/* Header widget phone pulsing effect */
.header__widgets .fa-phone {
    display: inline-block;
    animation: phonePulse 2.8s infinite ease-in-out;
}

@keyframes phonePulse {
    0%, 100% {
        transform: scale(1);
        color: #e21f2f;
    }
    50% {
        transform: scale(1.18);
        color: #ff4d5a;
    }
}

/* --------------------------------------------------------------------------
   4. PANEL-LAYOUT & SERVICE SLIDER: EQUAL HEIGHT & SAME SIZE CARDS
   -------------------------------------------------------------------------- */
.panel-layout {
    margin-top: -35px;
    position: relative;
    z-index: 10;
}

.panel-layout .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.panel-layout .col-lg-3,
.panel-layout .col-lg-9 {
    display: flex;
    flex-direction: column;
}

/* Left Welcome Card */
.panel-layout .thumb {
    padding: 30px 28px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    height: 100%;
    min-height: 410px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.28s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.28s ease;
    margin-bottom: 15px;
}

.panel-layout .thumb:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.panel-layout .thumb h3 {
    color: #444444;
    font-weight: 900;
    font-size: 21px;
    margin-bottom: 20px;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.panel-layout .thumb p {
    font-size: 14.5px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 20px;
    flex: 1 1 auto;
}

.panel-layout .thumb a {
    margin-top: auto;
    color: #3dacc2;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.panel-layout .thumb a:hover {
    color: #1f425d;
    text-decoration: none;
    transform: translateX(3px);
}

.panel-layout .thumb a i {
    transition: transform 0.2s ease;
}

.panel-layout .thumb a:hover i {
    transform: translateX(4px);
}

/* Right Service Slider Equal-Height Layout */
#service-slide {
    width: 100%;
    height: 100%;
}

#service-slide .owl-wrapper-outer {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 6px 4px 18px 4px;
}

#service-slide .owl-wrapper {
    display: flex !important;
    align-items: stretch !important;
}

#service-slide .owl-item {
    display: flex !important;
    float: none !important;
    flex-shrink: 0 !important;
    height: auto !important;
}

#service-slide .owl-item .item {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 8px !important;
}

/* Service Slide Card: Exact Same Size & Structure */
.service-slide-card {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    min-height: 410px;
    transition: transform 0.28s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.28s ease;
}

.service-slide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.service-slide-img {
    width: 100%;
    height: 175px;
    min-height: 175px;
    max-height: 175px;
    overflow: hidden;
    background: #eef2f5;
    position: relative;
}

.service-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.service-slide-card:hover .service-slide-img img {
    transform: scale(1.06);
}

.service-slide-body {
    padding: 22px 20px 24px 20px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.service-slide-body h3 {
    font-size: 16px;
    font-weight: 800;
    color: #444444;
    line-height: 1.35;
    margin: 0 0 12px 0;
    height: 48px;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: -0.2px;
}

.service-slide-body p {
    font-size: 14px;
    line-height: 1.55;
    color: #666666;
    margin: 0 0 16px 0;
    height: 88px;
    min-height: 88px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-slide-btn {
    margin-top: auto;
    color: #3dacc2;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.service-slide-btn:hover {
    color: #1f425d;
    text-decoration: none;
    transform: translateX(3px);
}

.service-slide-btn i {
    transition: transform 0.2s ease;
}

.service-slide-btn:hover i {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   5. Our Services Grid (Cards) Lift & Interactive Feel
   -------------------------------------------------------------------------- */
#home_services .card {
    transition: transform 0.28s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.28s cubic-bezier(0.23, 1, 0.32, 1),
                border-bottom 0.28s ease;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
    border-bottom: 2px solid #ddd;
    will-change: transform;
    background: #ffffff;
}

#home_services .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
    border-bottom: 2px solid #1f425d !important;
}

#home_services .card .fa {
    transition: transform 0.25s ease, color 0.25s ease;
}

#home_services .card:hover .fa {
    color: #1f425d !important;
    transform: scale(1.12);
}

/* --------------------------------------------------------------------------
   6. Quick Quote Form Glow & Button
   -------------------------------------------------------------------------- */
#quick_quote .thumb {
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#quick_quote .thumb .form-control,
#quick_quote .thumb .custom-select {
    border: 1px solid #e2e6ea;
    border-radius: 3px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#quick_quote .thumb .form-control:focus,
#quick_quote .thumb .custom-select:focus {
    border-color: #1f425d !important;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(31, 66, 93, 0.12);
    outline: none;
}

#quick_quote .btn-primary {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    border-radius: 3px;
}

#quick_quote .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(74, 185, 207, 0.4);
}

#quick_quote .btn-primary:active {
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   7. Testimonials & Counter Animations
   -------------------------------------------------------------------------- */
.testimonial__quote {
    transition: box-shadow 0.28s ease, transform 0.28s ease;
    border-radius: 4px;
}

.testimonial__quote:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    transform: translateY(-3px);
}

#counter {
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#counter [class*="col-"] {
    transition: transform 0.45s ease, opacity 0.45s ease;
    opacity: 0;
    transform: translateY(22px);
}

#counter [class*="col-"].in-view {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   8. Scroll-to-Top Floating Button
   -------------------------------------------------------------------------- */
#scrollUp {
    background: #1f425d !important;
    border-radius: 50% !important;
    bottom: 24px !important;
    right: 24px !important;
    width: 46px !important;
    height: 46px !important;
    font-size: 18px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    text-decoration: none !important;
    color: #ffffff !important;
}

#scrollUp:hover {
    background: #e21f2f !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

#scrollUp i {
    display: block;
    padding-top: 0 !important;
    line-height: 46px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   9. Footer Interactive Enhancements
   -------------------------------------------------------------------------- */
footer ul.listing li a {
    transition: color 0.2s ease, transform 0.2s ease, padding-left 0.2s ease;
}

footer ul.listing li a:hover {
    color: #4ab9cf !important;
    padding-left: 6px;
}

/* --------------------------------------------------------------------------
   10. Scroll-Reveal Fade-Up Animations
   -------------------------------------------------------------------------- */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   11. Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .panel-layout {
        margin-top: 15px;
    }
    .panel-layout .thumb {
        min-height: auto;
        margin-bottom: 25px;
    }
}

@media (max-width: 768px) {
    #home_services .card:hover {
        transform: none;
    }
    .service-slide-card:hover {
        transform: none;
    }
}

