/********** Template CSS **********/
:root {
    --primary: #FDA12B;
    --secondary: #8D9297;
    --light: #F8F9FA;
    --dark: #182333;
    --hero-overlay: rgba(0,0,0,.45);
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    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,
.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 ***/
.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;
}

.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, .65);
    z-index: 1;
}

.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;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .65)), url(../img/carousel-1.webp) 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.webp) 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;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Footer ***/
.footer {
    color: #999999;
}

.footer .btn.btn-link {
    display: block;
    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);
}

/* Force white headings & supporting text in the hero */
.hero .carousel-caption h1,
.hero .carousel-caption h2,
.hero .carousel-caption .kicker,
.hero .carousel-caption .lead,
.hero .carousel-caption p {
  color: #fff !important;
}

/* Optional: add a soft text shadow for extra readability on bright photos */
.hero .carousel-caption h1,
.hero .carousel-caption h2 {
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

/* If any link text inside captions should also be white by default */
.hero .carousel-caption a:not(.btn) { color: #fff !important; }

/* Navbar custom styles */
.navbar {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease;
}

.navbar .nav-link {
  color: #fff !important;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #ffdfba !important; /* lighter orange tint */
  transform: translateY(-2px);
}

.navbar-brand img {
  height: 45px;
  width: auto;
}

.navbar-brand h1 {
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Dropdown menu styling */
.navbar .dropdown-menu .dropdown-item {
  font-weight: 500;
  color: #333;
}

.navbar .dropdown-menu .dropdown-item:hover {
  background-color: #f47c20;
  color: #fff;
}

/* Toggler customization for dark background */
.navbar-toggler {
  border-color: #fff;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Increase logo size and align it nicely */
.navbar-brand .brand-logo {
  height: 70px;        /* larger logo */
  width: auto;         /* maintain aspect ratio */
  max-height: 80px;    /* prevent overflow */
  transition: all 0.3s ease;
}

@media (max-width: 991px) {
  .navbar-brand .brand-logo {
    height: 60px;      /* slightly smaller on tablets/phones */
  }
}

.navbar-brand h1 {
  font-size: 1.8rem;
  line-height: 1;
}

/* Optional: adjust vertical alignment */
.navbar-brand {
  gap: 10px; /* space between logo and text */
  align-items: center;
}

/* Feature cards */
.feature-cards { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

.rb-card {
  background: #fff;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rb-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
}

.rb-card-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.rb-card-body {
  padding: 28px 26px 32px;
  text-align: center;
  color: #5a5f63;
  line-height: 1.75;
}

.rb-card-title {
  margin: 2px 0 14px;
  font-weight: 700;
  color: #222;
  font-size: 1.55rem;         /* close to screenshot */
  letter-spacing: .2px;
}

/* Optional: soft card edge shadow like the screenshot */
@media (min-width: 992px) {
  .rb-card { box-shadow: 0 14px 40px rgba(0,0,0,.09); }
}

/* Tighten copy on small screens */
@media (max-width: 575.98px) {
  .rb-card-body { padding: 22px 18px 26px; }
  .rb-card-title { font-size: 1.35rem; }
}

/* Footer logo */
.footer-logo {
  height: 65px;      /* Adjust size as desired */
  width: auto;
  display: block;
  filter: brightness(0) invert(1); /* ensures white logo on dark background */
}

/* Footer text tweaks */
.footer p,
.footer a.btn-link {
  color: rgba(255, 255, 255, 0.7);
}
.footer a.btn-link:hover {
  color: #f47c20;
  text-decoration: none;
}
.text-light-50 { color: rgba(255, 255, 255, 0.7); }

/* Social icons */
.footer .btn-square {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  line-height: 36px;
  transition: all 0.3s ease;
}
.footer .btn-square:hover {
  background-color: #f47c20;
  color: #fff;
  border-color: #f47c20;
}

.faqs .section-header p {
  font-weight: 600;
  letter-spacing: 1px;
  color: #f47c20;
}

.faqs .card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,.05);
  margin-bottom: 15px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.faqs .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(0,0,0,.08);
}

.faqs .card-header {
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

.faqs .card-header a {
  display: block;
  font-weight: 600;
  color: #222;
  text-decoration: none;
  padding: 15px 20px;
}

.faqs .card-header a:hover {
  color: #f47c20;
}

.faqs .card-body {
  background: #fff;
  padding: 18px 24px 22px;
  color: #555;
  line-height: 1.7;
}

/* Navbar Custom */
.navbar {
  background-color: #1b2233 !important;
}
.navbar .nav-link:hover,
.navbar .dropdown-item:hover {
  color: #f47c20 !important; /* R Builders orange accent */
}
.navbar-brand .brand-logo {
  height: 60px;
  width: auto;
  transition: transform 0.2s ease;
}
.navbar-brand .brand-logo:hover {
  transform: scale(1.05);
}

.blog .section-header p {
  color: #f47c20;
  letter-spacing: 1px;
}

.blog-item {
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.blog-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.blog-meta a {
  color: #f47c20;
}
.blog-meta a:hover {
  text-decoration: underline;
}

.blog-content p {
  line-height: 1.6;
  font-size: 0.95rem;
}

.btn-outline-primary {
  color: #f47c20;
  border-color: #f47c20;
}
.btn-outline-primary:hover {
  background-color: #f47c20;
  color: #fff;
}

/* Partners Section */
.partners {
  overflow: hidden;
  position: relative;
}

.partners-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.partners-track {
  display: flex;
  width: calc(250px * 12); /* 6 logos x 2 loops */
  animation: scrollPartners 30s linear infinite;
}

.partner {
  flex: 0 0 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.partner img {
  max-width: 160px;
  filter: brightness(0) invert(1); /* make logos white on dark bg */
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.partner img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Animation */
@keyframes scrollPartners {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 768px) {
  .partner img {
    max-width: 120px;
  }
  .partners-track {
    animation-duration: 40s;
  }
}
