/* Biocement — design tokens & layout */

:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --ink: #22251f;
  --muted: #5f6459;
  --faint: #94998c;
  --line: #e5e1d5;
  --green: #2e5d43;
  --green-dark: #1f4230;
  --green-tint: #e8eee6;
  --coffee: #7d5f44;
  --coffee-tint: #f1e9de;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(34, 37, 31, 0.06);
  --shadow-md: 0 10px 30px rgba(34, 37, 31, 0.08);
  --maxw: 1140px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: pretty;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { text-decoration: none; }
.wordmark .mark {
  width: 28px; height: 28px;
  border-radius: 5px;
  background: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
}
.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  padding: 5px 12px;
  cursor: pointer;
}
.lang-switch button.active {
  background: var(--ink);
  color: var(--surface);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  min-height: 44px;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); text-decoration: none; }

/* Sections */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tint { background: var(--green-tint); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 620px; }
.muted { color: var(--muted); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 88px);
}
.hero-copy { max-width: 620px; }
.hero-copy .lead { margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 400px; height: auto; }

/* Numbered list */
.numlist { list-style: none; margin: 0; padding: 0; }
.numlist li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.numlist li:last-child { border-bottom: 1px solid var(--line); }
.numlist .n {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--green);
}
.numlist h3 { margin: 0 0 4px; }
.numlist p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

/* Points (divided list) */
.points { list-style: none; margin: 0; padding: 0; }
.points li { padding: 18px 0; border-top: 1px solid var(--line); }
.points li:first-child { border-top: 0; }
.points h3 { margin: 0 0 4px; }
.points p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Band */
.band {
  background: var(--coffee-tint);
  border-radius: 14px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.band .band-copy { max-width: 640px; }
.band h2 { margin-bottom: 8px; }
.band p { margin: 0; color: var(--muted); }
.band a { font-weight: 600; white-space: nowrap; }

/* CTA */
.cta { text-align: left; }
.cta h2 { max-width: 620px; }
.cta p { color: var(--muted); max-width: 560px; }

/* Product rows */
.product-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--line);
}
.product-row:last-child { border-bottom: 1px solid var(--line); }
.product-visual {
  aspect-ratio: 4/3;
  border-radius: 10px;
  background: var(--green-tint);
  display: flex; align-items: center; justify-content: center;
}
.product-visual svg { width: 70%; height: auto; }
.product-row h3 { font-size: 1.35rem; margin-bottom: 6px; }
.product-row .desc { color: var(--muted); }
.specs { list-style: none; margin: 14px 0 0; padding: 0; }
.specs li {
  font-size: 0.92rem;
  color: var(--muted);
  padding: 6px 0;
  border-top: 1px dashed var(--line);
  display: flex; gap: 10px;
}
.specs li:first-child { border-top: 0; }
.specs .k { font-weight: 600; color: var(--ink); min-width: 130px; }

/* Founder */
.founder {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(24px, 3.5vw, 40px);
  max-width: 720px;
}
.founder .label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green); margin-bottom: 8px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.contact-info h3 { margin: 18px 0 6px; }
.contact-info p { color: var(--muted); margin: 0; }
.contact-info a { color: var(--green); }

.form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 16px 0 6px;
}
.form input, .form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}
.form input:focus, .form textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}
.form textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.84rem; color: var(--faint); margin-top: 10px; }
.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--green-tint);
  border-radius: var(--radius);
  color: var(--green-dark);
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c9ccc2;
  padding: clamp(40px, 6vw, 64px) 0 32px;
  margin-top: 0;
}
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.site-footer .tagline { color: #a7aba0; font-size: 0.92rem; max-width: 300px; margin-top: 8px; }
.site-footer h4 {
  color: #fff; font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; font-size: 0.92rem; }
.site-footer a { color: #c9ccc2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.84rem; color: #8f948a;
}

/* Responsive */
@media (max-width: 860px) {
  .nav { display: none; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .product-row { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
