@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "ProFont";
  src: url("/fonts/ProFont.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #00103b;
  --green: #35ff38;
  --blue: #94c9e7;
  --paper: #f7f7f7;
  --ink: #00103b;
  --muted: #61708d;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "ProFont", "Courier New", monospace;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, textarea { font: inherit; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 0 clamp(1.25rem, 6vw, 5.5rem);
  background: var(--navy);
  color: white;
}

.wordmark {
  color: white;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.wordmark span { color: var(--green); }

.language-switch {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.25rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
}

.language-button {
  padding: 0.55rem 0.8rem;
  color: rgba(255,255,255,.72);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 0.83rem;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}

.language-button:hover { color: white; }
.language-button.is-active { color: var(--navy); background: var(--green); font-weight: 700; }
.language-button:focus-visible, .submit-button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.page {
  width: min(100% - 2.5rem, 760px);
  margin: clamp(3.5rem, 9vw, 7rem) auto 2.5rem;
}

.intro { margin-bottom: 2rem; }

.eyebrow {
  margin: 0 0 1rem;
  color: #255e54;
  font-family: var(--font-mono);
  font-size: .83rem;
  letter-spacing: .12em;
}

h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  letter-spacing: -.065em;
  line-height: .99;
}

.intro-copy {
  max-width: 550px;
  margin: 1.25rem 0 0;
  color: #43516d;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.7;
}

.accent-line {
  width: 82px;
  height: 6px;
  margin-top: 1.7rem;
  border-radius: 9px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.form-card {
  padding: clamp(1.35rem, 5vw, 2.6rem);
  border: 1px solid #e5e8eb;
  border-radius: 1.25rem;
  background: white;
  box-shadow: 0 18px 55px rgba(0,16,59,.07);
}

#contact-form { display: grid; gap: 1.35rem; }

.field { display: grid; gap: .55rem; }

.field label {
  display: flex;
  gap: .32rem;
  align-items: baseline;
  color: var(--ink);
  font-size: .94rem;
  font-weight: 650;
}

.required { color: #286b54; }
.optional { color: var(--muted); font-size: .82rem; font-weight: 400; }

input, textarea {
  width: 100%;
  padding: .9rem 1rem;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid #d6dce4;
  border-radius: .65rem;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

input:hover, textarea:hover { border-color: #8ea0b7; }
input:focus, textarea:focus {
  background: white;
  border-color: #428a74;
  box-shadow: 0 0 0 3px rgba(53,255,56,.14);
  outline: 0;
}
textarea { min-height: 130px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8a95a7; }

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

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: .25rem;
}

.privacy-note {
  max-width: 270px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

.submit-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .9rem 1.2rem;
  color: var(--navy);
  background: var(--green);
  border: 0;
  border-radius: 999px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(53,255,56,.3);
}
.submit-button:disabled { opacity: .62; cursor: wait; }
.button-arrow { font-size: 1.1rem; }

.form-status {
  min-height: 1.4em;
  margin: -.35rem 0 0;
  color: #286b54;
  font-size: .93rem;
  line-height: 1.5;
}
.form-status[data-state="error"] { color: #a62c31; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .8rem;
}

@media (max-width: 540px) {
  .topbar { min-height: 72px; padding-inline: 1rem; }
  .language-button { padding: .5rem .65rem; font-size: .77rem; }
  .page { width: min(100% - 1.5rem, 760px); margin-top: 3rem; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .privacy-note { max-width: none; }
  .submit-button { width: 100%; }
  .footer { font-size: .72rem; }
}
