/********** Template CSS **********/
:root {
    --primary: #FDA12B;
    --secondary: #8D9297;
    --light: #F8F9FA;
    --dark: #182333;
}

/* Hide breadcrumb path across all pages */
.page-header .breadcrumb,
.page-header nav[aria-label="breadcrumb"] {
    display: none !important;
}

/* Apply the same mobile alignment to all small phones up to tablets in portrait */
@media (max-width: 767.98px) {
    /* Hero (header-navbar) mobile dropdown: make submenu dark */
    .header-navbar .dropdown-menu {
        background: rgba(20, 20, 20, 0.98) !important;
        border: 1px solid rgba(255,255,255,0.08) !important;
        box-shadow: 0 10px 24px rgba(0,0,0,0.6) !important;
    }
    .header-navbar .dropdown-menu .dropdown-item {
        color: #f1f1f1 !important;
        background: transparent !important;
    }
    .header-navbar .dropdown-menu .dropdown-item:hover,
    .header-navbar .dropdown-menu .dropdown-item:focus,
    .header-navbar .dropdown-menu .dropdown-item.active {
        color: #ffffff !important;
        background: rgba(255,255,255,0.08) !important;
    }
    /* Hero navbar: brand + hamburger on the LEFT, same line; menu opens below left */
    .header-navbar .container-fluid {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        position: relative; /* anchor absolute dropdown */
    }
    .header-navbar .navbar-brand {
        order: 0;
        flex: 0 0 auto;
        text-align: left;
        margin-right: 0;
    }
    .header-navbar .navbar-toggler {
        order: 1;
        margin-left: 2rem; /* even more space between brand and menu */
        margin-right: 0;
    }
    .header-navbar .navbar-collapse {
        order: 3;
        width: 100%;
        justify-content: flex-start !important;
    }

    /* When mobile menu opens: overlay below header row without shifting layout */
    .header-navbar .navbar-collapse.collapse.show,
    .header-navbar .navbar-collapse.collapsing {
        position: absolute !important;
        top: 100% !important;
        left: 8px !important;
        right: auto !important;
        width: min(80vw, 340px) !important;
    
        /* FULL BLACK, NO TRANSPARENCY */
        background: #000000 !important;  
    
        /* remove glassy effect if applied */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    
        border: 3px solid #222222;
        border-radius: 14px;
        padding: 1rem;
        margin-top: 8px;
        z-index: 1050;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    
        box-shadow: 0 12px 35px rgba(0,0,0,1);
    }
    
    .header-navbar .navbar-collapse .navbar-nav {
        align-items: flex-start;
        width: 100%;
    }
    .header-navbar .navbar-collapse .navbar-nav .nav-link {
        text-align: left;
        width: 100%;
        color: #ffffff !important; /* ensure visible */
        padding: 0.6rem 0.5rem 0.6rem 0.6rem;
        border-radius: 6px;
    }
    .header-navbar .navbar-collapse .navbar-nav .nav-link:hover,
    .header-navbar .navbar-collapse .navbar-nav .nav-link:focus {
        background: rgba(255,255,255,0.08);
        color: #fff !important;
    }
    .header-navbar .navbar-collapse .dropdown-menu {
        background: transparent;
        border: 0;
        box-shadow: none;
        padding-left: 0.35rem;
        margin: 0.15rem 0 0.35rem;
    }
    .header-navbar .navbar-collapse .dropdown-item {
        color: #ffffff;
        padding: 0.5rem 0.5rem 0.5rem 1.4rem;
        border-radius: 6px;
    }
    .header-navbar .navbar-collapse .dropdown-item:hover,
    .header-navbar .navbar-collapse .dropdown-item:focus {
        background: rgba(255,255,255,0.08);
        color: #fff;
    }

    /* Hero caption: anchor content to the left on small phones/tablets */
    #header-carousel .carousel-caption {
        text-align: left;
        align-items: flex-start;
        padding-left: 12px;
        padding-right: 12px;
    }
    #header-carousel .carousel-caption .row {
        justify-content: flex-start !important;
    }
    #header-carousel .carousel-caption .col-12.col-lg-10 {
        margin-left: 0 !important;
        padding-left: 0;
        padding-right: 0;
    }
}
.back-to-top {
    position: fixed;
    display: none; /* default hidden */
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/* Remove back-to-top button on all pages */
.back-to-top {
    display: none !important;
}

/* WhatsApp Floating Button */
#whatsapp-button {
    position: fixed;
    bottom: 20px;     /* distance from bottom */
    right: 20px;      /* distance from right */
    z-index: 1000;
  
    display: flex;            /* icon + text in one line */
    align-items: center;
    gap: 8px;                 /* spacing between icon and text */
  
    background: #25D366;      /* WhatsApp green */
    padding: 10px 18px;
    border-radius: 40px;      /* pill shape */
    text-decoration: none;
  
    box-shadow: 0px 2px 8px rgba(37, 211, 102, 0.6);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  #whatsapp-button img {
    width: 28px;
    height: 28px;
  }
  
  #whatsapp-button span {
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;  /* prevent text from breaking */
  }
  
  #whatsapp-button:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 12px rgba(37, 211, 102, 0.9);
  }
  

/* On tablets/desktop, place WhatsApp button mid-right */
@media (min-width: 768px) {
    #whatsapp-button {
        top: 50%;
        bottom: auto;
        right: 20px;
        transform: translateY(-50%);
    }
}

#whatsapp-button img:hover {
    transform: scale(1.1);
}

/* Desktop/Large screens: keep overlay full height, lift caption content */
@media (min-width: 992px) {
    /* Ensure overlay covers entire image */
    #header-carousel .carousel-caption {
        bottom: 0; /* full height overlay */
    }
    /* Move the text/button up without shrinking overlay */
    #header-carousel .carousel-caption .container {
        transform: translateY(-10vh);
    }
}


/*** 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,
.btn.btn-outline-primary:hover {
    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 ***/
.header-title {
    font-size: 1.1rem;
    white-space: nowrap; /* keep on one line */
    overflow: visible;   /* show full text */
    text-overflow: clip; /* no ellipsis */
    max-width: none;     /* no forced truncation */
    line-height: 1.2;
    margin: 0;
    padding: 0;
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 767.98px) {
    .header-title {
        font-size: 1rem;      /* readable on mobile */
        max-width: none;      /* allow full text */
        letter-spacing: -0.2px;
        margin: 0;
        padding: 0;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        display: inline-block;
    }
}

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

.navbar .navbar-nav .nav-link {
    margin-left: 30px;
    padding: 25px 0;
    color: var(--secondary);
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

/* Ensure brand area can grow to show full company name */
.navbar .navbar-brand {
    flex: 1 1 auto;
    min-width: 0; /* allow flexbox to calculate width without forced overflow */
    overflow: visible;
}

/* Prevent truncation of the brand title specifically inside navbar */
.navbar .navbar-brand .header-title {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: 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-left: 0;
        padding: 10px 0;
    }

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

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

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


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    text-align: start;
    background: rgba(0, 0, 0, .7); /* Darker overlay for better contrast */
    z-index: 1;
    padding-top: 80px; /* keep hero text clear of navbar */
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--dark);
    border: 15px solid var(--dark);
    border-radius: 50px;
}

.carousel-caption .breadcrumb-item+.breadcrumb-item::before {
    content: "\f111";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
}

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

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 3rem;
        height: 3rem;
        border-width: 12px;
    }

    /* On small screens, add extra space so mobile menu doesn't overlap hero text */
    .carousel-caption {
        padding-top: 100px;
    }
}

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

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Facts ***/
.facts-overlay {
    position: absolute;
    padding: 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, .65);
}

.facts-overlay h1 {
    font-size: 120px;
    color: transparent;
    -webkit-text-stroke: 2px var(--primary);
}

.facts-overlay a:hover {
    color: var(--primary) !important;
}


/*** Service ***/
.service-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: var(--primary);
    opacity: 0;
    transition: .5s;
}

.service-item:hover .service-text::before {
    height: 100%;
    opacity: 1;
}

.service-text * {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.service-item:hover .service-text * {
    color: #FFFFFF !important;
}


/*** Appointment ***/
.appointment {
    background: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .65)), url(../img/carousel-2.jpg) center center no-repeat;
    background-size: cover;
}


/*** Team ***/
.team-text {
    position: absolute;
    width: 75%;
    bottom: 30px;
    left: 0;
    transition: .5s;
}

.team-item:hover .team-text {
    width: 100%;
}

.team-text * {
    transition: .5s;
}

.team-item:hover .team-text * {
    letter-spacing: 2px;
}


/*** Testimonial ***/
.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: start;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 18px;
    transition: .5s;
}

/* Navbar overlays the hero image */
.header-navbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 1040;
    transition: all .3s ease;
    
    box-shadow: none;

}

.header-navbar .nav-link {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    font-weight: 500;
    padding: 0.6rem 1.4rem;
    margin: 0 0.3rem;
    font-size: 1.1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.header-navbar .nav-link:hover,
.header-navbar .nav-link.active {
    color: var(--primary) !important;
    background: rgba(0, 0, 0, 0.05);
}

/* Hero navbar: align menu to the LEFT (override Bootstrap ms-auto) */
.header-navbar .navbar-collapse {
    justify-content: flex-start !important;
}

.header-navbar .navbar-nav {
    margin-left: 0 !important; /* cancel ms-auto on index */
    gap: 0.35rem; /* small gaps between links */
    flex-wrap: wrap; /* allow wrap if tight */
}

.header-navbar .navbar-brand {
    max-width: 100%;
    padding: 0.5rem 0;
    margin-right: 1rem; /* space between logo/title and menu */
    white-space: nowrap; /* keep title on one line */
}

.header-navbar .header-title {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
    font-size: 1.8rem; /* Desktop size */
    font-family: 'Poppins', sans-serif;
    text-transform: none; /* show normal case */
    letter-spacing: 0.75px;
    transition: all 0.3s ease;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-decoration: none;
    display: inline-block;
    line-height: 1.2;
    /* Force full name on a single line without truncation */
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
    .header-navbar .header-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 991.98px) {
    .header-navbar .header-title {
        font-size: 1.4rem;
        white-space: nowrap; /* prevent wrapping on tablets */
    }
    
    .header-navbar .navbar-brand {
        max-width: 100%;
        padding: 0.3rem 0;
    }

    /* Collapsed menu: add subtle background for readability over hero */
    .header-navbar .navbar-collapse.collapse.show,
    .header-navbar .navbar-collapse.collapsing {
        background: rgba(0, 0, 0, 0.5);
        border-radius: 8px;
        padding: 0.5rem;
        margin-top: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .header-navbar .header-title {
        font-size: 1.2rem;
        line-height: 1.1;
    }
    
    .header-navbar .navbar-brand {
        max-width: 100%;
    }
    
    .header-navbar .navbar-brand .fa-building {
        font-size: 1rem;
        margin-right: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .header-navbar .header-title {
        font-size: 0.9rem; /* smaller on very small phones to keep one line */
    }
    
    .header-navbar .navbar-brand {
        max-width: 100%;
        display: flex;
        align-items: center;
    }
    /* Reduce header horizontal padding to gain space on tiny screens */
    .header-navbar {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* Phone view: brand on LEFT with hamburger NEXT to it on the LEFT; menu opens below aligned LEFT */
    .header-navbar .container-fluid {
        display: flex;
        align-items: center;
        justify-content: flex-start; /* brand + toggler on left */
    }
    .header-navbar .navbar-toggler {
        order: 1;
        margin-left: 0.5rem; /* small gap after brand */
        margin-right: 0;
    }
    .header-navbar .navbar-brand {
        order: 0;
        margin-right: 0; /* tighter on phones */
        flex: 0 0 auto; /* prevent stretching */
        text-align: left; /* visual alignment */
    }
    .header-navbar .navbar-collapse {
        order: 3;
        width: 100%;
        justify-content: flex-start !important; /* collapsed items align left below header row */
    }

    /* Ensure hero takes full viewport height on phones and avoid showing next section */
    #header-carousel,
    #header-carousel .carousel-inner,
    #header-carousel .carousel-item {
        height: 100vh;
    }
    #header-carousel .carousel-item img {
        height: 100vh;
        object-fit: cover;
    }
    /* Hero text: shift slightly left instead of centered */
    #header-carousel .carousel-caption {
        padding-left: 8px;   /* nudge further left */
        padding-right: 8px;
        text-align: left;    /* ensure left alignment */
        align-items: flex-start; /* anchor content to left side */
    }
    #header-carousel .carousel-caption .row {
        justify-content: flex-start !important; /* override justify-content-center */
    }
    #header-carousel .carousel-caption .col-12.col-lg-10 {
        margin-left: 0 !important;
        padding-left: 0;
        padding-right: 0;
    }
    /* Remove extra bottom spacing under hero on phones */
    .container-fluid.p-0.mb-5.position-relative {
        margin-bottom: 0 !important;
    }
    /* Override inline padding-top on hero wrapper to avoid >100vh height */
    .container-fluid.p-0.mb-5.position-relative[style*="padding-top"] {
        padding-top: 0 !important;
    }
    /* XS phones: keep brand + toggler on one line (prevent wrap) */
    .header-navbar .container-fluid {
        flex-wrap: nowrap;
        gap: 20px; /* more gap between brand and toggler on XS */
    }
    .header-navbar .navbar-brand {
        max-width: calc(100% - 92px); /* reserve extra space so title doesn't wrap when gap increases */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .header-navbar .header-title {
        font-size: 0.95rem; /* slightly tighter for very small screens */
        letter-spacing: 0;
        white-space: nowrap;
    }
    .header-navbar .navbar-brand .fa-building {
        font-size: 0.9rem;
        margin-right: 0.4rem;
    }
    .header-navbar .navbar-toggler {
        flex: 0 0 auto;
        padding: 0.2rem 0.35rem;
        margin-left: 3rem !important; /* ensure user's desired spacing on very small phones */
    }
}

/* Mobile: shrink hero heading text to half size */
@media (max-width: 575.98px) {
    .header-title2 {
        font-size: 2.25rem !important; /* half of Bootstrap display-2 (4.5rem) */
        line-height: 1.1;
    }
}

/* Extra-small phones (e.g., iPhone SE): keep brand + toggle on one line and show icon */
@media (max-width: 360px) {
    .header-navbar .navbar-brand .fa-building {
        display: inline-block;
        font-size: 0.85rem;
        margin-right: 0.35rem;
    }
    .header-navbar .header-title { font-size: 0.82rem; }
    .header-navbar .navbar-brand { max-width: calc(100% - 56px); }
    .header-navbar .navbar-toggler { padding: 0.18rem 0.3rem; }
}

.header-navbar .navbar-brand:hover .header-title {
    transform: translateY(-2px);
    text-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.header-navbar .dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 0.5rem;
    border-radius: 8px;
}

.header-navbar .dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.2s;
}

.header-navbar .dropdown-item:hover {
    background: #f8f9fa;
    color: var(--dark) !important;
    transform: translateX(5px);
}

/* Removed duplicate header-title and header-title2 block to avoid conflicts */

/* Mobile Topbar (shown above hero on phones/tablets) */
.mobile-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1045; /* above hero image, below modals */
    padding: 6px 12px;
    min-height: 36px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    backdrop-filter: saturate(120%) blur(2px);
}

/* On small screens, drop the navbar slightly to clear the mobile topbar */
@media (max-width: 991.98px) {
    .header-navbar {
        top: 36px !important; /* equal to mobile-topbar height */
    }
}


/* Phones: force white hamburger icon for better contrast on hero */
@media (max-width: 767.98px) {
    /* Only on the hero page navbar */
    .header-navbar.navbar-light .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.98)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    .header-navbar.navbar-light .navbar-toggler {
        border-color: rgba(255,255,255,0.55);
    }
}


.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    .team-item:hover .team-text * {
        letter-spacing: 2px;
    }


    /*** Testimonial ***/
    .testimonial-carousel .owl-item img {
        width: 100px;
        height: 100px;
    }
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #999999;
    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;
    color: #999999;
    margin-right: 10px;
}

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

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}