/* ══════════════════════════════════════════════════════════
   styles.css — Paul D. Camp Community College
   Site-wide base styles, layout, navigation, and utilities
   ══════════════════════════════════════════════════════════ */

/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #33ab2b;
  --gold:      #b8922a;
  --mid:       #5dc956;
  --light:     #eaf7ea;
  --border:    #8fce8b;
  --text:      #000000;
  --muted:     #555555;
  --white:     #ffffff;
  --focus:     #ff6b00;
  --row-alt:   #f2fbf2;
  --font-body: 'Arial', sans-serif;
  --font-ui:   'Arial', sans-serif;
}

/* ── Body ── */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #d6dde8;
  padding: 2rem 1rem;
  min-height: 100vh;
}

/* ── Page Wrapper (non-form pages) ── */
.page-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(26,45,79,.18);
  overflow: hidden;
  padding-bottom: 2rem;
}

/* ── Header ── */
header {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  border-bottom: 5px solid var(--gold);
}
header img {
  max-height: 80px;
  border-radius: 4px;
  flex-shrink: 0;
}
header h1,
header h2 {
  font-family: var(--font-ui);
  font-size: 1.75rem;
  font-weight: normal;
  color: #000;
  letter-spacing: .02em;
  flex: 1;
}

/* ── Reset Button (lives in header) ── */
.btn-reset {
  background: rgba(0,0,0,0.18);
  color: #000;
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .55rem 1.2rem;
  border: 2px solid rgba(0,0,0,0.35);
  border-radius: 3px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-reset:hover { background: rgba(0,0,0,0.30); border-color: rgba(0,0,0,0.5); }
.btn-reset:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ── Navigation ── */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0 2rem 0;
  padding-left: 2rem;
}
nav a {
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--text);
  padding: .3rem .5rem;
  border-radius: 3px;
  transition: background .15s;
}
nav a:hover { background: var(--mid); color: #000; }

/* ── Main Content ── */
main { padding: 0 2rem; font-family: var(--font-body); }
section {
  margin-bottom: 2rem;
  background: var(--row-alt);
  padding: 1rem 1.25rem;
  border-radius: 4px;
}
section h2 {
  margin-bottom: .75rem;
  font-family: var(--font-ui);
  color: var(--navy);
}
section p { font-size: 1rem; }

/* ── General Button ── */
.btn {
  display: inline-block;
  padding: .7rem 1.5rem;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 700;
  border-radius: 3px;
  transition: background .15s;
}
.btn:hover { background: var(--mid); color: #000; }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 1rem 0;
  font-size: .9rem;
  color: var(--muted);
  border-top: 1px solid var(--light);
  margin-top: 2rem;
}

/* ── Utility ── */
.no-print { /* handled in print block below */ }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Focus Ring (WCAG 2.1 AA) ── */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ── Responsive ── */
@media (max-width: 600px) {
  nav ul { flex-direction: column; gap: 1rem; padding-left: 0; }
  header { flex-direction: column; align-items: flex-start; gap: .5rem; }
}
