/* =====================================================================
   RESPONSIVE  |  شكل الموقع على الموبايل
   Keep this file last in index.html so it can override the others.
   ===================================================================== */

/* ---------- Phones (up to 760px wide) ---------- */
@media (max-width: 760px) {

  .hero,
  .coach,
  .paths {
    grid-template-columns: 1fr;
  }

  .hero > div {
    padding: 28px 20px;
  }

  .hero img {
    order: -1;               /* photo goes above the text */
    height: 360px;
    min-height: 0;
    -webkit-mask-image: radial-gradient(ellipse 85% 78% at 50% 38%, #000 48%, transparent 100%);
    mask-image: radial-gradient(ellipse 85% 78% at 50% 38%, #000 48%, transparent 100%);
  }

  .coach img {
    max-width: 260px;
  }

  .row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Small phones (up to 600px wide) ---------- */
@media (max-width: 600px) {
  .lb-nav {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}

/* ---------- Visitors who turned off animations ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Phones/tablets: menu goes under the logo row | القايمة تحت اللوجو ---------- */
@media (max-width: 900px) {
  header {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .logo {
    margin-inline-end: auto;   /* pushes the two buttons to the far side */
  }

  nav {
    order: 3;
    flex: 0 0 100%;
    padding-bottom: 2px;
  }
}
