/* Bazaar Ventures site styles.
   Sections: tokens, base, layout, header/nav, hero, sections, components
   (timeline, stats, cards, CTA band, form), footer, utilities. */

/* ---------- Tokens ---------- */
:root {
  --ink: #0f1b2d;          /* deep navy: hero overlay, footer, headings */
  --ink-soft: #24344d;
  --paper: #faf8f4;        /* warm white page background */
  --paper-alt: #f1ece3;    /* alternating section background */
  --line: #ddd5c7;
  --text: #2a2f38;
  --muted: #5b6270;
  --accent: #a9521d;       /* copper, white text passes AA (5.3:1) */
  --accent-dark: #8a4217;
  --accent-light: #e9a26f; /* accent on dark backgrounds */
  --radius: 10px;
  --shadow: 0 1px 2px rgb(15 27 45 / 6%), 0 8px 24px rgb(15 27 45 / 8%);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.2; font-weight: 600; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 6px;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--alt { background: var(--paper-alt); }
.section--ink { background: var(--ink); color: #d7dde7; }
.section--ink h2, .section--ink h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .9rem;
}
.section--ink .eyebrow, .hero .eyebrow, .cta-band .eyebrow { color: var(--accent-light); }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.section-head { max-width: 720px; margin-bottom: 2.75rem; }
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}
.photo { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(250 248 244 / 92%);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.wordmark {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--ink);
  text-decoration: none; letter-spacing: -.01em;
}
.wordmark span { color: var(--accent); }
.wordmark:hover { color: var(--ink); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: .5rem .7rem; color: var(--ink); font: inherit; font-size: .95rem; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .site-nav li a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav li:last-child a { border: 0; margin-top: .9rem; text-align: center; }
  .no-js .site-nav { display: block; position: static; box-shadow: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: #fff !important; font-weight: 600; font-size: 1rem;
  text-decoration: none !important; cursor: pointer; transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: rgb(255 255 255 / 70%); }
.btn--ghost:hover { background: rgb(255 255 255 / 12%); border-color: #fff; }
.btn--small { padding: .55rem 1.1rem; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgb(15 27 45 / 92%) 0%, rgb(15 27 45 / 78%) 50%, rgb(15 27 45 / 45%) 100%);
}
.hero-inner { padding-block: clamp(5rem, 14vw, 9.5rem); }
.hero-inner > * { max-width: 760px; }
.hero h1 { color: #fff; }
.hero .lead { color: #dfe5ee; font-size: clamp(1.1rem, 2vw, 1.3rem); margin-bottom: 2rem; }
.hero--page .hero-inner { padding-block: clamp(4rem, 9vw, 6.5rem); }
.hero--page h1 { font-size: clamp(2rem, 4.4vw, 3rem); }

/* ---------- Growth-stage timeline ---------- */
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: stage; }
@media (min-width: 760px) { .stages { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.stage { position: relative; padding: 0 0 0 3.6rem; counter-increment: stage; }
.stage::before {
  content: counter(stage); position: absolute; left: 0; top: 0;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-family: var(--serif); font-weight: 600;
}
@media (min-width: 760px) {
  .stage { padding: 3.6rem 1.25rem 0 0; }
  .stage::after {
    content: ""; position: absolute; top: 1.3rem; left: 2.6rem; right: 0; height: 2px; background: var(--line);
  }
  .stage:last-child::after { display: none; }
}
.stage h3 { margin-bottom: .2rem; }
.stage-mode { color: var(--accent); font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: .4rem; }
.stage-mode::before { content: "→"; }

/* ---------- Highlight / stat strip ---------- */
.stats { display: grid; gap: 1px; background: rgb(255 255 255 / 12%); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--ink); padding: 1.75rem 1.5rem; }
.stat strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--accent-light); line-height: 1.1; margin-bottom: .4rem; font-weight: 600; }
.stat span { color: #c3cad6; font-size: .98rem; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow);
}
.card-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 10px; display: grid; place-items: center;
  background: #f6e7dc; color: var(--accent); margin-bottom: 1.1rem;
}
.card-icon svg { width: 1.4rem; height: 1.4rem; }
.card p { color: var(--muted); }
.card > a { font-weight: 600; text-decoration: none; }
.card > a:hover { text-decoration: underline; }
.focus-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .95rem; }
.focus-list li { display: grid; grid-template-columns: 2rem 1fr; gap: .5rem; color: var(--text); line-height: 1.6; }
.focus-list .num { font-family: var(--serif); font-weight: 600; color: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #d7dde7; text-align: center; }
.cta-band h2 { color: #fff; max-width: 760px; margin-inline: auto; }
.cta-band p { max-width: 620px; margin: 0 auto 2rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.form { display: grid; gap: 1.2rem; }
.form-row { display: grid; gap: 1.2rem; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .35rem; font-size: .95rem; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  border: 1px solid #b9b0a1; border-radius: 8px; padding: .75rem .9rem;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgb(169 82 29 / 35%); border-color: var(--accent); }
.field-error { color: #b42318; font-size: .9rem; margin-top: .3rem; min-height: 0; }
.field [aria-invalid="true"] { border-color: #b42318; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem 1.2rem; border-radius: 8px; font-weight: 500; }
.form-status[hidden] { display: none; }
.form-status--ok { background: #e7f4ec; color: #14532d; border: 1px solid #a7d7b8; }
.form-status--error { background: #fdecea; color: #8a1c13; border: 1px solid #f2b8b0; }
.info-panel { background: var(--ink); color: #d7dde7; border-radius: var(--radius); padding: 2rem; }
.info-panel h2 { color: #fff; font-size: 1.5rem; }
.info-panel dl { margin: 0; display: grid; gap: 1.25rem; }
.info-panel dt { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-light); font-weight: 600; }
.info-panel dd { margin: .2rem 0 0; }
.info-panel a { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #0a1320; color: #aeb7c5; padding-block: 3.5rem 2rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .wordmark { color: #fff; }
.site-footer .wordmark span { color: var(--accent-light); }
.site-footer h2 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: #d7dde7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 10%); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .88rem; }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
