/* -------------------------------------------------------
   Global Styles - Handover 360 / CiviTech Audit Solutions
   Matches Havensure design structure and responsiveness
---------------------------------------------------------- */

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #000;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: bold;
}

/* -------------------- Navbar -------------------- */
.navbar {
  background-color: white !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-brand img {
  border-radius: 0 !important;
  object-fit: contain;
  width: 250px;
  height: 80px;
}

.navbar .nav-link {
  color: #044aad !important; /* primary blue */
  font-weight: 500;
  margin: 0 10px; /* equal spacing between items */
  transition: color 0.3s ease;
}

.navbar .nav-link:hover {
  color: #ff3131 !important; /* red hover */
}

.navbar .nav-link.active {
  color: #ff3131 !important;
}

/* Mobile Navbar Adjustments */
.navbar-toggler {
  border: none;
  outline: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* -------------------- Search Button -------------------- */
#searchToggle {
  background: #ff3131;
  border: none;
  color: #000;
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

#searchToggle:hover {
  background: #fff;
  color: #ff3131;
  transform: scale(1.1);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4);
}

#navbarSearch {
  display: none;
  width: 200px;
  transition: width 0.3s ease;
}

/* -------------------- Video Header -------------------- */
.video-header {
  position: relative;
  height: 70vh;
  width: 100%;
  overflow: hidden;
}

.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: -1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.video-overlay h1 {
  font-size: 2.8rem;
  font-weight: bold;
}

.video-overlay p {
  font-size: 1.2rem;
}

/* -------------------- Section Styles -------------------- */
section {
  padding: 60px 0;
}

section.bg-light,
section.bg-light h2,
section.bg-light p {
  color: #000 !important;
}

/* Hover Effect on Cards */
.card {
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}
.feature-img-container {
  width: 100%;
  height: 250px; /* Equal height for all images */
  overflow: hidden;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures uniform image scaling */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover .feature-img {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.feature-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  background: #fff;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.gallery-img {
  width: 100%;
  height: 250px; /* ensures equal height for all images */
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-caption {
  text-align: center;
  padding: 10px;
  font-weight: 600;
  color: #044aad;
  background: #fff;
  border-top: 2px solid #044aad;
  border-radius: 0 0 15px 15px;
}
section.bg-light h2 {
  color: #ff3131 !important;
}


/* -------------------- Footer -------------------- */
footer {
  background-color: #044aad;
  text-align: center;
  color: #fff;
  padding: 15px 0;
  margin-top: auto;
}

/* -------------------- AI Chatbot Widget -------------------- */
#ai-chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  background: #222;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 14px;
  z-index: 9999;
}

#chatbox-header {
  background: #000;
  padding: 10px;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
}

#chatbox-body {
  max-height: 350px;
  overflow-y: auto;
  padding: 10px;
}

#chat-messages {
  height: 200px;
  overflow-y: auto;
  margin-bottom: 10px;
}

#chat-input {
  width: 70%;
  padding: 5px;
  border: none;
  background: #333;
  color: #fff;
}

#chat-send {
  width: 25%;
  background: red;
  border: none;
  color: white;
  padding: 5px;
  cursor: pointer;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 991px) {
  .navbar-brand img {
    width: 180px;
    height: 60px;
  }

  .navbar .nav-link {
    margin: 6px 0;
    text-align: center;
  }

  #navbarSearch {
    width: 100%;
    margin-top: 10px;
  }
}

@media (max-width: 575px) {
  .video-overlay h1 {
    font-size: 2rem;
  }

  .video-overlay p {
    font-size: 1rem;
  }
}
