/* Middle Creek Partners - site styles
   Refined, grounded, editorial. Palette drawn from the hero photograph:
   deep canopy greens, warm harvest gold, quiet slate-teal water, soft stone
   neutrals. Newsreader display + Schibsted Grotesk body. See brand/PALETTE.md. */

@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader.woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-italic.woff2') format('woff2');
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/fonts/schibsted.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1f2a20;        /* near-black warm green - primary text */
  --ink-soft: #4a564b;   /* secondary text */
  --forest: #2c4435;     /* deep canopy green */
  --moss: #46624a;       /* mid green */
  --sage: #8ea07e;       /* muted sage */
  --gold: #9c6f28;       /* muted harvest gold - text accent */
  --gold-soft: #c9a45f;  /* decorative gold */
  --water: #527684;      /* quiet slate-teal */
  --water-deep: #3f5e69;
  --paper: #fbf8f1;      /* page background, warm off-white */
  --cream: #f1e9da;      /* warm stone neutral - section band */
  --stone: #6c6a5e;      /* warm grey */
  --line: rgba(31, 42, 32, 0.13);
  --line-soft: rgba(31, 42, 32, 0.08);

  --display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --body: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --measure: 38rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 480;
  line-height: 1.07;
  letter-spacing: -0.015em;
  margin: 0 0 0.4em;
  text-wrap: balance;
}

p { margin: 0 0 1.1rem; }
a { color: var(--water-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s ease; }
a:hover { color: var(--gold); }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--sage); color: var(--ink); }

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

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

/* ---- Kicker / eyebrow ------------------------------------------------- */
.kicker {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 600; color: var(--gold); margin: 0 0 1.3rem;
}
.kicker::before {
  content: ''; width: 1.7rem; height: 1px; background: var(--gold-soft); display: inline-block;
}
.kicker-center { justify-content: center; }
.kicker-light { color: var(--gold-soft); }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--body); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  padding: 0.92rem 1.7rem; border-radius: 2px; cursor: pointer;
  text-decoration: none; border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--forest); color: #f6f2e9; box-shadow: 0 1px 0 rgba(0,0,0,0.04); }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; color: var(--ink); }
.btn-ghost { border-color: rgba(246,242,233,0.4); color: #f6f2e9; background: transparent; }
.btn-ghost:hover { border-color: #f6f2e9; background: rgba(246,242,233,0.08); color: #fff; }
.btn-line {
  background: none; color: inherit; padding: 0.5rem 0; border-radius: 0;
  border-bottom: 1px solid currentColor; letter-spacing: 0.04em;
}
.link-arrow {
  font-family: var(--body); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  text-decoration: none; color: var(--gold); display: inline-flex; align-items: center; gap: 0.4rem;
}
.link-arrow::after { content: '\2192'; transition: transform 0.2s ease; }
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---- 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.8rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.72rem; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-word {
  font-family: var(--display); font-weight: 560; font-size: 1.32rem; letter-spacing: 0.005em;
  color: #f6f2e9; white-space: nowrap;
}
.header-cta { padding: 0.62rem 1.25rem; font-size: 0.85rem; }

/* ---- Hero ------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate; color: #f3efe6;
}
.hero-photo {
  position: absolute; inset: 0; z-index: -2;
  background: #20271f url('/assets/hero.jpg') center 62% / cover no-repeat;
  transform: scale(1.04);
  animation: heroDrift 24s ease-out both;
}
@media (max-width: 760px) { .hero-photo { background-image: url('/assets/hero-1400.jpg'); } }
@keyframes heroDrift { from { transform: scale(1.1); } to { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .hero-photo { animation: none; transform: none; } }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(96deg, rgba(18,26,19,0.82) 0%, rgba(18,26,19,0.5) 34%, rgba(18,26,19,0.06) 62%, rgba(18,26,19,0) 100%),
    linear-gradient(to top, rgba(15,22,16,0.85) 0%, rgba(15,22,16,0.4) 30%, rgba(15,22,16,0.04) 58%, rgba(15,22,16,0) 100%);
}
.hero .kicker, .hero .tagline, .hero .lede { text-shadow: 0 1px 22px rgba(10,16,11,0.45); }
.hero-copy {
  width: min(var(--wrap), 100% - 3rem); margin-inline: auto;
  max-width: 50rem; padding: 0 0 clamp(4rem, 11vh, 8rem);
}
.hero .kicker { color: var(--gold-soft); }
.hero .kicker::before { background: var(--gold-soft); }
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.1rem);
  font-weight: 420; letter-spacing: -0.022em; color: #fbf8f1;
  margin-bottom: 0.55rem; max-width: 16ch;
  text-shadow: 0 1px 30px rgba(10,16,11,0.4);
}
.hero h1 em { font-style: italic; font-weight: 380; color: var(--gold-soft); }
.tagline {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.2rem, 2.3vw, 1.6rem); color: #e8e0cf; margin: 0 0 1.5rem;
  letter-spacing: 0.01em;
}
.hero .lede {
  font-size: clamp(1.06rem, 1.5vw, 1.24rem); max-width: 34rem; line-height: 1.55;
  color: #e3ddd0; margin: 0 0 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; align-items: center; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  z-index: 1; color: rgba(243,239,230,0.6); font-size: 0.7rem; letter-spacing: 0.24em;
  text-transform: uppercase; text-decoration: none; display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
}
.scroll-cue span { width: 1px; height: 2.2rem; background: linear-gradient(rgba(243,239,230,0.6), transparent); }
@media (max-width: 760px) { .scroll-cue { display: none; } }

/* ---- Sections --------------------------------------------------------- */
.section { padding: clamp(4.5rem, 10vw, 8.5rem) 0; }
.section-paper { background: var(--paper); }
.section-cream { background: var(--cream); }
.section-forest {
  background: var(--forest); color: #e7ecdf; position: relative; overflow: hidden;
}
.section-forest h2 { color: #fbf8f1; }
.section-forest a { color: var(--gold-soft); }
.section-lede {
  font-family: var(--display); font-weight: 380; font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  line-height: 1.34; letter-spacing: -0.012em; color: var(--ink); max-width: 24ch;
}
.section-head { margin-bottom: 3rem; }
.section h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); max-width: 18ch; }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.lead-row .body-col p { color: var(--ink-soft); max-width: var(--measure); }
.lead-row .body-col p:last-child { margin-bottom: 0; }

.aside {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: 1.3rem; color: var(--moss); max-width: 34ch; line-height: 1.4;
}
.section-forest .aside { color: var(--gold-soft); border-top-color: rgba(246,242,233,0.16); }

/* ---- How (steps) ------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.6rem, 4vw, 3rem); margin-top: 1rem; }
.step { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.step-num {
  font-family: var(--display); font-weight: 400; font-style: italic;
  font-size: 1.5rem; color: var(--gold); display: block; margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.4rem; margin: 0 0 0.6rem; letter-spacing: -0.01em; }
.step p { font-size: 1rem; color: var(--ink-soft); margin: 0; }

/* ---- Offerings -------------------------------------------------------- */
.offerings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1rem; }
.offer {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: 2rem 1.8rem; display: flex; flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.section-cream .offer { background: #fbf9f3; }
.offer:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -28px rgba(20,30,20,0.5); border-color: var(--line); }
.offer-lead { background: var(--forest); border-color: transparent; color: #e7ecdf; }
.offer-lead h3 { color: #fbf8f1; }
.offer-lead .offer-tag { color: var(--gold-soft); }
.offer-tag {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin: 0 0 1rem; order: -1;
}
.offer h3 { font-size: 1.5rem; margin: 0 0 0.7rem; }
.offer p { font-size: 0.98rem; color: var(--ink-soft); margin: 0; }
.offer-lead p { color: #cdd6c6; }

/* ---- Story ------------------------------------------------------------ */
.section-forest .story-watermark {
  position: absolute; right: -4%; bottom: -8%; width: clamp(280px, 38vw, 560px);
  opacity: 0.06; pointer-events: none; z-index: 0;
}
.section-forest .wrap { position: relative; z-index: 1; }
.story p { color: #d6ddcf; max-width: var(--measure); }
.story p:last-child { margin-bottom: 0; }
.story .pull {
  font-family: var(--display); font-style: italic; font-size: 1.5rem; color: #fbf8f1;
  line-height: 1.36; max-width: 22ch; margin: 0 0 2rem;
}

/* ---- Contact ---------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-intro p { color: var(--ink-soft); max-width: 34ch; }
.contact-direct { font-size: 0.96rem; margin-top: 1.6rem; }
.contact-direct a { font-weight: 600; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.3rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--stone); letter-spacing: 0; }
.field input, .field textarea, .field select {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 3px;
  padding: 0.8rem 0.9rem; width: 100%; transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--water); box-shadow: 0 0 0 3px rgba(82, 118, 132, 0.16);
}
.field.invalid input, .field.invalid textarea { border-color: #b04a36; box-shadow: 0 0 0 3px rgba(176, 74, 54, 0.13); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; margin-top: 0.5rem; }
.form-status { margin: 0; font-size: 0.95rem; font-weight: 500; }
.form-status.ok { color: var(--moss); }
.form-status.err { color: #b04a36; }
.contact-form.sent { opacity: 0.6; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--ink); color: #c4ccc0; padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.6rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.footer-brand img { width: 42px; height: 42px; }
.footer-word { font-family: var(--display); font-weight: 540; font-size: 1.4rem; color: #fbf8f1; }
.footer-sub { font-size: 0.9rem; color: #8f978a; margin: 0; max-width: 30ch; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.footer-links a { color: #d4dacf; text-decoration: none; font-size: 0.98rem; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-rule { height: 1px; background: rgba(246,242,233,0.12); margin: 2.6rem 0 1.6rem; }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.footer-tag { font-family: var(--display); font-style: italic; color: var(--gold-soft); margin: 0; font-size: 1.05rem; }
.footer-fine { font-size: 0.82rem; color: #7e867a; margin: 0; }

/* ---- Reveal animation ------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 900px) {
  .lead-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps, .offerings { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .brand-word { font-size: 1.1rem; }
  .header-cta { display: none; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}
