/* =============================================================
   RGB SKYLINE — RESPONSIVE RULES
   xl 1200 / lg 992 / md 768 / sm 576 / xs <576
   ============================================================= */
@media (max-width: 1243.98px){
  .row.g-5{ --bs-gutter-x: 1.5rem; }
}

@media (max-width: 1199.98px){
  .rgb-section{ padding: 5rem 0; }
  .rgb-hero{ padding: 5.5rem 0 4.5rem; }
}

@media (min-width: 992px) and (max-width: 1199.98px){
  .rgb-navbar .rgb-brand img{ width: 86px; }
  .rgb-nav-links{ gap: .1rem; }
  .rgb-nav-links .nav-link{ padding: .5rem .45rem; font-size: .86rem; }
  .rgb-lang-btn{ padding: 0 .6rem; gap: .3rem; font-size: .82rem; }
  .rgb-lang-btn .rgb-lang-current{ display: none; }
  .rgb-lang-btn .rgb-lang-code{ display: inline; }

  .rgb-btn-nav{ padding: .55rem 1rem; font-size: .86rem; margin-inline-start: .4rem; }
}

/* ---- 991.98px and down (tablets / nav collapse) ---- */
@media (max-width: 991.98px){
  .rgb-navbar .container{ flex-wrap: wrap; }
  .rgb-nav-links{
    margin: 1rem 0; gap: .2rem;
    max-height: calc(100vh - var(--rgb-header-h) - 2rem - 3.5rem - 9rem);
    overflow-y: auto;
  }
  .rgb-nav-links .nav-link{ padding: .65rem .9rem; }
  .rgb-nav-actions{ width: 100%; justify-content: space-between; padding-top: .75rem; border-top: 1px solid var(--border); }
  .rgb-btn-nav{ margin-inline-start: 0; }

  .rgb-hero-text{ text-align: center; }
  .rgb-hero-desc{ margin-inline: auto; }
  .rgb-hero-actions{ justify-content: center; }
  .rgb-platform-row{ justify-content: center; }

  .rgb-hero-image-wrap{ margin-top: 1rem; padding: 1rem; }
  .rgb-hero-image{ max-width: 540px; max-height: 460px; margin-inline: auto; }

  .rgb-section > .container > .row .rgb-section-title,
  .rgb-section > .container > .row .rgb-section-desc{ text-align: center; }
  .rgb-check-list{ align-items: center; }
  .rgb-check-list li{ justify-content: center; }

  .rgb-about-card{ inset-inline-end: 50%; transform: translateX(50%); top: -18px; }
  html[dir="rtl"] .rgb-about-card{ transform: translateX(50%); }

  .rgb-trust-inner{ justify-content: center; text-align: center; }
}

/* ---- 767.98px and down (mobile) ---- */
@media (max-width: 767.98px){
  .rgb-section{ padding: clamp(2.75rem, 9vw, 4rem) 0; }
  .rgb-hero{ padding: clamp(2.5rem, 8vw, 4.5rem) 0 clamp(2rem, 6vw, 3.5rem); }
  .rgb-hero-title{ font-size: clamp(1.7rem, 5.5vw, 2rem); }

  .rgb-hero-image{ max-width: 460px; max-height: 400px; }

  .rgb-erp-modules{ grid-template-columns: 1fr 1fr; gap: .8rem; }
  .rgb-dash-grid{ grid-template-columns: 52px 1fr; }

  .rgb-cta-box{ padding: 2.6rem 1.4rem; }

  .rgb-testimonial-card{ padding: 1.8rem 1.4rem; }
  .rgb-testimonials{ padding-bottom: .5rem; }

  .rgb-footer{ text-align: center; padding-top: 2.2rem; }
  .rgb-footer ul{ align-items: center; gap: .5rem; }
  .rgb-footer-desc{ margin-inline: auto; margin-bottom: .9rem; }
  .rgb-footer-sep{ margin: 1rem 0; }
  .rgb-footer-cta{ padding: 1rem 1.1rem; }
  .rgb-footer-cta-img{ max-height: 130px; }
  .rgb-footer-social{ justify-content: center; }
  .rgb-footer-links a{ justify-content: center; }
  .rgb-footer-links a .rgb-footer-arrow{ display: none; }
  /* Room for the floating buttons */
  .rgb-footer-bottom{ padding-bottom: 5rem; }
  .rgb-footer-bottom p::before,
  .rgb-footer-bottom p::after{ display: none; }

  .rgb-whatsapp-btn{ width: 52px; height: 52px; font-size: 1.4rem; bottom: 18px; inset-inline-start: 18px; }
  .rgb-scroll-top{ width: 44px; height: 44px; bottom: 18px; inset-inline-end: 18px; }
  .rgb-whatsapp-tooltip{ display: none; }
}

/* ---- 575.98px and down (small phones) ---- */
@media (max-width: 575.98px){
  .container{ padding-inline: 1.1rem; }

  .rgb-badge{ font-size: .78rem; }
  .rgb-hero-desc{ font-size: 1rem; }

  /* Two service tiles per row */
  #services .row > [class*="col-"]{ width: 50%; }
  .rgb-service-card{ padding: 1.15rem .6rem; }
  .rgb-service-card i{ font-size: 1.5rem; margin-bottom: .55rem; }
  .rgb-service-card h3{ font-size: .85rem; line-height: 1.5; }

  .rgb-erp-mod{ justify-content: center; padding: .8rem 1rem; }

  .rgb-contact-form .rgb-btn-lg{ width: 100%; }

  .rgb-hero-actions .btn,
  .rgb-cta-actions .btn{ width: 100%; }
  .rgb-hero-actions, .rgb-cta-actions{ flex-direction: column; }
  .rgb-erp-modules{ grid-template-columns: 1fr; }
  .rgb-dash-grid{ grid-template-columns: 1fr; }
  .rgb-dash-side{ flex-direction: row; }
  .rgb-dash-side-item{ flex: 1; height: 26px; }
  .rgb-hero-image-wrap{ padding: .5rem; }
  .rgb-hero-image{ max-width: 100%; max-height: 340px; }
  .rgb-contact-form{ padding: 1.4rem; }
  .rgb-phone-group{ flex-wrap: wrap; }
  .rgb-phone-group .rgb-country-select{ flex: 1 1 100%; max-width: 100%; }
  .rgb-phone-group .rgb-phone-input{ flex: 1 1 100%; }
  .rgb-about-card{ padding: .7rem .9rem; }
  .rgb-about-card i{ font-size: 1.1rem; }
  .rgb-about-card-text strong{ font-size: 1rem; }
}
/* Prevent any accidental horizontal scroll from decorative elements */
html, body{ max-width: 100%; overflow-x: hidden; }
