:root {
  --navy: #1f3864;
  --red: #c0392b;
  --red-dark: #8e2a1f;
  --teal: #1b7a6e;
  --grey: #f2f2f2;
  --ink: #222;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.5;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: white;
  color: var(--red);
  border-bottom: 3px solid var(--red);
}

.site-header .brand {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  height: 42px;
  width: 42px;
  object-fit: contain;
  border-radius: 4px;
}

.site-header nav a {
  color: var(--red);
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 600;
}

.site-header nav a.cta {
  background: var(--red);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.site-header nav a.cta:hover {
  background: var(--red-dark);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.site-footer {
  text-align: center;
  padding: 2rem;
  color: #777;
  font-size: 0.85rem;
}

.hero {
  height: 340px;
  background: url('/images/hero-firstaid.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-top: 1rem;
}

.hero-text {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.hero-text h1 {
  color: var(--red);
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.hero-text p {
  max-width: 640px;
  margin: 1rem auto 1.5rem;
  color: var(--ink);
}

.btn-primary {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  background: var(--red);
  color: white;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--red-dark);
}

.company-details {
  margin-top: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid #eee;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.15s ease;
}

.card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.badge.teach { background: #d9ead3; color: #274e13; }
.badge.outsource { background: #fce5cd; color: #7f4a12; }

.filters {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.filters select {
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

table.calendar {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 1.5rem;
}

table.calendar th, table.calendar td {
  border: 1px solid #ddd;
  padding: 0.4rem;
  text-align: center;
}

table.calendar th:first-child, table.calendar td:first-child {
  text-align: left;
}

table.calendar td.active {
  background: var(--teal);
  color: white;
}

form.book-form label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

form.book-form input, form.book-form select, form.book-form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

form.book-form button {
  margin-top: 1.5rem;
  background: var(--teal);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}
