/* ===========================================================
   Biochar Concrete Solutions — site styles
   Theme colors (from logo):
     --charcoal : biochar black "B"
     --concrete : concrete gray "C"
     --sprout   : leaf green
   =========================================================== */

:root {
  --charcoal: #2B2F38;
  --charcoal-soft: #3a3f4a;
  --concrete: #C2C6C8;
  --concrete-light: #eef0f1;
  --sprout: #6E8B46;
  --sprout-dark: #5a7339;
  --sprout-darker: #47602c;
  --sprout-light: #88a45f;
  --ink: #23262d;
  --white: #ffffff;

  --maxw: 1320px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(43, 47, 56, 0.10);
  --shadow-lg: 0 14px 40px rgba(43, 47, 56, 0.16);
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--charcoal);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a { color: var(--sprout-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* Reusable section eyebrow label */
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sprout-dark);
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--sprout-dark);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--sprout-darker); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.btn-dark {
  background: var(--charcoal);
  color: var(--white);
}
.btn-dark:hover { background: var(--charcoal-soft); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--concrete);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--charcoal);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand:hover { text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand .brand-text { line-height: 1.15; transform: translateY(4px); }
.brand .brand-text small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sprout-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--charcoal);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--concrete-light); text-decoration: none; }
.nav-links a.active { color: var(--sprout-dark); }
.nav-links a.nav-cta {
  background: var(--sprout-dark);
  color: #fff;
  margin-left: 12px;
}
.nav-links a.nav-cta:hover { background: var(--sprout-darker); }

/* mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--charcoal);
  border-radius: 2px;
  transition: .2s;
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(43,47,56,0.92), rgba(43,47,56,0.78)),
    radial-gradient(circle at 80% 20%, rgba(110,139,70,0.35), transparent 55%);
  color: var(--white);
  padding: clamp(56px, 10vw, 110px) 0;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: #fff; }
.hero p.lead {
  font-size: 1.2rem;
  color: var(--concrete);
  max-width: 540px;
}
.hero .eyebrow { color: var(--sprout-light); margin-bottom: 14px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-art img {
  height: clamp(260px, 32vw, 380px);
  width: auto;
  /* nudge left by half the column gap so the logo centers in the open space */
  transform: translateX(-24px);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.45));
}

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section.alt { background: var(--concrete-light); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: #4d5460; font-size: 1.08rem; }

/* ---------- Feature / card grid ---------- */
.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--concrete);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sprout), var(--sprout-dark));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: #4d5460; margin: 0; }

/* ---------- Split / about content ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split .panel {
  background: var(--charcoal);
  color: var(--concrete);
  border-radius: var(--radius);
  padding: 40px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split .panel h3 { color: #fff; }
.split .panel .stat { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 12px; }
.split .panel .stat div { flex: 1; min-width: 120px; }
.split .panel .stat strong {
  display: block;
  font-size: 2rem;
  color: var(--sprout-light);
  line-height: 1.1;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--sprout-darker), var(--sprout-dark));
  color: #fff;
  text-align: center;
  padding: clamp(44px, 7vw, 72px) 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 24px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--concrete);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-card > p { color: #4d5460; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.field .optional { font-weight: 400; color: #6b7280; font-size: 0.85em; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--concrete);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  transition: border .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sprout);
  box-shadow: 0 0 0 3px rgba(110, 139, 70, 0.18);
}
/* spam honeypot — visually hidden, off-screen */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-result { margin-top: 14px; font-size: 0.95rem; font-weight: 600; min-height: 1.2em; }
.form-result.success { color: var(--sprout-dark); }
.form-result.error { color: #b3261e; }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--concrete);
}
.info-list li:last-child { border-bottom: 0; }
.info-list .ic {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--concrete-light);
  color: var(--sprout-dark);
  display: grid; place-items: center;
  font-size: 1.2rem;
}
.info-list .ic svg { width: 20px; height: 20px; }
.info-list strong { display: block; color: var(--charcoal); }
.info-list span, .info-list a { color: #4d5460; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--concrete);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--sprout-dark);
  border-bottom: 2px solid var(--sprout-dark);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--sprout-dark); }
.faq summary:focus-visible {
  outline: 2px solid var(--sprout-dark);
  outline-offset: 2px;
  border-radius: 6px;
}
.faq .faq-body { padding: 0 24px 22px; color: #4d5460; }
.faq .faq-body p { margin: 0; }

/* ---------- Page banner (sub-pages) ---------- */
.page-banner {
  background:
    linear-gradient(135deg, rgba(43,47,56,0.94), rgba(43,47,56,0.82)),
    radial-gradient(circle at 85% 15%, rgba(110,139,70,0.4), transparent 60%);
  color: #fff;
  padding: clamp(48px, 8vw, 80px) 0;
  text-align: center;
}
.page-banner h1 { color: #fff; margin-bottom: 10px; }
.page-banner p { color: var(--concrete); max-width: 620px; margin: 0 auto; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--concrete);
  padding: 52px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.site-footer a { color: var(--concrete); }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 48px; width: auto; }
.footer-brand span { color: #fff; font-weight: 700; transform: translateY(7px); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 36px;
  padding-top: 20px;
  font-size: 0.88rem;
  color: #9aa0aa;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero .hero-actions { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art img { transform: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--concrete);
    padding: 12px 24px 20px;
    gap: 4px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links a.nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
}

@media (max-width: 540px) {
  .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
}
