/* ============================================================
   OLD BROOKEWOOD CAPITAL — styles.css
   Palette: warm white + forest green
   Typography: Georgia serif headings, system sans body
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --green:       #1e3d2f;
  --green-mid:   #2c5740;
  --green-light: #4a7c5e;
  --green-pale:  #dce9e0;
  --cream:       #faf8f4;
  --warm-white:  #ffffff;
  --ink:         #1a1a18;
  --ink-mid:     #3d3d38;
  --ink-light:   #6b6b64;
  --border:      #d4cfc6;
  --border-dark: #b0aba0;
  --shadow-sm:   0 1px 4px rgba(30,61,47,.08);
  --shadow-md:   0 4px 16px rgba(30,61,47,.10);
  --shadow-lg:   0 8px 32px rgba(30,61,47,.12);

  --serif: Georgia, "Times New Roman", serif;
  --sans:  "Helvetica Neue", Arial, sans-serif;

  --max-w: 1120px;
  --gap:   clamp(1.5rem, 4vw, 3rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  background: var(--green);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 0 0 4px 4px;
  font-size: .875rem;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo lockup */
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-tree {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.brand-text {
  height: 50px;
  object-fit: contain;
}

/* Nav */
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  font-family: var(--sans);
  font-size: .875rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav a:hover { color: var(--green); }
.site-nav a[aria-current="page"] {
  color: var(--green);
  border-bottom-color: var(--green);
  font-weight: 600;
}

/* Mobile menu button */
.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .4rem .55rem;
  cursor: pointer;
  color: var(--ink);
}
.menu-btn svg { display: block; }

/* Mobile nav drawer */
@media (max-width: 700px) {
  .menu-btn { display: flex; align-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--warm-white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.25rem var(--gap) 1.5rem;
    gap: 1.1rem;
    align-items: flex-start;
  }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 1rem; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green);
  color: rgba(255,255,255,.85);
  padding: 3rem var(--gap) 2.25rem;
  font-size: .8125rem;
  letter-spacing: .02em;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { display: flex; align-items: center; gap: .65rem; }
.footer-tree { width: 50px; opacity: .9; filter: brightness(10); }
.footer-wordmark { height: 50px; filter: brightness(10) saturate(0); opacity: .85; }
.footer-tagline { margin-top: .5rem; font-size: .75rem; color: rgba(255,255,255,.75); }
.footer-links { display: flex; flex-direction: column; gap: .4rem; }
.footer-links a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  width: 100%;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.6);
  font-size: .75rem;
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}
.section {
  padding: clamp(4rem, 8vw, 7rem) var(--gap);
}
.section--tinted { background: var(--green-pale); }
.section--dark {
  background: var(--green);
  color: #fff;
}

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: .9rem;
}
.section--dark .eyebrow { color: rgba(255,255,255,.55); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: normal; line-height: 1.25; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.125rem; }

p { color: var(--ink-mid); }
.section--dark p { color: rgba(255,255,255,.78); }

.divider {
  width: 40px;
  height: 2px;
  background: var(--green);
  margin: 1.25rem 0 1.5rem;
}
.section--dark .divider { background: rgba(255,255,255,.35); }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
  .reveal-delay-1 { transition-delay: .1s; }
  .reveal-delay-2 { transition-delay: .2s; }
  .reveal-delay-3 { transition-delay: .3s; }
}

/* ---------- HERO ---------- */
.hero {
  padding: clamp(5rem, 10vw, 9rem) var(--gap) clamp(4rem, 8vw, 7rem);
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}
.hero-inner .eyebrow { color: var(--green-light); }
.hero h1 {
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-mid);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--green);
  color: #fff;
  font-family: var(--sans);
  font-size: .875rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .85rem 1.75rem;
  border-radius: 3px;
  transition: background .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.hero-cta:hover { background: var(--green-mid); box-shadow: var(--shadow-md); }

/* ---------- FIT COLUMNS ---------- */
.fit-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  border: 1px solid var(--border);
}
.fit-card {
  background: var(--warm-white);
  padding: 2.25rem 2rem;
  border-right: 1px solid var(--border);
}
.fit-card:last-child { border-right: none; }
.fit-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1.25rem;
  color: var(--green);
}
.fit-card h3 {
  font-size: 1.125rem;
  margin-bottom: .75rem;
  color: var(--ink);
}
.fit-card p { font-size: .9375rem; }

@media (max-width: 700px) {
  .fit-card { border-right: none; border-bottom: 1px solid var(--border); }
  .fit-card:last-child { border-bottom: none; }
}

/* ---------- ABOUT / PRINCIPAL ---------- */
.about-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.about-bio p + p { margin-top: 1rem; }
.about-bio p { font-size: .9375rem; line-height: 1.8; }

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.photo-frame {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-md);
  border-radius: 2px;
  background: var(--border);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Placeholder when image missing */
.photo-frame .placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ddd8cf 0%, #c9c3b9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border-dark);
  font-size: .75rem;
  letter-spacing: .05em;
}

/* ---------- INVESTORS ---------- */
.investor-intro {
  max-width: 600px;
  margin-bottom: 2.5rem;
  font-size: .9375rem;
}
.investor-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 860px) {
  .investor-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .investor-grid { grid-template-columns: repeat(2, 1fr); }
}
.investor-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
}
.investor-card:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.04);
}
@media (prefers-reduced-motion: reduce) {
  .investor-card:hover { transform: none; }
}
.investor-card img {
  max-height: 40px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.investor-card-name {
  font-family: var(--serif);
  font-size: .9375rem;
  color: var(--ink-mid);
  text-align: center;
  line-height: 1.4;
}

/* ---------- PAGE HEADER ---------- */
.page-header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem) var(--gap) clamp(2rem, 4vw, 3.5rem);
}
.page-header-inner { max-width: var(--max-w); margin: 0 auto; }
.page-header h1 { margin-bottom: .75rem; }
.page-header .lead {
  font-size: 1.05rem;
  color: var(--ink-mid);
  max-width: 560px;
  line-height: 1.7;
}

/* ---------- CRITERIA PAGE ---------- */
.criteria-table-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  overflow-x: auto;
}
.criteria-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
}
.criteria-table th {
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  text-align: left;
  padding: .75rem 1rem;
  border-bottom: 2px solid var(--border-dark);
  white-space: nowrap;
}
.criteria-table td {
  padding: 1rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--ink-mid);
  line-height: 1.6;
}
.criteria-table tr:last-child td { border-bottom: none; }
.criteria-table td:first-child {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 1rem;
  width: 30%;
  white-space: nowrap;
}

.panels-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.panel {
  border: 1px solid var(--border);
  background: var(--warm-white);
  border-radius: 3px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.panel h3 { margin-bottom: 1rem; font-size: 1.1rem; }
.panel ul { padding-left: 0; list-style: none; }
.panel ul li {
  padding: .45rem 0 .45rem 1.1rem;
  position: relative;
  font-size: .9375rem;
  color: var(--ink-mid);
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
}
.panel ul li:last-child { border-bottom: none; }
.panel ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-light);
}

/* Steps */
.steps { max-width: 640px; margin: 0 auto; }
.step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.25rem;
  padding-bottom: 2rem;
  position: relative;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.5rem;
  left: 1.2rem;
  width: 1px;
  height: calc(100% - 1.5rem);
  background: var(--border);
}
.step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: .9375rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.step-body h4 { margin-bottom: .4rem; color: var(--ink); }
.step-body p { font-size: .9375rem; color: var(--ink-mid); }

/* ---------- APPROACH PAGE ---------- */
.approach-blocks { max-width: var(--max-w); margin: 0 auto; }
.approach-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.approach-block:last-child { border-bottom: none; }
@media (max-width: 700px) {
  .approach-block { grid-template-columns: 1fr; gap: 1rem; }
}
.approach-label {
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-light);
  padding-top: .25rem;
}
.approach-content h3 { margin-bottom: .75rem; font-size: 1.2rem; }
.approach-content p { font-size: .9375rem; color: var(--ink-mid); line-height: 1.8; }
.approach-content p + p { margin-top: .85rem; }

/* ---------- CONTACT PAGE ---------- */
.contact-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.contact-reach h3 { margin-bottom: 1.25rem; font-size: 1.2rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: .9375rem;
}
.contact-item-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--green);
  margin-top: .1rem;
}
.contact-item a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid var(--green-pale);
  transition: border-color .2s;
}
.contact-item a:hover { border-color: var(--green); }
.contact-note {
  margin-top: 1.5rem;
  font-size: .8125rem;
  color: var(--ink-light);
  line-height: 1.65;
  border-left: 3px solid var(--green-pale);
  padding-left: 1rem;
}

.contact-include h3 { margin-bottom: 1rem; font-size: 1.2rem; }
.contact-include p { font-size: .9375rem; color: var(--ink-mid); margin-bottom: 1.25rem; }
.include-list { list-style: none; padding: 0; }
.include-list li {
  padding: .8rem 0 .8rem 1.2rem;
  border-bottom: 1px solid var(--border);
  font-size: .9375rem;
  color: var(--ink-mid);
  position: relative;
  line-height: 1.55;
}
.include-list li:last-child { border-bottom: none; }
.include-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-light);
}

/* ---------- Responsive helpers ---------- */
@media (max-width: 600px) {
  .photo-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .investor-grid { grid-template-columns: 1fr 1fr; }
}
/* screen-reader only */
.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;
}