/********** Template CSS **********/
:root {
    --primary: #2878EB;
    --secondary: #F14D5D;
    --light: #ECF4FF;
    --dark: #120F2D;
}

[class^=flaticon-]:before,
[class*=" flaticon-"]:before,
[class^=flaticon-]:after,
[class*=" flaticon-"]:after {
    font-size: inherit;
    margin-left: 0;
}

h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary,
.btn-primary:hover,
.btn-secondary:hover {
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    position: relative;
    margin-left: 30px;
    /* padding: 30px 0; */
    padding: 20px 0 14px;   /* ⬅ reduced bottom gap */
    font-size: 20px;
    font-weight: 500;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
}

/* Space between navbar and carousel */
.navbar {
    margin-bottom: 50px;   /* adjust: 16–32px */
}


.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        /* height: 5px;
        bottom: 0; */
        height: 4px;          /* ⬅ slightly slimmer */
        bottom: 6px;          /* ⬅ moves line UP closer to text */
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

/* Navbar brand styling */
.navbar-logo {
    height: 55px;
}


.navbar-title {
    font-size: 3.3rem;
    font-weight: 800;
    color: #dc3545;
    line-height: 1.2;
    white-space: normal;   /* ✅ allow wrap */
}


/* Smaller phone CTA */
.nav-contact {
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
}

/* Remove underline animation from phone */
.navbar-light .navbar-nav .nav-link.nav-contact::before {
    display: none !important;
}

@media (max-width: 991px) {
    .navbar-brand {
        max-width: 100%;
        flex-wrap: wrap;   /* ✅ allow logo + text wrap */
    }

    .navbar-logo {
        height: 42px;
    }

    .navbar-title {
        font-size: 1.5rem;
        line-height: 1.1;
    }

     .navbar-light .navbar-nav .nav-link {
        font-size: 16px;     /* ✅ perfect mobile size */
        padding: 8px 0;
    }
}


.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(18, 15, 45, .5); */
    background: transparent;   /* ✅ FIX */
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    z-index: 3;
}

.carousel-caption {
    z-index: 1;
    background: transparent;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    filter: invert(1);
}

.carousel-indicators {
    align-items: flex-end;
}

.carousel-indicators [data-bs-target] {
    width: 5px;
    height: 25px;
}

.carousel-indicators .active {
    height: 45px;
}
/* Carousel height */
#header-carousel,
#header-carousel .carousel-inner,
#header-carousel .carousel-item {
    height: 60vh;   /* adjust if needed */
}


/* Carousel height */
.carousel-item {
    height: 75vh;
}

/* Image – full image, no crop */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* ✅ THIS is the key fix */
.carousel-inner {
    background-color: #ffffff;   /* pure white */
}


/* @media (max-width: 768px) {
    #header-carousel,
    #header-carousel .carousel-inner,
    #header-carousel .carousel-item {
        height: calc(100vh - 70px);
    }
} */

@media (max-width: 768px) {
    /* Let carousel auto-size to image */
    #header-carousel,
    #header-carousel .carousel-inner,
    #header-carousel .carousel-item {
        height: auto !important;
        min-height: auto !important;
    }

    /* Remove extra padding/margin from hero */
    .hero-header {
        padding: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Adjust carousel image */
    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    /* Reduce navbar margin */
    .navbar {
        margin-bottom: 20px;
    }

    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem; /* reduces default size */
    }
}



.hero-header {
    background: linear-gradient(rgba(18, 15, 45, .5), rgba(18, 15, 45, .5)), url(../img/carousel-1.jpg) top right no-repeat;
    background-size: cover;
}


.bg-offer {
    background: linear-gradient(rgba(18, 15, 45, .5), rgba(18, 15, 45, .5)), url(../img/carousel-2.jpg) top right no-repeat;
    background-size: cover;
}

  #sent:target {
      display: block !important;
  }


  .info-card {
    background: rgba(185, 102, 102, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  }

  .info-card i {
    transition: all 0.4s ease;
    color: #ff3c00; /* Bright red accent */
  }

  .info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
    background: rgba(255, 255, 255, 0.12);
  }

  .info-card:hover i {
    color: #ff5e00;
    text-shadow: 0 0 15px rgba(255,94,0,0.6);
  }

  .info-card h4 {
    color: #2166ac;  /* White text */
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  .info-card p {
    color: #868181;  /* Soft light gray for readability */
    font-size: 0.95rem;
    line-height: 1.6;
  }


/* =========================
   SERVICES IMAGE CARDS
   ========================= */

.service-item {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

/* Overlay */
.service-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 15, 0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.35s ease-in-out;
}

/* Desktop hover */
@media (min-width: 992px) {
    .service-item:hover .service-overlay {
        opacity: 1;
    }
}

/* Mobile & tablet */
@media (max-width: 991px) {
    .service-overlay {
        opacity: 1;
    }

    .service-item {
        height: auto;
        min-height: 280px;
    }

    .service-overlay p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}
