/* ==========================================================================
   Shepherd Construction Partners — theme.css
   Palette and type per Brand Guidelines v2.0 (August 2026).
   ========================================================================== */

:root {
  /* Colors — Brand Kit v2.0 */
  --shepherd-green: #163026;  /* primary: wordmark, arch, headlines, rules */
  --deep-green:     #0F221B;  /* reversed grounds only — not a text color */
  --copper:         #B0703A;  /* accent: eyebrows, rules, small callouts — never body text */
  --copper-light:   #C17F48;  /* accent hover (tint of copper, not in kit) */
  --cream:          #F4EFE6;  /* the paper: page background + reversed text on green */
  --warm-white:     #FBF9F5;  /* cards/panels layered on cream */
  --stone:          #655E51;  /* the only approved secondary text color on cream */
  --rule:           #DCD3C2;  /* hairline borders on cream (stone-tinted) */
  --rule-dark:      rgba(244, 239, 230, 0.25); /* hairline borders on green */

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-script:  'Caveat', 'Segoe Script', cursive;

  /* Layout */
  --wrap: 1140px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--stone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--shepherd-green);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }
a { color: inherit; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: 0.6em;
}

.lede {
  font-size: 1.15rem;
  color: var(--stone);
  max-width: 62ch;
}

/* ---------- Hand-lettered accent (relaxed, print-matched voice) ---------- */
.script-line {
  font-family: var(--font-script);
  font-weight: 600;
  font-style: normal;
  font-size: 1.5rem;
  color: var(--copper);
  line-height: 1.25;
  margin: 0.4em 0 0;
}
.hero .script-line { color: var(--copper-light); }
.script-line.center { margin-left: auto; margin-right: auto; }

.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;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.9em 1.6em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--copper);
  color: var(--cream);
}
.btn-primary:hover { background: var(--copper-light); }
.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--cream);
}
.btn-ghost:hover { background: var(--rule-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--copper);
  color: var(--copper);
}
.btn-outline:hover { background: var(--copper); color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--shepherd-green);
}
.brand-logo { height: 62px; width: auto; display: block; }
@media (max-width: 520px) {
  .brand-logo { height: 46px; }
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.site-nav a { text-decoration: none; color: var(--shepherd-green); }
.site-nav a:hover { color: var(--copper); }
.site-nav .nav-cta {
  background: var(--shepherd-green);
  color: var(--cream);
  padding: 0.7em 1.3em;
  border-radius: var(--radius);
}
.site-nav .nav-cta:hover { background: var(--deep-green); color: var(--cream); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--shepherd-green); display: block; }

@media (max-width: 820px) {
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }
  .site-nav a { width: 100%; padding: 14px 32px; }
  .site-nav .nav-cta { margin: 14px 32px; width: calc(100% - 64px); text-align: center; }
  .nav-toggle { display: flex; }
  .site-header { position: relative; }
  body.nav-open .site-nav { max-height: 400px; }
}

/* ---------- Hero (green banner) ---------- */
.hero {
  background: var(--shepherd-green);
  color: var(--cream);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--copper);
}
.hero .eyebrow { color: var(--copper-light); }
.hero h1 { color: var(--cream); }
.hero .lede { color: rgba(244, 239, 230, 0.82); }
.hero-house {
  position: absolute;
  right: -40px; top: -20px;
  width: 340px; height: auto;
  opacity: 0.08;
  pointer-events: none;
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.tight { padding: 40px 0; }
.section-cream { background: var(--cream); }
.section-tan   { background: var(--warm-white); }
.section-green {
  background: var(--shepherd-green);
  color: var(--cream);
}
.section-green h2, .section-green h3 { color: var(--cream); }
.section-green .eyebrow { color: var(--copper-light); }

hr.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 48px 0;
}

/* ---------- Triad (Church / Architect / Contractor / Shepherd) ---------- */
.triad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--rule);
  margin: 32px 0;
}
.triad > div {
  background: var(--warm-white);
  padding: 28px 26px;
}
.triad > div.is-shepherd {
  background: var(--shepherd-green);
  color: var(--cream);
  border-top: 3px solid var(--copper);
}
.triad h4 {
  font-family: var(--font-script);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.2em;
}
.triad .is-shepherd h4 { color: var(--copper-light); }
.triad p { margin: 0; font-size: 0.95rem; }
@media (max-width: 900px) {
  .triad { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .triad { grid-template-columns: 1fr; }
}

/* ---------- Problem cards (Money/Trust/Quality/Mission) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 32px 0;
}
.problem-card {
  background: var(--warm-white);
  border-left: 4px solid var(--copper);
  padding: 26px 28px;
}
.problem-card h4 { margin-bottom: 0.35em; }
.problem-card p { font-size: 0.95rem; margin: 0; }
@media (max-width: 760px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ---------- Framework (Vision / Budget / Buildability) ---------- */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 36px 0;
}
.framework-grid h3 { color: var(--copper); font-style: italic; }
.framework-grid ul {
  list-style: none;
  padding: 0;
  margin: 1em 0 0;
  font-size: 0.92rem;
}
.framework-grid li {
  padding-left: 1.1em;
  position: relative;
  margin-bottom: 0.6em;
}
.framework-grid li::before {
  content: '—';
  position: absolute; left: 0;
  color: var(--copper);
}
@media (max-width: 820px) {
  .framework-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Diagnostic scenarios ("Where are you in the process?") ---------- */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 32px 0;
}
.scenario-card {
  display: block;
  background: var(--warm-white);
  padding: 20px 22px;
  text-decoration: none;
  color: var(--shepherd-green);
  border-radius: var(--radius);
  transition: background 0.15s ease;
}
.scenario-card:hover { background: #E2D9C2; }
.scenario-num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--copper);
  font-size: 1.3rem;
  margin-right: 0.3em;
}
.scenario-card p { margin: 0.4em 0 0; font-size: 0.93rem; color: var(--stone); }
.scenario-arrow {
  display: inline-block;
  margin-top: 0.6em;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
}
@media (max-width: 760px) {
  .scenario-grid { grid-template-columns: 1fr; }
}

/* ---------- Process stepper (Assess Plan Design Build Close) ---------- */
.process-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 36px 0 8px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.process-bar .step {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 16px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rule);
  border-right: 1px solid var(--rule);
  color: #B9AF98;
}
.process-bar .step:last-child { border-right: none; }
.process-bar .step.is-active {
  color: var(--cream);
  background: var(--shepherd-green);
}
.process-bar .step.is-current {
  color: var(--cream);
  background: var(--copper);
}

/* ---------- Stage blocks (Assess/Plan/Design/Build/Close detail) ---------- */
.stage {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
}
.stage:last-child { border-bottom: none; }
.stage-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--copper);
  line-height: 1;
}
.stage .eyebrow { margin-bottom: 0.2em; }
.stage-deliverables {
  columns: 2;
  column-gap: 32px;
  list-style: none;
  padding: 0;
  margin: 1.2em 0 0;
  font-size: 0.92rem;
}
.stage-deliverables li {
  break-inside: avoid;
  padding-left: 1.1em;
  position: relative;
  margin-bottom: 0.65em;
}
.stage-deliverables li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--copper);
  font-size: 0.85em;
}
@media (max-width: 640px) {
  .stage { grid-template-columns: 1fr; }
  .stage-deliverables { columns: 1; }
}

/* ---------- Details/accordion (native, no JS) ---------- */
details.disclosure {
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 4px 22px;
  margin: 10px 0;
}
details.disclosure summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--shepherd-green);
  list-style: none;
}
details.disclosure summary::-webkit-details-marker { display: none; }
details.disclosure summary::after {
  content: '+';
  float: right;
  color: var(--copper);
  font-size: 1.2rem;
}
details.disclosure[open] summary::after { content: '−'; }
details.disclosure .disclosure-body { padding-bottom: 18px; font-size: 0.93rem; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 40px 0;
}
.team-card { background: var(--warm-white); padding: 4px; border-radius: var(--radius); }
.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.team-body { padding: 20px 22px 26px; }
.team-body h3 { margin-bottom: 0.1em; }
.team-role {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.8em;
}
.team-body p.bio { font-size: 0.92rem; }
@media (max-width: 820px) {
  .team-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}

.team-strip {
  display: flex;
  gap: 24px;
  margin: 28px 0;
  flex-wrap: wrap;
}
.team-strip .mini {
  display: flex;
  align-items: center;
  gap: 12px;
}
.team-strip img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.team-strip .mini-name { font-weight: 600; font-size: 0.9rem; color: var(--shepherd-green); }
.team-strip .mini-role { font-size: 0.78rem; color: var(--stone); }

/* ---------- Quote ---------- */
.pull-quote {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 2rem;
  color: var(--shepherd-green);
  max-width: 46ch;
  line-height: 1.3;
  margin: 0 auto;
  text-align: center;
}

/* ---------- What we do / what we don't ---------- */
.dowedont-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 32px 0;
}
.dowedont-grid h3 { color: var(--copper); }
.dowedont-grid ul {
  list-style: none;
  padding: 0;
  margin: 1em 0 0;
  font-size: 0.97rem;
}
.dowedont-grid li {
  padding-left: 1.3em;
  position: relative;
  margin-bottom: 0.75em;
}
.do-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 0.05em;
  color: var(--copper);
  font-weight: 700;
}
.dont-list li::before {
  content: '—';
  position: absolute; left: 0;
  color: var(--stone);
}
@media (max-width: 760px) {
  .dowedont-grid { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Note box (disclosure-style callout, no toggle) ---------- */
.note-box {
  background: var(--warm-white);
  border-left: 4px solid var(--copper);
  border-radius: var(--radius);
  padding: 22px 26px;
  font-size: 0.95rem;
  margin: 32px 0;
}
.note-box strong { color: var(--shepherd-green); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--shepherd-green);
  color: var(--cream);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: var(--cream); }
.cta-band p { color: rgba(244, 239, 230,0.82); max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-band .btns { margin-top: 24px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  margin-top: 32px;
}
.contact-info dt {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--copper); margin-top: 1.4em;
}
.contact-info dd { margin: 0.2em 0 0; font-size: 1.05rem; color: var(--shepherd-green); }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--shepherd-green);
  color: rgba(244, 239, 230,0.85);
  padding: 48px 0 24px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule-dark);
  padding-bottom: 28px;
}
.footer-logo { height: 51px; width: auto; display: block; margin: 0 0 0.5em; }
.footer-tag { font-style: italic; font-family: var(--font-display); color: var(--copper-light); margin: 0; }
.footer-contact p { margin: 0 0 0.4em; font-size: 0.9rem; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--copper-light); }
.footer-fine { padding-top: 18px; font-size: 0.8rem; text-align: center; opacity: 0.75; }

/* ---------- Includes-at-a-glance ---------- */
.includes-list {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 32px;
}
.includes-list li {
  padding-left: 1.4em;
  position: relative;
  font-size: 0.95rem;
  color: var(--shepherd-green);
}
.includes-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--copper);
  font-weight: 700;
}
@media (max-width: 640px) { .includes-list { grid-template-columns: 1fr; } }

/* ---------- Kickoff steps (how every engagement begins) ---------- */
.kickoff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 36px 0;
}
.kickoff-step .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--copper);
  display: block;
  margin-bottom: 0.2em;
}
.kickoff-step h4 { margin-bottom: 0.3em; }
.kickoff-step p { font-size: 0.9rem; margin: 0; }
@media (max-width: 820px) {
  .kickoff-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .kickoff-grid { grid-template-columns: 1fr; }
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
