/* Matches rm-dms.co.uk: white header with orange rule, dark photo hero,
   orange uppercase buttons, amber headings, white cards with amber base. */
:root {
  --fg: #3a3a3a; --heading: #262626; --muted: #636363; --line: #e5e5e5;
  --bg: #fff; --soft: #f8f8f8;
  --brand: #dd9933;   /* header rule, links, focus */
  --amber: #f49f00;   /* section headings, card accent */
  --cta: #f9520b;     /* buttons */
  --cta-hover: #f97d48;
  --error: #b00020;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { font: 15px/1.65 Roboto, system-ui, sans-serif; margin: 0; color: var(--fg); background: var(--bg);
       min-height: 100vh; display: flex; flex-direction: column; }
main { max-width: 1140px; width: 100%; margin: 0 auto; padding: 1.5rem 1rem 3rem; flex: 1; }
a { color: var(--brand); }
::selection { background: var(--brand); color: #000; }

#nav { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; align-items: center;
       padding: 0.75rem max(1rem, calc((100% - 1140px) / 2)); border-bottom: 1px solid var(--brand); }
#nav .brand img { display: block; height: 48px; width: auto; }
#nav nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; flex: 1; justify-content: flex-end; }
#nav nav a, #nav .who a { text-decoration: none; color: var(--fg); font-weight: 500; }
#nav nav a:hover, #nav a[aria-current] { color: var(--brand); }
#nav .who { color: var(--muted); font-size: 0.9rem; }

h1, h2, h3 { color: var(--heading); font-weight: 600; line-height: 1.3; }
h1 { font-size: 30px; margin: 1rem 0 0.75rem; }
h2 { font-size: 22px; margin-top: 2rem; }
.section-title { color: var(--amber); text-align: center; font-size: 30px; margin: 2rem 0 1.5rem; }
.muted { color: var(--muted); }
.error { color: var(--error); margin-top: 0.5rem; }

label { display: block; margin: 0.75rem 0 0.25rem; font-weight: 500; }
input, select { width: 100%; max-width: 420px; padding: 0.55rem 0.7rem; font: inherit;
                border: 1px solid #ccc; border-radius: 2px; background: var(--bg); color: var(--fg); }
input:focus, select:focus { outline: none; border-color: var(--brand); }
button, .button { display: inline-block; margin: 1rem 0.5rem 0 0; padding: 0.75rem 1.75rem; font-size: 14px; font-weight: 500; line-height: 1.2;
                  font-family: inherit; text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
                  border: 2px solid var(--cta); border-radius: 3px; background: var(--cta); color: #fff;
                  text-decoration: none; transition: background 0.2s, color 0.2s, border-color 0.2s; }
button:hover, .button:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
button.secondary, .button.secondary { background: transparent; color: var(--cta); }
button.secondary:hover, .button.secondary:hover { background: #f9ece3; }
.picker { margin: 0.5rem 0 1rem; }
.picker select { display: block; margin-top: 0.25rem; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
td, th { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; white-space: nowrap; color: var(--heading); background: var(--soft);
     border-bottom: 2px solid var(--amber); }
td.date { white-space: nowrap; }

/* Cards: white, soft shadow, amber base — as on the site's team cards. */
.stats { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 1rem 0; }
.stats div, .features div { background: var(--bg); border-bottom: 3px solid var(--amber);
  box-shadow: 0 0 25px 4px rgba(132, 132, 132, 0.25); padding: 1rem 1.25rem; }
.stats div { min-width: 160px; }
.stats strong { display: block; font-size: 1.75rem; color: var(--heading); }

.hero { background: linear-gradient(rgba(39, 42, 49, 0.55), rgba(39, 42, 49, 0.55)), url(hero.jpg) center / cover;
        color: #fff; padding: 5rem 1rem; }
.hero > div { max-width: 1140px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: clamp(28px, 5vw, 41px); max-width: 16em; }
.hero p { max-width: 40em; font-size: 1.05rem; }
.hero .button:hover { background: #fff; color: var(--cta); border-color: #fff; }
.hero .button.secondary { border-color: #fff; color: #fff; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.features div { padding: 1.5rem; }
.features h3 { margin: 0 0 0.5rem; font-size: 18px; }

footer { background: #1e1e1e; color: #bbb; text-align: center; padding: 1.25rem 1rem; font-size: 0.9rem; }

@media (max-width: 600px) {
  #nav { justify-content: space-between; }
  #nav .brand img { height: 40px; }
  #nav nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
}
