/* ================================================================
   Preferred Search Hub — responsive.css
================================================================ */

/* ----------------------------------------------------------------
   tablet (≤ 991px) — stack hero, collapse nav
---------------------------------------------------------------- */
@media (max-width: 991px) {
  .site-header {
    margin-top: 12px;
  }

  .header-container {
    padding: 0 20px;
  }

  .site-header .site-mobile-logo {
    display: block;
  }

  .site-header .toggle-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    cursor: pointer;
  }

  .site-header .toggle-menu .bar {
    display: block;
    width: 28px;
    height: 3px;
    border-radius: 2px;
    transition: all 0.3s;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 28px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    overflow-y: auto;
  }

  .site-nav.nav-open {
    right: 0;
  }

  .site-nav .close-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 24px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
  }

  .site-nav .site-logo {
    margin-bottom: 32px;
  }

  .site-header .site-main-menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 24px;
  }

  .site-header .site-main-menu li {
    width: 100%;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
  }

  .site-header .site-main-menu li > a {
    margin: 0;
    font-size: 1.6rem;
  }

  .menu-wrapper {
    flex-direction: column;
    width: 100%;
  }

  .title-big { font-size: 4.4rem; }

  .hero-split {
    flex-direction: column;
    text-align: center;
    gap: 3.2rem;
  }

  .hero-title,
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-split__popup img {
    width: 280px;
  }

  .hiw-steps .col-md-4 {
    margin-bottom: 20px;
  }

  .hiw-comparison {
    flex-direction: column;
    gap: 12px;
  }

  .hiw-comparison__arrow {
    transform: rotate(90deg);
  }

  .features-grid [class*="col-"] {
    margin-bottom: 4px;
  }
}

/* ----------------------------------------------------------------
   mobile landscape (≤ 767px) — single-column features, smaller hero
---------------------------------------------------------------- */
@media (max-width: 767px) {
  .title-big { font-size: 3.6rem; }
  .title { font-size: 3.2rem; }

  .hero-eyebrow { font-size: 1.2rem; }
  .hero-subtitle { font-size: 1.6rem; }

  .lang-chips-bg .lang-chip {
    display: none;
  }
  .lang-chip--en, .lang-chip--fr, .lang-chip--ar { display: inline-flex; }

  .hiw-section { padding: 6rem 0; }
  .hiw-intro { margin-bottom: 4rem; }

  .features-section { padding: 5rem 0 6rem; }
  .features-intro { margin-bottom: 3.6rem; }

  .features-grid [class*="col-"] { padding: 8px; }

  .bottom-cta { padding: 6rem 0 7rem; }
  .bottom-cta__title { font-size: 3.2rem; }
  .bottom-cta__bg .lang-chip { display: none; }
  .lang-chip--cta.lang-chip--en,
  .lang-chip--cta.lang-chip--ar { display: inline-flex; }

  .contact-card { height: auto; min-height: 280px; }
  .contact-card__subtitle { font-size: 2.4rem; }
  .contact-section__container.container { padding: 0 20px; }

  .footer-nav-wrapper { gap: 32px; }
}

/* ----------------------------------------------------------------
   mobile portrait (≤ 575px) — reduced padding, tighter type
---------------------------------------------------------------- */
@media (max-width: 575px) {
  html { font-size: 9px; }

  .site-header { margin-top: 8px; }

  .title-big { font-size: 3.2rem; }
  .title { font-size: 2.8rem; }

  .fullscreen { padding: 3rem 0 0; }
  .fullscreen__btn--wrapper .btn_main { min-width: 180px; font-size: 1.5rem; }

  .hero-mockup { gap: 16px; }
  .hero-split__popup img { width: 240px; }

  .hiw-section { padding: 5rem 0 4rem; }

  .step-card { padding: 2.4rem 2rem 2.2rem; }
  .step-card__number { font-size: 3.2rem; }
  .step-card__title { font-size: 1.6rem; }

  .feature-card { padding: 2.2rem 1.8rem; }
  .feature-card__title { font-size: 1.6rem; }

  .bottom-cta { padding: 5rem 0 6rem; }
  .bottom-cta__title { font-size: 2.8rem; }

  .footer-wrapper { flex-direction: column; align-items: flex-start; gap: 32px; }
  .footer-nav-wrapper { gap: 20px; flex-wrap: wrap; }

  .terms-section { padding: 4rem 0; }
}

/* ----------------------------------------------------------------
   small mobile (≤ 480px) — final tightening
---------------------------------------------------------------- */
@media (max-width: 480px) {
  .title-big { font-size: 2.8rem; }
  .title { font-size: 2.4rem; }

  .hero-title { font-size: 2.8rem; }
  .hero-subtitle { font-size: 1.5rem; }

  .container { padding: 0 16px; }

  .hiw-comparison__img { max-width: 100%; }

  .contact-card { padding: 2.4rem 2rem; }
  .contact-card__subtitle { font-size: 2rem; }

  .footer-nav-wrapper { gap: 16px; }
  .footer-nav-wrapper { flex-direction: column; }
}
