/* Middle Creek Partners - site styles
   Grounded and calm: earthy greens, water-blue accent, warm neutrals.
   Fraunces display + Hanken Grotesk body. See brand/PALETTE.md. */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/hanken.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #27302a;
  --ink-soft: #4a544b;
  --forest: #2e5a3c;
  --leaf: #5e8c57;
  --sage: #9fbe90;
  --stream: #3f7ea1;
  --stream-deep: #2f6182;
  --cream: #f6f1e6;
  --paper: #fbf8ef;
  --sand: #ece0c6;
  --bark: #6e5a41;
  --line: rgba(39, 48, 42, 0.14);
  --display: 'Fraunces', Georgia, serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;
  --wrap: 1120px;
  --vset: 'opsz' 144, 'SOFT' 0, 'WONK' 0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: var(--vset);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  text-wrap: balance;
}

a { color: var(--stream-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest); }

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

.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }
.wrap.narrow { max-width: 720px; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 0.6rem 1rem; border-radius: 0 0 6px 0;
}
.skip:focus { left: 0; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; cursor: pointer;
  text-decoration: none; border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--stream); color: #fff; }
.btn-primary:hover { background: var(--stream-deep); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-link {
  background: none; color: var(--ink); padding-inline: 0.4rem;
  text-decoration: underline; text-decoration-color: var(--sage);
}
.btn-link:hover { color: var(--forest); }

/* ---- Header ----------------------------------------------------------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  width: min(var(--wrap), 100% - 3rem); margin-inline: auto;
  padding-top: 1.5rem;
}
.brand img { height: 56px; width: auto; }
.header-cta { padding: 0.6rem 1.15rem; font-size: 0.9rem; }

/* ---- Hero ------------------------------------------------------------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
}
.hero-scene {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -1; object-fit: cover;
}
.hero-copy {
  width: min(var(--wrap), 100% - 3rem); margin-inline: auto;
  max-width: 760px; padding: 8rem 0 0;
}
.eyebrow {
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--forest); font-weight: 600; margin: 0 0 1.1rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.7rem);
  font-weight: 540;
  margin-bottom: 0.5rem;
}
.tagline {
  font-family: var(--display); font-style: italic; font-variation-settings: var(--vset);
  color: var(--forest); font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin: 0 0 1.4rem;
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 32em;
  color: var(--ink-soft); margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }

/* ---- Section bands ---------------------------------------------------- */
.band { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.band-paper { background: var(--paper); }
.band-sand { background: var(--sand); }
.band-deep { background: var(--forest); color: #eef3ea; }
.band-deep h2, .band-deep .kicker-light { color: #fff; }
.band-deep a { color: #cfe3d4; }

.kicker {
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--leaf); font-weight: 700; margin: 0 0 1rem;
}
.kicker-light { color: var(--sage); }

.band h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1.2rem; max-width: 16em; }
.band p { max-width: 40em; margin: 0 0 1.1rem; }
.aside {
  margin-top: 2.4rem; font-family: var(--display); font-variation-settings: var(--vset);
  font-style: italic; font-size: 1.25rem; color: var(--forest); max-width: 28em;
}
.band-deep .aside { color: var(--sage); }

/* ---- Steps ------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.step { border-top: 2px solid var(--ink); padding-top: 1.2rem; }
.step-num {
  font-family: var(--display); font-variation-settings: var(--vset);
  font-size: 1.4rem; color: var(--leaf); font-weight: 600;
}
.step h3 { font-size: 1.35rem; margin: 0.4rem 0 0.6rem; }
.step p { font-size: 1rem; color: var(--ink-soft); }

/* ---- Offerings -------------------------------------------------------- */
.offerings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
.offer {
  background: var(--cream); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.8rem 1.6rem;
}
.offer-lead { background: var(--forest); color: #eef3ea; border-color: transparent; }
.offer-lead h3 { color: #fff; }
.offer h3 { font-size: 1.45rem; margin-bottom: 0.3rem; }
.offer-tag { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--leaf); font-weight: 700; margin: 0 0 0.9rem; }
.offer-lead .offer-tag { color: var(--sage); }
.offer p { font-size: 0.98rem; margin: 0; }
.offer-lead p { color: #dfe9dd; }

/* ---- Contact ---------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; align-items: start; }
.contact-direct { font-size: 0.98rem; color: var(--ink-soft); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: 9px;
  padding: 0.75rem 0.85rem; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--stream); box-shadow: 0 0 0 3px rgba(63, 126, 161, 0.16);
}
.field.invalid input, .field.invalid textarea { border-color: #b4503f; box-shadow: 0 0 0 3px rgba(180, 80, 63, 0.14); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 0.4rem; }
.form-status { margin: 0; font-size: 0.95rem; font-weight: 600; }
.form-status.ok { color: var(--forest); }
.form-status.err { color: #b4503f; }
.contact-form.sent { opacity: 0.55; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--ink); color: #d8ddd6; padding: 4rem 0 2.5rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.footer-mark { margin-bottom: 0.8rem; }
.footer-name { font-family: var(--display); font-variation-settings: var(--vset); font-size: 1.4rem; color: #fff; margin: 0; }
.footer-sub { font-size: 0.9rem; color: #a7afa6; margin: 0.2rem 0 0; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: #d8ddd6; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-tag {
  font-family: var(--display); font-style: italic; font-variation-settings: var(--vset);
  color: #8c9589; text-align: center; margin: 3rem 0 0; font-size: 1.1rem;
}

/* ---- Reveal animation (progressive: only hides when JS is present) ----- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 860px) {
  .steps, .offerings { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-form { grid-template-columns: 1fr; }
  .header-cta { display: none; }
  .hero-copy { padding-top: 7rem; }
  .hero { min-height: 88vh; }
}
