/* Top Capital Funding — brand system */
:root {
  --forest: #0b3d2e;
  --forest-deep: #072820;
  --forest-mid: #145a44;
  --gold: #c4a35a;
  --gold-bright: #d4b76e;
  --gold-dim: #a8873f;
  --stone: #f3f0e8;
  --stone-warm: #e8e3d6;
  --ink: #1a2420;
  --muted: #5c6b63;
  --white: #ffffff;
  --line: rgba(11, 61, 46, 0.12);
  --shadow: 0 18px 50px rgba(7, 40, 32, 0.12);
  --radius: 4px;
  --max: 1120px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--stone);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 0.85rem 0;
  background: rgba(243, 240, 232, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transform: translateY(-12px);
  opacity: 0;
  animation: headerIn 0.7s ease forwards 0.1s;
}

.site-header.is-scrolled {
  background: rgba(243, 240, 232, 0.94);
  border-bottom-color: var(--line);
}

@keyframes headerIn {
  to {
    transform: none;
    opacity: 1;
  }
}

.nav-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: 40px;
  width: auto;
}

.brand-light img {
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--forest);
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--gold-dim);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--forest);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-primary {
  background: var(--gold);
  color: var(--forest-deep);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}

.btn-outline:hover {
  background: var(--forest);
  color: var(--white);
}

.btn-nav-call {
  background: transparent;
  color: var(--forest);
  border-color: var(--line);
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
}

.btn-nav-call:hover {
  border-color: var(--forest);
}

.btn-nav-cta {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 7rem 0 5.5rem;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(7, 40, 32, 0.55) 0%, rgba(11, 61, 46, 0.78) 45%, rgba(7, 40, 32, 0.92) 100%),
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(196, 163, 90, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(20, 90, 68, 0.5), transparent 50%),
    linear-gradient(135deg, #0b3d2e 0%, #072820 50%, #0f4a38 100%);
  z-index: 0;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196, 163, 90, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 163, 90, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black 20%, transparent 85%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  right: -10%;
  top: 10%;
  width: 55vmin;
  height: 55vmin;
  border: 1px solid rgba(196, 163, 90, 0.18);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  max-width: 720px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.35em;
  opacity: 0;
  transform: translateY(22px);
  animation: heroRise 0.9s ease forwards 0.25s;
}

.hero-brand span {
  display: block;
  color: var(--gold);
  font-style: italic;
  font-weight: 450;
}

.hero-line {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(22px);
  animation: heroRise 0.9s ease forwards 0.45s;
}

.hero .btn-group {
  opacity: 0;
  transform: translateY(22px);
  animation: heroRise 0.9s ease forwards 0.65s;
}

@keyframes heroRise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ——— Sections ——— */
.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--white);
}

.section-dark {
  background: var(--forest-deep);
  color: var(--white);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.75rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.75rem;
}

.section-dark .eyebrow {
  color: var(--gold);
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  color: var(--forest);
}

.section-dark .section-head h2 {
  color: var(--white);
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-dark .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

/* Advantage + stats */
.advantage-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.advantage-copy h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  color: var(--forest);
}

.advantage-copy .lead {
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.advantage-copy .note {
  color: var(--muted);
  border-left: 3px solid var(--gold);
  padding-left: 1.1rem;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.stat {
  padding: 1.35rem 1.25rem;
  border-top: 2px solid var(--gold);
  background: var(--stone);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

/* Solutions */
.solutions {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.solution {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.solution h3 {
  font-size: 1.35rem;
  color: var(--forest);
  margin: 0;
}

.solution p {
  color: var(--muted);
  max-width: 52ch;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 0.25rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.step h3 {
  font-size: 1.3rem;
  color: var(--forest);
}

.step p {
  color: var(--muted);
}

/* Why us */
.reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
}

.reason h3 {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.reason p {
  color: rgba(255, 255, 255, 0.7);
}

.reason::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1rem;
}

/* Form */
.form-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.form-intro h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  color: var(--forest);
}

.form-intro p {
  color: var(--muted);
}

.form-intro .phone-cta {
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--forest);
}

.form-intro .phone-cta a {
  color: var(--gold-dim);
  border-bottom: 1px solid transparent;
}

.form-intro .phone-cta a:hover {
  border-bottom-color: var(--gold-dim);
}

.rf-form {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 0.4rem;
}

.field .req {
  color: var(--gold-dim);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--stone);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest-mid);
  background: var(--white);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 1.4em;
}

.form-status-ok {
  color: var(--forest-mid);
}

.form-status-err {
  color: #8b2e2e;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

/* Footer */
.site-footer {
  background: var(--forest-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 2rem;
}

.footer-cta {
  text-align: center;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.footer-cta h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.footer-cta p {
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a:hover {
  color: var(--gold);
}

/* Legal pages */
.legal-page {
  padding: 8rem 0 4rem;
}

.legal-page h1 {
  color: var(--forest);
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.legal-page .prose {
  max-width: 68ch;
  color: var(--muted);
}

.legal-page .prose h2 {
  color: var(--forest);
  font-size: 1.35rem;
  margin-top: 2rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links,
  .nav-actions .btn-nav-call {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--stone);
    border-bottom: 1px solid var(--line);
    padding: 1.25rem 1.5rem 1.5rem;
    gap: 1rem;
    align-items: stretch;
  }

  .advantage-grid,
  .form-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .solution {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .reasons {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: center;
    padding: 6.5rem 0 4rem;
  }
}

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

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .rf-form {
    padding: 1.35rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
