:root {
  --primary-blue: #191919;
  --primary-green: #00c389;
  --light-blue: #e6eef4;
  --heading-font: 'AvantGarde Bold', sans-serif;
  --body-font: 'Open Sans', sans-serif;
}

body {
  font-family: var(--body-font);
  color: var(--primary-blue);
  padding-top: 0; /* Remove padding as we'll use a transparent header */
  overflow-x: hidden; /* Prevent horizontal scroll when off-canvas is open */
  font-weight: 400;
  line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  font-weight: bold;
}
h5 {
  font-size: 24px;
}
p {
  font-family: var(--body-font);
}
.btn {
  background-color: #011ca3 !important;
  color: white !important;
  border: none;
}

.btn a {
  background-color: #011ca3 !important;
  color: white !important;
}

.login-btn a {
  border-color: #011ca3 !important;
  border: 1px !important;
  background-color: white !important;
  color: #011ca3 !important;
}
/* Top Bar */
.top-bar {
  background-color: #000e57; /* Semi-transparent blue */
  color: white;
  padding: 12px;
  font-size: 14px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.top-bar a {
  color: white;
  text-decoration: none;
}

/* Navigation */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar {
  background-color: rgb(0 0 0 / 10%); /* Very transparent dark */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  padding: 8px 0;
}

.navbar.scrolled {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.navbar-brand img {
  height: 48px;
  transition: all 0.3s ease;
}

.nav-link {
  color: white;
  font-weight: 600;
  margin: 0 10px;
  transition: all 0.3s ease;
  font-family: var(--body-font);
}

/* Right-to-left navbar alignment */
.navbar-nav {
  direction: rtl;
}

.navbar-nav .nav-item {
  direction: ltr;
  font-size: 18px;
}

.navbar-collapse {
  justify-content: flex-end;
}

.navbar.scrolled .nav-link {
  color: #011ca3;
}

.login-btn {
  background-color: white;
  color: #011ca3;
  border: 1px solid;
  border-radius: 20px;
  padding: 5px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: var(--body-font);
}

/* Updated Navigation Styles */
.navbar-toggler {
  border: none;
  color: white;
  transition: all 0.3s ease;
}

.navbar.scrolled .navbar-toggler {
  color: var(--primary-blue);
}

.navbar-collapse {
  justify-content: flex-end;
}

.ach-container {
  display: flex;
  justify-content: end;
  position: absolute;
  right: 4%;
  top: 80%;
  z-index: 2;
}
.ach-container-mob {
  display: none;
}

.fa,
.fa-brands,
.fa-classic,
.fa-regular,
.fa-sharp,
.fa-solid,
.fab,
.far,
.fas {
  font-size: 16px;
}

@media (max-width: 991px) {
  h5 {
    font-size: 20px;
  }
  .top-bar {
    display: none;
  }
  .ach-container {
    display: flex;
    justify-content: end;
    position: absolute;
    right: 38%;
    top: 80%;
    z-index: 2;
  }
  .hero-content p {
    max-width: 100% !important;
  }
  .col-md-3 {
    width: 50%;
  }
  .navbar-collapse {
    background-color: rgba(26, 35, 82, 0.95);
    border-radius: 8px;
    margin-top: 10px;
    padding: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .navbar.scrolled .navbar-collapse {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .navbar.scrolled .nav-link {
    color: var(--primary-blue);
  }

  .login-btn {
    margin-top: 10px;
    width: 100%;
    text-align: center;
  }
}

/* Off-Canvas Menu */
.offcanvas-menu {
  position: fixed;
  top: 0;
  right: -300px; /* Start off-screen */
  width: 300px;
  height: 100%;
  background-color: #011ca3;
  z-index: 1050;
  transition: right 0.3s ease-in-out;
  padding: 20px;
  overflow-y: auto;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.offcanvas-menu.show {
  right: 0;
}

.offcanvas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-logo img {
  height: 40px;
}

.offcanvas-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
}

.offcanvas-body {
  padding: 20px 0;
}

.offcanvas-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.offcanvas-nav li {
  margin-bottom: 15px;
}

.offcanvas-nav a {
  color: white;
  font-weight: 600;
  text-decoration: none;
  font-size: 18px;
  display: block;
  padding: 10px 0;
  transition: all 0.3s ease;
  font-family: var(--body-font);
}

.offcanvas-nav a:hover {
  color: var(--primary-green);
}

.offcanvas-login {
  margin-top: 30px;
  width: 100%;
  background-color: white;
  color: #011ca3;
  border: none;
  border-radius: 25px;
  padding: 10px;
  font-weight: 600;
  text-align: center;
  font-family: var(--body-font);
}

/* Menu Toggle Button */
.menu-toggle {
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.navbar.scrolled .menu-toggle {
  color: var(--primary-blue);
}

/* Overlay */
.offcanvas-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.offcanvas-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Hero Section */
.hero-section {
  background: url('/media/Banner-ACH.jpg');
  padding: 150px 0 50px; /* Increased top padding to account for transparent header */
  position: relative;
  background-size: cover;
  overflow: hidden;
  justify-content: center;
  align-content: center;
  height: 100vh;
  z-index: 1;
}

.hero-content h1 {
  font-size: 96px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #181e4b;
  font-family: var(--heading-font);
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 600px;
  font-family: var(--body-font);
}

.apply-now-btn {
  background-color: var(--primary-blue);
  color: white;
  border-radius: 25px;
  padding: 8px 25px;
  font-weight: 600;
  border: none;
  transition: all 0.3s;
  font-family: var(--body-font);
}

.apply-now-btn:hover {
  background-color: #131a3e;
  color: white;
}

.ach-bank {
  width: 200px;
}

/* Why Valor Section */
.why-valor-section {
  padding: 80px 0;
  text-align: center;
}

.why-valor-section h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 50px;
  font-family: var(--heading-font);
}

.feature-card {
  padding: 20px;
  margin-bottom: 30px;
  height: 100%;
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
}

.feature-title {
  font-weight: 600;
  margin-bottom: 15px;
  font-family: var(--heading-font);
}

.feature-text {
  font-size: 18px;
  color: #666;
  font-family: var(--body-font);
}

/* Already Using Section */
.already-using-section {
  padding: 80px 16px;
  text-align: center;
  color: white;
  background-image: url('/media/Login\ Bg.svg');
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.already-using-section .container {
  position: relative;
  z-index: 1;
}

.already-using-section h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: var(--heading-font);
}

.already-using-section p {
  margin-bottom: 30px;
  font-family: var(--body-font);
  font-size: 20px;
}

.login-green-btn {
  background-color: var(--primary-blue);
  color: white;
  border-radius: 25px;
  padding: 8px 25px;
  font-weight: 600;
  border: none;
  transition: all 0.3s;
  font-family: var(--body-font);
}

.login-green-btn:hover {
  background-color: #131a3e;
  color: white;
}

/* Need ACH Section */
.need-ach-section {
  padding: 80px 0;
}

.need-ach-img {
  max-width: 100%;
}
.need-ach-content {
  padding: 48px;
}
.need-ach-content h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: var(--heading-font);
}

.need-ach-content p {
  margin-bottom: 30px;
  font-family: var(--body-font);
  font-size: 18px;
}

/* Need Help Section */
.need-help-section {
  background-color: var(--light-blue);
  padding: 80px 0;
  text-align: center;
}

.need-help-section h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: var(--heading-font);
}

.need-help-section p {
  margin-bottom: 40px;
  font-family: var(--body-font);
  font-size: 20px;
}
#hubspot-form-container {
  padding: 32px;
  margin: auto;
  background-color: #b9d3fb;
  border-radius: 24px;
  width: 650px;
}

/* Footer */
.footer {
  background-color: #000e57;
  color: white;
  padding: 20px 0;
  font-size: 16px;
  font-family: var(--body-font);
}

.footer a {
  color: white;
  margin: 0 10px;
  font-family: var(--body-font);
  text-decoration: none;
}

.line-ach-hero {
  width: 350px;
  margin-left: 250px;
  margin-top: -48px;
}
.line-ach {
  width: 200px;
  margin-left: 128px;
  margin-top: -48px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-section {
    background: var(--light-blue);
    text-align: center;
    padding-top: 120px; /* Adjusted for mobile */
  }

  .hero-content h1::after {
    margin: 10px auto;
  }

  .hero-img {
    margin-top: 30px;
    max-width: 100%;
  }

  .payment-card {
    position: static;
    transform: none;
    margin: 20px auto;
  }
  #hubspot-form-container {
    padding: 32px;
    margin: auto;
    background-color: #b9d3fb;
    border-radius: 24px;
    width: 100%;
  }
  .already-section {
    padding: 16px;
  }
  .need-ach-section {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .why-valor-section h2,
  .already-using-section h2,
  .need-ach-content h2,
  .need-help-section h2 {
    font-size: 32px;
  }

  .need-ach-img {
    margin-bottom: 30px;
  }
  #hubspot-form-container {
    padding: 32px;
    margin: auto;
    background-color: #b9d3fb;
    border-radius: 24px;
    width: 100%;
  }
}
@media (max-width: 440px) {
  .hero-content h1 {
    font-size: 48px;
  }
  h5 {
    font-size: 2px;
  }
  .ach-container {
    display: none;
  }
  .ach-container-mob {
    display: flex;
    justify-content: center;
    padding-top: 32px;
    z-index: 2 !important;
  }
  .col-md-3 {
    width: 100%;
  }
  .line-ach-hero {
    margin-left: 100px;
    width: 50%;
  }
  .need-ach-content {
    padding: 24px;
  }
}
