/* ==========================================================================
   Mars Hill Capital Group — stylesheet
   Brand: deep forest green + antique gold on warm cream
   ========================================================================== */

:root {
  --green-900: #16281B;
  --green-800: #1E3524;
  --green-700: #2A4A2E;
  --green-600: #38603C;
  --gold-600: #9C7A24;
  --gold-500: #B8912F;
  --gold-400: #C9A94E;
  --cream: #F7F4EC;
  --cream-2: #FBF9F3;
  --white: #FFFFFF;
  --ink: #23281F;
  --ink-soft: #4E564C;
  --line: #DFD9C9;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1160px;
  --wrap-narrow: 800px;
  --radius: 3px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream-2);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--green-800);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.28rem; letter-spacing: 0; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- layout --- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--green { background: var(--green-800); color: #E7E9E2; }
.section--green h1, .section--green h2, .section--green h3 { color: var(--white); }

.eyebrow {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin: 0 0 18px;
}
.section--green .eyebrow { color: var(--gold-400); }
.rule { width: 64px; height: 2px; background: var(--gold-500); border: 0; margin: 0 0 28px; }
.center { text-align: center; }
.center .rule { margin-left: auto; margin-right: auto; }
.lede { font-size: 1.16rem; color: var(--ink-soft); }
.section--green .lede { color: #C9D0C4; }
.muted { color: var(--ink-soft); }

/* ------------------------------------------------------------ buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .22s var(--ease);
}
.btn--primary { background: var(--green-800); color: var(--white); border-color: var(--green-800); }
.btn--primary:hover { background: var(--gold-600); border-color: var(--gold-600); color: var(--white); }
.btn--ghost { background: transparent; color: var(--green-800); border-color: var(--green-800); }
.btn--ghost:hover { background: var(--green-800); color: var(--white); }
.btn--light { background: var(--gold-500); color: var(--green-900); border-color: var(--gold-500); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--green-900); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: var(--white); color: var(--green-900); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ------------------------------------------------------------- header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251,249,243,.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green-800);
}
.brand__sub {
  font-size: .58rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-top: 5px;
  font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all .2s var(--ease);
}
.nav a:hover { color: var(--green-800); border-bottom-color: var(--gold-500); }
.nav a.is-active { color: var(--green-800); border-bottom-color: var(--gold-500); }
.nav a.btn { padding: 12px 24px; border-bottom: 1.5px solid transparent; }
.nav a.btn.btn--primary { color: var(--white); border-color: var(--green-800); }
.nav a.btn.btn--primary:hover { background: var(--gold-600); border-color: var(--gold-600); color: var(--white); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--green-800); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--green-800);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* --------------------------------------------------------------- hero --- */
.hero {
  position: relative;
  background: var(--green-900);
  color: var(--white);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg svg { width: 100%; height: 100%; }
.hero__inner { position: relative; z-index: 2; padding-top: 130px; padding-bottom: 120px; max-width: 780px; }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero__lede { font-size: 1.22rem; color: #CBD3C6; max-width: 620px; margin-bottom: 34px; }
.hero .eyebrow { color: var(--gold-400); }

.hero--page .hero__inner { padding-top: 84px; padding-bottom: 76px; }
.hero--page h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }

/* ------------------------------------------------------------ verticals - */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.vcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green-700);
  border-radius: var(--radius);
  padding: 38px 32px;
  transition: all .25s var(--ease);
}
.vcard:hover { border-top-color: var(--gold-500); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(30,53,36,.45); }
.vcard__icon {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--green-800);
  border: 2px solid var(--gold-500);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.vcard__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--white); stroke-width: 1.8; }
.vcard h3 {
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-800);
  margin-bottom: 12px;
}
.vcard p { font-size: .97rem; color: var(--ink-soft); }
.vcard ul { margin: 14px 0 0; padding-left: 18px; font-size: .93rem; color: var(--ink-soft); }
.vcard ul li { margin-bottom: 6px; }

/* ------------------------------------------------------------ criteria -- */
.crit {
  border-top: 1px solid rgba(255,255,255,.16);
  padding-top: 24px;
}
.crit__num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--gold-400);
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}
.crit h3 { font-size: 1.05rem; margin-bottom: 8px; }
.crit p { font-size: .95rem; color: #B9C2B4; }

.factlist { list-style: none; margin: 0; padding: 0; }
.factlist li {
  display: flex; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.factlist li:first-child { border-top: 1px solid var(--line); }
.factlist dt, .factlist .k {
  flex: 0 0 210px;
  font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-600);
  padding-top: 3px;
}
.factlist .v { flex: 1; }

/* ---------------------------------------------------------- steps/flow -- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 0 0 34px 62px; }
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px;
  border: 1.5px solid var(--gold-500);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; color: var(--gold-600);
  background: var(--white);
}
.steps li::after {
  content: ""; position: absolute; left: 20px; top: 46px; bottom: 6px;
  width: 1px; background: var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 6px; font-size: 1.12rem; }
.steps p { font-size: .97rem; color: var(--ink-soft); }

/* ---------------------------------------------------------- portfolio --- */
.pcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.pcard__band {
  background: var(--green-800);
  padding: 30px 32px;
  display: flex; align-items: center; gap: 16px;
}
.pcard__band svg { width: 32px; height: 32px; fill: none; stroke: var(--gold-400); stroke-width: 1.7; flex: none; }
.pcard__band .tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-400);
}
.pcard__body { padding: 30px 32px 34px; }
.pcard__body h3 { margin-bottom: 10px; }
.pcard__body p { font-size: .97rem; color: var(--ink-soft); }
.pcard--open { border-style: dashed; background: transparent; }

.chip {
  display: inline-block;
  font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(184,145,47,.14); color: var(--gold-600);
  border: 1px solid rgba(184,145,47,.32);
}

/* --------------------------------------------------------------- form --- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 42px 40px;
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--green-800); margin-bottom: 8px;
}
.field .req { color: var(--gold-600); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(56,96,60,.13);
  background: var(--white);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-note { font-size: .86rem; color: var(--ink-soft); margin-top: 18px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
a.hp:focus {
  left: 12px; top: 12px; z-index: 200;
  opacity: 1; height: auto; width: auto; overflow: visible;
  background: var(--green-800); color: var(--white);
  padding: 10px 18px; border-radius: var(--radius);
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}

/* --------------------------------------------------------------- misc --- */
.callout {
  background: var(--white);
  border-left: 3px solid var(--gold-500);
  padding: 28px 32px;
  border-radius: var(--radius);
}
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.contact-lines { list-style: none; margin: 0; padding: 0; }
.contact-lines li { margin-bottom: 22px; }
.contact-lines .k {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-500); display: block; margin-bottom: 5px;
}
.contact-lines a { color: var(--white); border-bottom: 1px solid rgba(201,169,78,.5); }
.contact-lines a:hover { color: var(--gold-400); }

/* ------------------------------------------------------------- footer --- */
.site-footer { background: var(--green-900); color: #A9B3A5; padding: 68px 0 30px; font-size: .92rem; }
.site-footer h4 {
  font-family: var(--font-body);
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-400); margin-bottom: 16px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; }
.site-footer a { color: #C6CDC1; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 9px; }
.footer-brand .brand__name { color: var(--white); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.11);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: .82rem; color: #8C9689;
}
.footer-disclaimer { font-size: .8rem; color: #7E887B; margin-top: 18px; line-height: 1.6; }

/* -------------------------------------------------------- responsive --- */
@media (max-width: 940px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 84px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream-2);
    border-bottom: 1px solid var(--line);
    padding: 12px 28px 26px;
    display: none;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:hover, .nav a.is-active { border-bottom-color: var(--line); }
  .nav .btn { margin-top: 16px; justify-content: center; border: 1.5px solid var(--green-800); }
  .section { padding: 68px 0; }
  .hero__inner { padding-top: 84px; padding-bottom: 76px; }
  .hero--page .hero__inner { padding-top: 66px; padding-bottom: 60px; }
  .field-row { grid-template-columns: 1fr; }
  .factlist li { flex-direction: column; gap: 6px; }
  .factlist dt, .factlist .k { flex: none; }
  .form-card { padding: 30px 24px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .vcard { padding: 30px 24px; }
  .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ------------------------------------------------------------- print --- */
@media print {
  .site-header, .site-footer, .btn { display: none; }
}
