/* Alpha Structure Capital — production stylesheet */
/* Palette: royal green / forest / gold / ivory / charcoal */

:root {
  --green: #0B3D2E;
  --forest: #062A20;
  --gold: #C8953E;
  --gold-light: #DBAD5C;
  --gold-dark: #A87B2E;
  --ivory: #F5F2EA;
  --white: #FFFFFF;
  --charcoal: #1C2522;
  --body: #3A453F;
  --muted: #5A665F;
  --hairline: rgba(11, 61, 46, 0.12);
  --hairline-dark: rgba(200, 149, 62, 0.3);
  --pad-x: clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ivory);
}

body {
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}

h1, h2, h3, blockquote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--green);
  text-wrap: pretty;
}

p { text-wrap: pretty; }

a { color: var(--charcoal); text-decoration: none; }
a:hover { color: var(--gold); }

input:focus, select:focus, textarea:focus,
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  background: var(--gold);
  color: var(--forest);
  font-weight: 700;
  padding: 12px 20px;
  font-size: 14px;
}
.skip-link:focus { left: 16px; top: 8px; color: var(--forest); }

/* ---------- Announcement bar ---------- */
.announcement {
  background: var(--forest);
  color: var(--ivory);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(200, 149, 62, 0.2);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 42, 32, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline-dark);
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px var(--pad-x);
  min-height: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px clamp(16px, 2vw, 28px);
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand:hover .brand-line1 { color: var(--gold-light); }
.brand-mark {
  width: 0; height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-bottom: 22px solid var(--gold);
}
.brand-mark.small {
  border-left-width: 11px;
  border-right-width: 11px;
  border-bottom-width: 19px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-line1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px; font-weight: 600;
  letter-spacing: 0.12em; color: var(--ivory);
}
.brand-line2 {
  font-size: 10px; letter-spacing: 0.42em;
  color: var(--gold); font-weight: 600;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px clamp(12px, 1.6vw, 24px);
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
}
.nav-link { color: rgba(245, 242, 234, 0.85); padding: 4px 0; white-space: nowrap; border-bottom: 1px solid transparent; }
.nav-link:hover { color: var(--gold-light); }
.nav-link.active { color: var(--gold-light); border-bottom-color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.login-link { color: rgba(245, 242, 234, 0.7); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; white-space: nowrap; }
.login-link:hover { color: var(--gold-light); }

.btn { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; padding: 16px 32px; border: none; cursor: pointer; font-family: inherit; text-align: center; transition: background 200ms, color 200ms, border-color 200ms; }
.btn-gold { background: var(--gold); color: var(--forest); }
.btn-gold:hover { background: var(--gold-light); color: var(--forest); }
.btn-outline-light { background: none; border: 1px solid rgba(245, 242, 234, 0.4); color: var(--ivory); font-weight: 600; }
.btn-outline-light:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-outline-gold { background: none; border: 1px solid var(--gold); color: var(--gold-dark); font-weight: 600; }
.btn-outline-gold:hover { background: var(--gold); color: var(--forest); }
.btn-outline-gold.on-dark { color: var(--gold-light); }
.btn-outline-gold.on-dark:hover { color: var(--forest); }
.btn-green { background: var(--green); color: var(--ivory); }
.btn-green:hover { background: var(--gold); color: var(--forest); }
.btn-sm { padding: 12px 20px; font-size: 13px; letter-spacing: 0.08em; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(200, 149, 62, 0.5);
  color: var(--ivory);
  font-size: 20px;
  padding: 8px 14px;
  cursor: pointer;
  line-height: 1;
}

/* Mobile navigation */
.mobile-nav {
  display: none;
  background: var(--forest);
  border-top: 1px solid rgba(200, 149, 62, 0.25);
  padding: 16px var(--pad-x) 28px;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(245, 242, 234, 0.85);
  font-size: 17px; font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid rgba(245, 242, 234, 0.08);
  display: block;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--gold-light); }
.mobile-nav .btn { margin-top: 18px; border-bottom: none; }
body.menu-locked { overflow: hidden; }

@media (max-width: 899px) {
  .main-nav, .header-actions { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 100px) var(--pad-x); }
.section-lg { padding: clamp(72px, 9vw, 110px) var(--pad-x); }
.bg-ivory { background: var(--ivory); }
.bg-white { background: var(--white); }
.bg-forest { background: var(--forest); }
.bg-green { background: var(--green); }
.bg-gradient {
  background:
    radial-gradient(1100px 620px at 82% -10%, rgba(200, 149, 62, 0.10), transparent 62%),
    radial-gradient(900px 700px at -10% 110%, rgba(11, 61, 46, 0.85), transparent 70%),
    var(--forest);
}

/* Subtle hero entrance motion (disabled by the prefers-reduced-motion rule above) */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.bg-gradient .eyebrow,
.bg-gradient h1,
.bg-gradient .page-title { animation: hero-rise 700ms cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.bg-gradient .lede,
.bg-gradient .tri-gold { animation: hero-rise 700ms cubic-bezier(0.22, 0.61, 0.36, 1) 120ms both; }
.hairline-top { border-top: 1px solid var(--hairline); }

.container { max-width: 1320px; margin: 0 auto; }
.container-md { max-width: 1100px; margin: 0 auto; }
.container-sm { max-width: 900px; margin: 0 auto; }
.container-xs { max-width: 780px; margin: 0 auto; }

.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.eyebrow.centered { justify-content: center; }
.eyebrow-rule { width: 28px; height: 1px; background: var(--gold); }
.eyebrow-text { font-size: 12px; font-weight: 600; letter-spacing: 0.32em; color: var(--gold-dark); }
.on-dark .eyebrow-text, .bg-forest .eyebrow-text, .bg-green .eyebrow-text, .bg-gradient .eyebrow-text { color: var(--gold); }

.page-title { font-weight: 500; font-size: clamp(36px, 4.5vw, 56px); line-height: 1.1; margin: 0 0 24px; }
.section-title { font-weight: 500; font-size: clamp(32px, 3.6vw, 44px); line-height: 1.15; margin: 0 0 20px; }
.sub-title { font-weight: 500; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.18; margin: 0 0 20px; }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark blockquote { color: var(--ivory); }

.lede { font-size: 18px; line-height: 1.7; color: var(--body); margin: 0; }
.prose { font-size: 17px; line-height: 1.75; color: var(--body); margin: 0 0 16px; }
.prose-sm { font-size: 15px; line-height: 1.7; color: var(--muted); }
.on-dark .lede, .on-dark .prose { color: rgba(245, 242, 234, 0.75); }
.on-dark .prose-sm { color: rgba(245, 242, 234, 0.6); }

.gold-note { border-left: 2px solid var(--gold); padding-left: 20px; max-width: 760px; }
.link-gold { color: var(--gold-dark); font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.link-gold:hover { color: var(--gold); }
.on-dark .link-gold { color: var(--gold-light); }

/* ---------- Hero (home) ---------- */
.hero-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px;
  align-items: center;
  min-height: 620px;
}
.hero-copy { padding: clamp(64px, 8vw, 96px) 0; }
.hero-title { font-weight: 500; font-size: clamp(38px, 5vw, 62px); line-height: 1.08; color: var(--ivory); margin: 0 0 28px; }
.hero-title .accent { color: var(--gold-light); font-style: italic; }
.hero-media { position: relative; align-self: stretch; min-height: 420px; }
.hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, var(--forest) 0%, rgba(6, 42, 32, 0.35) 45%, rgba(6, 42, 32, 0) 75%);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.hero-note { font-size: 13px; line-height: 1.6; color: rgba(245, 242, 234, 0.5); max-width: 560px; margin: 20px 0 0; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-row.centered { justify-content: center; }

/* ---------- Cards & grids ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.pillar {
  background: var(--white);
  padding: 44px 36px;
}
.pillar-numeral { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 20px; color: var(--gold); margin-bottom: 20px; }
.pillar h3 { font-weight: 600; font-size: 26px; margin: 0 0 14px; }
.pillar p { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.card-grid.narrow { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--hairline); padding: 26px; }
.card h3 { font-weight: 600; font-size: 22px; margin: 0 0 10px; }
.card p { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0; }

.chip { display: flex; align-items: center; gap: 14px; background: var(--ivory); border: 1px solid var(--hairline); padding: 20px 22px; font-size: 15px; font-weight: 500; }
.chip.on-dark-chip { background: none; border-color: var(--hairline-dark); color: var(--ivory); }
.bg-white .chip { background: var(--ivory); }
.bg-ivory .chip { background: var(--white); }

.diamond { width: 10px; height: 10px; border: 1px solid var(--gold); transform: rotate(45deg); flex-shrink: 0; }
.diamond.sm { width: 8px; height: 8px; }

.article-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 14px;
  color: inherit;
}
.article-card:hover { border-color: var(--gold); color: inherit; }
.article-card .cat { font-size: 11px; font-weight: 700; letter-spacing: 0.24em; color: var(--gold-dark); }
.article-card .title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 25px; line-height: 1.25; color: var(--green); }
.article-card .excerpt { font-size: 14px; line-height: 1.6; color: var(--muted); }
.article-card .more { font-size: 13px; font-weight: 600; color: var(--gold-dark); margin-top: auto; }

/* ---------- Process steps ---------- */
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px 0; }
.step { padding-right: 24px; }
.step-head { display: flex; align-items: center; margin-bottom: 22px; }
.step-num {
  width: 40px; height: 40px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-num span { transform: rotate(-45deg); font-size: 14px; font-weight: 700; color: var(--gold-dark); }
.on-dark .step-num span { color: var(--gold-light); }
.step-rule { flex: 1; height: 1px; background: rgba(11, 61, 46, 0.18); margin-left: 14px; }
.on-dark .step-rule { background: rgba(245, 242, 234, 0.15); }
.step p { font-size: 16px; line-height: 1.55; font-weight: 500; margin: 0; max-width: 220px; }
.on-dark .step p { color: var(--ivory); }

.stage-list { display: flex; flex-direction: column; }
.stage {
  display: flex; gap: clamp(20px, 3vw, 36px);
  padding: 32px 0;
  border-top: 1px solid rgba(11, 61, 46, 0.15);
}
.stage .step-num { margin-top: 4px; }
.stage h2, .stage h3 { font-weight: 600; font-size: clamp(24px, 2.6vw, 30px); margin: 0 0 12px; }
.stage p { margin: 0; }

/* ---------- Row lists ---------- */
.row-list { display: flex; flex-direction: column; }
.row-item {
  display: flex; flex-wrap: wrap;
  gap: 12px 32px; align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid rgba(11, 61, 46, 0.15);
}
.on-dark .row-item { border-top-color: rgba(200, 149, 62, 0.25); }
.row-item h3 { font-weight: 600; font-size: 24px; margin: 0; flex: 1 1 240px; max-width: 340px; }
.row-item p { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0; flex: 2 1 300px; }
.on-dark .row-item p { color: rgba(245, 242, 234, 0.68); }

/* ---------- Callout boxes ---------- */
.callout {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--gold);
  padding: clamp(28px, 4vw, 44px);
}
.bg-white .callout { background: var(--ivory); }
.callout-side {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--gold);
  border-top: 1px solid var(--hairline);
  padding: 24px 28px;
}
.callout-label { font-size: 11px; font-weight: 700; letter-spacing: 0.24em; color: var(--gold-dark); margin-bottom: 10px; }

/* ---------- FAQ ---------- */
.faq-item { padding: 28px 0; border-top: 1px solid rgba(11, 61, 46, 0.15); }
.faq-item h3 { font-weight: 600; font-size: 22px; margin: 0 0 10px; }
.faq-item p { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); padding: clamp(28px, 4vw, 44px); border: 1px solid var(--hairline); }
.form-stack { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--charcoal); }
.field input, .field select, .field textarea {
  border: 1px solid rgba(11, 61, 46, 0.25);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--charcoal);
  background: var(--white);
}
.field textarea { resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; font-weight: 500; }
.check input { margin-top: 2px; accent-color: var(--green); }
.form-note { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0; }
.form-status { display: none; border-left: 3px solid var(--gold); background: var(--ivory); padding: 18px 22px; font-size: 14px; line-height: 1.6; color: var(--body); }
.form-status.visible { display: block; }
.form-status.error { border-left-color: #A33B2E; }
.field-error { color: #A33B2E; font-size: 12px; font-weight: 600; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #A33B2E; }
.field.invalid .field-error, .check.invalid .field-error { display: block; }
.check.invalid span { color: #A33B2E; }

/* ---------- Article prose ---------- */
.article-body h2 { font-weight: 600; font-size: clamp(26px, 3vw, 32px); margin: 40px 0 16px; }
.article-body p { font-size: 17px; line-height: 1.8; color: var(--body); margin: 0 0 28px; }
.article-body .opening { font-size: 18px; }

/* ---------- Quote / CTA band ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; }
.cta-band::before {
  content: "";
  position: absolute; top: -80px; right: -60px;
  width: 0; height: 0;
  border-left: 280px solid transparent;
  border-right: 280px solid transparent;
  border-bottom: 480px solid rgba(200, 149, 62, 0.05);
  pointer-events: none;
}
.cta-band > .container-sm, .cta-band > .container-xs { position: relative; }
.tri-gold { width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 24px solid var(--gold); margin: 0 auto 32px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest);
  border-top: 1px solid var(--hairline-dark);
  padding: 72px var(--pad-x) 48px;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 48px; flex-wrap: wrap; margin-bottom: 56px;
}
.footer-cols { display: flex; gap: 40px clamp(32px, 5vw, 72px); flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 13px; letter-spacing: 0.04em; }
.footer-col-label { font-size: 11px; font-weight: 700; letter-spacing: 0.24em; color: var(--gold); margin-bottom: 4px; }
.footer-col a { color: rgba(245, 242, 234, 0.7); }
.footer-col a:hover { color: var(--gold-light); }
.footer-legal {
  font-size: 13px; line-height: 1.8;
  color: rgba(245, 242, 234, 0.55);
  max-width: 980px; margin: 0 0 20px;
}
.footer-legal.first { border-top: 1px solid rgba(245, 242, 234, 0.1); padding-top: 24px; }
.footer-copyright { font-size: 12px; color: rgba(245, 242, 234, 0.35); margin: 0; }

/* ---------- 404 ---------- */
.page-404 { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; }
