/* The Space Clearer — airy, quiet, invitation-only */
:root {
  --bg: #f7f6f2;
  --surface: rgba(255, 254, 251, 0.82);
  --surface-solid: #fffefb;
  --ink: #1a2420;
  --muted: #5a6861;
  --faint: #9aa59e;
  --line: rgba(26, 36, 32, 0.1);
  --sage: #3d6b5e;
  --sage-deep: #2c4f45;
  --sage-soft: rgba(61, 107, 94, 0.1);
  --focus: rgba(61, 107, 94, 0.35);
  --danger: #8b3a4a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(26, 36, 32, 0.07);
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --measure: 40rem;
  --page: min(44rem, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.55;
  font-weight: 400;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    url("./assets/bg.jpg") center top / cover no-repeat;
  transform: scale(1.02);
}

.veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(247, 246, 242, 0.72) 0%, rgba(247, 246, 242, 0.88) 42%, rgba(247, 246, 242, 0.96) 100%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 254, 251, 0.55), transparent 70%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: var(--page);
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0 1.75rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
  color: inherit;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero {
  padding: 2.25rem 0 2.75rem;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1.35rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 251, 0.55);
  backdrop-filter: blur(8px);
  color: var(--sage-deep);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0 auto;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.4vw, 3.55rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}

.lead {
  margin: 1rem auto 0;
  max-width: 28ch;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.7rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.meta-list li {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 254, 251, 0.6);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.85rem;
  min-height: 3rem;
  padding: 0.85rem 1.45rem;
  border: 0;
  border-radius: 999px;
  background: var(--sage);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 10px 24px rgba(61, 107, 94, 0.18);
}

.btn:hover {
  background: var(--sage-deep);
  transform: translateY(-1px);
}

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

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.btn-full {
  width: 100%;
  margin-top: 0.35rem;
}

.inquiry {
  margin-top: 0.5rem;
  padding: 1.75rem 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.inquiry-head {
  text-align: center;
  margin-bottom: 1.35rem;
}

.inquiry h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.section-desc {
  margin: 0.55rem auto 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-wrap {
  max-width: 28rem;
  margin: 0 auto;
}

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

.field {
  margin-bottom: 0.9rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 254, 251, 0.9);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  padding: 0.78rem 0.9rem;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

textarea {
  resize: vertical;
  min-height: 7rem;
  line-height: 1.5;
}

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

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(61, 107, 94, 0.28);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 4px var(--focus);
  background: #fff;
}

.form-note {
  margin: 0.2rem 0 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.form-status {
  min-height: 1.25rem;
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
}

.form-status[data-tone="error"] {
  color: var(--danger);
}

.success-panel {
  text-align: center;
  padding: 1.5rem 0.5rem 0.75rem;
}

.success-panel h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
}

.success-panel p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer a {
  color: var(--sage-deep);
  text-decoration: none;
  font-weight: 500;
}

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

@media (max-width: 640px) {
  .shell {
    width: min(100% - 1.5rem, 44rem);
    padding-top: 1.15rem;
  }

  .hero {
    padding: 1.5rem 0 2rem;
    text-align: left;
  }

  .eyebrow {
    margin-left: 0;
  }

  h1,
  .lead {
    max-width: none;
  }

  .meta-list {
    justify-content: flex-start;
  }

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

  .inquiry {
    padding: 1.35rem 1rem 1.2rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
