/*
 * River Partners Capital Management — apex marketing site.
 * Brand tokens kept in sync with rp-platform/src/styles.css :root.
 * If the Rivus app palette changes, mirror the relevant tokens here.
 */

:root {
  /* === brand tokens (mirrored from src/styles.css) === */
  --background: oklch(0.985 0.005 85); /* warm off-white */
  --foreground: oklch(0.22 0.02 250); /* deep ink */
  --primary: oklch(0.27 0.05 255); /* deep navy */
  --primary-foreground: oklch(0.985 0.005 85);
  --muted-foreground: oklch(0.5 0.015 250); /* slate-gray */
  --border: oklch(0.9 0.01 85);

  --font-sans:
    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

html {
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  line-height: 1.5;
}

/* ===== layout ===== */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.hero-grid {
  width: 100%;
  display: grid;
  gap: 4rem;
  align-items: start;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 6rem;
  }
  .hero-left {
    grid-column: span 8 / span 8;
  }
  .hero-right {
    grid-column: span 4 / span 4;
    padding-top: 0.5rem;
  }
}

/* ===== headline ===== */
.headline {
  font-size: clamp(2.25rem, 6vw, 3.75rem); /* text-4xl → md:text-6xl */
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--foreground);
  line-height: 1.05;
}

.headline-sub {
  display: block;
  color: var(--muted-foreground);
  font-weight: 400;
}

/* ===== CTA / button ===== */
.cta-row {
  margin-top: 2rem;
  padding-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  height: 2.75rem;
  padding: 0 1.5rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-primary:active {
  transform: translateY(0.5px);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-icon {
  margin-left: 0.25rem;
  width: 1rem;
  height: 1rem;
}

/* ===== sidebar info block ===== */
.info-stack {
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-label {
  font-size: 0.6875rem; /* 11px */
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.info-body {
  font-size: 0.875rem;
  color: var(--foreground);
  line-height: 1.625;
  font-style: normal; /* override <address> default italic */
}

/* ===== footer ===== */
.footer {
  margin-top: auto;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}

.footer-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.5rem 0;
}

@media (min-width: 640px) {
  .footer-row {
    flex-direction: row;
    align-items: center;
  }
}

.footer-copy,
.footer-note {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
