/* ============================================
   Apple Valley Investments LLC — Brand System
   Display: Fraunces | Body: Inter | Utility: IBM Plex Mono
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,600;1,9..144,400&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --navy: #1B2A4A;
  --navy-deep: #101B30;
  --gold: #C9A227;
  --gold-soft: #E4C766;
  --cream: #F7F5F0;
  --paper: #FFFFFF;
  --ink: #232323;
  --slate: #5B6472;
  --line: #E4DFD3;
  --radius: 2px;
  --maxw: 1120px;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--navy);
  line-height: 1.12;
  margin: 0;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink); }
.lede { font-size: 1.15rem; color: var(--slate); max-width: 46ch; }

a { color: var(--navy); }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

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

/* ---------- Roofline signature motif ---------- */
/* Echoes the logo's roofline mark: a thin gold line with a centered peak.
   Used as the section divider throughout the site instead of a generic rule. */
.roofline {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  margin: 0 auto;
}
.roofline svg { display: block; }
.roofline.left { justify-content: flex-start; margin: 0; }

/* ---------- Header ---------- */
header.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand img { height: 40px; display: block; }
nav.primary-nav { display: flex; align-items: center; gap: 30px; }
nav.primary-nav a {
  text-decoration: none;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 0;
}
nav.primary-nav a.current { color: var(--gold); }
nav.primary-nav a:not(.btn):hover { color: var(--gold); }
.nav-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
}
.btn-primary { background: var(--navy); color: var(--paper) !important; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-gold { background: var(--gold); color: var(--navy-deep) !important; }
.btn-gold:hover { background: var(--gold-soft); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy) !important; }
.btn-outline:hover { background: var(--navy); color: var(--paper) !important; }
.btn-outline.on-dark { border-color: rgba(255,255,255,0.5); color: var(--paper) !important; }
.btn-outline.on-dark:hover { background: rgba(255,255,255,0.12); }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 72px;
}
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Path cards (Home) ---------- */
.paths {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 72px 0;
}
.paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}
.path-card {
  background: var(--navy);
  color: var(--paper);
  padding: 44px 38px;
  border-radius: var(--radius);
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.path-card:hover { transform: translateY(-3px); }
.path-card.alt { background: var(--navy-deep); }
.path-card .mark { margin-bottom: 22px; }
.path-card h3 {
  color: var(--paper);
  font-size: 1.55rem;
  margin-bottom: 12px;
}
.path-card p { color: rgba(255,255,255,0.72); margin-bottom: 26px; }
.path-card .go {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* ---------- Feature strip ---------- */
.features {
  padding: 76px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 44px;
}
.feature .roofline.left { margin-bottom: 16px; }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--slate); margin: 0; font-size: 0.98rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: var(--paper);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: var(--paper); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.7); max-width: 50ch; margin: 0 auto 30px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Generic section ---------- */
section.section { padding: 68px 0; }
section.section.tight { padding: 48px 0; }
.section-head { max-width: 60ch; margin-bottom: 40px; }

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.principle-list { list-style: none; margin: 0; padding: 0; }
.principle-list li {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.principle-list li:first-child { padding-top: 0; }
.principle-list .roofline { flex-shrink: 0; margin-top: 4px; }
.people-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: var(--radius);
}
.people-card + .people-card { margin-top: 20px; }
.people-card .role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}
.people-card h3 { margin-bottom: 8px; }
.people-card p { color: var(--slate); font-size: 0.95rem; margin: 0; }

/* ---------- Forms ---------- */
.form-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
}
.form-panel h2 { margin-bottom: 8px; }
.form-panel > p { color: var(--slate); margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  background: var(--cream);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  background: var(--paper);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.85rem; color: var(--slate); margin-top: 18px; }

/* ---------- Landing page layout ---------- */
.landing-hero {
  padding: 64px 0 0;
}
.landing-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
  align-items: start;
  padding: 40px 0 80px;
}
.benefit-list { list-style: none; margin: 32px 0 0; padding: 0; }
.benefit-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.benefit-list li:last-child { border-bottom: 1px solid var(--line); }
.benefit-list strong { display: block; color: var(--navy); font-size: 1rem; margin-bottom: 3px; }
.benefit-list span.desc { color: var(--slate); font-size: 0.94rem; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.contact-detail { margin-bottom: 28px; }
.contact-detail .eyebrow { display: block; margin-bottom: 6px; }
.contact-detail div.value {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--navy);
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.65);
  padding: 52px 0 34px;
  margin-top: 0;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img { height: 30px; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.88rem; max-width: 34ch; margin: 0; }
.footer-nav { display: flex; gap: 40px; }
.footer-nav div h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer-nav a {
  display: block;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.footer-nav a:hover { color: var(--gold-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-disclaimer {
  padding-top: 24px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.38);
  max-width: 78ch;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .paths-grid, .about-grid, .landing-grid, .contact-grid, .features-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  nav.primary-nav { display: none; }
  .footer-top { flex-direction: column; }
}

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