/* Typography overrides for Montserrat */
:root {
  --bs-body-font-family: "Montserrat", sans-serif;
}

body {
  font-family: "Montserrat", sans-serif !important;
}

/* Home hero - remove old overlay that blocks clicks and adjust spacing */
.section-hero {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  padding: 1.5rem 0 3rem 0;
}
.section-hero:after {
  content: none !important;
  background: none !important;
  pointer-events: none !important;
}
.section-hero img {
  position: static !important;
}

/* Card styling harmony with site colors */
.section-hero .card.bg-dark {
  background-color: #121416;
}
.section-hero .btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

/* Service card styling with new design */
.section-hero .service-card {
  background-color: #FAFAFA !important;
  color: #000 !important;
  border: 1px solid #000 !important;
}
.section-hero .service-card .card-title,
.section-hero .service-card .card-text,
.section-hero .service-card li {
  color: #000 !important;
}
.section-hero .service-card .btn {
  background-color: #FFF !important;
  border-color: #000 !important;
  color: #000 !important;
}

/* Keep button labels visible on hover for custom-colored buttons */
.section-hero .btn:hover,
.section-hero .btn:focus,
.section-hero .btn:active {
  color: #fff !important;
}
.section-hero .btn-primary:hover,
.section-hero .btn-primary:focus,
.section-hero .btn-primary:active {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #fff !important;
}

/* Service card button hover - must come after other button rules for proper specificity */
.section-hero .service-card .service-card-btn:hover,
.section-hero .service-card .service-card-btn:focus,
.section-hero .service-card .service-card-btn:active {
  color: #FFF !important;
  background-color: var(--btn-hover-color, #CC2539) !important;
  border-color: var(--btn-hover-color, #CC2539) !important;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Align card buttons to bottom consistently */
.section-hero .card .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.section-hero .card .card-body .btn {
  margin-top: auto;
}

/* Hero Slideshow Styling */
.swiper-hero {
  position: relative;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.swiper-hero .swiper-slide {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.swiper-hero .hero-slide {
  border-radius: 0;
  width: 100%;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.swiper-hero .swiper-hero-button-prev,
.swiper-hero .swiper-hero-button-next {
  width: 48px;
  height: 48px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  color: #fff;
  margin-top: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
}

.swiper-hero .swiper-hero-button-prev:hover,
.swiper-hero .swiper-hero-button-next:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.swiper-hero .swiper-hero-button-prev {
  left: 20px;
}

.swiper-hero .swiper-hero-button-next {
  right: 20px;
}

.swiper-hero .swiper-hero-button-prev:after,
.swiper-hero .swiper-hero-button-next:after {
  font-size: 20px;
  font-weight: bold;
}

.swiper-hero .swiper-hero-pagination {
  bottom: 20px;
}

.swiper-hero .swiper-hero-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.swiper-hero .swiper-hero-pagination .swiper-pagination-bullet-active {
  background-color: #fff;
}

/* Hero slide button hover effect */
.swiper-hero .hero-slide .btn:hover {
  background-color: #a01e2e !important;
  border-color: #a01e2e !important;
  color: #fff !important;
}

/* Hero slideshow text sizing */
.swiper-hero .hero-slide h1 {
  font-size: 2rem;
}
.swiper-hero .hero-slide p {
  font-size: 1rem;
}

@media (min-width: 768px) {
  .swiper-hero .hero-slide h1 {
    font-size: 3rem;
  }
  .swiper-hero .hero-slide p {
    font-size: 1.2rem;
  }
}

/* Language Switcher Styles */
.language-option.active {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    font-weight: 500;
}

.language-option.active:hover {
    background-color: #e9ecef !important;
    color: #212529 !important;
}

/* Google Translate element - must be rendered but visually hidden */
#google_translate_element {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    visibility: hidden !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden !important;
}

/* Hide Google Translate UI elements (hide, don't remove) */
.goog-logo-link,
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-tooltip {
    display: none !important;
}

/* Fix body positioning when translated */
body {
    top: 0 !important;
}

/* Prevent body scroll when modal is open - ensure it works for all modals */
body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}

/* Ensure modal backdrop covers entire viewport including footer */
.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
}


