/* ============================================================
   Mt. Zion Capital LLC — style.css
   Warm, values-driven, professional-but-casual.
   Palette: deep pine + warm brass + cream.
   ============================================================ */

:root {
  --pine:        #1f3d34;  /* primary deep evergreen           */
  --pine-2:      #2c5446;  /* lighter green (gradients)         */
  --pine-deep:   #17302a;  /* footer / darkest green            */
  --brass:       #c19a4b;  /* accent (buttons, mark)            */
  --brass-light: #d8b96f;  /* accent on dark backgrounds        */
  --cream:       #faf7f2;  /* page background                   */
  --cream-2:     #f2ece1;  /* alternating section background    */
  --ink:         #22201c;  /* body text                         */
  --muted:       #6b6459;  /* secondary text                    */
  --line:        #e7e0d3;  /* hairline borders                  */
  --white:       #ffffff;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--brass); color: var(--ink); }

a { color: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 640px; }
.center { text-align: center; }

/* ---------- Header / nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--pine);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo-mark { width: 30px; height: 24px; color: var(--brass); flex: none; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--pine); }
.nav-links .nav-cta {
  color: var(--pine);
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--brass);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.nav-links .nav-cta:hover { background: var(--brass); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--brass);
  color: var(--ink);
  padding: 14px 34px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(31, 61, 52, 0.18);
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31, 61, 52, 0.24); background: #c9a659; }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 16px 44px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--pine) 0%, var(--pine-2) 100%);
  color: var(--cream);
  padding: 132px 0 190px;
  text-align: center;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; }
.eyebrow {
  color: var(--brass-light);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 780px;
  margin: 0 auto 22px;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: rgba(250, 247, 242, 0.86);
  max-width: 600px;
  margin: 0 auto 34px;
}
/* Cream mountain silhouette that flows into the section below */
.hero-range {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 150px;
  z-index: 1;
  display: block;
}
.hero-range path { fill: var(--cream); }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section:target, section[id] { scroll-margin-top: 84px; }
.section-alt { background: var(--cream-2); }

.kicker {
  color: var(--pine-2);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--pine);
  margin-bottom: 20px;
}
.section-title.center { margin-left: auto; margin-right: auto; }
.section-text {
  font-size: 1.12rem;
  color: var(--muted);
}
.section-text.center { max-width: 620px; margin-left: auto; margin-right: auto; }

/* Small brass flourish under centered titles */
.section .center + .section-title.center,
.section-title.center::after {
  content: none;
}

/* ---------- Cards (what we do) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 44px;
}
.card {
  background: var(--white);
  padding: 34px 28px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(31, 61, 52, 0.05);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(31, 61, 52, 0.1); }
.card-icon {
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 14px;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--pine);
  font-size: 1.24rem;
  margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: 1rem; }

/* ---------- Values ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px 40px;
  margin-top: 44px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.value {
  padding: 22px 24px;
  border-left: 3px solid var(--brass);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0 12px 12px 0;
}
.value h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--pine);
  font-size: 1.16rem;
  margin-bottom: 6px;
}
.value p { color: var(--muted); font-size: 1rem; }

/* ---------- Contact band ---------- */
.section-contact {
  background: linear-gradient(160deg, var(--pine-2) 0%, var(--pine) 100%);
  color: var(--cream);
}
.section-contact .kicker { color: var(--brass-light); }
.section-contact .section-title { color: var(--white); }
.section-contact .section-text { color: rgba(250, 247, 242, 0.86); }
.contact-email { margin-top: 22px; font-size: 0.98rem; color: rgba(250, 247, 242, 0.8); }
.contact-email a { color: var(--brass-light); text-decoration: none; border-bottom: 1px solid rgba(216, 185, 111, 0.4); }
.contact-email a:hover { border-bottom-color: var(--brass-light); }
.contact-phone { margin-top: 10px; font-size: 0.98rem; color: rgba(250, 247, 242, 0.8); }
.contact-phone a { color: var(--brass-light); text-decoration: none; border-bottom: 1px solid rgba(216, 185, 111, 0.4); }
.contact-phone a:hover { border-bottom-color: var(--brass-light); }
.contact-local {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  font-size: 0.92rem;
  color: rgba(250, 247, 242, 0.72);
}

/* ---------- Local positioning ---------- */
.hero-local {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 9px 18px;
  border: 1px solid rgba(216, 185, 111, 0.45);
  border-radius: 999px;
  font-size: 0.9rem;
  color: rgba(250, 247, 242, 0.92);
  background: rgba(255, 255, 255, 0.06);
}
.pin { width: 15px; height: 15px; fill: var(--brass-light); flex: none; }
.section-text strong { color: var(--pine); font-weight: 700; }
.section-text + .section-text { margin-top: 1.1rem; }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.footer {
  background: var(--pine-deep);
  color: rgba(250, 247, 242, 0.72);
  padding: 48px 0;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--cream);
}
.footer-brand .logo-mark { color: var(--brass); width: 28px; height: 22px; }
.footer-verse {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(250, 247, 242, 0.82);
  max-width: 560px;
}
.footer-verse .smallcaps { font-variant: small-caps; letter-spacing: 0.03em; }
.footer-cite { display: block; margin-top: 10px; font-family: var(--sans); font-style: normal; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-light); }
.footer-meta { font-size: 0.86rem; color: rgba(250, 247, 242, 0.55); }

/* ---------- Focus states / a11y ---------- */
a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .hero { padding: 96px 0 140px; }
  .hero-range { height: 96px; }
  .hero-local { font-size: 0.8rem; padding: 8px 14px; gap: 6px; margin-top: 24px; }
  .section { padding: 68px 0; }
  .nav { padding: 14px 20px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.9rem; }
  .nav-links .nav-cta { padding: 7px 13px; }
  .logo span { display: none; } /* keep just the mark on small screens to save room */
}

@media (max-width: 420px) {
  .nav-links .nav-cta { display: none; } /* CTA repeats in-page; drop from nav on tiny screens */
}
