/* ---------- Tokens ---------- */
:root {
  --bg: #FAF6EF;
  --bg-soft: #F2EBDD;
  --surface: #FFFFFF;
  --ink: #2A2520;
  --ink-soft: #5A5048;
  --muted: #8A7E72;
  --accent: #C75D3C;       /* warm terracotta */
  --accent-deep: #A8482C;
  --accent-soft: #F4DACE;
  --border: #E7DECE;
  --shadow-sm: 0 1px 2px rgba(60, 40, 20, 0.04), 0 2px 8px rgba(60, 40, 20, 0.04);
  --shadow-md: 0 6px 18px rgba(60, 40, 20, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --maxw: 1100px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--accent-deep);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

em { font-style: italic; color: var(--accent-deep); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
}
.brand:hover { color: var(--ink); }

.brand-mark {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.005em;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  color: var(--surface) !important;
  background: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--accent-deep); }

@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-links li:not(:last-child) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 0.98rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-deep); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }

.hero h1 { margin-bottom: 20px; }
.hero .lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}
.hero-meta strong { color: var(--ink); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--border); }

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head .section-lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
}

/* ---------- Services / Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #DDD0B8;
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 0.97rem; }

/* ---------- Process / Steps ---------- */
.process { background: var(--bg-soft); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.step-body h3 { margin-bottom: 6px; }
.step-body p { margin: 0; font-size: 0.97rem; }

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 760px) {
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
}
.about-text p { font-size: 1.05rem; }
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.about-card-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.about-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-card li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: 0.98rem;
}
.about-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Contact ---------- */
.contact { background: var(--bg-soft); }
.contact-inner { max-width: 640px; margin: 0 auto; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 520px) {
  .contact-form { padding: 22px; }
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}
.field .optional { color: var(--muted); font-weight: 400; }

.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 110px; }

.form-note {
  margin: 4px 0 0;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}
.form-note.is-success {
  background: #E8F1E5;
  color: #355A2A;
}
.form-note.is-error {
  background: #FBE4DC;
  color: #8C2F18;
}

/* ---------- What we're building ---------- */
.building-feature {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 800px) {
  .building-feature { grid-template-columns: 1fr; gap: 24px; }
}

.building-feature-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 520px) {
  .building-feature-body { padding: 24px; }
}

.building-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin: 0 0 16px;
}

.building-feature-body h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.building-list {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.building-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-size: 0.98rem;
}
.building-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 50%;
}

.building-note {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--ink);
}

.building-signup {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 520px) {
  .building-signup { padding: 24px; }
}
.building-signup h3 {
  color: #fff;
  margin-bottom: 8px;
}
.building-signup > p {
  color: rgba(250, 246, 239, 0.72);
  font-size: 0.96rem;
  margin-bottom: 20px;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.signup-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(250, 246, 239, 0.85);
}
.signup-form input[type="email"] {
  font: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.signup-form input[type="email"]::placeholder {
  color: rgba(250, 246, 239, 0.4);
}
.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(199, 93, 60, 0.35);
}
.signup-form .btn { margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-inner p { margin: 0; color: inherit; }
.footer-inner a { color: var(--ink-soft); }
.footer-inner a:hover { color: var(--accent); }

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}
