/* ============================================
   Working Capital Network - Design System
   Warm & Approachable Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400..800&family=DM+Sans:wght@300..800&family=DM+Mono:wght@400;500&display=swap');

:root {
  /* Core surfaces — warmer & softer */
  --ink: #1F3B3F;              /* Softer dark teal */
  --ink-soft: #2E5057;
  --ink-deep: #143034;
  --paper: #FDF7EC;            /* Very warm cream — almost buttery */
  --paper-warm: #F5EAD3;       /* Deeper warm cream */
  --cream: #FFFFFF;            /* Pure white cards */

  /* Accent — soft sage green (approval/money vibe) */
  --signal: #6FA989;           /* Soft sage green primary */
  --signal-bright: #94C5AA;    /* Lighter mint highlight */
  --signal-deep: #4E8869;      /* Deeper sage for hovers */
  --signal-glow: rgba(111, 169, 137, 0.25);

  /* Warm emphasis — amber (complements green nicely) */
  --rust: #D4A054;             /* Warm amber for italic emphasis */
  --slate: #3C4A4D;
  --mute: #7A8687;
  --line: rgba(31, 59, 63, 0.09);
  --line-strong: rgba(31, 59, 63, 0.18);

  /* Typography — friendly & rounded */
  --display: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;

  /* Spacing */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4rem, 10vw, 8rem);

  /* Radii */
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(31, 59, 63, 0.04);
  --shadow-md: 0 8px 24px rgba(31, 59, 63, 0.08);
  --shadow-lg: 0 20px 48px rgba(31, 59, 63, 0.10);
  --shadow-warm: 0 20px 48px rgba(111, 169, 137, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01" on;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* No grain — cleaner surfaces for the warm feel */
body::before { display: none !important; }

/* ============================================
   Navigation — warm cream, floating pill feel
   ============================================ */
.nav {
  position: fixed;
  top: 38px; left: 0; right: 0;
  z-index: 100;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(253, 247, 236, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 700px) {
  .nav { top: 32px; }
}

.nav__brand { display: flex; align-items: center; }

.nav__logo {
  height: 44px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
  color: var(--ink);
}

.nav__links a:hover { color: var(--signal); }

.nav__links a.active { color: var(--signal); }

.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0; right: 0;
  height: 3px;
  background: var(--signal);
  border-radius: 3px;
}

/* Dropdown menu */
.nav__has-dropdown {
  position: relative;
  padding: 1rem 0;
  margin: -1rem 0;
}

.nav__dropdown-trigger {
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
}

.nav__dropdown-arrow {
  font-size: 0.72rem;
  transition: transform 0.2s;
  color: var(--mute);
}

.nav__has-dropdown:hover .nav__dropdown-arrow { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute;
  top: calc(100% - 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  min-width: 250px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  transition-delay: 0.15s;
  list-style: none;
  z-index: 110;
  display: flex;
  flex-direction: column;
}

.nav__has-dropdown:hover .nav__dropdown,
.nav__dropdown:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}

.nav__dropdown::before {
  content: '';
  position: absolute;
  top: -20px; left: -20px; right: -20px;
  height: 30px;
}

.nav__dropdown li { list-style: none; }

.nav__dropdown a {
  display: block;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.15s;
  color: var(--ink);
}

.nav__dropdown a:hover {
  background: var(--paper-warm);
  color: var(--signal-deep);
}

.nav__dropdown a::after { display: none !important; }

.nav__cta {
  background: var(--signal);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.nav__cta:hover {
  background: var(--signal-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(111, 169, 137, 0.35);
}

.nav__menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--ink);
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__menu-toggle { display: block; }
  .nav__cta { display: none; }
  .nav__logo { height: 36px; }
}

/* ============================================
   Buttons — softer, rounder, warmer
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 1.9rem;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
  letter-spacing: -0.005em;
}

.btn--primary {
  background: var(--signal);
  color: white;
  border: none;
  box-shadow: 0 4px 14px rgba(111, 169, 137, 0.28);
}

.btn--primary:hover {
  background: var(--signal-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(111, 169, 137, 0.35);
}

.btn--dark {
  background: var(--ink);
  color: var(--cream);
  border: none;
}

.btn--dark:hover {
  background: var(--signal);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(111, 169, 137, 0.3);
}

.btn--ghost {
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn__arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.25s;
}

.btn:hover .btn__arrow { transform: translate(3px, -3px); }

/* ============================================
   Section primitives
   ============================================ */
.section {
  padding: var(--section) var(--gutter);
  position: relative;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--signal);
  border-radius: 50%;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--ink);
  font-variation-settings: "opsz" 96, "SOFT" 100;
}

h2 {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

em {
  font-style: italic;
  color: var(--signal);
  font-variation-settings: "opsz" 96, "SOFT" 100;
}

p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate);
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--slate);
  max-width: 60ch;
  font-weight: 400;
}

/* ============================================
   Footer — warm dark teal
   ============================================ */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 5rem var(--gutter) 2rem;
  position: relative;
  z-index: 2;
}

.footer__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(253, 247, 236, 0.12);
}

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

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

.footer__logo {
  height: 60px;
  width: auto;
  margin-bottom: 1.5rem;
}

.footer__tag {
  color: rgba(253, 247, 236, 0.65);
  font-size: 0.95rem;
  max-width: 30ch;
  line-height: 1.55;
}

.footer__col h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--signal-bright);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer__col a {
  color: rgba(253, 247, 236, 0.78);
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer__col a:hover { color: var(--signal-bright); }

.footer__bottom {
  max-width: 1280px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(253, 247, 236, 0.4);
}

/* ============================================
   CTA Strip — warm dark with coral glow
   ============================================ */
.cta-strip {
  background: var(--ink);
  color: var(--cream);
  padding: var(--section) var(--gutter);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.cta-strip__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 800px) {
  .cta-strip__inner { grid-template-columns: 1fr; }
}

.cta-strip h2 {
  color: var(--cream);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.cta-strip h2 em { color: var(--signal-bright); }

.cta-strip p {
  color: rgba(253, 247, 236, 0.75);
  margin-top: 1rem;
}

.cta-strip__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.cta-strip__phone {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: rgba(253, 247, 236, 0.65);
}

.cta-strip__phone strong {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: 2rem;
  color: var(--signal-bright);
  margin-top: 0.25rem;
  font-weight: 500;
}

.cta-strip::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--signal-glow) 0%, transparent 65%);
  filter: blur(70px);
  pointer-events: none;
}

/* ============================================
   Subpage hero
   ============================================ */
.subhero {
  padding: calc(var(--section) + 4rem) var(--gutter) var(--section);
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.subhero__inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.subhero__breadcrumb {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mute);
  margin-bottom: 1.5rem;
}

.subhero__breadcrumb a:hover { color: var(--ink); }

.subhero h1 {
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  max-width: 18ch;
  margin-bottom: 2rem;
  font-weight: 500;
  line-height: 1.02;
}

.subhero h1 em {
  color: var(--signal);
}

.subhero__lead {
  max-width: 55ch;
  margin-bottom: 2.5rem;
}

.subhero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Decorative element — softer, warmer circles */
.subhero__decor {
  position: absolute;
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border: 2px dashed rgba(111, 169, 137, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.subhero__decor::before,
.subhero__decor::after {
  content: '';
  position: absolute;
  inset: 60px;
  border: 2px dashed rgba(111, 169, 137, 0.15);
  border-radius: 50%;
}

.subhero__decor::after { inset: 120px; }

@media (max-width: 900px) {
  .subhero__decor { display: none; }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.fade-up { animation: fade-up 0.8s ease-out backwards; }
.fade-up.d1 { animation-delay: 0.1s; }
.fade-up.d2 { animation-delay: 0.2s; }
.fade-up.d3 { animation-delay: 0.3s; }
.fade-up.d4 { animation-delay: 0.4s; }
.fade-up.d5 { animation-delay: 0.5s; }
.fade-up.d6 { animation-delay: 0.6s; }
