/* Dark mode variables and helper rules */
:root {
  --bg: #ffffff;
  --text: #0b1220;
  --muted: #6b7280;
  --accent: #0d6efd;
  --accent2: #01294f;
  --header-bg: #ffffff;
  --card-bg: #f8fafc;
}
.dark {
  --bg: #0b1220;
  --text: #e6eef6;
  --muted: #9aa6b2;
  --accent: #0d6efd;
  --accent2: #fff;
  --header-bg: #071021;
  --card-bg: #0f1724;
}

/* Apply variable-based colors to primary elements */
body {
  background-color: var(--bg);
  color: var(--text);
}
.header,
.sticky-area-wrap {
  background-color: var(--header-bg);
}
.footer {
  background-color: var(--header-bg);
  color: var(--text);
}
.widget-post,
.get-quote-content,
.ride-sidebar,
.widget-our-service-item,
.widget-project-1-item {
  background-color: var(--card-bg);
  color: var(--text);
}
input,
textarea,
select {
  background-color: var(--card-bg);
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.08);
}
.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
a {
  color: var(--accent);
}

/* Small spacing for the toggle */
#theme-toggle {
  margin-right: 8px;
}

/* When a browser is forcing dark mode (auto-invert), apply stronger overrides so our colors remain correct */
.forced-dark-detected body,
.forced-dark-detected .header,
.forced-dark-detected .sticky-area-wrap,
.forced-dark-detected .footer,
.forced-dark-detected .widget-post,
.forced-dark-detected .get-quote-content,
.forced-dark-detected .ride-sidebar,
.forced-dark-detected input,
.forced-dark-detected textarea,
.forced-dark-detected select,
.forced-dark-detected a {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}
.forced-dark-detected img {
  filter: none !important;
  background-color: transparent !important;
}

#menu-primary-menu > li > a {
  color: var(--accent2);
}

#header .sticky-area-wrap .inner-header {
  width: 100%;
  max-width: 1920px;
  margin: auto;
  background: var(--header-bg);
}

.main-title {
  width: 100%;
  margin: auto;
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-size: 60px;
  line-height: 70px;
  color: var(--text);
  margin-bottom: 15px;
}

.widget-about-us p {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: var(--muted);
  margin-top: 24px;
  margin-bottom: 16px;
}

.sub-title {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-size: 14px;
  line-height: 16px;
  color: var(--muted);
  position: relative;
  text-transform: uppercase;
}

.widget-post,
.get-quote-content,
.ride-sidebar,
.widget-our-service-item,
.widget-project-1-item {
  background-color: transparent;
  color: var(--text);
}

.widget-our-service.style-1 .widget-our-service-item::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.08) 77%,
    rgba(255, 255, 255, 0.2) 92%,
    rgba(255, 255, 255, 0) 100%
  );
  bottom: 0;
  right: 120%;
  transition: all 0.5s ease;
}

.dark .widget-our-service.style-1 .widget-our-service-item::after {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 0%
  );
}

.widget-our-service .widget-our-service-slide {
  border-top: 1px solid #efefef3b;
  width: 100%;
}

.widget-our-service-item {
  padding: 100px 25px 102px 0px;
  border-right: 1px solid #efefef3b;
}

.widget-our-service-item p {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: var(--muted);
  margin-bottom: 20px;
}

.widget-our-service-item .text {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-size: 30px;
  line-height: 35px;
  color: #0b619b;
  margin-top: 30px;
  margin-bottom: 18px;
}

.widget-choose-us.style-1 .widget-choose-us-item {
  width: 100%;
  padding: 30px;
  box-shadow: 1px -3px 16px rgb(47 83 109 / 10%);
  border-radius: 60px 0px 0px 0px;
  flex-wrap: wrap;
  background-color: var(--card-bg);
  min-height: 372px;
  margin-bottom: 30px;
  align-content: flex-start;
}

.home-02 .widget-project-1::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 302px;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg);
}

.widget-get-quote.style-1 {
  background: var(--card-bg);
  box-shadow: 0px 30px 40px rgba(0, 0, 0, 0.07);
  background-image: none;
  max-width: 1400px;
  margin: auto;
  border-radius: 100px 0 0 0;
  margin-bottom: 100px;
  z-index: 50;
}

.widget-choose-us-item p {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 25.5px;
  color: var(--muted);
}

.widget-project-1 .widget-project-1-item::after {
  position: absolute;
  top: auto;
  bottom: 0;
  width: 100%;
  height: 600px;
  content: "";
  background: linear-gradient(0deg, #0b619b 0%, rgba(4, 33, 129, 0) 100%);
  transition: 0.5s;
  z-index: -2;
}

.widget-project-1 .widget-project-1-content p {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  max-width: 680px;
  margin: auto;
  margin-top: 24px;
  margin-bottom: 57px;
}

textarea,
input[type="text"],
input[type="submit"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
.uneditable-input,
.dropdown-menu,
.navbar .nav > .active > a,
.navbar .nav > .active > a:hover,
.navbar .nav > .active > a:focus {
  -webkit-appearance: none;
  text-shadow: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  -o-box-shadow: none;
  box-shadow: none;
  color: var(--muted);
}

.form-control {
  display: block;
  width: 100%;
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted) !important;
  background-color: var(--bg) !important;
  background-clip: padding-box;
  border: 1px solid var(--muted) !important;
  border-radius: 0.25rem;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.header-mobile .inner-header {
  background: var(--header-bg);
  padding: 15px;
  box-shadow: 0px 3px 6px rgb(0 0 0 / 6%);
}

.canvas-nav-wrap .inner-canvas-nav {
  width: 270px;
  height: 100%;
  top: 0;
  left: 0px;
  transform: translateX(-100%);
  position: fixed;
  background-color: var(--bg);
  z-index: 999999;
  overflow-y: auto;
  transition: 0.5s;
}

#header-mobile .header-wrap .btn-menu::after {
  position: absolute;
  content: "";
  background-color: #fff;
  width: 24px;
  height: 2px;
  right: 0;
  top: 83%;
}

#header-mobile .header-wrap .btn-menu::before {
  position: absolute;
  content: "";
  background-color: #fff;
  width: 24px;
  height: 2px;
  right: 0;
  top: 17%;
}
#header-mobile .header-wrap .btn-menu span {
  position: absolute;
  content: "";
  background-color: #fff;
  width: 24px;
  height: 2px;
  right: 0;
  top: 50%;
}

#mainnav_canvas ul li a {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 14px;
  display: inline-block;
  width: 100%;
  height: auto;
  padding: 12px 50px 12px 15px;
  text-align: left;
  color: var(--muted);
}
