/* ==========================================================================
   PetSmart -- responsive layer for EVERY page (phones, tablets, laptops).

   How it works
   ------------
   * Linked LAST in each page's <head>, after that page's own stylesheets
     (now split into responsive-base.css, responsive-1100.css,
     responsive-1280.css, responsive-900.css, responsive-600.css and
     responsive-420.css -- linked together, in that exact order, after
     everything else).
   * Everything below sits inside max-width media queries, so on a normal
     desktop screen (wider than 1100px) NOTHING here applies and the original
     design is untouched. Smaller screens only get their layout adapted --
     same colours, fonts, buttons and cards, just re-arranged to fit.
   * js/responsive.js adds the two small controls this file styles: the
     "menu" button in the website header and the sidebar button on the admin
     pages.

   Breakpoints:  1100  small laptops / iPad landscape
                  900  tablets in portrait (menu becomes a button)
                  600  large phones
                  420  small phones

   NOTE: the breakpoint files are linked 1100, 1280, 900, 600, 420 -- the
   same order the single original file held them in, kept exactly on
   purpose. A few selectors recur across breakpoints (e.g. .texth h1 in
   both the 1100 and 420 files, .main-content's padding in both the 900
   and 600 files), and at a narrow enough width several of these media
   queries are active at once, so changing this link order would change
   which rule wins.
   ========================================================================== */

/* ---------- base (safe at every size) ---------- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
img {
  max-width: 100%;
}

/* Website header: menu button (only shown on small screens, see below) */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  border: 1.5px solid #6FC2BB;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: #6FC2BB;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
header.nav-open .nav-toggle {
  background: #6FC2BB;
}
header.nav-open .nav-toggle span {
  background: #ffffff;
}
header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Admin pages: top bar + backdrop (only shown on small screens, see below) */
.admin-topbar,
.sidebar-backdrop {
  display: none;
}
