/* assets/css/style.css
   EasyMyTest — working, responsive stylesheet
   Matches header.php and footer.php structure provided
   Mobile menu shows when #mobileMenu has .show (JS toggles this)
*/

/* Reset & base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; font-family: "Helvetica Neue", Arial, sans-serif; color: #111; background:#f5f7fb; }
a { color: inherit; text-decoration: none; }
.container { width: 94%; max-width: 1100px; margin: 0 auto; }

/* Top info bar */
.top-bar {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 6px 10px;
  font-size: 14px;
}

/* Site header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e6e9ef;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
}

/* Logo */
.logo a {
  display: inline-block;
  color: #d80000;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 0.5px;
}

/* Desktop navigation */
.nav-menu {
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav-menu a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  color: #111;
  font-weight: 600;
  transition: background .12s, color .12s, transform .08s;
}
.nav-menu a:hover { background: #111; color: #fff; transform: translateY(-2px); }

/* Mobile menu icon (hidden on desktop) */
.mobile-menu-icon {
  display: none;
  font-size: 22px;
  cursor: pointer;
  user-select: none;
  color: #111;
  padding: 8px;
}

/* Main content spacing */
main.container { padding: 18px 0 36px; }

/* Section title and list styles */
.section-title { font-size: 22px; color: #111; text-align: left; margin: 18px 0 12px; font-weight: 700; }
.list-block { list-style: none; padding-left: 0; margin-bottom: 18px; }
.list-block li {
  background: #fff;
  border: 1px solid #eef2f5;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  transition: box-shadow .12s, transform .08s;
}
.list-block li:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(17,24,39,0.06); }

/* Grid boxes (used earlier in home view) */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.box {
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #eef2f5;
  text-align: center;
  font-weight: 700;
  color: #d80000;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .12s, color .12s;
}
.box:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(17,24,39,0.06); background:#d80000; color:#fff; }

/* Footer */
.site-footer {
  background: #0b0b0b;
  color: #fff;
  padding: 28px 0 10px;
  margin-top: 40px;
  border-top: 4px solid #d80000;
}
.footer-content {
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 20px;
  align-items: start;
}
.footer-about h3 { font-size: 20px; color: #fff; margin-bottom: 8px; }
.footer-about p { color: #d1d5db; font-size: 14px; line-height: 1.5; }
.footer-links h4, .footer-contact h4 { color: #fff; margin-bottom: 8px; font-size: 16px; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #d1d5db; font-size: 14px; }
.footer-contact p { color: #d1d5db; font-size: 14px; margin-bottom:6px; }
.footer-bottom { text-align:center; color: #bfc6cc; padding: 12px 0; font-size:14px; }

/* Mobile nav (duplicate links for mobile) */
.mobile-nav {
  display: none; /* not used if #mobileMenu present; kept for compatibility */
}

/* Mobile-specific menu (#mobileMenu toggled with .show) */
#mobileMenu {
  display: none;
  background: #fff;
  border-top: 1px solid #e6e9ef;
  padding: 6px 0;
}
#mobileMenu.show { display: block; }
#mobileMenu a {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #111;
  font-weight: 600;
}

/* Utility */
.small { font-size: 13px; color: #6b7280; }

/* Responsive breakpoints */
/* Tablet */
@media (max-width: 992px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 720px) {
  .header-flex { flex-direction: row; align-items: center; gap: 10px; }
  .nav-menu { display: none; }            /* hide desktop nav */
  .mobile-menu-icon { display: block; }   /* show hamburger */
  .mobile-menu-icon { margin-left: auto; }
  #mobileMenu { display: none; }          /* default hidden; shown when .show added */
  main.container { padding: 14px 0 26px; }
  .list-block li { flex-direction: column; align-items: flex-start; }
  .grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .logo a { font-size: 22px; }
}

/* Smallest screens */
@media (max-width: 420px) {
  .logo a { font-size: 20px; }
  .section-title { font-size: 18px; }
  .box { padding: 12px; font-size: 15px; }
}

/* Accessibility focus states */
a:focus, button:focus { outline: 3px solid rgba(216, 40, 40, 0.12); outline-offset: 3px; }

/* End of file */