/* ============================================
   XBADATA LANDING PAGE - RESPONSIVE STYLES
   Mobile-first overrides
   ============================================ */

/* ---------- Global responsive fixes ---------- */
@media (max-width: 991.98px) {
  main .row > [class*="col-"] {
    min-width: 0;
  }
}

@media (max-width: 767.98px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ---------- Large Desktop (1400px+) ---------- */
@media (min-width: 1400px) {
  .hero-heading {
    font-size: 62px;
  }

  .about-heading {
    font-size: 34px;
  }

  .container {
    max-width: 1240px;
  }
}

/* ---------- Desktop / Laptop (992px - 1199px) ---------- */
@media (max-width: 1199.98px) {
  :root {
    --section-padding: 80px;
  }

  .hero-heading {
    font-size: 48px;
  }

  .hero-subtext {
    font-size: 17px;
  }

  .about-heading {
    font-size: 30px;
  }

  .how-heading {
    font-size: 36px;
  }

  .dashboard-title {
    font-size: 34px;
  }

  .cta-heading {
    font-size: 32px;
  }

  .process-number {
    font-size: 17px;
  }

  .process-title {
    font-size: 18px;
  }

  .trusted-logos {
    gap: 36px;
  }
}

/* ---------- Tablet (768px - 991px) ---------- */
@media (max-width: 991.98px) {
  :root {
    --section-padding: 70px;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .hero-buttons .btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

  .hero-section {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero-heading {
    font-size: 38px;
  }

  .hero-subtext {
    font-size: 16px;
    max-width: 100%;
  }

  .hero-text-col {
    padding-right: 0;
  }

  .nav-links {
    text-align: center;
    padding: 16px 0;
  }

  .nav-links .nav-link {
    padding: 10px 16px;
  }

  .navbar-icons {
    justify-content: center;
    padding-bottom: 16px;
    gap: 28px !important;
  }

  .how-left {
    padding-right: 0;
    margin-bottom: 48px;
  }

  .how-section .container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .how-heading {
    font-size: 36px;
  }

  .how-right {
    padding-left: 0;
  }

  .process-desc {
    max-width: 100%;
  }

  .about-heading {
    font-size: 28px;
  }

  .dashboard-section {
    padding: 72px 0;
  }

  .dashboard-container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dashboard-body {
    order: 1;
  }

  .dashboard-media {
    order: 2;
  }

  .dashboard-title br {
    display: none;
  }

  .dashboard-desc {
    max-width: 100%;
  }

  .testimonial-text {
    font-size: 20px;
  }

  .quote-icon {
    font-size: 64px;
  }

  .cta-heading {
    font-size: 32px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-box {
    padding: 36px 16px;
    min-height: 140px;
  }

  .stat-number {
    font-size: 30px;
  }

  .trusted-logos {
    gap: 28px;
    padding-left: 0;
    padding-right: 0;
  }

  .trusted-logo {
    height: 36px;
    max-width: 140px;
  }

  .footer-legal {
    justify-content: flex-start !important;
    margin-top: 12px;
  }
}

/* ---------- Mobile Large (576px - 767px) ---------- */
@media (max-width: 767.98px) {
  :root {
    --section-padding: 60px;
  }

  .hero-section {
    min-height: auto;
    padding: 110px 0 50px;
  }

  .hero-heading {
    font-size: 32px;
  }

  .hero-subtext {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-buttons .btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 320px;
  }

  .about-heading {
    font-size: 26px;
    padding-left: 0;
    padding-right: 0;
  }

  .about-heading br {
    display: none;
  }

  .about-section {
    padding: 56px 0 72px;
  }

  .intro-badge {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 8px;
  }

  .feature-card {
    padding: 32px 24px;
  }

  .feature-title {
    font-size: 20px;
  }

  .feature-desc {
    font-size: 15px;
  }

  .features-section {
    padding: 60px 0 72px;
  }

  .feature-icon-img {
    width: 56px;
    height: 56px;
  }

  .how-section {
    padding: 72px 0;
  }

  .how-section .container {
    padding-left: 28px;
    padding-right: 28px;
  }

  .how-left,
  .how-right {
    padding-left: 0;
    padding-right: 0;
  }

  .how-heading {
    font-size: 30px;
  }

  .process-item {
    padding: 24px 0;
  }

  .process-number {
    font-size: 16px;
  }

  .process-title {
    font-size: 17px;
  }

  .process-desc {
    font-size: 14px;
  }

  .dashboard-section {
    padding: 60px 0;
  }

  .dashboard-container {
    padding-left: 28px;
    padding-right: 28px;
  }

  .dashboard-layout {
    gap: 32px;
  }

  .dashboard-title {
    font-size: 28px;
  }

  .dashboard-desc {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .dashboard-badge {
    margin-bottom: 20px;
  }

  .stats-section {
    padding: 0 0 60px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-box:nth-child(3n) {
    border-right: 1px solid #E0E0E0;
  }

  .stat-box:nth-child(2n) {
    border-right: none;
  }

  .stat-box:nth-child(n+7) {
    border-bottom: 1px solid #E0E0E0;
  }

  .stat-box:nth-child(n+9) {
    border-bottom: none;
  }

  .stat-box {
    padding: 28px 20px;
    min-height: 120px;
  }

  .stat-number {
    font-size: 28px;
  }

  .stat-label {
    font-size: 12px;
  }

  .why-heading {
    font-size: 30px;
  }

  .why-card {
    padding: 18px 14px;
    gap: 10px;
  }

  .why-icon-img {
    width: 28px;
    height: 28px;
  }

  .why-card-title {
    font-size: 14px;
  }

  .why-section {
    padding: 60px 0 72px;
  }

  .testimonials-section {
    padding: 72px 0;
  }

  .testimonials-inner {
    padding: 0 4px;
  }

  .testimonial-text {
    font-size: 18px;
  }

  .quote-icon {
    font-size: 56px;
    margin-bottom: 24px;
  }

  .avatar-center {
    width: 96px;
    height: 96px;
  }

  .avatar {
    width: 44px;
    height: 44px;
  }

  .cta-section {
    padding: 60px 0 72px;
  }

  .cta-heading {
    font-size: 26px;
  }

  .cta-banner {
    padding: 48px 24px;
    border-radius: 16px;
  }

  .cta-text {
    font-size: 15px;
    max-width: 100%;
  }

  .contact-heading {
    font-size: 28px;
  }

  .trusted-logos {
    gap: 20px 28px;
  }

  .trusted-logo {
    height: 28px;
    max-width: 120px;
  }

  .trusted-section {
    padding: 48px 0 0;
  }

  .section-divider {
    margin-top: 48px;
  }

  .charity-message {
    padding: 24px 20px;
  }

  .charity-message p {
    font-size: 14px;
    padding: 0 8px;
  }

  .footer-top {
    padding-bottom: 32px;
  }

  .footer-desc {
    max-width: 100%;
    margin-bottom: 8px;
  }

  .site-footer .container-fluid {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* ---------- Mobile Small (< 576px) ---------- */
@media (max-width: 575.98px) {
  .hero-heading {
    font-size: 28px;
  }

  .hero-section {
    min-height: auto;
    padding: 100px 0 48px;
  }

  .hero-buttons .btn {
    max-width: 100%;
  }

  .about-heading {
    font-size: 22px;
  }

  .dashboard-title {
    font-size: 24px;
  }

  .dashboard-container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-box {
    border-right: none !important;
    border-bottom: 1px solid #E0E0E0 !important;
    min-height: 100px;
    padding: 24px 20px;
  }

  .stat-box:last-child {
    border-bottom: none !important;
  }

  .why-section .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .why-card {
    padding: 20px 18px;
  }

  .why-card-title {
    font-size: 16px;
  }

  .testimonial-avatars {
    gap: 12px;
  }

  .avatar {
    width: 48px;
    height: 48px;
  }

  .avatar-center {
    width: 84px;
    height: 84px;
  }

  .testimonial-text {
    font-size: 16px;
  }

  .cta-heading {
    font-size: 22px;
  }

  .cta-banner {
    padding: 40px 18px;
    border-radius: 14px;
  }

  .how-heading {
    font-size: 28px;
  }

  .how-section .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .how-badge {
    margin-bottom: 20px;
  }

  .trusted-logos {
    gap: 16px 24px;
  }

  .trusted-logo {
    height: 24px;
    max-width: 110px;
  }

  .logo-text {
    font-size: 14px;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .footer-legal {
    flex-direction: column;
    gap: 8px !important;
    align-items: flex-start !important;
  }

  .copyright {
    font-size: 12px;
  }

  .footer-legal a {
    font-size: 12px;
  }

  .btn-primary-custom,
  .btn-outline-custom {
    padding: 13px 24px;
    font-size: 14px;
  }
}

/* ---------- Navbar collapse adjustments ---------- */
@media (max-width: 991.98px) {
  #navbarContent {
    background-color: var(--color-white);
    padding: 8px 0 16px;
    border-top: 1px solid var(--color-border);
    margin-top: 12px;
  }

  #mainNavbar .nav-links {
    position: static;
    left: auto;
    transform: none;
  }
}

/* ---------- Print ---------- */
@media print {
  .hero-section {
    min-height: auto;
    padding: 40px 0;
  }

  #mainNavbar,
  .testimonial-controls,
  .contact-section {
    display: none;
  }
}
