/* Header Integration CSS - Extracted from header-theme */

/* Header Top Area */
.header-top-area-wrapper {
  background: #20282D;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .header-top-area-wrapper {
    display: none;
  }
}

@media only screen and (max-width: 767px) {
  .header-top-area-wrapper {
    display: none;
  }
}

.header-top-area-wrapper .header-top-one-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-top-area-wrapper .header-top-one-wrapper .left {
  display: flex;
  align-items: center;
}

.header-top-area-wrapper .header-top-one-wrapper .left .mail {
  position: relative;
}

.header-top-area-wrapper .header-top-one-wrapper .left .mail::after {
  position: absolute;
  content: "";
  width: 1px;
  height: 14px;
  background: #fff;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
}

.header-top-area-wrapper .header-top-one-wrapper .left .mail a {
  padding: 11px 0;
  display: block;
  color: #fff;
  margin-right: 50px;
  font-size: 14px;
  position: relative;
  transition: var(--transition);
  font-family: var(--font_beatricetrial);
}

.header-top-area-wrapper .header-top-one-wrapper .left .mail a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 12px;
  height: 1px;
  width: 0%;
  background: #fff;
  transition: var(--transition);
}

.header-top-area-wrapper .header-top-one-wrapper .left .mail a i {
  margin-right: 6px;
}

.header-top-area-wrapper .header-top-one-wrapper .left .mail a:hover::after {
  width: 100%;
}

.header-top-area-wrapper .header-top-one-wrapper .right {
  display: flex;
  justify-content: flex-end;
}

.header-top-area-wrapper .header-top-one-wrapper .right p {
  color: #fff;
  font-size: 14px;
  margin: 0;
  font-family: var(--font_beatricetrial);
}

.header-top-area-wrapper .header-top-one-wrapper .right p a {
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
  font-family: var(--font_beatricetrial);
}

.header-top-area-wrapper .header-top-one-wrapper .right p a:hover {
  color: #82b440;
}

/* Header Main Area */
.header-main-one-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

@media only screen and (max-width: 1199px) {
  .header-main-one-wrapper {
    padding: 15px 0;
  }
}

@media only screen and (max-width: 575px) {
  .header-main-one-wrapper .thumbnail a img {
    max-width: 130px;
  }
}

.header-main-one-wrapper .main-header {
  display: flex;
  align-items: center;
}

.header-main-one-wrapper .main-header .button-area {
  display: flex;
  align-items: center;
}

@media only screen and (max-width: 575px) {
  .header-main-one-wrapper .button-area .rts-btn.btn-primary {
    display: none !important;
  }
}

.header-one .nav-area {
  margin-right: 80px;
}

/* Navigation Styles */
.main-nav {
  position: relative;
  display: inline-block;
}

.main-nav > a {
  display: block;
  padding: 15px 10px;
  color: #1C2539;
  text-decoration: none;
  font-family: var(--font_beatricetrial);
  font-weight: 500;
  transition: var(--transition);
}

.main-nav:hover > a {
  color: #82b440;
}

/* Mega Menu Styles */
.rts-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
  min-width: 800px;
}

.main-nav:hover .rts-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.rts-mega-menu .wrapper {
  padding: 30px;
}

.mega-menu-item {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-item li {
  margin-bottom: 10px;
}

.mega-menu-item li a {
  color: #5D666F;
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.mega-menu-item li a:hover {
  color: #82b440;
}

.mega-menu-item li a i {
  margin-right: 8px;
  font-size: 12px;
}

.hega-menu-head {
  font-weight: 600;
  color: #1C2539;
  margin-bottom: 15px;
  font-size: 16px;
}

.hega-menu-head i {
  margin-right: 8px;
  color: #82b440;
}

/* Service Mega Menu */
.service-mega-menu-style .single-service-menu {
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: 8px;
  transition: var(--transition);
  margin-bottom: 10px;
}

.service-mega-menu-style .single-service-menu:hover {
  background: #f8f9fa;
}

.service-mega-menu-style .single-service-menu .icon {
  margin-right: 15px;
}

.service-mega-menu-style .single-service-menu .icon img {
  width: 40px;
  height: 40px;
}

.service-mega-menu-style .single-service-menu .info h5 {
  margin: 0 0 5px 0;
  font-size: 16px;
  color: #1C2539;
}

.service-mega-menu-style .single-service-menu .info p {
  margin: 0;
  font-size: 13px;
  color: #5D666F;
  line-height: 1.4;
}

/* Submenu Styles */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
  min-width: 200px;
  list-style: none;
  padding: 15px 0;
  margin: 0;
}

.main-nav:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li {
  margin: 0;
}

.submenu li a {
  display: block;
  padding: 10px 20px;
  color: #5D666F;
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.submenu li a:hover {
  color: #82b440;
  background: #f8f9fa;
}

/* Button Styles */
.rts-btn {
  display: inline-block;
  padding: 12px 30px;
  background: #82b440;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: var(--font_beatricetrial);
}

.rts-btn:hover {
  background: #6a9a35;
  color: #fff;
  text-decoration: none;
}

/* Menu Button */
#menu-btn {
  background: #F2F2F2;
  height: 55px;
  min-width: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

#menu-btn:hover {
  background: #e0e0e0;
}

#menu-btn img {
  width: 20px;
  height: 20px;
}

/* Ensure the menu button is visible on all screen sizes */
.header-one .button-area #menu-btn {
  display: none!important;
}
@media (max-width: 1200px) {
  .header-one .button-area #menu-btn {
    display: flex !important;
  } 
}

/* Sticky Header */
.header--sticky.sticky .header-top-area-wrapper {
  display: none;
}

.header--sticky.sticky.header-one {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media only screen and (max-width: 1199px) {
  .header-one .nav-area {
    display: none;
  }
  
  .header-main-one-wrapper .main-header {
    justify-content: flex-end;
  }
}

@media only screen and (max-width: 575px) {
  .header-main-one-wrapper .button-area .rts-btn {
    display: none !important;
  }
}

/* Mobile Menu Styles */
.mobile-menu {
  display: none;
}

@media only screen and (max-width: 1199px) {
  .mobile-menu {
    display: block;
  }
  
  /* Hide the new header navigation on mobile since we're using the existing offcanvas */
  .header-one .nav-area {
    display: none;
  }
  
  /* Show the existing offcanvas menu on mobile */
  .offcanvas-3__area {
    display: block;
  }
}

/* Desktop styles - show the new header navigation */
@media only screen and (min-width: 1200px) {
  .header-one .nav-area {
    display: block;
  }
  
  /* Hide the offcanvas on desktop */
  .offcanvas-3__area {
    display: none;
  }
}

/* Override main-theme header styles */
.header-area {
  background: transparent;
  position: relative;
  z-index: 999;
}

.header-area__inner {
  display: none; /* Hide the original header */
}

/* Show the new header */
.header-one {
  display: block !important;
  position: relative;
  z-index: 999;
}

/* Ensure proper spacing */
body {
  margin-top: 0;
}

/* Fix any potential conflicts */
.header-one .container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}

.header-one .row {
  margin: 0;
}

.header-one .col-lg-12 {
  padding: 0;
}

/* Additional fixes for integration */
.header-one {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-one .header-main {
  background: #fff;
  padding: 15px 0;
}

/* Ensure proper z-index for mega menus */
.rts-mega-menu {
  z-index: 9999 !important;
}

.submenu {
  z-index: 9999 !important;
}

/* Fix mobile menu positioning */
@media only screen and (max-width: 1199px) {
  .header-one .nav-area {
    z-index: 9999;
  }
}

/* Ensure proper font loading */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');

/* CSS Variables for consistency */
:root {
  --color-primary: #20282D;
  --color-secondary: #1F1F25;
  --color-blue: #0b4df5;
  --color-sky: #82b440;
  --color-body: #5D666F;
  --color-heading-1: #1C2539;
  --color-title: #141416;
  --color-heading-dark: #141416;
  --transition: .3s;
  --bg-dark-1: #1E1E20;
  --color-white: #fff;
  --color-border: #DDD8F9;
  --border-width: 1px;
  --radius: 10px;
  --color-success: #3EB75E;
  --color-danger: #FF0003;
  --color-warning: #FF8F3C;
  --color-info: #1BA2DB;
  --p-light: 300;
  --p-regular: 400;
  --p-medium: 500;
  --p-semi-bold: 600;
  --p-bold: 700;
  --p-extra-bold: 800;
  --p-black: 900;
  --s-light: 300;
  --s-regular: 400;
  --s-medium: 500;
  --s-semi-bold: 600;
  --s-bold: 700;
  --s-extra-bold: 800;
  --s-black: 900;
  --font-primary: "Red Hat Display", serif;
  --font-secondary: "DM Sans", serif;
  --font-3: "fontawesome";
  --font-size-b1: 16px;
  --font-size-b2: 15px;
  --font-size-b3: 22px;
  --line-height-b1: 26px;
  --line-height-b2: 26px;
  --line-height-b3: 1.7;
  --h1: 60px;
  --h2: 48px;
  --h3: 36px;
  --h4: 30px;
  --h5: 24px;
  --h6: 20px;
}
