/********** Template CSS **********/
:root {
    --primary: #FDA12B;
    --secondary: #8D9297;
    --light: #8cb9e6;
    --dark: #182333;
}

.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 #32b8c2;
    }
}

@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(83, 9, 9, 0.65), rgba(15, 1, 1, 0.65)), url(../img/page-bg.png) 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;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #9795a117;
    background: var(--primary);
}


/*** Footer ***/
.footer {
    color: #0d072c;
}

.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);
}
.text-orange {
    color: orange;
  }
  
  .text-skyblue {
    color: rgb(15, 144, 196);
  }

.team-item {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.team-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
/* --- Global Variables for Theming (add to top of file) --- */
:root {
    --bs-primary: #FE5200; /* Original primary color, adjust if needed */
    --bs-secondary: #00BFFF; /* A blue for RamsSmith */
    --bs-light: #F8F9FA;
    --bs-dark: #212529;
    --bs-body-color: #343a40; /* Default text color */
    --bs-secondary-text: #00BFFF; /* For Smith text in logo */
    --bs-dark-tint: #001f3f; /* Darker blue for footer background */
    --bs-text-muted: rgba(255, 255, 255, 0.5); /* For copyright text */

    /* Light Mode Specific Variables */
    --page-bg: #FFFFFF;
    --text-color: #343a40;
    --header-bg: #FFFFFF;
    --footer-bg: #212529;
    --footer-text: #CCCCCC;
    --link-color: #007bff; /* Example link color */
    --border-color: #DEE2E6; /* Default border color */
}

/* Dark Mode Overrides (when data-bs-theme="dark" is active) */
html[data-bs-theme="dark"] {
    --page-bg: #1a1a1a;
    --text-color: #e0e0e0;
    --header-bg: #222222;
    --footer-bg: #111111;
    --footer-text: #AAAAAA;
    --link-color: #64b5f6; /* Lighter link color for dark mode */
    --border-color: #444444; /* Darker border color */
    --bs-primary: #FF8C42; /* Adjust primary for dark mode visibility if needed */
    --bs-secondary-text: #64b5f6; /* Adjust secondary text for dark mode */
    --bs-dark-tint: #000F1F; /* Slightly darker for footer copyright */
    --bs-text-muted: rgba(255, 255, 255, 0.7);
}

/* Apply variables to general elements */
body {
    background-color: var(--page-bg);
    color: var(--text-color);
}

/* Adjust Bootstrap colors using variables (if Bootstrap isn't directly using CSS vars) */
.bg-light { background-color: var(--page-bg) !important; }
.bg-white { background-color: var(--header-bg) !important; }
.bg-dark { background-color: var(--footer-bg) !important; } /* Only apply to footer if it has this class */
.text-body { color: var(--text-color) !important; }
.text-dark { color: var(--text-color) !important; }
.text-white-50 { color: var(--footer-text) !important; }
.text-light { color: var(--footer-text) !important; }
.text-primary { color: var(--bs-primary) !important; } /* Ensures custom primary applies */
.btn-outline-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.btn-outline-primary:hover {
    background-color: var(--bs-primary);
    color: var(--page-bg);
}

/* --- WhatsApp Chat Button CSS (add to your style.css) --- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366; /* WhatsApp green */
    color: white; /* White icon for better contrast */
    border-radius: 50%;
    padding: 16px;
    font-size: 24px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex; /* To center the icon */
    align-items: center;
    justify-content: center;
    text-decoration: none; /* Remove underline */
}

/* WhatsApp Chat Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white; /* Changed to white for better contrast */
  border-radius: 50%;
  padding: 16px;
  font-size: 24px;
  z-index: 1001; /* Make this value higher */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex; /* To perfectly center the icon */
  align-items: center;
  justify-content: center;
  text-decoration: none; /* Ensure no underline */
}

.whatsapp-float:hover {
  background-color: #1ebe57;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  display: none; /* Controlled by JavaScript fadeIn/fadeOut */
  right: 25px; /* Keep this as is if it's working for you */
  bottom: 90px; /* Adjust this value to move it up and away from WhatsApp button */
  z-index: 1000; /* Make this value lower than WhatsApp button's z-index */
  /* Ensure other styles like background-color, border-radius, etc., are also defined */
}

.whatsapp-icon {
    display: block; /* Ensures icon takes full space */
}

/* --- Specific Footer Copyright Background (using new variable) --- */
.footer > .container-fluid {
    background-color: var(--bs-dark-tint);
    color: var(--bs-text-muted);
}

.footer .btn-link {
    color: var(--footer-text); /* Ensure links are visible in dark mode */
    padding: 0;
    text-align: left;
    margin-bottom: 0.5rem; /* Add some spacing between links */
    display: block; /* Make them block level to take full width */
}
.footer .btn-link:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}

/* Adjust text-body class for footer contact info */
footer p a.text-body {
    color: var(--footer-text) !important; /* Ensure footer links are visible */
}
footer p a.text-body:hover {
    color: var(--bs-primary) !important;
}


/* Adjust the Rams Smith logo SVG text for default colors */
.navbar-brand svg text tspan:first-child {
  fill: var(--bs-primary);
}
.navbar-brand svg text tspan:last-child {
  fill: var(--bs-secondary-text);
}


/* Adjust spinner color to match primary */
#spinner .spinner-grow {
    color: var(--bs-primary) !important;
}

/* Adjust Navbar links for active state to use primary color */
.navbar-light .navbar-nav .nav-link.active {
    color: var(--bs-primary) !important;
}
.navbar-light .navbar-nav .nav-link:hover {
    color: var(--bs-primary) !important;
}

/* Make sure the breadcrumb active item is styled correctly */
.breadcrumb-item.active {
    color: var(--text-color) !important; /* Ensure it respects theme */
}

/* Ensure the page header text is white */
.page-header h1,
.page-header .breadcrumb-item a {
    color: white !important;
}

/* Adjust footer text colors where needed, making sure they respect theme vars */
.footer p,
.footer h4,
.footer h5 {
    color: var(--footer-text); /* Use the footer text color variable */
}

/* Override Bootstrap button link default color in footer */
.footer .btn-link {
    color: var(--footer-text); /* Ensure the default link color is applied */
}
.footer .btn-link:hover {
    color: var(--bs-primary); /* Apply primary color on hover */
}

