/* ==========================================================================
   Biz Lift Local — design system
   Palette (from logo): ink navy, teal, mid teal, light teal, off-white
   Type: Bricolage Grotesque (display) / Instrument Sans (body) / Spline Sans Mono (labels)
   ========================================================================== */

/* Self-hosted fonts (moved off Google Fonts CDN for page-speed — see [[build-deploy]]) */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('../assets/fonts/bricolage-grotesque.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/instrument-sans.woff2') format('woff2');
}

@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/spline-sans-mono.woff2') format('woff2');
}

:root {
  /* Raw palette — brand (from logo) */
  --ink: #202838;
  --teal: #1f8088;
  --teal-mid: #3098a0;
  --teal-light: #90d0d0;

  /* Raw palette — accent (warm counterpoint, used sparingly) */
  --amber: #e8a33d;
  --amber-deep: #cf8c26;
  --amber-tint: #fdf3e2;

  /* Neutrals scale (blue-tinted to harmonise with the navy) */
  --n-900: #202838;
  --n-700: #4a5468;
  --n-400: #9aa3b5;
  --n-200: #dde1e8;
  --n-50: #f8f8f8;

  /* Semantic tokens — reference these in components, not raw colours */
  --text: var(--n-900);
  --text-soft: var(--n-700);
  --bg: var(--n-50);
  --surface: #ffffff;
  --surface-tint: #e6f2f2;
  --border: rgba(32, 40, 56, 0.08);
  --link: var(--teal);
  --cta: var(--amber);
  --cta-hover: var(--amber-deep);
  --cta-text: var(--n-900);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius: 10px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); }

:focus-visible {
  outline: 3px solid var(--teal-mid);
  outline-offset: 2px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* --- Typography ---------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-soft);
  max-width: 34em;
}

/* Audit-style mono label — the signature device */
.tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

/* --- Lift line divider (from the logo's rising arrow) -------------------- */

.lift-line {
  border: none;
  height: 28px;
  margin: 0 auto;
  max-width: var(--maxw);
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1080 28" preserveAspectRatio="none"><path d="M0 24 C 400 24, 800 22, 1020 8 L 1080 4" fill="none" stroke="%231f8088" stroke-width="2.5" stroke-linecap="round"/></svg>') no-repeat center / 100% 100%;
  opacity: 0.55;
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 248, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(32, 40, 56, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.wordmark span { color: var(--teal); }

.site-nav ul {
  display: flex;
  gap: var(--space-3);
  list-style: none;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.97rem;
}
.site-nav a:hover { color: var(--teal); }
.site-nav a[aria-current="page"] {
  color: var(--teal);
  border-bottom: 2px solid var(--teal-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1);
}
.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.8em 1.6em;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--cta);
  color: var(--cta-text);
}
.btn-primary:hover { background: var(--cta-hover); transform: translateY(-2px); }

.btn-ghost {
  color: var(--teal);
  border: 2px solid var(--teal-light);
}
.btn-ghost:hover { border-color: var(--teal); }

.btn-nav {
  background: var(--cta);
  color: var(--cta-text) !important;
  padding: 0.5em 1.1em;
  border-radius: var(--radius);
  font-size: 0.92rem;
}
.btn-nav:hover { background: var(--cta-hover); color: var(--cta-text); }

/* --- Hero ------------------------------------------------------------------ */

.hero {
  padding: var(--space-5) 0 var(--space-6);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-5);
  align-items: center;
}

.hero h1 { margin: var(--space-2) 0 var(--space-3); }

.hero-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin: var(--space-4) 0 var(--space-3);
}

.hero-strip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}

.hero-logo {
  position: relative;
}

.hero-logo::before {
  content: "";
  position: absolute;
  inset: -15% -10%;
  z-index: -1;
  background:
    radial-gradient(circle at 70% 20%, rgba(232, 163, 61, 0.20), transparent 55%),
    radial-gradient(circle at 30% 75%, rgba(31, 128, 136, 0.16), transparent 55%);
  filter: blur(6px);
}

.hero-logo img {
  max-width: 340px;
  margin: 0 auto;
  position: relative;
}

/* --- Sections --------------------------------------------------------------- */

.section { padding: var(--space-6) 0; }
.section-tint { background: var(--surface-tint); }

.section-head { max-width: 40em; margin-bottom: var(--space-4); }
.section-head h2 { margin: var(--space-1) 0 var(--space-2); }

/* Findings — audit-report cards */
.findings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  list-style: none;
}

.finding {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.finding .tag { display: block; margin-bottom: var(--space-2); }
.finding h3 { margin-bottom: var(--space-1); }
.finding p { color: var(--text-soft); font-size: 0.97rem; }

/* Steps — how it works (a real sequence) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  list-style: none;
  counter-reset: step;
}

.step {
  counter-increment: step;
  padding: var(--space-3);
}

.step::before {
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--teal-light);
  display: block;
  margin-bottom: var(--space-1);
}

.step h3 { margin-bottom: var(--space-1); }
.step p { color: var(--text-soft); font-size: 0.97rem; }

/* Service blocks */
.service {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(32, 40, 56, 0.1);
}
.service:last-of-type { border-bottom: none; }

.service h2 { margin-top: var(--space-1); }

.service ul {
  list-style: none;
  margin-top: var(--space-2);
}
.service li {
  padding-left: 1.6em;
  position: relative;
  margin-bottom: 0.6em;
  color: var(--text-soft);
}
.service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.9em;
  height: 0.5em;
  border-left: 2.5px solid var(--teal);
  border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg);
}

.good-for {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text);
  background: var(--amber-tint);
  border-left: 3px solid var(--amber);
  padding: 0.5em 0.9em;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #ffffff;
  text-align: center;
  padding: var(--space-6) 0;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 120%, rgba(232, 163, 61, 0.22), transparent 45%);
  pointer-events: none;
}

.cta-band .container { position: relative; }
.cta-band h2 { color: #ffffff; margin-bottom: var(--space-2); }
.cta-band p { color: var(--teal-light); margin-bottom: var(--space-4); }

/* Prose pages (about) */
.prose { max-width: 42em; }
.prose p { margin-bottom: var(--space-3); color: var(--text-soft); }
.prose p strong { color: var(--text); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.contact-card h3 { margin-bottom: var(--space-2); }
.contact-card p { color: var(--text-soft); margin-bottom: var(--space-2); }

/* Form */
.form-hidden { position: absolute; left: -9999px; }

.field { margin-bottom: var(--space-3); }

.field label,
fieldset.field legend {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4em;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--n-200);
  border-radius: var(--radius);
  padding: 0.65em 0.9em;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--teal-mid);
  outline-offset: 1px;
}

fieldset.field {
  border: none;
  padding: 0;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 400 !important;
  font-size: 0.97rem !important;
  color: var(--text-soft);
  margin-bottom: 0.5em;
}

.checkbox input[type="checkbox"] {
  width: 1.05em;
  height: 1.05em;
  accent-color: var(--teal);
}

form .btn-primary {
  border: none;
  cursor: pointer;
  width: 100%;
}

/* --- Footer ------------------------------------------------------------------ */

.site-footer {
  background: var(--ink);
  color: var(--teal-light);
  padding: var(--space-5) 0;
  font-size: 0.95rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.site-footer a { color: #ffffff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.site-footer ul { list-style: none; display: flex; gap: var(--space-3); }

/* --- Reveal animation ---------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-primary:hover { transform: none; }
}

/* --- Mobile -------------------------------------------------------------------- */

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid rgba(32, 40, 56, 0.1);
    display: none;
    padding: var(--space-2) var(--space-3) var(--space-3);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: var(--space-2); }

  .hero { padding: var(--space-4) 0; }
  .hero .container { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 200px; margin: 0; }

  .findings, .steps { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; gap: var(--space-2); }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: var(--space-5) 0; }
}
