/* Major Workforce Services Limited — basic site styles */
:root {
  --navy: #0d2b4a;
  --navy-mid: #1a365d;
  --teal: #1a8fad;
  --teal-dark: #157a94;
  --text: #1a202c;
  --muted: #4a5568;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f7fafc;
  --danger: #c53030;
  --ok: #276749;
  --radius: 6px;
  --max: 960px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal-dark);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header / masthead */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-link img {
  height: 65px;
  width: auto;
  max-width: min(300px, 72vw);
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: center;
}

.site-nav a {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--teal);
}

.site-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--bg-soft) 0%, #fff 55%);
  padding: 2.75rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.25;
  color: var(--navy);
}

.hero .lead {
  margin: 0 0 1.5rem;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-mid);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--bg-soft);
  text-decoration: none;
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  color: var(--navy);
}

.section p {
  margin: 0 0 1rem;
  color: var(--text);
  max-width: 42rem;
}

.grid-2 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.list-plain {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--text);
  max-width: 42rem;
}

.list-plain li {
  margin-bottom: 0.4rem;
}

/* Page title strip */
.page-banner {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 1.75rem 0;
}

.page-banner h1 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--navy);
}

.page-banner p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  max-width: 36rem;
}

/* Forms */
.form-stack {
  max-width: 32rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--navy);
}

.form-field .required {
  color: var(--danger);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #cbd5e0;
  border-radius: var(--radius);
  font: inherit;
  color: var(--text);
  background: #fff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.form-messages {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.form-messages:empty {
  display: none;
}

.form-messages.ok {
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  color: var(--ok);
}

.form-messages.err {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  color: var(--danger);
}

.form-messages ul {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

/* Legal pages */
.legal {
  max-width: 42rem;
}

.legal h2 {
  margin-top: 1.75rem;
  font-size: 1.1rem;
}

.legal p,
.legal li {
  font-size: 0.95rem;
  color: var(--text);
}

.legal ul {
  padding-left: 1.2rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--navy);
  color: #e2e8f0;
  padding: 1.75rem 0 1.5rem;
  margin-top: 2rem;
  font-size: 0.875rem;
}

.site-footer a {
  color: #90cdf4;
}

.site-footer a:hover {
  color: #fff;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-copy {
  margin: 0;
  color: #a0aec0;
  max-width: 28rem;
}
