/* In Good Company — founding preview prototype
   Palette + type matched to the venture pitch (warm cream, rust, serif display). */

:root {
  --cream:      #F7F2E8;
  --cream-deep: #EFE7D6;
  --surface:    #FFFFFF;
  --ink:        #2B2622;
  --ink-soft:   #5C554C;
  --muted:      #6A6154;
  --rust:       #B8502D;
  --rust-dark:  #8F3E23;
  --line:       #E3D9C6;
  --gold:       #C8912F;
  --gold-dark:  #8A6410;
  --ok:         #4B7A46;
  --radius:     14px;
  --wrap:       1100px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--rust-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--rust); }
img, svg { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: var(--rust); font-family: var(--sans); margin: 0 0 .8rem; }

/* ---------- founding-preview banner ---------- */
.preview-bar {
  background: var(--ink);
  color: #F3ECDD;
  font-size: .82rem;
  text-align: center;
  padding: 8px 16px;
}
.preview-bar strong { color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247,242,232,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--rust); }
.nav { display: flex; gap: 18px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: .93rem; }
.nav a:hover, .nav a[aria-current="page"]:not(.btn) { color: var(--rust); }
.nav a.btn-primary, .nav a.btn-primary:hover, .nav a.btn-primary[aria-current="page"] { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: .95rem; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  transition: transform .05s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--rust-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; }
.hero .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 40ch; margin-bottom: 1.6rem; }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* ---------- sections ---------- */
.section { padding: 52px 0; }
.section-tint { background: var(--cream-deep); }
.section h2 + .sub { color: var(--ink-soft); margin-top: -.2rem; margin-bottom: 1.8rem; }

/* ---------- event tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; text-decoration: none; color: var(--ink); display: block;
  transition: border-color .15s ease, transform .1s ease;
}
.tile:hover { border-color: var(--rust); transform: translateY(-2px); color: var(--ink); }
.tile .ico { width: 34px; height: 34px; color: var(--rust); margin-bottom: 10px; }
.tile b { display: block; font-family: var(--serif); font-size: 1.02rem; }
.tile .k { font-size: .78rem; color: var(--muted); }

/* ---------- generic card grid ---------- */
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.card h3 { margin-bottom: .3rem; }

/* ---------- item (gear) cards ---------- */
.item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.item .art {
  background: var(--cream-deep); aspect-ratio: 4 / 3; display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
}
.item .art svg { width: 62%; height: 62%; color: var(--rust); }
.item .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item .cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.item .name { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.item .lender { font-size: .82rem; color: var(--ink-soft); }
.item .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 8px; }
.item .price { font-weight: 700; }
.item .price small { font-weight: 400; color: var(--muted); }

/* ---------- badges / chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--cream-deep); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px; font-size: .8rem; color: var(--ink-soft);
  cursor: pointer; text-decoration: none;
}
.chip[aria-pressed="true"], .chip.is-on { background: var(--rust); color: #fff; border-color: var(--rust); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-block; background: var(--cream-deep); border-radius: 6px; padding: 2px 8px; font-size: .76rem; color: var(--ink-soft); margin: 0 4px 4px 0; }
.tagrow { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 4px; }
.tagrow .tag { margin: 0; }
.pending { color: var(--gold-dark); font-weight: 600; font-size: .82rem; }
.soon { display: inline-block; background: var(--cream-deep); color: var(--gold-dark); border-radius: 999px; padding: 3px 12px; font-size: .78rem; font-weight: 600; }

/* ---------- dark CTA band ---------- */
.band { background: var(--ink); color: #F1EADA; border-radius: 20px; padding: 44px; }
.band h2 { color: #fff; }
.band p { color: #D8CFBE; }
.band label { color: #EFE7DC; }

/* ---------- listing detail ---------- */
.detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.detail .art-lg { background: var(--cream-deep); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 4/3; display: grid; place-items: center; }
.detail .art-lg svg { width: 55%; color: var(--rust); }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumbs span { flex: 1; aspect-ratio: 1/1; background: var(--cream-deep); border: 1px dashed var(--line); border-radius: 8px; display: grid; place-items: center; font-size: .68rem; color: var(--muted); }
.trust { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--surface); }
.trust .who { display: flex; align-items: center; gap: 12px; }
.trust .avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--rust); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--serif); }

/* calendar */
.cal { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--surface); }
.cal table { width: 100%; border-collapse: collapse; }
.cal th { font-size: .7rem; color: var(--muted); font-weight: 600; padding: 4px 0; }
.cal td { text-align: center; padding: 6px 0; font-size: .82rem; }
.cal td.out { color: var(--line); }
.cal td.busy { background: var(--cream-deep); color: var(--muted); text-decoration: line-through; border-radius: 6px; }
.cal td.free { color: var(--ink); }

/* ---------- reviews ---------- */
.review { border-top: 1px solid var(--line); padding: 16px 0; }
.stars { color: var(--gold); letter-spacing: 2px; }
.crit { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; align-items: center; margin: 10px 0; }
.bar { background: var(--cream-deep); border-radius: 999px; height: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--rust); }
.example-flag { background: #FBF3E4; border: 1px dashed var(--gold); border-radius: 10px; padding: 12px 14px; font-size: .85rem; color: var(--ink-soft); }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
input, select, textarea {
  font-family: var(--sans); font-size: .95rem; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
}
textarea { min-height: 90px; resize: vertical; }
.dropzone { border: 2px dashed var(--line); border-radius: 12px; padding: 26px; text-align: center; color: var(--muted); background: var(--surface); }

.price-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.price-table th { background: var(--cream-deep); font-family: var(--sans); }
.price-table tr:last-child td { border-bottom: 0; }

/* ---------- steps ---------- */
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.step::before { counter-increment: s; content: counter(s); font-family: var(--serif); font-weight: 700; color: var(--rust); font-size: 1.4rem; display: block; margin-bottom: 6px; }

/* ---------- FAQ ---------- */
details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 600; font-family: var(--serif); font-size: 1.05rem; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--rust); display: inline-block; transition: transform .15s ease; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: 12px 0 4px; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #CFC6B5; padding: 40px 0; font-size: .88rem; margin-top: 64px; }
.site-footer a { color: #EAD9C6; }
.site-footer .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.site-footer .contact { margin-top: 18px; }
.site-footer .disc { margin-top: 22px; color: #9A9080; font-size: .8rem; max-width: 60ch; }
.breadcrumb { display: block; margin: 0 0 1rem; }

/* ---------- chat widget (visual only) ---------- */
.chat-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  background: var(--rust); color: #fff; border: 0; cursor: pointer;
  border-radius: 999px; padding: 12px 18px; font-weight: 600; font-family: var(--sans);
  box-shadow: 0 6px 20px rgba(43,38,34,.25);
}
.chat-panel {
  position: fixed; right: 18px; bottom: 70px; z-index: 50;
  width: 280px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px; box-shadow: 0 12px 34px rgba(43,38,34,.22);
}
.chat-panel[hidden] { display: none; }

/* ---------- disabled / not-yet-wired filter chips ---------- */
.chip[data-disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- responsive ---------- */
@media (max-width: 800px) {
  .detail { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  /* Header no longer stays pinned on small screens — a tall wrapped nav would
     otherwise permanently cover a third of the viewport while scrolling. */
  .site-header { position: static; }
  .site-header .wrap { flex-wrap: wrap; min-height: 0; padding-top: 10px; padding-bottom: 10px; gap: 10px 14px; }
  .nav { width: 100%; margin-left: 0; gap: 8px 14px; }
  .nav a { font-size: .88rem; }
  .band { padding: 28px; }
  /* Room at the bottom so the fixed chat button never sits on top of body text. */
  main { display: block; padding-bottom: 76px; }
}
