/* ============================================================
   CSS 15.06 — Show or hide parts by screen size
   ============================================================
   display: none inside a media query = "not on this screen size".
     - A sidebar is too wide for a phone      → hide it on phones
     - A "Call" button is useful on a phone    → show it only on phones
   ⚠ Don't hide IMPORTANT content on phones — phone users need it too.

   HOW TO TEST ON A "PHONE" WITHOUT A PHONE:
     Open the page in Chrome → press F12 → press Ctrl+Shift+M
     (the "device toolbar"). Choose a phone like "iPhone SE" at the top,
     or drag the edge to change the width. Watch the page change.

   ============================================================ */

/* Phone first */
.sidebar {
  display: none;                    /* no sidebar on phones */
}

.call-btn {
  display: block;                   /* big call button on phones */
}

/* 600px and wider */
@media (min-width: 600px) {
  .layout {
    display: grid;
    grid-template-columns: 200px 1fr;   /* sidebar + content */
    gap: 20px;
  }

  .sidebar {
    display: block;                 /* show the sidebar */
  }

  .call-btn {
    display: none;                  /* hide the call button */
  }
}


/* ------------------------------------------------------------
   Only to make the parts visible — not part of this lesson
   ------------------------------------------------------------ */
.layout { font-family: Arial, sans-serif; max-width: 900px; }
.sidebar { background-color: #EEF3FF; padding: 14px; border-radius: 10px; line-height: 1.8; }
.call-btn {
  background-color: #1F9D55;
  color: #FFFFFF;
  text-align: center;
  font-weight: bold;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
}
