/* ============================================================
   Worksett — Global Stylesheet
   Colours: Deep navy #17283B | Muted green #3F7567
             Warm white #F7F5F0 | Soft grey #DCE2E4
             Dark text #17212B
   ============================================================ */

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

:root {
  --navy:       #17283B;
  --green:      #3F7567;
  --green-dark: #2e5850;
  --green-light:#4f8f80;
  --warm-white: #F7F5F0;
  --soft-grey:  #DCE2E4;
  --dark-text:  #17212B;
  --mid-grey:   #8a9aa8;
  --border:     #c8d0d4;

  --font-main: 'Inter', 'Segoe UI', Arial, sans-serif;
  --max-w: 1100px;
  --radius: 6px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--warm-white);
  color: var(--dark-text);
  font-size: 1rem;
  line-height: 1.65;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--green-dark); }

strong { font-weight: 600; }

/* ── Layout helpers ─────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: #eef0ee;
}

.section--navy {
  background: var(--navy);
  color: var(--warm-white);
}
.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--warm-white);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.section-intro {
  max-width: 640px;
  color: var(--mid-grey);
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

.text-center { text-align: center; }
.text-center .section-intro { margin-left: auto; margin-right: auto; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
}

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

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: #fff;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

/* ── Navigation ─────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-cta {
  margin-left: 1rem;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.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);
}

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

  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem;
  }
  .nav-menu.is-open { display: block; }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .nav-links a { font-size: 1rem; }
  .nav-cta { margin-left: 0; margin-top: 0.5rem; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: var(--warm-white);
  padding: 6rem 0 5rem;
}

.hero-inner {
  max-width: 700px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: var(--warm-white);
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: rgba(247,245,240,0.75);
  margin-bottom: 2rem;
  max-width: 560px;
}

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

/* ── Cards ──────────────────────────────────────────────── */
.card-grid {
  display: grid;
  gap: 1.5rem;
}
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .card-grid--3,
  .card-grid--2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.card--green-top {
  border-top: 3px solid var(--green);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: rgba(63,117,103,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 { margin-bottom: 0.5rem; }
.card p  { color: #5a6a74; font-size: 0.95rem; }

/* ── Steps / Process ────────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.step:last-child { border-bottom: none; }

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 { margin-bottom: 0.4rem; }
.step-content p  { color: #5a6a74; font-size: 0.95rem; margin: 0; }

/* ── Two-column layout ──────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ── Pilot form ─────────────────────────────────────────── */
.pilot-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 640px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--dark-text);
  background: var(--warm-white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(63,117,103,0.12);
}

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

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--green);
}
.form-check label {
  font-size: 0.875rem;
  color: #5a6a74;
  line-height: 1.5;
}

.form-notice {
  font-size: 0.8rem;
  color: var(--mid-grey);
  margin-top: 1rem;
  line-height: 1.5;
}

.form-closed-notice {
  background: rgba(63,117,103,0.07);
  border: 1px solid rgba(63,117,103,0.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--green-dark);
  margin-bottom: 1.5rem;
}

/* ── Inline notice / callout ────────────────────────────── */
.callout {
  background: rgba(63,117,103,0.07);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--dark-text);
  margin: 1.5rem 0;
}

/* ── Beta badge ─────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  vertical-align: middle;
}
.badge-beta {
  background: rgba(63,117,103,0.12);
  color: var(--green-dark);
  border: 1px solid rgba(63,117,103,0.25);
}

/* ── Divider ────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(247,245,240,0.65);
  padding: 3rem 0 2rem;
  font-size: 0.875rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.footer-brand img {
  height: 28px;
  width: auto;
  margin-bottom: 0.75rem;
  display: block;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(247,245,240,0.5);
  max-width: 280px;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(247,245,240,0.6);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(247,245,240,0.4);
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Legal pages ────────────────────────────────────────── */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.legal-content h1 { margin-bottom: 0.5rem; }
.legal-content .legal-date {
  font-size: 0.85rem;
  color: var(--mid-grey);
  margin-bottom: 2.5rem;
  display: block;
}
.legal-content h2 {
  font-size: 1.15rem;
  margin-top: 2.5rem;
  margin-bottom: 0.6rem;
}
.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: #4a5a64;
  line-height: 1.7;
}
.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.legal-content li { margin-bottom: 0.4rem; }

/* ── Utility ────────────────────────────────────────────── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── Focus styles ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}