/* ------------------------------------------------------------------
   Schultz Consulting
   Warm editorial palette. Fraunces for display, Inter for text.
   ------------------------------------------------------------------ */

:root {
  --paper:        #f5f1ea;
  --paper-2:      #efe9df;
  --ink:          #23282a;
  --ink-soft:     #4b524f;
  --ink-faint:    #7a807c;
  --line:         #d9d1c4;
  --forest:       #2f3e3a;
  --forest-deep:  #26332f;
  --gold:         #c08a2d;
  --gold-soft:    #d8a94a;
  --rule:         rgba(35, 40, 42, 0.12);

  --w-page: 1160px;
  --w-text: 62ch;

  --step-fluid: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--step-fluid);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.sr-only {
  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 {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-solid {
  background: var(--forest);
  color: var(--paper);
}
.btn-solid:hover { background: var(--forest-deep); transform: translateY(-1px); }
.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-quiet:hover { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; padding: 0.95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  background: var(--forest);
  color: var(--gold-soft);
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.15rem;
  border-radius: 4px;
  flex: none;
}
.brand-text {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-list a {
  text-decoration: none;
  font-size: 0.94rem;
  color: var(--ink-soft);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s ease;
}
.nav-list a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-list a:not(.btn):hover { color: var(--ink); }
.nav-list a:not(.btn):hover::after { width: 100%; }

/* Header CTA — refined pill button */
.nav-cta { margin-left: 0.4rem; }
.nav-cta .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--paper);
  text-decoration: none;
  padding: 0.62rem 1.3rem;
  border-radius: 100px;
  background: linear-gradient(180deg, #37493f 0%, var(--forest) 100%);
  border: 1px solid rgba(35, 40, 42, 0.15);
  box-shadow: 0 1px 2px rgba(35, 40, 42, 0.18),
              0 6px 16px -8px rgba(47, 62, 58, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.nav-cta .btn-cta::after { content: none; display: none; }
.btn-cta-arrow {
  transition: transform 0.25s ease;
  margin-right: -0.15rem;
  flex: none;
}
.nav-cta .btn-cta:hover {
  background: linear-gradient(180deg, #3d5045 0%, var(--forest-deep) 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(35, 40, 42, 0.2),
              0 12px 22px -8px rgba(47, 62, 58, 0.55),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.nav-cta .btn-cta:hover .btn-cta-arrow { transform: translateX(3px); }
.nav-cta .btn-cta:active { transform: translateY(0); }
.nav-cta .btn-cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle-bar::before { transform: translate(-50%, -8px); }
.nav-toggle-bar::after  { transform: translate(-50%, 6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(4rem, 12vh, 8.5rem) 0 clamp(3rem, 8vh, 5rem);
}
.hero-inner { max-width: 900px; }
.eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  max-width: 15ch;
  margin-bottom: 1.6rem;
}
.hero-lede {
  font-size: clamp(1.1rem, 1rem + 0.7vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.5;
  margin-bottom: 2.1rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}
.hero-footnote {
  font-size: 0.95rem;
  color: var(--ink-faint);
  max-width: 48ch;
}
.hero-rule {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  border-top: 1px solid var(--rule);
  max-width: var(--w-page);
  width: calc(100% - 2 * clamp(1.25rem, 4vw, 3rem));
  margin-left: auto; margin-right: auto;
}

/* ---------- Section shared ---------- */
.section-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-head { max-width: 34ch; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.section-intro {
  margin-top: 1.3rem;
  color: var(--ink-soft);
  max-width: 58ch;
  font-size: 1.05rem;
}

/* ---------- Intro ---------- */
.intro {
  padding: clamp(3.5rem, 9vh, 6rem) 0;
}
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.intro-heading h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
.intro-body p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 56ch;
}
.intro-body p + p { margin-top: 1.1rem; }

/* ---------- Services ---------- */
.services {
  padding: clamp(3.5rem, 9vh, 6rem) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.service-list {
  list-style: none;
  margin: 0; padding: 0;
  counter-reset: none;
}
.service {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.2rem, 4vw, 3.2rem);
  padding: clamp(1.8rem, 4vw, 2.6rem) 0;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service-num {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  padding-top: 0.35rem;
}
.service-body h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  margin-bottom: 0.7rem;
}
.service-body > p {
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 1.1rem;
}
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.55rem;
  margin: 0; padding: 0;
}
.tags li {
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.32rem 0.7rem;
  border-radius: 100px;
}

/* ---------- Process ---------- */
.process { padding: clamp(3.5rem, 9vh, 6rem) 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.step {
  padding: 1.6rem 1.5rem 1.8rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--forest);
  opacity: 0.85;
}
.step-index {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--gold);
}
.step h3 {
  font-size: 1.4rem;
  margin: 0.5rem 0 0.7rem;
}
.step p {
  font-size: 0.96rem;
  color: var(--ink-soft);
}

/* ---------- Work ---------- */
.work {
  padding: clamp(3.5rem, 9vh, 6rem) 0;
  background: var(--forest);
  color: var(--paper);
}
.work .section-label { color: var(--gold-soft); }
.work .section-head h2 { color: var(--paper); }
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}
.project {
  background: rgba(245, 241, 234, 0.04);
  border: 1px solid rgba(245, 241, 234, 0.14);
  border-radius: 4px;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.project:hover {
  border-color: rgba(216, 169, 74, 0.55);
  transform: translateY(-3px);
  background: rgba(245, 241, 234, 0.06);
}
.project-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.project-head h3 {
  color: var(--paper);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
}
.project-tag {
  flex: none;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--forest);
  background: var(--gold-soft);
  padding: 0.28rem 0.6rem;
  border-radius: 100px;
  white-space: nowrap;
}
.project-tag--concept {
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(245, 241, 234, 0.4);
}
.project p {
  color: rgba(245, 241, 234, 0.82);
  font-size: 0.98rem;
}
.project-role {
  font-size: 0.9rem;
  color: rgba(245, 241, 234, 0.66);
  margin-top: 0.9rem;
}
.project-role span { color: var(--gold-soft); font-weight: 500; }
.stack {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin: 1.1rem 0 0;
  padding: 0;
}
.stack li {
  font-size: 0.78rem;
  color: rgba(245, 241, 234, 0.75);
  border: 1px solid rgba(245, 241, 234, 0.18);
  padding: 0.26rem 0.6rem;
  border-radius: 3px;
}
.work-note {
  margin-top: 2rem;
  font-size: 0.92rem;
  color: rgba(245, 241, 234, 0.6);
  max-width: 60ch;
}

/* ---------- About ---------- */
.about { padding: clamp(3.5rem, 9vh, 6rem) 0; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.about-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 2rem;
}
.about-card {
  border-left: 3px solid var(--gold);
  padding: 0.4rem 0 0.4rem 1.1rem;
}
.about-name {
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  margin: 0;
}
.about-role {
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin: 0.2rem 0 0;
}
.about-body p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 56ch;
}
.about-body p + p { margin-top: 1.1rem; }

/* ---------- Fit ---------- */
.fit {
  padding: clamp(3.5rem, 9vh, 6rem) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.fit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.fit-list {
  columns: 2;
  column-gap: 2.5rem;
  list-style: none;
  margin: 0; padding: 0;
}
.fit-list li {
  break-inside: avoid;
  position: relative;
  padding: 0 0 1rem 1.5rem;
  color: var(--ink-soft);
  font-size: 1rem;
}
.fit-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
}
.fit-note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.6rem;
}
.fit-note p {
  color: var(--ink-soft);
  font-style: italic;
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* ---------- FAQ ---------- */
.faq { padding: clamp(3.5rem, 9vh, 6rem) 0; }
.faq-list {
  max-width: 820px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 2.5rem 1.25rem 0;
  position: relative;
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  color: var(--ink);
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform 0.25s ease;
  line-height: 1;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--forest); }
.faq details p {
  padding: 0 2.5rem 1.4rem 0;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0;
}

/* ---------- Contact ---------- */
.contact {
  padding: clamp(3.5rem, 9vh, 6.5rem) 0;
  background: var(--forest);
  color: var(--paper);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact .section-label { color: var(--gold-soft); }
.contact-intro h2 {
  color: var(--paper);
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  margin-bottom: 1.4rem;
}
.contact-intro p { color: rgba(245, 241, 234, 0.82); max-width: 46ch; }
.contact-direct { margin-top: 1.6rem; font-size: 0.98rem; }
.contact-direct a { color: var(--gold-soft); text-decoration: none; border-bottom: 1px solid rgba(216,169,74,0.4); }
.contact-direct a:hover { border-color: var(--gold-soft); }

.contact-form {
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.field .opt { color: var(--ink-faint); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.7rem 0.8rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(47, 62, 58, 0.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.form-status {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 3px;
  font-size: 0.92rem;
  background: rgba(47, 62, 58, 0.08);
  border: 1px solid rgba(47, 62, 58, 0.2);
  color: var(--forest);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-deep);
  color: rgba(245, 241, 234, 0.8);
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.8rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(245, 241, 234, 0.12);
}
.footer-brand {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  max-width: 42ch;
}
.footer-name {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  color: var(--paper);
  margin: 0 0 0.35rem;
}
.footer-tag { font-size: 0.9rem; margin: 0 0 0.35rem; }
.footer-founder { font-size: 0.85rem; color: rgba(245, 241, 234, 0.55); margin: 0; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-content: flex-start;
}
.footer-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: rgba(245, 241, 234, 0.72);
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--gold-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(245, 241, 234, 0.55);
}
.to-top {
  text-decoration: none;
  color: rgba(245, 241, 234, 0.72);
  transition: color 0.2s ease;
}
.to-top:hover { color: var(--gold-soft); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .intro-grid,
  .about-grid,
  .contact-grid,
  .fit-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: 1fr; }
  .about-heading h2 { margin-bottom: 1.4rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: absolute;
    top: 74px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem clamp(1.25rem, 4vw, 3rem) 1.2rem;
    box-shadow: 0 20px 30px -20px rgba(0,0,0,0.25);
    display: none;
  }
  .nav-list.open { display: flex; }
  .nav-list li { padding: 0.2rem 0; }
  .nav-list a:not(.btn) { display: block; padding: 0.7rem 0; font-size: 1rem; }
  .nav-cta { margin-top: 0.6rem; margin-left: 0; }
  .nav-cta .btn-cta { display: flex; justify-content: center; padding: 0.85rem 1.25rem; font-size: 0.95rem; }

  .service {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .service-num { padding-top: 0; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .fit-list { columns: 1; }
  .field-row { grid-template-columns: 1fr; }
  .project-head { flex-direction: column; gap: 0.5rem; }
  .hero-actions .btn { flex: 1 1 auto; }
}
