/* =============================================================
   CAPITAL FOOD — 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: 4.75rem 0; }
  .rgb-hero { padding: 4.5rem 0 4rem; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .cf-wordmark { gap: .5rem; }
  .cf-wordmark .cf-logo-mark { width: 38px; height: 39px; }
  .cf-wordmark-en { font-size: .96rem; }
  .cf-wordmark-ar { font-size: .82rem; }
  .rgb-nav-links { gap: .08rem; }
  .rgb-nav-links .nav-link { padding: .48rem .48rem; font-size: .85rem; }
  .rgb-lang-btn { padding: 0 .6rem; gap: .3rem; font-size: .8rem; }
  .rgb-lang-btn .rgb-lang-current { display: none; }
  .rgb-lang-btn .rgb-lang-code { display: inline; }
  .rgb-btn-nav { padding: .52rem .95rem; font-size: .85rem; margin-inline-start: .35rem; }
  .rgb-trust-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ---- 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) - 10rem);
    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-trust-inner { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .rgb-section > .container > .row .rgb-section-title,
  .rgb-section > .container > .row .rgb-section-desc { text-align: center; }
  .rgb-section > .container > .row .cf-eyebrow-start {
    display: flex;
    justify-content: center;
  }
  .rgb-section > .container > .row .cf-eyebrow-start::after { display: block; }
}

/* ---- 767.98px and down (mobile) ---- */
@media (max-width: 767.98px) {
  .rgb-section { padding: clamp(3rem, 8vw, 4.25rem) 0; }
  .rgb-hero { padding: clamp(2.5rem, 7vw, 4rem) 0 clamp(2.25rem, 6vw, 3.5rem); }
  .rgb-hero-title { font-size: clamp(1.72rem, 5.6vw, 2.1rem); }

  .cf-hero-caption { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .rgb-trust-inner { grid-template-columns: 1fr; }

  .cf-pl-steps,
  .cf-quality-grid { grid-template-columns: 1fr; }

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

  .rgb-footer { text-align: center; padding-top: 2.5rem; }
  .rgb-footer ul { align-items: center; gap: .5rem; }
  .rgb-footer-desc { margin-inline: auto; }
  .rgb-footer-contact li { justify-content: center; text-align: center; }
  .rgb-footer-social { justify-content: center; }
  .rgb-footer-links a { justify-content: center; }
  .rgb-footer-links a .rgb-footer-arrow { display: none; }
  .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: .98rem; }

  .rgb-service-card { padding: 1.4rem 1.25rem; }
  .rgb-contact-form { padding: 1.45rem; }
  .rgb-contact-form .rgb-btn-lg,
  .rgb-hero-actions .btn,
  .rgb-cta-actions .btn { width: 100%; }
  .rgb-hero-actions,
  .rgb-cta-actions { flex-direction: column; }

  .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%; }

  .cf-placeholder-note { flex-direction: column; gap: .5rem; }
}

/* Prevent any accidental horizontal scroll from decorative elements */
html, body { max-width: 100%; overflow-x: hidden; }
