/* OVERRIDES */
.bg-warning {
  background-color: #de545b !important; /* A different shade of red */
}

.bg-primary {
  background-color: #3c458b !important; /* A different shade of blue, if you wish */
}

.text-danger {
  color: #de545b !important; /* A different shade of red */
}

.text-warning {
  color: #de545b !important; /* A different shade of red */
}

.text-primary {
  color: #3c458b !important; /* A different shade of blue, for example */
}

.button-danger {
  color: #de545b !important;
}

.button-primary {
  color: #3c458b !important;
}

.btn-primary {
  color: #3c458b;
}

/* MAIN */

body {
  font-family: "Bai Jamjuree", sans-serif;
  scroll-padding-top: 500px;
}

/*  NAVIGATION BAR */
.nav-link-hover:hover {
  color: #de545b !important; /* Change to red on hover */
}

.navbar span {
  color: #3c458b;
}

/* Dropdown menu styling to match the navbar */
.navbar .dropdown-menu {
  background-color: #85888b; /* Same as navbar background */
  /* If you have a specific font family in use for the navbar, apply it here as well */
}

/* Dropdown item styling for text color and hover effects */
.navbar .dropdown-menu .dropdown-item {
  color: #ffffff; /* White text for dropdown items */
  font-weight: normal; /* Match the font weight as per your preference, adjust if needed */
}

.navbar .dropdown-menu .dropdown-item:hover {
  background-color: #de545b; /* Optional: Change background color on hover to match the "warning" theme */
  color: white; /* Change text color on hover for better contrast, if needed */
}

.navbar-brand-logo {
  max-height: 80px; /* Adjust based on your navbar's height */
  width: auto; /* Keeps the logo's aspect ratio */
  margin-right: 15px; /* Adds some space between the logo and the brand name */
}

/* Targets the button on smaller screens where the dropdown is shown */
.navbar .dropdown button.btn-primary {
  background-color: #3c458b; /* Changes the background color */
  border-color: #ffffff; /* Optional: changes the border color to match */
}

/* Adjust the navbar brand container */
.navbar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Style for the main brand name */
.navbar-brand > div > span {
  font-size: 1.5em; /* Larger text for "HUMMEL" */
  display: block; /* Ensure it's on its own line */
  letter-spacing: 0.25em; /* Adjust as needed */
  margin-bottom: -12px;
}

/* Style for the subtext */
.navbar-brand > div > div {
  font-size: 0.8em; /* Smaller text for the subtext */
  display: block; /* Ensure it's on its own line */
  letter-spacing: normal; /* Adjust if needed for even spacing */
  margin-top: -12px;
}

@media (max-width: 991px) {
  .navbar-brand-logo {
    max-height: 100px; /* Smaller logo for smaller screens, adjust as needed */
  }
}

@media (max-width: 991px) {
  .navbar .container-lg .navbar-brand,
  .navbar .container-lg .navbar-brand > div > span,
  .navbar .container-lg .navbar-brand > div > div {
    align-items: flex-start !important;
    text-align: left !important;
  }
}

.sec-sub-title {
  text-transform: uppercase;
  display: inline-block;
  background: #f3f3f5;
  box-shadow: 9px 9px 12px #e4e4e4, -9px -9px 12px #ffffff;
  padding: 3px 10px;
  border-radius: 40px;
  color: #de545b;
  font-size: 28px;
  justify-content: center;
  align-items: center;
}

/* CTA Button Styling */
.btn-cta {
  padding: 8px 20px; /* Adjust padding as needed */
  white-space: nowrap; /* Prevents the text inside the button from wrapping */
  color: #ffffff; /* Text color */
  background-color: #de545b; /* Button color - Adjust based on your design */
  border: 2px solid transparent; /* Border color */
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease; /* Smooth transition for hover effect */
}

.btn-cta:hover {
  background-color: #ffffff; /* Background color on hover */
  color: #de545b; /* Text color on hover */
  border-color: #de545b; /* Border color on hover */
}

/* Adjust navbar link padding and margin for alignment */
.navbar-nav .nav-item .btn-cta {
  margin-left: 15px; /* Adjust as needed for spacing */
  padding: 8px 15px; /* Button padding */
}

@media (max-width: 991px) {
  /* Adjustments for mobile view if necessary */
  .navbar-nav .nav-item .btn-cta {
    margin-left: 0; /* Remove extra margin in collapsed navbar */
    width: 100%; /* Optional: Make the button full width in dropdown */
  }
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .navbar .btn-cta {
    display: inline-block; /* Make the CTA visible in mobile views */
    margin-left: auto; /* Align it to the right of the navbar */
    margin-right: 10px; /* Spacing from the edge */
  }

  /* Optional: Style adjustments for the button when the navbar is collapsed */
  .navbar .btn-cta {
    padding: 5px 10px; /* Smaller padding for compact appearance */
    font-size: 0.9rem; /* Adjust font size for mobile */
  }
}

/* HOME */

#home {
  padding-top: 150px; /* Adjust as needed to ensure enough space from the navbar */
  padding-bottom: 80px; /* Provides ample space around the content */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 991px) {
  #home {
    /* Increase padding-top to accommodate the height of the navbar when it's collapsed */
    /* This value may need to be adjusted depending on the actual height of your collapsed navbar */
    padding-top: 150px !important; /* Adjust this value based on your navbar's height in mobile view */
  }
}

/* Further adjustment if navbar height significantly changes */
@media (max-width: 768px) {
  #home {
    padding-top: 180px; /* Adjust as needed for smaller devices */
  }
}

#hummelCarousel .carousel-inner img {
  max-height: 250px; /* Adjust this value as needed */
  width: auto;
  margin: auto; /* This centers the images if they are not wide enough to fill the container */
}

.scroll-container {
  overflow: hidden;
  width: 100%;
  max-height: 300px; /* Set your desired maximum height here */
  position: relative;
}

.scrolling-wrapper {
  display: flex;
  width: calc(100% * 8); /* Adjust based on the number of images */
  animation: scroll 20s linear infinite;
}

.scroll-image {
  max-height: 300px; /* Set your desired maximum height here */
  width: auto; /* Adjust width automatically to maintain aspect ratio */
  object-fit: cover; /* Maintains aspect ratio and covers the height of the container */
  transition: transform 0.5s ease-in-out; /* Smoothens the start and end of the scrolling */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Adds depth to the images */
  margin-right: 15px; /* Adds a small gap between images */
  border-radius: 15px;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* Scrolls half the total width to loop */
  }
}

@media (max-width: 768px) {
  #home {
    padding-top: 100px; /* Adjusted for smaller screens */
  }
  .scrolling-wrapper {
    width: calc(
      100% * 8
    ); /* Ensure this matches the total number of images including duplicates */
  }
}
/* SERVICES */
.icon-background {
  width: 100px;
  height: 100px;
  border-radius: 50%; /* Maintains the circle shape */
  background-color: #ff8c00; /* Example: Dark orange for heating. Adjust as needed for each service */
  margin: auto;
  margin-top: -50px; /* Pulls the icon above the card */
  position: relative; /* Ensures the shadow respects the icon's shape */
  z-index: 1; /* Elevates the icon above other elements */

  /* Shadow to create a "lifting" effect */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);

  /* Transition for a smooth "pop" effect on hover */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.icon-background:hover {
  /* Slightly "lifts" the icon on hover for added interactivity */
  transform: translateY(-5px);

  /* Enhances the shadow to reinforce the lifting effect */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.19), 0 9px 9px rgba(0, 0, 0, 0.23);
}

.card {
  display: flex; /* Enables flexbox */
  flex-direction: column; /* Stacks children vertically */
  align-items: center; /* Centers children horizontally in the card */
}

.card-body {
  text-align: center; /* Centers text and inline elements like buttons */
}

.card .icon-background {
  display: flex; /* Uses flexbox for centering */
  justify-content: center; /* Centers the child elements horizontally */
  align-items: center; /* Centers the child elements vertically */
  margin-left: auto; /* Additional centering for margin auto */
  margin-right: auto; /* Additional centering for margin auto */
}

h2.sec-sub-title {
  text-align: center; /* Explicitly center-align the text */
  width: 100%; /* Ensure the element spans the full width */
  margin: 0 auto; /* Center-align the element within its parent container */
}

/* For the cooling icon, you can directly set the background-color inline or use an additional class */
.cooling-icon-background {
  background-color: #007bff; /* Blue for cooling */
}

/* Heating Button */
.btn-heating {
  background-color: #d6743c; /* Icon background color */
  color: white;
  border: 2px solid transparent; /* Prepare for hover state */
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease; /* Smooth transition */
}

.btn-heating:hover {
  background-color: white; /* Swap colors */
  color: #d6743c; /* Icon background color */
  border-color: #d6743c; /* Matching border */
}

/* Cooling Button */
.btn-cooling {
  background-color: #007bff; /* Icon background color */
  color: white;
  border: 2px solid transparent;
}

.btn-cooling:hover {
  background-color: white;
  color: #007bff;
  border-color: #007bff;
}

/* Gas Button */
.btn-gas {
  background-color: #973e3e; /* Icon background color */
  color: white;
  border: 2px solid transparent;
}

.btn-gas:hover {
  background-color: white;
  color: #973e3e;
  border-color: #973e3e;
}

/* Plumbing Button */
.btn-plumbing {
  background-color: #3f668f; /* Icon background color */
  color: white;
  border: 2px solid transparent;
}

.btn-plumbing:hover {
  background-color: white;
  color: #3f668f;
  border-color: #3f668f;
}

/* BRANDS */
.brands-list .brand {
  margin: 20px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: inline-block;
  transform: rotate(0deg); /* Ensure there's no rotation initially */
}

.brand-logo {
  width: 200px; /* Adjusted to your logo size */
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: block; /* Ensures the image scales properly */
}

.brands-list .brand:hover {
  transform: scale(1.05) rotate(5deg); /* Scales up and rotates slightly on hover */
  opacity: 0.8; /* Slightly reduces opacity to add focus */
}

/* GALLERY */
.image-slider {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.slide {
  background-size: contain; /* Change to 'contain' to ensure the entire image fits */
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

/* Initial state for the first slide */
.slide:first-child {
  opacity: 1;
}

/* FAQ */
.accordion-button {
  background-color: #3c458b;
  color: white;
}

.accordion-button:not(.collapsed) {
  background-color: #de545b;
  color: white;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-body {
  background-color: #f8f9fa;
}

.accordion-button .fa-chevron-down {
  color: white;
}

#localSeoAccordion .accordion-header .accordion-button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* TESTIMONIALS */
.testimonial-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 20px;
  padding-left: 50px; /* Make room for the quote icon */
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #de545b; /* A colored border for a pop of color */
  margin: 20px 0;
  overflow: hidden; /* Ensures that children elements do not overflow the rounded corners */
}

.testimonial-card::before {
  content: "“"; /* Unicode character for left double quotation mark */
  font-size: 80px;
  position: absolute;
  left: 10px; /* Adjust based on padding */
  top: 10px; /* Adjust to fit */
  color: #007bff; /* Match the border or choose another accent color */
  opacity: 0.2; /* Subtle appearance */
}

.testimonial-card::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    to right,
    #ffffff,
    #3c458b
  ); /* A gradient at the bottom */
  bottom: 0;
  left: 0;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  text-align: right;
  font-weight: bold;
  color: #3c458b; /* Color to match the theme */
}

/* Review Button */
.btn-review {
  background-color: #de545b; /* A green background for action encouragement */
  color: white;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.btn-review:hover {
  background-color: white;
  color: #de545b;
  border-color: #de545b;
}

/* FOOTER */
.site-footer {
  background-color: #a7a7a7; /* Dark background for contrast */
  color: #ffffff; /* White text for readability */
}

.site-footer span {
  color: #3c458b;
}

.footer-link {
  color: #ffffff; /* Ensures links are visible */
  text-decoration: none; /* No underline for a cleaner look */
}

.footer-link:hover {
  color: #de545b; /* Highlight color when hovered */
}

.site-footer i {
  color: #ffffff; /* White icon */
}

.site-footer i:hover {
  color: #3c458b; /* Highlight color when hovered */
}

.site-footer h5 {
  margin-bottom: 20px;
}

.site-footer p {
  margin-bottom: 10px;
}

.list-unstyled li {
  margin-bottom: 10px; /* Space between list items */
}

/* LOCAL SEO */
/* Adjustments specific to the Local SEO Accordion */
#localSeoAccordion .accordion-button {
  background-color: #3c458b; /* Primary color */
  color: white;
}

#localSeoAccordion .accordion-button:not(.collapsed) {
  background-color: #de545b; /* Slightly darker for contrast when expanded */
  color: white;
}

#localSeoAccordion .accordion-button:focus {
  box-shadow: none;
}

#localSeoAccordion .accordion-body {
  background-color: #f8f9fa;
}

/* Styling for Local SEO links */
.seo-link {
  color: #3c458b; /* Normal link color */
  text-decoration: none;
}

.seo-link:hover {
  color: #de545b; /* Hover state color */
}

#localSeoAccordion .accordion-header .accordion-button {
  width: 100%; /* Ensure the button spans the full width of its parent */
  text-align: center; /* Center the text within the button */
  justify-content: center; /* Center the button's content for flex display */
}

/* CONTACT */
.btn-submit {
  background-color: #de545b;
  color: white;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background-color: white;
  color: #de545b;
  border-color: #de545b;
}

/* REVIEW */
#review {
  padding-top: 150px; /* Adjust as needed to ensure enough space from the navbar */
  padding-bottom: 80px; /* Provides ample space around the content */
}

/* Slider Track */
input[type="range"] {
  -webkit-appearance: none; /* Override default CSS styles */
  appearance: none;
  width: 100%; /* Full-width */
  height: 15px; /* Specified height */
  background: #ddd; /* Grey background */
  outline: none; /* Remove outline */
  opacity: 0.7; /* Set transparency (cross-browser) */
  transition: opacity 0.2s;
}

/* Slider Handle */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; /* Override default look */
  appearance: none;
  width: 20px; /* Set a specific slider handle width */
  height: 20px; /* Slider handle height */
  background: #3c458b; /* Green background */
  cursor: pointer; /* Cursor on hover */
}

input[type="range"]::-moz-range-thumb {
  width: 20px; /* Set a specific slider handle width */
  height: 20px; /* Slider handle height */
  background: #3c458b;
  cursor: pointer; /* Cursor on hover */
}

/* Optional: Slider focus */
input[type="range"]:focus {
  outline: none; /* Removes the outline */
  opacity: 1; /* Fully opaque on focus */
}

/* Optional: Specific styles for satisfaction rating icons */
#satisfactionRatingIcons .fas {
  color: #3c458b; /* Blue color for the icons */
  font-size: 35px; /* Adjust size as needed */
}

/* Custom styles for radio buttons */
.custom-radio .form-check-input {
  /* Hide the default radio button */
  appearance: none;
  background-color: #fff; /* Default background */
  border: 2px solid #3c458b; /* Blue border */
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 20px;
  width: 20px;
  margin-right: 8px;
  border-radius: 50%; /* Circle border */
  cursor: pointer; /* Hand cursor on hover */
  align-items: center;
  justify-content: center;
  display: inline-flex;
}

.custom-radio .form-check-input:checked {
  background-color: #3c458b; /* Blue background on check */
  border-color: #3c458b; /* Blue border on check */
}

.custom-radio .form-check-input:checked::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #fff; /* White center on check */
  border-radius: 50%; /* Circle inside circle */
}

/* COMING SOON */
.icon-circle {
  font-size: 60px; /* Large icon size */
  color: #ffffff; /* White icon color */
  background-color: #de545b; /* Circle background color */
  border-radius: 50%; /* Makes the div circular */
  width: 100px; /* Width of the circle */
  height: 100px; /* Height of the circle */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px; /* Center the icon and add space below */
}
