/* ============================================================
   Kushdi.ai — shared styles
   Palette: pine, oat, marigold, sage
   Type: Fraunces (display) / Albert Sans (body)
   ============================================================ */

:root {
  --pine: #22372b;
  --pine-deep: #1a2b21;
  --oat: #fbf7ef;
  --oat-dark: #f3ecdd;
  --marigold: #d9912e;
  --marigold-soft: #f0c98a;
  --sage: #93a789;
  --sage-soft: #e3e9dd;
  --ink: #26312a;
  --ink-soft: #55604f;
  --line: #ded5c2;
  --radius: 14px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Albert Sans", system-ui, sans-serif;
  background: var(--oat);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.display { font-family: "Fraunces", Georgia, serif; }

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 560; line-height: 1.12; letter-spacing: -0.01em; }

a { color: inherit; }

img { max-width: 100%; }

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

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--marigold);
  margin-bottom: 14px;
}

.on-dark .eyebrow { color: var(--marigold-soft); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 24px;
  font-weight: 620;
  color: var(--pine);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.wordmark .dot { color: var(--marigold); }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }

.nav-links a {
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover { color: var(--pine); }
.nav-links a.active { color: var(--pine); border-bottom-color: var(--marigold); }

.nav-cta {
  background: var(--pine);
  color: var(--oat) !important;
  padding: 9px 18px !important;
  border-radius: 999px;
  border-bottom: none !important;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--pine-deep); }

.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 18px; color: var(--pine); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
  font-family: inherit;
}

.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 2px;
}

.btn-primary { background: var(--marigold); color: var(--pine-deep); }
.btn-primary:hover { background: #c98220; transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--oat); border: 1.5px solid rgba(251,247,239,0.45); }
.btn-ghost:hover { border-color: var(--oat); }

.btn-pine { background: var(--pine); color: var(--oat); }
.btn-pine:hover { background: var(--pine-deep); transform: translateY(-1px); }

/* ---------- Hero (dark pine) ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(217,145,46,0.18), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(147,167,137,0.16), transparent 60%),
    var(--pine);
  color: var(--oat);
  padding: 96px 0 88px;
}

.hero h1 {
  font-size: clamp(38px, 5.6vw, 62px);
  max-width: 17ch;
  margin-bottom: 22px;
}

.hero .lede {
  font-size: clamp(17px, 2vw, 20px);
  max-width: 56ch;
  color: rgba(251,247,239,0.85);
  margin-bottom: 34px;
}

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

/* hand-drawn underline for the signature phrase */
.underlined { position: relative; white-space: nowrap; }
.underlined svg {
  position: absolute;
  left: 0;
  bottom: -0.18em;
  width: 100%;
  height: 0.32em;
  overflow: visible;
}
.underlined svg path {
  fill: none;
  stroke: var(--marigold);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawline 1.1s 0.5s ease forwards;
}
@keyframes drawline { to { stroke-dashoffset: 0; } }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tight { padding: 64px 0; }
.section h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 16px; max-width: 24ch; }
.section .sub { color: var(--ink-soft); max-width: 62ch; font-size: 17.5px; }

.bg-pine { background: var(--pine); color: var(--oat); }
.bg-pine .sub { color: rgba(251,247,239,0.8); }
.bg-oat-dark { background: var(--oat-dark); }

/* ---------- The gap (92 vs 7) ---------- */
.gap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 48px;
}

.gap-bars { display: grid; gap: 26px; }

.gap-bar .label { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.gap-bar .num { font-family: "Fraunces", Georgia, serif; font-size: 22px; color: var(--marigold-soft); }

.gap-track { background: rgba(251,247,239,0.12); border-radius: 999px; height: 16px; overflow: hidden; }
.gap-fill { height: 100%; border-radius: 999px; background: var(--marigold); width: 0; transition: width 1.2s ease; }
.gap-fill.sagefill { background: var(--sage); }
.in-view .gap-fill[data-w="92"] { width: 92%; }
.in-view .gap-fill[data-w="7"] { width: 7%; }

.gap-note { font-size: 14px; color: rgba(251,247,239,0.6); margin-top: 18px; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 46px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(34,55,43,0.08); }

.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--sage-soft);
  display: grid;
  place-items: center;
  font-size: 22px;
}

.card h3 { font-size: 21px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }
.card a.more { font-weight: 600; font-size: 15px; color: var(--pine); text-decoration: none; margin-top: auto; }
.card a.more:hover { color: var(--marigold); }

/* ---------- Service detail blocks ---------- */
.service {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.service:last-of-type { border-bottom: none; }
.service.flip .service-side { order: -1; }

.service h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.service p { color: var(--ink-soft); margin-bottom: 14px; }

.service ul { list-style: none; display: grid; gap: 11px; margin-top: 18px; }
.service ul li { padding-left: 30px; position: relative; font-size: 16px; }
.service ul li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--marigold);
  font-weight: 700;
}

.service-side {
  background: var(--sage-soft);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.service-side .stat {
  font-family: "Fraunces", Georgia, serif;
  font-size: 52px;
  color: var(--pine);
  line-height: 1;
  margin-bottom: 8px;
}
.service-side .stat-label { font-size: 15px; color: var(--ink-soft); margin-bottom: 18px; }
.service-side blockquote {
  border-left: 3px solid var(--marigold);
  padding-left: 14px;
  font-size: 15.5px;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Reach strip (then/now) ---------- */
.reach { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 46px; }
.reach-col { border-radius: var(--radius); padding: 30px 28px; }
.reach-col.then { background: var(--oat-dark); border: 1px dashed var(--line); }
.reach-col.now { background: var(--pine); color: var(--oat); }
.reach-col h3 { font-size: 20px; margin-bottom: 14px; }
.reach-col ul { list-style: none; display: grid; gap: 10px; font-size: 15.5px; }
.reach-col.then ul li { color: var(--ink-soft); padding-left: 26px; position: relative; }
.reach-col.then ul li::before { content: "✕"; position: absolute; left: 0; color: #b3a78d; }
.reach-col.now ul li { color: rgba(251,247,239,0.9); padding-left: 26px; position: relative; }
.reach-col.now ul li::before { content: "✓"; position: absolute; left: 0; color: var(--marigold); font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(217,145,46,0.2), transparent 60%),
    var(--pine);
  color: var(--oat);
  border-radius: 20px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 36px); max-width: 22ch; }
.cta-band p { color: rgba(251,247,239,0.8); margin-top: 8px; max-width: 48ch; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.form-grid .full { grid-column: 1 / -1; }

.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--marigold); }
.field textarea { resize: vertical; min-height: 140px; }

.form-note { font-size: 14px; color: var(--ink-soft); margin-top: 14px; }

/* ---------- About / values ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.value h3 { font-size: 19px; margin-bottom: 10px; }
.value p { font-size: 15.5px; color: var(--ink-soft); }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.story .big-quote {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.3;
  color: var(--pine);
}
.story .big-quote em { color: var(--marigold); font-style: italic; }
.story p { color: var(--ink-soft); margin-bottom: 16px; }

/* ---------- Footer ---------- */
footer {
  background: var(--pine-deep);
  color: rgba(251,247,239,0.75);
  padding: 48px 0 36px;
  margin-top: 84px;
  font-size: 15px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}
footer .wordmark { color: var(--oat); font-size: 22px; }
footer .tagline { margin-top: 8px; max-width: 34ch; font-style: italic; font-family: "Fraunces", Georgia, serif; }
footer nav ul { list-style: none; display: grid; gap: 8px; }
footer a { color: rgba(251,247,239,0.75); text-decoration: none; }
footer a:hover { color: var(--oat); }
.footer-bottom { max-width: var(--maxw); margin: 36px auto 0; padding: 18px 24px 0; border-top: 1px solid rgba(251,247,239,0.15); font-size: 13.5px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .underlined svg path { animation: none; stroke-dashoffset: 0; }
  .gap-fill { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .gap-grid, .story, .service, .reach, .form-grid { grid-template-columns: 1fr; }
  .service.flip .service-side { order: 0; }
  .values { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 28px; }
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }

  .menu-btn { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--oat);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
}
