/* Staff4Schools Recruitment — Design system */
:root {
  --navy-900: #0c1a2e;
  --navy-800: #132238;
  --navy-700: #1a2d4a;
  --navy-600: #243b5c;
  --navy-500: #2f4f73;
  --white: #ffffff;
  --grey-50: #f7f8fa;
  --grey-100: #eef0f4;
  --grey-200: #dde1e8;
  --grey-300: #c4cad4;
  --grey-500: #6b7280;
  --grey-700: #374151;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --success: #059669;
  --font-sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --shadow-sm: 0 1px 2px rgba(12, 26, 46, 0.06);
  --shadow-md: 0 4px 12px rgba(12, 26, 46, 0.08);
  --shadow-lg: 0 12px 40px rgba(12, 26, 46, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1140px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--grey-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy-700);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.25;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--navy-900);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 200;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--navy-900);
  text-decoration: none;
}

.logo:hover {
  color: var(--navy-900);
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--navy-800);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-text span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--grey-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-800);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy-700);
  border-radius: var(--radius);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--navy-900);
  background: var(--grey-100);
}

.main-nav a.active {
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
}

.btn-primary:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

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

.btn-secondary:hover {
  background: var(--grey-100);
  color: var(--navy-900);
}

.btn-light {
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--white);
}

.btn-light:hover {
  background: var(--grey-100);
  color: var(--navy-900);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
  color: var(--white);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  color: var(--white);
  max-width: 18ch;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.125rem;
  max-width: 42rem;
  opacity: 0.92;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.hero .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

/* Notice banner */
.notice-banner {
  background: var(--grey-100);
  border-bottom: 1px solid var(--grey-200);
  padding: 0.75rem 0;
  font-size: 0.875rem;
  text-align: center;
  color: var(--navy-700);
}

.notice-banner strong {
  color: var(--navy-900);
}

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

.section-alt {
  background: var(--grey-50);
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--grey-500);
  margin-bottom: 0;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--grey-300);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--grey-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--navy-700);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p:last-child {
  margin-bottom: 0;
  color: var(--grey-500);
  font-size: 0.9375rem;
}

/* Service blocks */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--grey-200);
}

.service-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-block.reverse .service-content {
  order: 2;
}

.service-block.reverse .service-visual {
  order: 1;
}

.service-visual {
  background: var(--navy-800);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-visual h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.service-visual p {
  opacity: 0.85;
  margin: 0;
  font-size: 0.9375rem;
}

.service-content h2 {
  margin-bottom: 0.75rem;
}

.service-content ul {
  color: var(--grey-700);
}

/* CTA */
.cta-section {
  background: var(--navy-800);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-section p {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  opacity: 0.9;
  font-size: 1.0625rem;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--grey-50);
  border-bottom: 1px solid var(--grey-200);
  padding: 3rem 0;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero .lead {
  font-size: 1.125rem;
  color: var(--grey-500);
  max-width: 40rem;
  margin: 0;
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Forms */
.form-panel {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.form-panel h2 {
  font-size: 1.375rem;
  margin-bottom: 0.25rem;
}

.form-panel > p {
  font-size: 0.9375rem;
  color: var(--grey-500);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 0.375rem;
}

.form-group label .optional {
  font-weight: 400;
  color: var(--grey-500);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy-900);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(26, 45, 74, 0.12);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input[type="file"] {
  padding: 0.5rem;
  font-size: 0.875rem;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--grey-500);
  margin-top: 0.375rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-success {
  display: none;
  padding: 1rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  color: var(--success);
  margin-bottom: 1rem;
}

.form-success.visible {
  display: block;
}

.form-error {
  display: none;
  padding: 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  color: #b91c1c;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.form-error.visible {
  display: block;
}

button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Values list */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.value-item {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
}

.value-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

/* Contact info */
.contact-card {
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-card h2 {
  color: var(--white);
  font-size: 1.375rem;
  margin-bottom: 1rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  opacity: 0.8;
}

.contact-item a {
  color: var(--white);
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--grey-200);
}

/* Footer */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 1.5rem;
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-brand .logo:hover {
  color: var(--white);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 28rem;
}

.footer-nav h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
}

.footer-disclaimer {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Content prose */
.prose h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 1rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.625rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 1rem;
  height: 1rem;
  background: var(--navy-800);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Responsive */
@media (max-width: 900px) {
  .service-block,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-block.reverse .service-content,
  .service-block.reverse .service-visual {
    order: unset;
  }

  .footer-grid {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-200);
    padding: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
    box-shadow: var(--shadow-lg);
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav a {
    padding: 0.75rem 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 0 4rem;
  }

  .section {
    padding: 3rem 0;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
