/**
 * Jaivah Tech - Custom Theme Stylesheet
 * Brand Color Theme based on Jaivah Tech Logo:
 * Primary Crimson: #8B0304
 * Dark Crimson: #680203
 * Accent Hover: #A80507
 * Secondary Industrial Slate: #121C22
 */

:root {
  --primary-color: #8B0304 !important;
  --secondary-color: #121C22 !important;
  --jaivah-crimson: #8B0304;
  --jaivah-crimson-hover: #A80507;
  --jaivah-crimson-dark: #680203;
  --jaivah-light-tint: #FAF2F2;
}

/* Base Primary Overrides */
.text-primary, 
.text-primary-hover:hover,
a:hover, 
a:focus {
  color: #8B0304 !important;
}

.bg-primary {
  background-color: #8B0304 !important;
}

.border-primary {
  border-color: #8B0304 !important;
}

/* Preloader */
#preloader:before,
#preloader:after {
  border-color: #8B0304 !important;
}

/* Header & Top Bar */
.top-bar-info li i {
  color: #ff9999;
}

.top-bar-info a {
  color: #fff;
  transition: color 0.3s ease;
}

.top-bar-info a:hover {
  color: #f7a8a9;
}

/* Navbar & Brand */
.navbar-brand img {
  max-height: 56px;
  width: auto;
  transition: all 0.3s ease;
}

@media (max-width: 991px) {
  .navbar-brand img {
    max-height: 44px;
  }
}

/* Nav Links & Hover */
.navbar-nav li.current > a,
.navbar-nav li.active > a,
.navbar-nav > li > a:hover,
.menu_area-light .navbar-nav li.current > a,
.menu_area-light .navbar-nav li.active > a,
.menu_area-light.scrollHeader .navbar-nav li.current > a,
.menu_area-light.scrollHeader .navbar-nav li.active > a {
  color: #8B0304 !important;
}

.menu_area-light .navbar ul ul li.active > a,
.menu_area-light .navbar-nav li.has-sub a:hover {
  color: #8B0304 !important;
}

/* Dropdown Sub-menu styling */
@media screen and (min-width: 992px) {
  .navbar ul ul {
    border-top: 3px solid #8B0304 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 6px 6px;
    background: #ffffff;
  }
  
  .navbar ul ul li a {
    transition: all 0.25s ease;
    font-size: 14px;
    padding: 10px 20px;
    color: #121C22;
  }

  .navbar ul ul li a:hover {
    background-color: #FAF2F2;
    color: #8B0304 !important;
    padding-left: 24px;
  }
}

/* Buttons */
.btn-style1 {
  background: #8B0304 !important;
  color: #ffffff !important;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-style1:hover {
  background: #121C22 !important;
  color: #ffffff !important;
}

.btn-style1.secondary {
  background: #121C22 !important;
}

.btn-style1.secondary:hover {
  background: #8B0304 !important;
}

.btn-style2 {
  background-color: #8B0304 !important;
}

.btn-style2:hover, .btn-style2:active {
  background: #121C22 !important;
}

.banner-style02 .banner-button .button-arrow {
  background-color: #8B0304 !important;
}

/* Title underline & accents */
.title-sm:before,
.section-title-01 span:before {
  background-color: #8B0304 !important;
}

.page-title-section ul li:after {
  background-color: #8B0304 !important;
}

/* List Style checkmarks */
.list-style1 li:before {
  color: #8B0304 !important;
  background: rgba(139, 3, 4, 0.1) !important;
}

.list-style2 li:before {
  color: #8B0304 !important;
}

/* Cards & Hover Effects */
.card-style01:hover .card-body {
  background-color: #8B0304 !important;
}

.card-style03:hover .card-icon,
.card-style03:hover .card-btn {
  background-color: #8B0304 !important;
  color: #ffffff !important;
}

.card-style05:hover .card-body {
  background-color: #8B0304 !important;
}

/* Owl Carousel & Slider */
.slider-fade1.owl-theme .owl-nav [class*='owl-'],
.slider-fade1.owl-theme .owl-nav .owl-prev:hover,
.slider-fade1.owl-theme .owl-nav .owl-next:hover,
.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span,
.services-carousel-one.owl-theme .owl-nav [class*='owl-']:hover {
  background: #8B0304 !important;
}

/* Tabs & Accordion */
.resp-tabs-list li.resp-tab-active,
h2.resp-tab-active,
.accordion .accordion-button:not(.collapsed) {
  background-color: #8B0304 !important;
  color: #ffffff !important;
}

.accordion-style .btn-link {
  color: #8B0304 !important;
}

.accordion-style .btn-link:after {
  color: #8B0304 !important;
}

/* Scroll To Top */
.scroll-top-percentage {
  background: conic-gradient(#8B0304 0%, #121C22 0%);
}

/* Feature Box for Jaivah */
.feature-box-jaivah {
  background: #ffffff;
  border-radius: 8px;
  padding: 30px 25px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
  border-top: 4px solid transparent;
  transition: all 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-box-jaivah:hover {
  border-top-color: #8B0304;
  transform: translateY(-7px);
  box-shadow: 0 15px 35px rgba(139, 3, 4, 0.12);
}

.feature-box-jaivah .icon-box {
  width: 65px;
  height: 65px;
  border-radius: 8px;
  background: rgba(139, 3, 4, 0.08);
  color: #8B0304;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.feature-box-jaivah:hover .icon-box {
  background: #8B0304;
  color: #ffffff;
}

/* Capability Cards */
.capability-item {
  background: #fdfaf9;
  border: 1px solid #f0dede;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.capability-item:hover {
  background: #ffffff;
  border-color: #8B0304;
  box-shadow: 0 8px 25px rgba(139, 3, 4, 0.08);
  transform: translateY(-3px);
}

.capability-item h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #121C22;
}

.capability-item i {
  color: #8B0304;
  font-size: 24px;
  margin-right: 12px;
}

/* Contact Badges */
.contact-info-badge {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  background: #FAF2F2;
  border-left: 4px solid #8B0304;
  border-radius: 4px;
  margin-bottom: 15px;
}

.contact-info-badge i {
  font-size: 22px;
  color: #8B0304;
}

/* Product Detail Cards */
.spec-table th {
  background-color: #8B0304;
  color: #ffffff;
  font-weight: 600;
}

.spec-table td {
  vertical-align: middle;
}

/* Mobile responsive menu header */
@media screen and (max-width: 991px) {
  .navbar-toggler {
    background: #8B0304 !important;
  }
  
  .navbar-collapse {
    background: #ffffff;
    padding: 15px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    margin-top: 10px;
  }
  
  .navbar-nav li a {
    padding: 10px 0 !important;
    border-bottom: 1px solid #eee;
  }

  .navbar-nav li ul {
    padding-left: 15px;
  }

  .navbar-nav li ul li a {
    font-size: 13px;
    padding: 6px 0 !important;
  }
}
