/*
Theme Name: Safety Officer
Theme URI: https://safetyofficer.net.au
Author: Environics
Description: Multi-school safety document management theme. School branding (palette, logo, name) is set per site via the Customizer — nothing school-specific is hard-coded. Default palette: RGGS (cream/gold/navy/pink).
Version: 1.0.0
Requires PHP: 8.0
License: Proprietary — Environics
Text Domain: safetyofficer
*/

/* Palette defaults are RGGS; each is overridable via Customizer (inline CSS vars). */
:root {
  --so-bg: #FBF6F0;          /* page background (RGGS cream) */
  --so-primary: #FDB813;     /* buttons, borders, icons (RGGS gold) */
  --so-primary-2: #FAAB19;   /* hover */
  --so-heading: #000034;     /* headings, nav (RGGS navy) */
  --so-text: #2A2A2A;        /* body text */
  --so-accent: #ED1566;      /* feature accent (RGGS pink) */
  --so-soft: #FDE0E1;        /* soft section background */
  --so-white: #FFFFFF;
  --so-line: #E8E2D8;
  --so-radius: 12px;
  --so-font-heading: 'Lora', Georgia, serif;
  --so-font-body: 'Poppins', 'Avenir', Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--so-bg);
  color: var(--so-text);
  font-family: var(--so-font-body);
  font-size: 1rem;
  line-height: 1.65;
}
h1, h2, h3, h4 { font-family: var(--so-font-heading); color: var(--so-heading); line-height: 1.25; }
a { color: var(--so-heading); }
a:hover { color: var(--so-primary-2); }
img { max-width: 100%; height: auto; }

/* ---------- Header ---------- */
.so-header {
  background: var(--so-white);
  border-bottom: 3px solid var(--so-primary);
  text-align: center;
  padding: 18px 4% 0;
}
.so-header .so-logo img { max-height: 84px; width: auto; }
.so-header .so-school-name {
  font-family: var(--so-font-heading);
  font-size: 1.45rem;
  color: var(--so-heading);
  margin: 6px 0 2px;
}
.so-header .so-site-tagline {
  font-size: .85rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--so-accent);
  margin-bottom: 12px;
}
.so-nav { padding: 10px 0 14px; }
.so-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; }
.so-nav a {
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: .9rem;
  letter-spacing: .05em;
  color: var(--so-heading);
}
.so-nav a:hover, .so-nav .current-menu-item a { color: var(--so-primary-2); }

/* ---------- Layout ---------- */
.so-main { max-width: 1080px; margin: 0 auto; padding: 40px 4% 70px; }

/* Two-tone display heading: [OUR] [REGISTERS] */
.so-display {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: 1.7rem;
  margin: 10px 0 30px;
}
.so-display .tone { color: var(--so-primary-2); }
.so-display .tone-accent { color: var(--so-accent); }

/* ---------- Document cards (gold-framed, per style guide) ---------- */
.so-doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.so-doc-card {
  background: var(--so-white);
  border: 2px solid var(--so-primary);
  border-radius: var(--so-radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.so-doc-card h3 { margin: 0; font-size: 1.05rem; }
.so-doc-card .so-doc-meta { font-size: .82rem; color: #6b6b6b; }
.so-doc-card .so-doc-meta strong { color: var(--so-heading); }
.so-doc-card a.so-doc-open {
  align-self: flex-start;
  margin-top: auto;
  background: var(--so-primary);
  color: var(--so-heading);
  font-weight: 700;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 10px;
  font-size: .9rem;
}
.so-doc-card a.so-doc-open:hover { background: var(--so-primary-2); }

/* Status chips (workflow) */
.so-chip { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.so-chip--approved { background: #e2f3e5; color: #1d6b2c; }
.so-chip--pending  { background: #fff3d6; color: #8a6100; }
.so-chip--flagged  { background: var(--so-soft); color: var(--so-accent); }
.so-chip--overdue  { background: #fdecea; color: #b3261e; }

/* ---------- Buttons & forms ---------- */
.so-btn, button.so-btn, input[type="submit"].so-btn {
  background: var(--so-primary);
  color: var(--so-heading);
  border: none;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
}
.so-btn:hover { background: var(--so-primary-2); }
.so-btn--accent { background: var(--so-accent); color: var(--so-white); }
.so-form input[type="text"], .so-form input[type="email"], .so-form input[type="date"],
.so-form select, .so-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--so-line);
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  background: var(--so-white);
}
.so-form label { font-weight: 600; color: var(--so-heading); font-size: .9rem; display: block; margin: 14px 0 4px; }

/* Soft feature band */
.so-band { background: var(--so-soft); border-radius: var(--so-radius); padding: 26px 28px; margin: 30px 0; }

/* ---------- Content pages ---------- */
.so-content h2 { margin-top: 1.6em; }
.so-content ul li { margin-bottom: .4em; }
.entry-title { text-align: center; }

/* ---------- Footer ---------- */
.so-footer {
  background: var(--so-white);
  border-top: 3px solid var(--so-primary);
  text-align: center;
  padding: 26px 4%;
  font-size: .85rem;
  color: var(--so-heading);
}
.so-footer .so-legal { font-weight: 700; }
.so-footer .so-managed { margin-top: 6px; color: #6b6b6b; }
.so-footer a { color: var(--so-primary-2); text-decoration: none; }

@media (max-width: 640px) {
  .so-display { font-size: 1.15rem; letter-spacing: .18em; }
  .so-main { padding-top: 24px; }
}
