/* Corchorus Global — Design System (v3 polished) */
:root {
  --linen: #F4EEE4;
  --bone: #FBF8F3;
  --bark: #3B2F25;
  --soil: #5A4636;
  --jute: #C8A97E;
  --golden: #B08850;
  --moss: #4F5D3A;
  --sprout: #8FA66B;
  --line: #E3D9CA;
  --radius: 4px;
  --max: 1280px;
  --section: 112px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--linen);
  color: var(--bark);
  line-height: 1.65;
  font-weight: 400;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* space for mobile CTA */
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--moss); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 2px;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--bark);
}
h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h3 { font-size: 1.65rem; }
.mono { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: 0.01em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.section { padding: var(--section) 0; }
.section-sm { padding: 80px 0; }
.bg-bone { background: var(--bone); }
.bg-moss { background: var(--moss); color: var(--linen); }
.bg-moss h2, .bg-moss h3 { color: var(--linen); }
.text-center { text-align: center; }
.lead { max-width: 680px; margin: 0 auto 64px; color: var(--soil); font-size: 1.08rem; }

/* Nav */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 238, 228, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
nav .inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--font-display); font-size: 1.45rem; color: var(--bark); text-decoration: none; font-weight: 500; }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { color: var(--bark); font-size: 0.92rem; text-decoration: none; }
.nav-links a:hover { color: var(--golden); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; border-radius: var(--radius); border: 1px solid transparent;
  font-size: 0.92rem; letter-spacing: 0.03em; cursor: pointer; transition: all 0.25s ease;
  font-family: inherit; text-decoration: none;
}
.btn-primary {
  background: var(--moss);
  color: var(--linen);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: #3e4a2e;
  color: var(--linen);
  text-decoration: none;
}
.btn-outline { background: transparent; color: var(--bark); border-color: var(--line); }
.btn-outline:hover { border-color: var(--jute); color: var(--golden); text-decoration: none; }
.btn-jute { background: var(--jute); color: var(--bark); }
.btn-jute:hover { background: var(--golden); text-decoration: none; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--bark); }
.lang-switch { font-size: 0.85rem; color: var(--soil); }
.lang-switch a { margin: 0 6px; color: var(--soil); }

/* Hero */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  overflow: hidden; color: var(--linen);
}
.hero-media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.38) saturate(0.8);
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26, 20, 15, 0.35) 0%, rgba(26, 20, 15, 0.55) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 820px; padding: 80px 32px; }
.hero h1 { color: var(--linen); margin-bottom: 20px; }
.hero .sub { font-size: 1.15rem; margin-bottom: 36px; max-width: 560px; opacity: 0.95; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.stagger > * { opacity: 0; transform: translateY(24px); animation: rise 0.8s ease forwards; }
.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.25s; }
.stagger > *:nth-child(3) { animation-delay: 0.4s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* Trust strip */
.trust-strip {
  background: var(--moss); color: var(--linen); overflow: hidden; padding: 16px 0;
  white-space: nowrap; border-bottom: 1px solid rgba(244,238,228,0.1);
}
.trust-track { display: inline-flex; animation: marquee 32s linear infinite; }
.trust-track span { padding: 0 42px; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.card {
  background: var(--bone); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(59, 47, 37, 0.08); }
.card img { width: 100%; height: 280px; object-fit: cover; transition: transform 0.6s ease; }
.card:hover img { transform: scale(1.06); }
.card-body { padding: 28px; }
.card h3 { margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip { background: var(--linen); color: var(--soil); font-size: 0.78rem; padding: 4px 10px; border-radius: 20px; font-family: var(--font-mono); }
.card-link { position: absolute; inset: 0; z-index: 1; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; }
.timeline::before {
  content: ''; position: absolute; top: 28px; left: 8%; right: 8%; height: 2px; background: var(--line);
}
.step { text-align: center; padding: 0 8px; position: relative; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%; background: var(--moss); color: var(--linen);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
  font-family: var(--font-mono); font-size: 1rem; position: relative; z-index: 1;
}
.step h4 { margin-bottom: 6px; }

/* Comparison */
.comp-table td, .comp-table th { text-align: center; }
.comp-table td:first-child, .comp-table th:first-child { text-align: left; }
.check { color: var(--sprout); font-weight: 600; }
.cross { color: #b85c38; font-weight: 600; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 20px 0;
  font-size: 1.05rem; color: var(--bark); cursor: pointer; display: flex; justify-content: space-between;
  font-family: inherit;
}
.faq-q::after { content: '+'; font-size: 1.3rem; }
.faq-item.open .faq-q::after { content: '–'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; color: var(--soil); }
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 18px; }

/* Editorial */
.editorial { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.editorial img { height: 480px; object-fit: cover; border-radius: var(--radius); }
.pull-quote {
  font-family: var(--font-display); font-size: 1.8rem; font-style: italic; line-height: 1.25;
  color: var(--bark); margin: 24px 0; border-left: 3px solid var(--jute); padding-left: 20px;
}

/* Forms */
.form-box { max-width: 760px; margin: 0 auto; background: var(--bone); padding: 48px; border: 1px solid var(--line); border-radius: var(--radius); }
form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: block; margin-bottom: 6px; font-size: 0.85rem; color: var(--soil); font-weight: 500; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); background: var(--linen);
  border-radius: 2px; font-family: inherit; font-size: 0.96rem; color: var(--bark);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--jute); }
input.error, select.error { border-color: #b85c38; }
.error-msg { color: #b85c38; font-size: 0.8rem; margin-top: 4px; display: none; }
textarea { min-height: 120px; resize: vertical; }
.note { font-size: 0.85rem; color: var(--soil); text-align: center; margin-top: 12px; }
.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success.show { display: block; }

/* Footer */
footer { background: var(--bark); color: #E3D9CA; padding: 72px 0 32px; font-size: 0.94rem; }
footer a { color: #E3D9CA; }
footer a:hover { color: var(--jute); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(227,217,202,0.15); text-align: center; font-size: 0.82rem; opacity: 0.85; }
.credits { margin-top: 8px; font-size: 0.78rem; }

/* Mobile CTA */
.mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--moss); padding: 14px 20px; text-align: center;
}
.mobile-cta a { color: var(--linen); font-weight: 500; text-decoration: none; }

/* Reveal */
section.reveal, .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.parallax { transition: transform 0.1s linear; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-media, .trust-track, .stagger > * { transition: none !important; animation: none !important; transform: none !important; opacity: 1 !important; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--linen); flex-direction: column; padding: 24px; gap: 18px; border-bottom: 1px solid var(--line); }
  .nav-links.active { display: flex; }
  .menu-toggle { display: block; }
  .grid-2, .editorial, .timeline, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .section { padding: 80px 0; }
  .hero { min-height: 100vh; }
  .form-box { padding: 32px 20px; }
  .mobile-cta { display: block; }
  body { padding-bottom: 70px; }
}
@media (max-width: 600px) {
  .timeline { grid-template-columns: 1fr 1fr; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
}

/* v5 fixes */
.nav-links a.btn-primary, .nav-links a.btn.btn-primary { background: #4F5D3A; color: #F4EEE4; border-color: #4F5D3A; text-decoration: none; }
.nav-links a.btn-primary:hover { background: #3A4529; color: #FFFFFF; border-color: #3A4529; }
.nav-links a.btn-primary:focus-visible, .btn:focus-visible { outline: 3px solid #B8893E; outline-offset: 3px; }
.nav-links a:focus-visible { outline: 2px solid #4F5D3A; outline-offset: 3px; }
.step-icon { display: block; width: 44px; height: 44px; margin: 0 auto 10px; color: #4F5D3A; }
.step-icon svg { width: 100%; height: 100%; }
.error-msg:empty { display: none !important; }
.form-status { color: #9a4a2b; font-size: 0.9rem; text-align: center; min-height: 1.2em; }
.form-success:focus { outline: none; }

/* fixes 10 Oct */
footer h4, .site-footer h4, footer .footer-brand, footer h3 { color: #F4EEE4 !important; }
.request-lead, main .lead { margin-left:auto; margin-right:auto; text-align:center; }
