/********** Template CSS **********/
:root {
    --primary: #65B530;
    --secondary: #9B9B9B;
    --light: #F5F5F5;
    --dark: #161616;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand {
    height: 75px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.navbar .btn:hover {
    color: #FFFFFF !important;
    background: var(--primary) !important;
}


/*** Header ***/
.header-carousel .carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(22, 22, 22, .7);
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    width: 200px;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 15px;
    transition: .5s;
}

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: #FFFFFF;
    border-radius: 5px;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(22, 22, 22, .7), rgba(22, 22, 22, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Service ***/
.service-row {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.service-item {
    border-color: rgba(0, 0, 0, .03) !important;
}

.service-item .see-more-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(101, 181, 48, 0.12);
    color: #65B530;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: auto !important;
    height: auto !important;
}

.service-item .see-more-btn:hover {
    background: #65B530;
    color: #FFFFFF;
}


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-inner {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.portfolio-inner img {
    transition: .5s;
}

.portfolio-inner:hover img {
    transform: scale(1.1);
}

.portfolio-inner .portfolio-text {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: -50px;
    opacity: 0;
    transition: .5s;
}

.portfolio-inner:hover .portfolio-text {
    bottom: 0;
    opacity: 1;
}


/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .quote-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .quote-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .quote-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-item .team-social {
    position: absolute;
    width: 0;
    height: 0;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 22, 22, .7);
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 1;
}

.team-item .team-social .btn {
    opacity: 0;
}

.team-item:hover .team-social .btn {
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel {
    display: flex !important;
    flex-direction: column-reverse;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.testimonial-carousel .owl-dots .owl-dot {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 5px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot::after {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
    transition: .5s;
    opacity: 0;
}

.testimonial-carousel .owl-dots .owl-dot.active::after {
    opacity: 1;
}

.testimonial-carousel .owl-dots .owl-dot img {
    border-radius: 60px;
    opacity: .4;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }

    .contact-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--secondary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

/* ==========================================
   GLOBAL CONTAINER & MAX-WIDTH RESPONSIVENESS
   ========================================== */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body {
    overflow-x: hidden;
    color: #333333;
    font-family: 'Open Sans', sans-serif;
}

.page-header {
    background-size: cover !important;
    background-position: center !important;
}

/* ==========================================
   RESIDENTESERVICES.COM INTEGRATED APP ORBIT
   ========================================== */
.integreted-app-wrapper {
    position: relative;
    width: 100%;
    max-width: 460px;
    height: 460px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integreted-app {
    border-radius: 50%;
    border: 2px dashed rgba(198, 198, 198, 0.45);
    position: relative;
    width: 396px;
    height: 396px;
    margin: 0 auto;
    transition: all 0.3s linear;
    animation: rotateOrbit 30s linear infinite;
}

.integreted-app:hover {
    animation-play-state: paused;
}

.integreted-app:hover .app-icon {
    animation-play-state: paused;
}

.integreted-app:hover .main.app img {
    animation-play-state: paused;
}

/* Central ER Logo Badge matching DevTools `.main.app` */
.integreted-app .main.app {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 114, 255, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 12px;
}

.integreted-app .main.app img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    animation: counterRotateOrbit 30s linear infinite;
}

/* 8 Orbiting Nodes matching DevTools `.app` */
.integreted-app .app {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    z-index: 5;
}

.integreted-app .app:hover {
    transform: scale(1.22) !important;
    box-shadow: 0 12px 28px rgba(101, 181, 48, 0.35);
    border-color: #65B530;
    z-index: 25;
}

.integreted-app .app-icon {
    font-size: 22px;
    color: #65B530;
    animation: counterRotateOrbit 30s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.integreted-app .app-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* 8 Polar Coordinate Node Positions */
.integreted-app .app-1 { top: -30px; left: calc(50% - 30px); }
.integreted-app .app-2 { top: 28px; right: 28px; }
.integreted-app .app-3 { top: calc(50% - 30px); right: -30px; }
.integreted-app .app-4 { bottom: 28px; right: 28px; }
.integreted-app .app-5 { bottom: -30px; left: calc(50% - 30px); }
.integreted-app .app-6 { bottom: 28px; left: 28px; }
.integreted-app .app-7 { top: calc(50% - 30px); left: -30px; }
.integreted-app .app-8 { top: 28px; left: 28px; }

@keyframes rotateOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes counterRotateOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* ==========================================
   FEATURE BULLET ITEM CARDS
   ========================================== */
.feature-bullet-list {
    margin-top: 25px;
    margin-bottom: 30px;
}

.feature-bullet-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.feature-bullet-card:hover {
    transform: translateY(-3px);
    border-color: #65B530;
    box-shadow: 0 8px 25px rgba(101, 181, 48, 0.15);
}

.feature-bullet-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(101, 181, 48, 0.12);
    color: #65B530;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-bullet-content h5 {
    color: #161616;
    font-weight: 700;
    font-size: 1.08rem;
    margin-bottom: 4px;
}

.feature-bullet-content p {
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   ISOMETRIC 3D FLOATING MOCKUP ANIMATION
   ========================================== */
.floating-isometric-mockup {
    animation: floatIsometric 5s ease-in-out infinite;
    transition: all 0.4s ease;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.12));
}

.floating-isometric-mockup:hover {
    animation-play-state: paused;
    transform: scale(1.03) translateY(-8px) !important;
}

.orbit-graphic-container {
    animation: floatOrbitGraphic 6s ease-in-out infinite;
    transition: all 0.4s ease;
}

.circular-orbit-spin {
    animation: circularSpin 30s linear infinite;
    transform-origin: center center;
    transition: all 0.3s ease;
}

.circular-orbit-spin:hover {
    animation-play-state: paused;
}

@keyframes circularSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes floatIsometric {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
    100% { transform: translateY(0px); }
}

@keyframes floatOrbitGraphic {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
    100% { transform: translateY(0px) scale(1); }
}

/* ==========================================
   ULTRA-WIDE & LOW ZOOM (25%-50%) FLUID SCALING
   ========================================== */
@media (min-width: 1400px) {
    .container, .container-lg, .container-xl, .container-xxl {
        max-width: 1380px !important;
    }
}

@media (min-width: 1800px) {
    .container, .container-lg, .container-xl, .container-xxl {
        max-width: 88% !important;
    }
}

@media (min-width: 2500px) {
    .container, .container-lg, .container-xl, .container-xxl {
        max-width: 92% !important;
    }
}

.section-full-wrapper {
    width: 100%;
    padding: 60px 0;
    background: #ffffff;
}

.section-full-wrapper-alt {
    width: 100%;
    padding: 60px 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

/* ==========================================
   ABOUT US PAGE - PROFESSIONAL RESPONSIVE STYLES
   ========================================== */
.about-page-wrapper {
    width: 100%;
    padding: clamp(2rem, 5vw, 4.5rem) 0;
    background-color: #ffffff;
}

.about-header-banner {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.88), rgba(22, 22, 22, 0.85)), url('../images/hero-yellowish-bg.png') center/cover no-repeat;
    padding: clamp(3rem, 6vw, 5.5rem) 0;
    text-align: center;
}

.about-header-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.about-hero-img-box {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-hero-img-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.about-hero-img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.about-content-heading {
    color: #161616;
    font-weight: 800;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

.about-body-text {
    color: #444444;
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.8;
    font-weight: 400;
}

.about-stat-card {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    height: 100%;
}

.about-stat-card:hover {
    border-color: #65B530;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(101, 181, 48, 0.12);
}

.about-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(101, 181, 48, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #65B530;
    font-size: 22px;
    flex-shrink: 0;
}

.about-stat-number {
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    font-weight: 800;
    color: #161616;
    margin-bottom: 2px;
}

.about-stat-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #65B530;
    margin: 0;
}

.about-card-item {
    background: #ffffff;
    padding: 1.75rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #65B530;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    height: 100%;
}

.about-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(101, 181, 48, 0.15);
}

.about-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(101, 181, 48, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #65B530;
    font-size: 24px;
    margin-bottom: 1rem;
}

.about-card-title {
    color: #161616;
    font-weight: 700;
    font-size: clamp(1.1rem, 1.4vw, 1.25rem);
    margin-bottom: 0.75rem;
}

.about-card-desc {
    color: #555555;
    font-size: clamp(0.88rem, 1vw, 0.98rem);
    line-height: 1.65;
    margin: 0;
}

.about-mission-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.about-mission-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.03);
    height: 100%;
    transition: transform 0.3s ease;
}

.about-mission-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(101, 181, 48, 0.1);
}

.about-check-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.about-check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: #333333;
    font-size: clamp(0.9rem, 1vw, 1rem);
    font-weight: 500;
}

.about-check-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #65B530;
    font-size: 16px;
}

.about-header-banner, .page-header {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    padding: clamp(2rem, 4vw, 3.5rem) 0;
}
.about-header-title, .page-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
    .about-header-banner, .page-header {
        padding: 1.5rem 0 !important;
        margin-bottom: 1.5rem !important;
    }
}