/* ---------- Reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --accent: #1B8A3D;
  --border: #e6e6e6;
  --bg: #ffffff;
  --max-w: 760px;
  --font-head: 'Caveat', cursive;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); font-weight: 600; }
h2 { font-size: clamp(2.2rem, 5.5vw, 3rem); font-weight: 700; margin-bottom: 1.2rem; }
h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.4rem; }
h4 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.3rem; }

p { margin-bottom: 1rem; color: var(--ink-soft); }

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

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

ul { list-style: none; }

/* ---------- Layout ---------- */
.section { position: relative; overflow: hidden; padding: 5.5rem 1.5rem; border-bottom: 1px solid var(--border); scroll-margin-top: 8rem; }
.section:last-of-type { border-bottom: none; }
.section-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 2; }

/* ---------- Disclaimer overlay ---------- */
.disclaimer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  transition: opacity 0.25s ease;
}
.disclaimer-overlay[hidden] { display: none; }
.disclaimer-box {
  background: #fff;
  border-radius: 6px;
  max-width: 440px;
  width: 100%;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.disclaimer-box p {
  color: var(--ink);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
}
.disclaimer-box .btn { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0.5rem 1.5rem 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
}

.logo-link { display: flex; align-items: center; }
.logo { width: 110px; height: 110px; }

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 110px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.lang-active { color: var(--ink); }
.lang-sep { color: var(--border); }
.lang-disabled { color: #bbb; cursor: default; }

.nav-toggle {
  width: 34px; height: 34px;
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  z-index: 110;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(280px, 80vw);
  height: 100vh;
  background: var(--bg);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 6rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 105;
}
.nav-menu.open { transform: translateX(0); box-shadow: -8px 0 24px rgba(0,0,0,0.06); }

.nav-menu a {
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.nav-menu a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Ink decoration ---------- */
.ink-corner { position: absolute; width: 380px; max-width: 42vw; opacity: 1; z-index: 1; pointer-events: none; }
.ink-corner-tr { top: 140px; right: -10px; }
.ink-corner-bl { bottom: -20px; left: -70px; }
.ink-corner-tl { top: -40px; left: -70px; }
.ink-corner-br { bottom: -60px; right: -70px; }
.ink-corner-flip { transform: scaleX(-1); }

@media (max-width: 900px) {
  .ink-corner { width: 240px; opacity: 0.9; }
}

.ink-line { width: 100%; max-width: 320px; margin: -0.4rem 0 1.6rem; opacity: 0.85; }

.subheading-row { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.4rem; }
.ink-line-v { width: 14px; height: 44px; object-fit: cover; opacity: 0.85; }
.subheading-row h3 { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero { padding-top: 8.5rem; }
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-kicker {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--accent);
  margin: -0.4rem 0 1.2rem;
}
.lede { font-size: 1.1rem; max-width: 620px; }

.pillars { margin: 1.8rem 0 2.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.pillars li {
  padding-left: 1.3rem;
  position: relative;
  color: var(--ink);
  font-weight: 500;
}
.pillars li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-download { background: var(--accent); color: #fff; font-size: 0.85rem; padding: 0.6rem 1.1rem; }

/* ---------- Chain ---------- */
.chain-intro { font-size: 1.05rem; margin-bottom: 2.5rem; }
.chain-links { display: flex; flex-direction: column; gap: 2.2rem; }
.chain-link { padding-bottom: 2.2rem; border-bottom: 1px solid var(--border); }
.chain-link:last-child { border-bottom: none; padding-bottom: 0; }
.what-we-do { color: var(--ink); }
.what-we-do strong { color: var(--accent); }

.download-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.2rem; }
.download-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 6px; padding: 1.4rem; }
.download-links { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.8rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; margin-bottom: 2.5rem; }
.no-pricing { font-style: italic; color: var(--ink-soft); }

/* ---------- Insights ---------- */
.insights-intro { max-width: 560px; }
.insights-list { display: flex; flex-direction: column; gap: 0.2rem; margin: 1.5rem 0 3rem; }
.insight-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-weight: 500;
}
.insight-item:hover { color: var(--accent); text-decoration: none; }

.faq-heading { margin-bottom: 1rem; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.1rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-question[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p { padding-bottom: 1.1rem; }

/* ---------- Contact ---------- */
.contact-lede { max-width: 560px; margin-bottom: 2.5rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; max-width: 480px; margin-bottom: 3rem; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--ink);
  background: #fff;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-form button { align-self: flex-start; margin-top: 0.4rem; }

.direct-contact { display: flex; flex-direction: column; gap: 0.5rem; font-weight: 500; }
.direct-contact a { color: var(--ink); }
.alt-email { color: var(--ink-soft); font-weight: 400; font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: 3rem 1.5rem 2.5rem; overflow: hidden; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 2; text-align: center; }
.footer-tagline { font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; color: var(--ink); margin-bottom: 1rem; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); font-size: 0.85rem; }
.footer-copy { font-size: 0.8rem; color: #999; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .download-cards { grid-template-columns: 1fr; }
  .ink-corner { width: 140px; }
  .section { padding: 4rem 1.25rem; }
  .cta-row { flex-direction: column; align-items: flex-start; }
}
