:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-2: #f1f1ed;
  --border: #e4e5e7;
  --text: #0d0f12;
  --text-secondary: #545b66;
  --text-muted: #8b93a1;
  --shadow: 0 4px 20px rgba(16, 24, 40, 0.07);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

/* ── Pill nav ──────────────────────────────────── */

.pill-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  width: fit-content;
  margin: 28px auto 0;
}

.pill-nav-item {
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}

.pill-nav-item:hover { color: var(--text); }
.pill-nav-item.active { background: var(--surface-2); color: var(--text); }

/* ── Hero ──────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 52px 0 44px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ── Contact layout ────────────────────────────── */

main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 24px 80px;
}

.contact-wrap {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── Form ──────────────────────────────────────── */

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

input,
textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:focus,
textarea:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(13, 15, 18, 0.06);
}

textarea {
  min-height: 140px;
}

.submit-btn {
  width: 100%;
  padding: 13px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 4px;
}

.submit-btn:hover { opacity: 0.82; }
.submit-btn:disabled { opacity: 0.4; cursor: default; }

/* ── Status messages ───────────────────────────── */

.form-status {
  font-size: 0.88rem;
  text-align: center;
  padding: 12px 16px;
  border-radius: 10px;
  display: none;
}

.form-status.success {
  display: block;
  background: #f0faf4;
  border: 1px solid #b5ddc5;
  color: #2a7d4f;
}

.form-status.error {
  display: block;
  background: #fef2f2;
  border: 1px solid #f5c0c0;
  color: #b33a3a;
}

/* ── Alt contact ───────────────────────────────── */

.contact-alt {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-alt a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.contact-alt a:hover { color: var(--text); }

/* ── Footer ────────────────────────────────────── */

footer {
  padding: 14px 0;
  text-align: center;
  position: sticky;
  bottom: 0;
  background: var(--bg);
}

.footer-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ── Mobile ────────────────────────────────────── */

@media (max-width: 520px) {
  .contact-form { padding: 22px 18px; }
}
