:root {
  color-scheme: light;
  --bg: #fff6e8;
  --surface: #ffffff;
  --surface-strong: #111827;
  --text: #172033;
  --muted: #647084;
  --line: #d9dfeb;
  --accent: #0f766e;
  --accent-dark: #134e4a;
  --coral: #ef6f5e;
  --shadow: 0 20px 55px rgba(31, 41, 55, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.11), transparent 34%),
    linear-gradient(315deg, rgba(239, 111, 94, 0.13), transparent 36%),
    var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

.contact-shell {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.back-link {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: clamp(2.2rem, 5vw, 4.35rem);
  line-height: 1;
  letter-spacing: 0;
}

.title-accent {
  width: min(520px, 100%);
  height: 1px;
  margin: 0 0 18px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.42);
}

.intro {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(23, 32, 51, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 8px;
}

label {
  color: #293548;
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

.submit-button {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-strong);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
  box-shadow: 0 12px 26px rgba(31, 41, 55, 0.16);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 30px;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 500;
}

.footer-copy {
  display: grid;
  gap: 4px;
}

.site-footer .footer-tagline {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.site-footer nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer .back-to-top {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .contact-shell {
    width: min(100% - 24px, 880px);
    padding: 30px 0;
  }

  .back-link {
    margin-bottom: 28px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .intro {
    font-size: 1rem;
  }

  .contact-form {
    padding: 18px;
  }

  .site-footer {
    width: min(100% - 24px, 880px);
    padding-bottom: 26px;
  }
}
