:root {
  --ch-red: #e31e24;
  --ch-teal: #16918f;
  --ch-dark: #1a1a1a;
  --ch-gray: #f5f5f5;
}

body {
  font-family: "Roboto", sans-serif;
  color: #333;
}

.text-ch-red {
  color: var(--ch-red) !important;
}

.bg-ch-red {
  background-color: var(--ch-red) !important;
}

.bg-ch-teal {
  background-color: var(--ch-teal) !important;
}

.bg-ch-dark {
  background-color: var(--ch-dark) !important;
}

.btn-ch-teal {
  background-color: var(--ch-teal);
  border-color: var(--ch-teal);
  color: #fff;
  border-radius: 6px;
  padding: 10px 28px;
  font-weight: 500;
}

.btn-ch-teal:hover,
.btn-ch-teal:focus {
  background-color: #127a78;
  border-color: #127a78;
  color: #fff;
}

/* Navbar */
.navbar-ch {
  padding: 12px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.navbar-ch .nav-link {
  color: #333;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 14px !important;
}

.navbar-ch .nav-link:hover {
  color: var(--ch-red);
}

.navbar-ch .logo-img {
  height: 36px;
  width: auto;
}

.navbar-ch .store-icon {
  height: 28px;
  width: auto;
}

.navbar-ch .btn-login {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 20px;
  font-size: 0.9rem;
  color: #333;
  background: #fff;
}

.navbar-ch .btn-login:hover {
  background: #f8f8f8;
}

/* Mobile Header */
.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  background: #fff;
  padding: 10px 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  z-index: 1030;
}

.mobile-header-btn {
  background: none;
  border: none;
  padding: 4px;
  font-size: 1.75rem;
  color: #666;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.mobile-header-btn.mobile-search-btn {
  color: var(--ch-teal);
  font-size: 1.35rem;
}

.mobile-header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  text-decoration: none;
}

.mobile-header-logo img {
  height: 38px;
  width: auto;
}

/* Mobile Sidebar */
.mobile-sidebar {
  width: 50%;
  max-width: 50vw;
  border-right: none;
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.08);
}

.mobile-sidebar .offcanvas-body {
  padding: 24px 20px 24px 36px;
}

.btn-signin-mobile {
  display: block;
  width: 100%;
  padding: 10px 20px;
  border: 1.5px solid var(--ch-teal);
  border-radius: 6px;
  background: #fff;
  color: var(--ch-teal);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  margin-bottom: 20px;
}

.btn-signin-mobile:hover {
  background: rgba(22, 145, 143, 0.06);
  color: var(--ch-teal);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav-link,
.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0 14px 4px;
  border: none;
  background: none;
  color: #1a2b4a;
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
  text-decoration: none;
}

.mobile-nav-link:hover,
.mobile-nav-toggle:hover {
  color: var(--ch-teal);
}

.mobile-nav-toggle .toggle-icon {
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.mobile-nav-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.mobile-nav-toggle.mobile-nav-nested[aria-expanded="true"] .toggle-icon {
  transform: rotate(90deg);
}

.mobile-nav-submenu {
  padding-left: 20px;
}

.mobile-nav-submenu a,
.mobile-nav-submenu .mobile-nav-nested {
  display: block;
  padding: 10px 0;
  color: #1a2b4a;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.mobile-nav-submenu a:hover {
  color: var(--ch-teal);
}

.mobile-nav-submenu-nested {
  padding-left: 16px;
}

.mobile-nav-submenu-nested a {
  font-weight: 500;
  font-size: 0.9rem;
}

/* Hero */
.hero-section {
  background-color: var(--ch-red);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 80px 0 90px;
  min-height: 480px;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(227, 30, 36, 0.55) 0%,
    rgba(227, 30, 36, 0.35) 50%,
    rgba(227, 30, 36, 0.5) 100%
  );
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  max-width: 620px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-section .hero-sub {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
  max-width: 480px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero-section .app-badge {
  height: 52px;
  width: auto;
}

.hero-proof {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

.hero-proof .proof-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 20px;
}

/* Bats section */
.bats-section {
  padding: 0;
  line-height: 0;
}

.bats-section .bats-banner {
  display: block;
  width: 100%;
  height: auto;
}

/* Why section */
.why-section {
  padding: 70px 0 80px;
}

.why-section .section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 50px;
}

.feature-item {
  margin-bottom: 28px;
}

.feature-item .feature-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ch-red);
  letter-spacing: 1px;
}

.feature-item h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 4px 0 6px;
}

.feature-item p {
  font-size: 0.82rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.phone-mockup {
  max-height: 520px;
  width: auto;
  object-fit: contain;
}

/* Store section */
.store-section {
  background-color: var(--ch-gray);
  padding: 70px 0;
}

.store-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
  max-width: 400px;
}

.store-section .store-img {
  max-height: 380px;
  width: 100%;
  object-fit: contain;
}

/* Stats section */
.stats-section {
  padding: 60px 0 50px;
  color: #fff;
}

.stats-section .section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.stat-box h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-box p {
  font-size: 0.85rem;
  opacity: 0.9;
  margin: 0;
}

.stats-section .sub-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 40px 0 24px;
}

.associate-box h4 {
  font-size: 1.5rem;
  font-weight: 700;
}

.associate-box p {
  font-size: 0.85rem;
  opacity: 0.9;
}

.stats-footer {
  margin-top: 40px;
  font-size: 0.95rem;
}

.stats-footer a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

/* Video section */
.video-section {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 70px 0 80px;
}

.video-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.video-section .container {
  position: relative;
  z-index: 1;
}

.video-section .video-text {
  color: #fff;
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.video-wrapper {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.video-wrapper .ratio {
  background: #000;
}

.video-thumb img {
  object-fit: cover;
}

/* Featured */
.featured-section {
  background-color: var(--ch-gray);
  padding: 60px 0 50px;
}

.featured-section .section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 36px;
}

.featured-logo {
  max-height: 50px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.85;
}

.featured-dots {
  margin-top: 30px;
}

.featured-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  display: inline-block;
  margin: 0 4px;
}

.featured-dots .dot.active {
  background: var(--ch-red);
}

/* Careers */
.careers-section {
  padding: 70px 0;
}

.careers-section .careers-img {
  max-height: 360px;
  width: 100%;
  object-fit: contain;
}

.careers-section .section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.careers-section p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 440px;
}

/* Footer */
.footer-ch {
  background-color: #111;
  color: rgba(255, 255, 255, 0.75);
  padding: 50px 0 30px;
}

.footer-ch .social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  margin: 0 6px;
  transition: background 0.2s;
}

.footer-ch .social-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.footer-ch .footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.82rem;
  margin: 0 10px;
}

.footer-ch .footer-links a:hover {
  color: #fff;
}

.footer-ch .copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 24px;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ch-red);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Image placeholder fallback */
.img-placeholder {
  background: rgba(255, 255, 255, 0.08);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  min-height: 120px;
}

.why-section .img-placeholder,
.store-section .img-placeholder,
.careers-section .img-placeholder,
.featured-section .img-placeholder {
  border-color: #ddd;
  color: #aaa;
  background: #eee;
}
