/* =========================================================
   Blackwell Mountain — styles.css
   Palette: forest green + warm cream + clay/amber accent
   Fonts: Fraunces (display), Inter (text)
   ========================================================= */

:root {
  --forest:      #1b3a2b;   /* deep pine */
  --forest-2:    #24503a;   /* lighter pine */
  --moss:        #3f6b4e;
  --cream:       #f6f2e9;   /* paper */
  --cream-2:     #efe8d8;
  --ink:         #17201b;   /* near-black text */
  --ink-soft:    #40514a;
  --clay:        #c56a3c;   /* terracotta accent */
  --clay-dark:   #a9542c;
  --amber:       #d99a3f;   /* sun */
  --line:        #e0d8c6;
  --shadow:      0 1px 2px rgba(23,32,27,.06), 0 8px 28px rgba(23,32,27,.08);

  --maxw: 1120px;
  --radius: 14px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--clay-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto;
  background: var(--forest); color: var(--cream); padding: 10px 16px; border-radius: 8px; z-index: 200;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-text); font-weight: 600; font-size: .98rem;
  padding: .8em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--clay); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--clay-dark); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--cream); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,242,233,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--forest); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--forest); flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.18rem; letter-spacing: -0.01em; color: var(--ink); }

.nav { display: flex; align-items: center; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 1.6rem; }
.nav-menu a { color: var(--ink-soft); font-weight: 500; font-size: .96rem; }
.nav-menu a:hover { color: var(--forest); text-decoration: none; }
.nav-cta {
  background: var(--forest); color: var(--cream) !important; padding: .55em 1.1em; border-radius: 999px;
}
.nav-cta:hover { background: var(--forest-2); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px;
  align-items: center; justify-content: center;
}
.bars, .bars::before, .bars::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--forest);
  border-radius: 2px; transition: transform .2s ease, opacity .2s ease; position: relative;
}
.bars::before { position: absolute; top: -7px; }
.bars::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--cream); padding: clamp(56px, 9vw, 104px) 0 0; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; max-width: 820px; }
.eyebrow {
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--moss); margin-bottom: 1.1rem;
}
.hero-title { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 600; color: var(--ink); }
.hero-title em { font-style: italic; color: var(--clay); }
.hero-lede { font-size: clamp(1.1rem, 2vw, 1.32rem); color: var(--ink-soft); max-width: 44ch; margin: 1.5rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.4rem; }
.hero-tags {
  list-style: none; display: flex; flex-wrap: wrap; gap: .5rem .6rem; padding-bottom: clamp(80px, 12vw, 140px);
}
.hero-tags li {
  font-size: .85rem; font-weight: 500; color: var(--forest);
  background: var(--cream-2); border: 1px solid var(--line);
  padding: .4em .9em; border-radius: 999px;
}
.ridge { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; }
.ridge svg { width: 100%; height: clamp(70px, 10vw, 120px); }
.ridge path { fill: var(--forest); }

/* ---------- section base ---------- */
.section { padding: clamp(64px, 9vw, 108px) 0; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.kicker {
  font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--clay); margin-bottom: .8rem;
}
.kicker.light { color: var(--amber); }
.section h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); color: var(--ink); }
.section-sub { font-size: 1.1rem; color: var(--ink-soft); margin-top: 1rem; }

/* ---------- services cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.7rem; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(23,32,27,.12); }
.card-ico {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  background: var(--forest); color: var(--amber); font-size: 1.2rem; margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.22rem; margin-bottom: .5rem; color: var(--forest); }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- roots ---------- */
.roots { background: var(--forest); color: var(--cream); }
.roots-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.roots h2 { color: #fff; }
.roots p { color: rgba(246,242,233,.86); }
.value-list { list-style: none; margin-top: 1.6rem; display: grid; gap: .9rem; }
.value-list li {
  padding-left: 1.6rem; position: relative; color: rgba(246,242,233,.86); font-size: 1rem;
}
.value-list li::before {
  content: "▲"; position: absolute; left: 0; top: .1em; color: var(--amber); font-size: .8rem;
}
.value-list strong { color: #fff; }
.roots-card {
  background: var(--forest-2); border: 1px solid rgba(246,242,233,.14); border-radius: var(--radius);
  padding: 2rem 1.9rem;
}
.roots-card h3 { color: var(--amber); font-size: 1.2rem; margin-bottom: 1.3rem; }
.split { display: grid; gap: 1.4rem; }
.split-label {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber); margin-bottom: .35rem;
}
.split p { margin: 0; font-size: .96rem; color: rgba(246,242,233,.82); }

/* ---------- approach steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.steps li { border-top: 2px solid var(--line); padding-top: 1.2rem; }
.step-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--clay); font-weight: 600; }
.steps h3 { font-size: 1.15rem; margin: .5rem 0 .5rem; color: var(--forest); }
.steps p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- work ---------- */
.work { background: var(--cream-2); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.work-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem;
}
.work-tag {
  font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--moss); margin-bottom: .7rem;
}
.work-item h3 { font-size: 1.2rem; color: var(--forest); margin-bottom: .6rem; }
.work-item p:last-child { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.work-note { margin-top: 2rem; font-size: 1.05rem; color: var(--ink-soft); }

/* ---------- about ---------- */
.about-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.about-copy p { color: var(--ink-soft); font-size: 1.05rem; }
.about-copy .btn { margin-top: 1rem; }
.about-figure { display: grid; place-items: center; }
.figure-badge {
  background: var(--forest); color: var(--cream); border-radius: 50%;
  width: min(320px, 70vw); aspect-ratio: 1; display: grid; place-content: center; justify-items: center; gap: 1rem;
  box-shadow: var(--shadow); text-align: center;
}
.figure-badge p {
  margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--amber);
}

/* ---------- contact ---------- */
.contact { background: var(--forest); color: var(--cream); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact h2 { color: #fff; }
.contact-copy p { color: rgba(246,242,233,.86); font-size: 1.05rem; }
.contact-direct { margin-top: 1.5rem; }
.contact-direct a { font-family: var(--font-display); font-size: 1.3rem; color: var(--amber); }
.contact-form {
  background: var(--cream); border-radius: var(--radius); padding: 2rem 1.9rem; box-shadow: var(--shadow);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-text); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: .7em .85em; resize: vertical;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2340514a' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9em center; padding-right: 2.2em; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(197,106,60,.15); }
.form-fineprint { margin: .9rem 0 0; font-size: .85rem; color: var(--ink-soft); }
.form-status { margin: .9rem 0 0; font-size: .92rem; font-weight: 500; padding: .7em .9em; border-radius: 10px; }
.form-status.ok  { color: #1e5236; background: rgba(63,107,78,.12); border: 1px solid rgba(63,107,78,.35); }
.form-status.err { color: #8a3b1e; background: rgba(197,106,60,.12); border: 1px solid rgba(197,106,60,.35); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 460px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.scope-fieldset { border: 1.5px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem 1.1rem; margin: 0 0 1.1rem; }
.scope-fieldset legend { font-weight: 600; font-size: .95rem; color: var(--ink); padding: 0 .4em; }
.legend-hint { font-weight: 400; font-size: .82rem; color: var(--ink-soft); }
.scope-modules { display: grid; gap: 1rem; }
.scope-group { }
.scope-cat { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--clay); margin: 0 0 .5rem; }
.scope-check { display: flex; align-items: flex-start; gap: .55rem; padding: .32rem 0; font-size: .95rem; color: var(--ink); cursor: pointer; line-height: 1.4; }
.scope-check input { margin-top: .2rem; width: 17px; height: 17px; accent-color: var(--forest); flex: none; cursor: pointer; }
.scope-check:hover span { color: var(--forest); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(246,242,233,.8); padding: 2.6rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-family: var(--font-display); font-size: 1.1rem; }
.footer-brand .brand-mark { color: var(--moss); }
.footer-nav { display: flex; gap: 1.4rem; }
.footer-nav a { color: rgba(246,242,233,.8); font-size: .95rem; }
.footer-nav a:hover { color: #fff; }
.footer-meta { margin: 0; font-size: .85rem; text-align: right; line-height: 1.8; }
.footer-meta a { color: var(--amber); }
.copyright { display: block; color: rgba(246,242,233,.55); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cards, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .roots-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--cream); border-bottom: 1px solid var(--line);
    padding: .5rem 24px 1.2rem; box-shadow: var(--shadow);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { border-bottom: 1px solid var(--line); }
  .nav-menu li:last-child { border-bottom: 0; padding-top: .8rem; }
  .nav-menu a { display: block; padding: .9rem 0; font-size: 1.05rem; }
  .nav-cta { text-align: center; }
}
@media (max-width: 560px) {
  .cards, .work-grid, .steps { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

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