/* Lightweight public-site utilities replacing Bootstrap on the public pages. */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  text-decoration: none;
}

.container,
.container-fluid {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 16px;
  padding-left: 16px;
}

.container {
  max-width: 1140px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -12px;
  margin-left: -12px;
}

.row > * {
  padding-right: 12px;
  padding-left: 12px;
}

.d-block { display: block !important; }
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.text-dark { color: #212529 !important; }
.text-white { color: #fff !important; }
.w-100 { width: 100% !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.mr-auto { margin-right: auto !important; }
.font-weight-bold { font-weight: 700 !important; }
.h3 { font-size: 1.75rem !important; line-height: 1.2; }
.img-fluid { max-width: 100%; height: auto; }
.rounded-pill { border-radius: 9999px !important; }

.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-3 { padding-bottom: 1rem !important; }

.col,
[class^="col-"],
[class*=" col-"] {
  position: relative;
  width: 100%;
  flex: 0 0 100%;
  max-width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 0.375rem;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.6rem 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-lg {
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: #0d6efd;
  color: #fff;
}

.btn-primary:hover {
  background: #0b5ed7;
  color: #fff;
}

.btn-link {
  background: transparent;
  color: inherit;
  padding: 0;
  font-weight: 400;
}

.form-group {
  margin-bottom: 1rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #cfd7df;
  border-radius: 0.5rem;
  background-color: #fff;
  color: #212529;
  font: inherit;
}

.form-control:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.navbar-dark .navbar-toggler {
  color: #fff;
  border-color: #fff;
}

.navbar-toggler {
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.35rem;
  height: 1.35rem;
  background:
    linear-gradient(currentColor, currentColor) center 30% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center 50% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center 70% / 100% 2px no-repeat;
}

.collapse:not(.show) {
  display: none;
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
}

@media (min-width: 992px) {
  .d-lg-none { display: none !important; }
  .d-lg-block { display: block !important; }

  .col-lg-4,
  .col-lg-6,
  .col-lg-12 {
    position: relative;
    width: 100%;
  }

  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-12 { flex: 0 0 100%; max-width: 100%; }

  .mt-lg-0 { margin-top: 0 !important; }
  .text-lg-center { text-align: center !important; }
}

@media (min-width: 768px) {
  .col-md-6,
  .col-md-12 {
    position: relative;
    width: 100%;
  }

  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 576px) {
  .col-sm-12 {
    position: relative;
    width: 100%;
  }

  .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

.col-xl-6 {
  position: relative;
  width: 100%;
}

@media (min-width: 1200px) {
  .col-xl-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.site-ready [data-aos="fade-up"],
.site-ready [data-aos="fade-left"],
.site-ready [data-aos="fade-right"] {
  opacity: 1;
  transform: none;
}

[data-aos] {
  opacity: 0;
  transition: opacity 300ms ease, transform 300ms ease;
}

[data-aos="fade-up"] {
  transform: translate3d(0, 18px, 0);
}

[data-aos="fade-left"] {
  transform: translate3d(-18px, 0, 0);
}

[data-aos="fade-right"] {
  transform: translate3d(18px, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-aos] {
    opacity: 1;
    transform: none;
  }
}

#header {
  position: sticky;
  top: 0;
}

.ri-check-double-line {
  list-style: none;
  position: relative;
  padding-left: 1.5rem;
}

.ri-check-double-line::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #0d6efd;
  font-weight: 700;
}

#contactForm textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.mobile-nav-toggle {
  color: #fff;
  line-height: 1;
}

.mobile-nav-toggle,
.mobile-nav-toggle:focus {
  outline: none;
}

.mobile-nav-overly {
  display: none;
}

.mobile-nav {
  transform: translateY(0);
}

.mobile-nav-active .mobile-nav {
  display: block !important;
}
