/* Brightpath Community Services — DEMO training site stylesheet.
   NOTE: This stylesheet contains DELIBERATE accessibility issues for training
   (low contrast, removed focus outlines, color-only cues). See ANSWER-KEY.md. */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  background: #ffffff;
  line-height: 1.5;
}

/* --- ISSUE: focus outline removed globally (fails 2.4.7 Focus Visible) --- */
a:focus, button:focus, input:focus, textarea:focus, select:focus,
.card:focus, [tabindex]:focus { outline: none; }

header.site {
  background: #0b3c5d;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .name { color: #ffffff; font-size: 22px; font-weight: bold; }

nav ul { list-style: none; display: flex; gap: 22px; }
/* --- ISSUE: nav links light blue on navy = low contrast (fails 1.4.3) --- */
nav a { color: #6fa8c7; text-decoration: none; font-size: 16px; }
nav a:hover { color: #ffffff; }

.container { max-width: 960px; margin: 0 auto; padding: 32px 24px; }

/* Hero */
.hero { background: #e8eef2; padding: 48px 24px; text-align: center; }
.hero .headline { font-size: 34px; color: #0b3c5d; font-weight: bold; margin-bottom: 10px; }
/* --- ISSUE: hero subtext is light gray on light bg = low contrast (1.4.3) --- */
.hero .subtext { font-size: 18px; color: #9aa6ad; }

/* Fake heading: styled div, not a real heading element (fails 1.3.1 / 2.4.6) */
.fakeheading { font-size: 24px; font-weight: bold; color: #0b3c5d; margin: 28px 0 10px; }

/* --- ISSUE: body links have no underline and a color close to text (1.4.1) --- */
.content a { color: #4a6a7a; text-decoration: none; }

/* --- ISSUE: primary button low contrast (teal text on light green) (1.4.3/1.4.11) --- */
.btn {
  display: inline-block;
  background: #bfe3d6;
  color: #5aa48c;
  padding: 10px 20px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  margin-top: 12px;
}

/* Service cards */
.cards { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; }
.card {
  flex: 1 1 260px;
  border: 1px solid #ddd;
  padding: 20px;
  cursor: pointer;      /* clickable div — not a real button/link */
}
.card .icon { font-size: 30px; }
.card h3 { margin: 10px 0 6px; color: #0b3c5d; }

/* Data table */
table { width: 100%; border-collapse: collapse; margin-top: 16px; }
td, th { border: 1px solid #ccc; padding: 10px; text-align: left; }

/* Forms */
form { margin-top: 16px; max-width: 520px; }
.field { margin-bottom: 16px; }
input, textarea, select {
  width: 100%; padding: 10px; font-size: 16px; border: 1px solid #bbb;
}
/* --- ISSUE: error state shown by red border/text only (color-only) (1.4.1) --- */
.error input, .error textarea { border-color: #d14; }
.error-msg { color: #d14; font-size: 14px; }
/* fake submit "button" (a div) */
.submit {
  display: inline-block; background: #0b3c5d; color: #fff;
  padding: 10px 24px; cursor: pointer; margin-top: 8px;
}

footer.site {
  background: #07293d; color: #cfdbe3; padding: 24px; text-align: center;
  font-size: 14px; margin-top: 40px;
}
img { max-width: 100%; height: auto; }
.events img, .hero-illustration { display: block; margin: 0 auto; }
