/* ============================================================
   Mountain Shadows Consulting — site styles
   Adopted from the client's design direction (paper + ink,
   gold accent, Cormorant + Inter), extended with the mobile
   menu, scroll reveals, and the scheduling form.
   ============================================================ */
:root {
  --ink: #1d1e22;
  --ink-soft: rgba(247, 244, 238, 0.6);
  --ink-faint: rgba(247, 244, 238, 0.28);
  --paper: #faf8f3;
  --paper-2: #f1ede3;
  --white: #ffffff;
  --gold: #b8963e;
  --gold-deep: #8a6f2c;
  --text-primary: #1d1e22;
  --text-secondary: #5f5d56;
  --text-tertiary: #9b9890;
  --border: rgba(29, 30, 34, 0.1);
  --border-soft: rgba(29, 30, 34, 0.07);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { left: 12px; top: 12px; }

.eyebrow {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; margin-bottom: 14px;
}
.eyebrow.on-dark { color: var(--gold); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; color: var(--text-primary); }

.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 26px; border-radius: 2px; cursor: pointer; border: none;
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { opacity: 0.85; }
.btn:active { transform: scale(0.98); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-line { background: transparent; border: 1px solid var(--border); color: var(--text-primary); }
.btn-line.on-dark { border-color: rgba(247, 244, 238, 0.3); color: var(--ink-soft); }
.btn-full { width: 100%; text-align: center; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 1px solid var(--border-soft); transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 4px 20px rgba(29, 30, 34, 0.06); }
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand-name {
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  letter-spacing: 0.02em; line-height: 1.15;
}
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links li a {
  font-size: 12.5px; letter-spacing: 0.04em; color: var(--text-secondary);
  transition: color 0.15s ease; position: relative;
}
.nav-links li a:hover { color: var(--text-primary); }
.nav-cta { display: flex; align-items: center; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); transition: 0.3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; padding: 0 40px 14px; border-bottom: 1px solid var(--border-soft); background: var(--white); }
.mobile-nav a { padding: 12px 0; font-size: 14px; color: var(--text-secondary); border-bottom: 1px solid var(--border-soft); }
.mobile-nav a.btn { margin-top: 14px; border-bottom: 0; color: var(--ink); text-align: center; }
.mobile-nav.open { display: flex; }

/* ---------- HERO ---------- */
.hero { position: relative; background: var(--ink); overflow: hidden; padding: 110px 40px 90px; min-height: 620px; display: flex; align-items: center; }
.hero-wm {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 540px; height: 540px; opacity: 0.16; pointer-events: none;
}
.hero-inner { max-width: var(--max); margin: 0 auto; position: relative; z-index: 2; }
.hero h1 { font-size: 56px; line-height: 1.08; color: var(--paper); max-width: 640px; margin-bottom: 24px; font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.hero-sub { font-size: 16px; line-height: 1.75; color: var(--ink-soft); max-width: 480px; margin-bottom: 40px; }
.hero-ctas { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

/* ---------- SECTION SHELLS ---------- */
.sec { padding: 90px 40px; }
.sec-paper { background: var(--paper); }
.sec-white { background: var(--white); }
.sec-head { max-width: 560px; margin-bottom: 48px; }
.sec-head h2 { font-size: 34px; line-height: 1.25; }

/* ---------- PROBLEMS ---------- */
.problem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border-soft); border: 1px solid var(--border-soft);
}
.problem-card { background: var(--white); padding: 30px 28px; }
.problem-card h4 { font-size: 15px; font-family: var(--font-body); font-weight: 600; margin-bottom: 8px; }
.problem-card p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.65; }

/* ---------- STATS ---------- */
.stats-band { background: var(--ink); }
.stats-grid { max-width: var(--max); margin: 0 auto; padding: 70px 40px; display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 0 30px; text-align: center; border-right: 1px solid rgba(184, 150, 62, 0.22); }
.stat:last-child { border-right: none; }
.stat-n { font-family: var(--font-display); font-size: 46px; color: var(--gold); line-height: 1; }
.stat-l { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-top: 10px; }
.stat-s { font-size: 11px; color: var(--ink-faint); margin-top: 6px; line-height: 1.5; }

/* ---------- SERVICES ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); }
.svc-card { background: var(--white); padding: 34px 28px; }
.svc-n { font-family: var(--font-display); font-size: 30px; color: var(--gold); opacity: 0.55; margin-bottom: 14px; line-height: 1; }
.svc-name { font-size: 15.5px; font-weight: 600; margin-bottom: 10px; }
.svc-d { font-size: 13.5px; color: var(--text-secondary); line-height: 1.65; }
.svc-quote { background: var(--paper); display: flex; align-items: center; }
.svc-quote p { font-family: var(--font-display); font-size: 21px; font-style: italic; color: var(--text-secondary); line-height: 1.5; }

/* ---------- PRICING ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.price-card { border: 1px solid var(--border); padding: 34px 30px; position: relative; background: var(--white); }
.price-badge {
  position: absolute; top: -12px; left: 30px; background: var(--gold); color: var(--ink);
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; padding: 4px 12px;
}
.price-card h4 { font-family: var(--font-body); font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.price-amt { font-family: var(--font-display); font-size: 30px; color: var(--gold-deep); margin-bottom: 14px; }
.price-d { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.price-note { font-size: 12.5px; color: var(--text-tertiary); margin-top: 20px; font-style: italic; }

/* ---------- PRINCIPLES ---------- */
.prin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 36px; }
.prin { border-top: 2px solid var(--gold); padding-top: 18px; }
.prin h4 { font-size: 19px; margin-bottom: 8px; }
.prin p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.65; }

/* ---------- FOUNDER ---------- */
.founder { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.founder-name { font-size: 30px; margin-bottom: 4px; }
.founder-title { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 22px; }
.founder-bio { font-size: 14px; line-height: 1.8; color: var(--text-secondary); }
.founder-bio + .founder-bio { margin-top: 18px; }
.quote-block { border-left: 2px solid var(--gold); padding-left: 22px; margin-top: 26px; }
.quote-block p { font-family: var(--font-display); font-style: italic; font-size: 20px; line-height: 1.45; color: var(--text-primary); }
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--border-soft); }
.step:last-child { border-bottom: none; }
.step-n { font-family: var(--font-display); font-size: 24px; color: var(--gold); min-width: 34px; }
.step h5 { font-size: 14.5px; font-weight: 600; margin-bottom: 4px; }
.step p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ---------- CTA BAND ---------- */
.cta-sec { position: relative; background: var(--ink); text-align: center; padding: 100px 40px; overflow: hidden; min-height: 660px; display: flex; align-items: center; justify-content: center; }
.cta-wm { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 580px; height: 580px; opacity: 0.1; pointer-events: none; }
.cta-inner { position: relative; z-index: 2; }
.cta-sec h2 { font-size: 38px; color: var(--paper); max-width: 480px; margin: 0 auto 14px; }
.cta-sec p { font-size: 14px; color: var(--ink-soft); max-width: 400px; margin: 0 auto 34px; line-height: 1.7; }

/* ---------- CONTACT / SCHEDULING FORM ---------- */
.contact-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.contact-intro .sec-head { margin-bottom: 0; }
.contact-intro h2 { font-size: 34px; line-height: 1.25; margin-bottom: 14px; }
.contact-intro > p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.7; max-width: 42ch; }
.contact-direct { list-style: none; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid var(--border); display: grid; gap: 14px; }
.contact-direct li { display: grid; grid-template-columns: 80px 1fr; align-items: baseline; gap: 14px; }
.contact-direct span:first-child { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-tertiary); }
.contact-direct a, .contact-direct li > span:last-child { font-family: var(--font-display); font-size: 20px; color: var(--text-primary); }
.contact-direct a:hover { color: var(--gold-deep); }

.contact-form { background: var(--white); border: 1px solid var(--border); padding: 34px 32px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 6px; }
.field i { color: var(--gold-deep); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 14px; color: var(--text-primary);
  background: var(--paper); border: 1px solid var(--border); border-radius: 2px;
  padding: 11px 12px; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 150, 62, 0.15);
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.turnstile { margin-bottom: 16px; }
.turnstile[hidden] { display: none; }
.form-status { margin-top: 14px; font-size: 13px; min-height: 1.2em; line-height: 1.5; }
.form-status.ok { color: #3f7d52; }
.form-status.err { color: #b4533f; }

/* ---------- FOOTER ---------- */
.footer { background: var(--white); border-top: 1px solid var(--border-soft); padding: 34px 40px; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 32px; height: 32px; }
.footer-name { font-family: var(--font-display); font-size: 13.5px; font-weight: 600; }
.footer-sub { font-size: 10.5px; color: var(--text-tertiary); letter-spacing: 0.04em; margin-top: 1px; }
.footer-tag { text-align: right; font-size: 12px; color: var(--text-secondary); line-height: 1.8; }
.footer-tag .gold { color: var(--gold-deep); font-weight: 600; }

/* ---------- Reveal animation (gated on .js so no-JS renders fully) ---------- */
.reveal { transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .problem-grid, .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .prin-grid { grid-template-columns: repeat(2, 1fr); }
  .founder { grid-template-columns: 1fr; gap: 40px; }
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr; gap: 36px; }
  .stat { border-right: none; border-bottom: 1px solid rgba(184, 150, 62, 0.22); padding-bottom: 30px; }
  .stat:last-child { border-bottom: none; padding-bottom: 0; }
}
@media (max-width: 700px) { .price-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .wrap { padding: 0 24px; }
  .nav-inner { padding: 16px 24px; }
  .mobile-nav { padding: 0 24px 14px; }
  .hero { padding: 80px 24px 70px; min-height: auto; }
  .hero h1 { font-size: 38px; }
  .hero-wm { width: 300px; height: 300px; right: 50%; transform: translate(50%, -50%); opacity: 0.08; }
  .cta-sec { min-height: auto; padding: 80px 24px; }
  .cta-wm { width: 340px; height: 340px; opacity: 0.08; }
  .sec { padding: 64px 24px; }
  .sec-head h2, .contact-intro h2 { font-size: 27px; }
  .stats-grid { padding: 64px 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer { padding: 28px 24px; }
  .footer-tag { text-align: left; }
}
@media (max-width: 560px) {
  .problem-grid, .svc-grid, .prin-grid { grid-template-columns: 1fr; }
}
