/* Shrestha Ventures — design system */

:root {
  --ink: #0B1B2B;
  --ink-2: #1D3348;
  --ink-soft: #40566A;
  --muted: #6B7C8C;
  --line: #E3E1DC;
  --line-soft: #EFEDE8;
  --paper: #FDFCFA;
  --paper-2: #F5F3EE;
  --white: #FFFFFF;
  --accent: #E8552D;
  --accent-2: #F2A03D;
  --accent-soft: #FDF0EA;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --wrap: 1140px;
  --r: 14px;
  --shadow: 0 1px 2px rgba(11, 27, 43, .04), 0 12px 32px -18px rgba(11, 27, 43, .22);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

img, svg { max-width: 100%; }

a { color: var(--ink); text-decoration-color: rgba(232, 85, 45, .45); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.32rem; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.lede { font-size: clamp(1.06rem, 1.9vw, 1.3rem); color: var(--ink-soft); line-height: 1.6; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.narrow { max-width: 68ch; }

section { padding: clamp(56px, 8vw, 104px) 0; }
.section-line { border-top: 1px solid var(--line); }
.bg-alt { background: var(--paper-2); }
.bg-ink { background: var(--ink); color: #E8EEF4; }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink a { color: #fff; }

/* ---------- eyebrow ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.eyebrow.solo::after { display: none; }
.bg-ink .eyebrow { color: var(--accent-2); }
.bg-ink .eyebrow::after { background: rgba(255, 255, 255, .16); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 252, 250, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; }
.brand-sub { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: .93rem; text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: .93rem; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #d0431d; }
.btn-ghost { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-soft); }
.bg-ink .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { padding: clamp(64px, 9vw, 128px) 0 clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 160, 61, .16), transparent 66%);
  pointer-events: none;
}
.hero h1 { max-width: 21ch; }
.hero .lede { max-width: 60ch; margin-top: 22px; }
.hero .btn-row { margin-top: 32px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--paper); padding: 26px 24px; }
.stat .n { font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.stat .l { font-size: .82rem; color: var(--muted); margin-top: 8px; letter-spacing: .04em; }

/* ---------- portfolio cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(272px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(216px, 100%), 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.card { text-decoration: none; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D5D2CB; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .96rem; }
.card .tag { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.card-foot { margin-top: auto; padding-top: 16px; font-size: .88rem; font-weight: 600; color: var(--accent); }

.mark {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.3rem; color: #fff;
  margin-bottom: 18px;
}
.mark-koncierz { background: linear-gradient(135deg, #1F6F5C, #10453A); }
.mark-unihamper { background: linear-gradient(135deg, #3B82C4, #1E4F86); }
.mark-foodyzz { background: linear-gradient(135deg, #F2A03D, #E8552D); }
.mark-nearvise { background: linear-gradient(135deg, #7C5CBF, #4B2F8A); }

/* ---------- feature list ---------- */
.feature { padding: 24px 0; border-top: 1px solid var(--line); }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

.pill-list { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0; list-style: none; }
.pill-list li {
  font-size: .86rem; padding: 7px 15px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); color: var(--ink-soft);
}
.bg-alt .pill-list li { background: var(--white); }
.bg-ink .pill-list li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #D6E1EA; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.step { position: relative; padding-top: 44px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-size: .86rem; font-weight: 700; font-family: var(--mono);
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { font-size: .94rem; color: var(--ink-soft); margin: 0; }

/* ---------- product hero (company pages) ---------- */
.product-hero { padding: clamp(52px, 7vw, 92px) 0 clamp(40px, 5vw, 64px); }
.product-hero .mark { width: 60px; height: 60px; font-size: 1.6rem; border-radius: 16px; }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

.split { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; }
.facts { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); padding: 4px 24px; }
.facts .k { margin: 0; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.facts .v { margin: 5px 0 0; font-size: .96rem; }
.facts .row { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.facts .row:last-child { border-bottom: 0; }

.note {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 18px 22px; border-radius: 0 10px 10px 0;
  font-size: .95rem; color: var(--ink-soft);
}

/* ---------- prose (privacy) ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.55rem; margin: 42px 0 12px; }
.prose h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.prose ul { padding-left: 20px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose p { color: var(--ink-soft); }

/* ---------- CTA ---------- */
.cta { border-radius: var(--r); padding: clamp(36px, 5vw, 60px); background: var(--ink); color: #E8EEF4; }
.cta h2 { color: #fff; }
.cta p { color: #B8C7D4; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--paper-2); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.6fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { font-size: .93rem; text-decoration: none; color: var(--ink-soft); }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .84rem; color: var(--muted); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .nav-toggle {
    display: inline-grid; place-items: center;
    width: 40px; height: 40px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--white); cursor: pointer;
  }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line-soft); }
}
