/* ===========================================================
   Ameretat Capital — stylesheet
   Palette: ink #0B1410, parchment #F6F3EB, brass #8A6D3B,
            moss #3D4A3F, stone #C9BFA8
   =========================================================== */

:root {
  --ink: #0B1410;
  --parchment: #F6F3EB;
  --brass: #8A6D3B;
  --brass-light: #B08D4F;
  --moss: #3D4A3F;
  --stone: #C9BFA8;
  --stone-line: #DCD4BE;
  --white: #FFFDF8;

  --serif: "Iowan Old Style", "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  display: block;
  margin-bottom: 14px;
}

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 235, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--stone-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand .mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  margin-top: 1px;
}

.navlinks {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.navlinks a {
  position: relative;
  padding-bottom: 4px;
  color: var(--ink);
  opacity: 0.8;
}
.navlinks a:hover { opacity: 1; }
.navlinks a.active { opacity: 1; }
.navlinks a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--brass);
}

.navlinks .cta {
  border: 1px solid var(--ink);
  padding: 8px 16px;
  border-radius: 2px;
  opacity: 1;
  transition: background 0.2s, color 0.2s;
}
.navlinks .cta:hover { background: var(--ink); color: var(--parchment); }

.menu-toggle { display: none; }

@media (max-width: 860px) {
  .navlinks { display: none; }
  .menu-toggle {
    display: block;
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--ink);
    background: none;
    padding: 8px 14px;
  }
  .navlinks.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--parchment);
    border-bottom: 1px solid var(--stone-line);
    padding: 20px 32px 28px;
    gap: 18px;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--stone-line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  margin: 0 0 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  color: var(--brass);
}

.hero .lede {
  font-size: 18px;
  color: var(--moss);
  max-width: 540px;
  margin: 0 0 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 14px 26px;
  border-radius: 2px;
  border: 1px solid var(--ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--ink); color: var(--parchment); }
.btn-primary:hover { background: var(--brass); border-color: var(--brass); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--parchment); }

/* ---------- Marginalia rail (signature element) ---------- */
.rail {
  border-left: 1px solid var(--stone-line);
  padding-left: 28px;
  padding-top: 6px;
}

.rail-item {
  margin-bottom: 26px;
}

.rail-item .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--brass);
  display: block;
  margin-bottom: 4px;
}

.rail-item .label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.rail-item .desc {
  font-size: 13px;
  color: var(--moss);
}

/* ---------- Section scaffolding ---------- */
section { padding: 80px 0; }
section.bordered { border-bottom: 1px solid var(--stone-line); }
section.dark {
  background: var(--ink);
  color: var(--parchment);
}
section.dark .eyebrow { color: var(--brass-light); }
section.dark h2, section.dark h3 { color: var(--parchment); }
section.dark .rule { border-top-color: rgba(246,243,235,0.18); }

h2.section-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 500;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.section-intro {
  max-width: 620px;
  color: var(--moss);
  font-size: 16.5px;
  margin-bottom: 48px;
}
section.dark .section-intro { color: var(--stone); }

/* ---------- Co-investment structure diagram ---------- */
.structure {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
  border: 1px solid rgba(246,243,235,0.22);
}

.structure-col {
  padding: 32px 28px;
  border-right: 1px solid rgba(246,243,235,0.22);
  position: relative;
}
.structure-col:last-child { border-right: none; }

.structure-col .tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 14px;
  display: block;
}

.structure-col h4 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 0 0 10px;
  font-weight: 500;
}

.structure-col p {
  font-size: 14px;
  color: var(--stone);
  margin: 0;
  line-height: 1.55;
}

.structure-col.center {
  background: rgba(138, 109, 59, 0.14);
}

.structure-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  color: var(--brass-light);
  letter-spacing: 0.05em;
  margin-top: 18px;
}

@media (max-width: 760px) {
  .structure { grid-template-columns: 1fr; }
  .structure-col { border-right: none; border-bottom: 1px solid rgba(246,243,235,0.22); }
  .structure-col:last-child { border-bottom: none; }
}

/* ---------- Focus areas / ledger list ---------- */
.ledger { border-top: 1px solid var(--stone-line); }

.ledger-row {
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--stone-line);
  align-items: baseline;
}

.ledger-row .area {
  font-family: var(--serif);
  font-size: 19px;
}

.ledger-row .detail {
  color: var(--moss);
  font-size: 15px;
}

.ledger-row .geo {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--brass);
  text-align: right;
}

@media (max-width: 760px) {
  .ledger-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .ledger-row .geo { text-align: left; }
}

/* ---------- Approach / pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 56px;
}

.pillar .eyebrow { margin-bottom: 10px; }

.pillar h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  margin: 0 0 12px;
}

.pillar p {
  color: var(--moss);
  font-size: 15px;
  margin: 0;
}

@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--stone-line);
  border-bottom: 1px solid var(--stone-line);
}

.stat {
  padding: 36px 28px;
  border-right: 1px solid var(--stone-line);
}
.stat:last-child { border-right: none; }

.stat .figure {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--brass);
  display: block;
  margin-bottom: 6px;
}

.stat .caption {
  font-size: 13px;
  color: var(--moss);
}

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--stone-line); }
}

/* ---------- People / Team ---------- */
.person {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--stone-line);
}

.person-photo {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--stone);
  border-radius: 2px;
  overflow: hidden;
}

.person-photo img { width: 100%; height: 100%; object-fit: cover; }

.person h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0 0 4px;
  font-weight: 500;
}

.person .role {
  color: var(--brass);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
}

.person p {
  color: var(--moss);
  font-size: 15px;
  max-width: 600px;
}

@media (max-width: 760px) {
  .person { grid-template-columns: 1fr; }
  .person-photo { max-width: 220px; }
}

/* ---------- CTA band ---------- */
.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 56px 0;
}

.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  margin: 0;
  max-width: 520px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-block { margin-bottom: 32px; }

.contact-block .eyebrow { margin-bottom: 8px; }

.contact-block .line { font-size: 16px; margin-bottom: 4px; }
.contact-block a.line:hover { color: var(--brass); }

.map-frame {
  border: 1px solid var(--stone-line);
  width: 100%;
  height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: var(--stone);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(246,243,235,0.16);
}

.footer-brand {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--parchment);
  margin-bottom: 12px;
}

.footer-grid p { font-size: 14px; line-height: 1.6; max-width: 320px; }

.footer-col h5 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin: 0 0 14px;
}

.footer-col a, .footer-col div.line {
  display: block;
  font-size: 14px;
  color: var(--stone);
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--parchment); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(201,191,168,0.7);
  padding-top: 22px;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--stone-line);
}
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 500;
  margin: 16px 0 0;
}

/* ---------- Disclosure note ---------- */
.disclosure {
  font-size: 12.5px;
  color: var(--moss);
  border-top: 1px solid var(--stone-line);
  padding-top: 20px;
  margin-top: 8px;
  line-height: 1.6;
}
