/* ==========================================================================
   GGT Solutions / Direction C "Light & approachable"
   Per Brand_Kit.md. Single source of truth for both pages.
   ========================================================================== */

:root {
  --bg: #F7F5F0;          /* warm off-white */
  --surface: #FFFFFF;     /* cards */
  --ink: #14201B;         /* forest ink */
  --teal: #0F6E56;        /* primary brand */
  --mint: #5DCAA5;        /* secondary accent (dark sections only) */
  --muted: #4A5853;       /* secondary copy */
  --hairline: #E3DFD6;    /* borders */

  --font-heading: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --measure: 42rem;
  --wide: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4.75rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.3125rem; font-weight: 500; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; } /* Inter 700 not loaded; brand caps weight at 600 */

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 0.875rem;
}

.muted { color: var(--muted); }

/* ---------- Layout ---------- */

.container { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
.measure { max-width: var(--measure); }

section { padding: 5.5rem 0; }
@media (max-width: 640px) { section { padding: 3.5rem 0; } }

/* Dark bands (max 2: thesis + governance) */
.band-dark { background: var(--ink); color: var(--bg); }
.band-dark .kicker { color: var(--mint); }
.band-dark a { color: var(--mint); }
.band-dark .muted { color: #B8C4BE; }

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

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--teal); color: var(--bg); border: 1px solid var(--teal); }
.btn-primary:hover { background: #0B5943; border-color: #0B5943; }

.btn-secondary { background: transparent; color: var(--teal); border: 1px solid var(--teal); }
.btn-secondary:hover { background: rgba(15, 110, 86, 0.08); }

.band-dark .btn-primary { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.band-dark .btn-primary:hover { background: #79D6B7; border-color: #79D6B7; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  max-width: var(--wide);
  margin: 0 auto;
}

.wordmark {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .mark { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
}
.nav-links a:not(.btn):hover { color: var(--teal); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink);
  cursor: pointer;
}

/* Mobile collapse is JS-gated: without JS, links stay visible */
@media (max-width: 860px) {
  .js .nav-toggle { display: block; }
  .js .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    padding: 0.5rem 1.5rem 1.25rem;
  }
  .js .nav-links.open { display: flex; }
  .js .nav-links li { padding: 0.625rem 0; }
  .js .nav-links .btn { margin-top: 0.5rem; text-align: center; }

  /* No-JS fallback: compact wrapped row */
  html:not(.js) .nav-links { flex-wrap: wrap; gap: 0.75rem 1rem; justify-content: flex-end; }
}

/* Static nav variant (subpages, e.g. privacy); never collapses */
.nav-links--static { display: flex !important; position: static !important; flex-direction: row !important; background: transparent !important; border: 0 !important; padding: 0 !important; }

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

.hero { padding: 7rem 0 6rem; }
@media (max-width: 640px) { .hero { padding: 4.5rem 0 3.5rem; } }

.hero h1 { max-width: 52rem; margin-bottom: 1.25rem; }
.hero .sub { font-size: 1.1875rem; color: var(--muted); max-width: var(--measure); margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Method ---------- */

.method-list { list-style: none; margin: 3rem 0 0; padding: 0; }

.method-step {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--hairline);
}
.method-step:last-child { border-bottom: 1px solid var(--hairline); }

.method-num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--teal);
  padding-top: 0.25rem;
  white-space: nowrap;
}

.method-step h3 { margin-bottom: 0.5rem; }
.method-step p { color: var(--muted); max-width: var(--measure); }

@media (max-width: 640px) {
  .method-step { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem 0; }
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 1.75rem;
}

.card h3 { margin-bottom: 0.625rem; }
.card p { color: var(--muted); font-size: 0.9875rem; margin-bottom: 0; }

.card .kicker { margin-bottom: 0.625rem; }

/* ---------- Governance ---------- */

.gov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem 2.5rem;
  margin-top: 3rem;
}

.gov-item h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; color: var(--bg); }
.gov-item h3::before { content: "/ "; color: var(--mint); }
.gov-item p { color: #B8C4BE; font-size: 0.9875rem; margin: 0; }

/* ---------- ICP ---------- */

.icp-block {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
}
.icp-block + .icp-block { margin-top: 1.25rem; }
.icp-block h3 { margin-bottom: 0.625rem; }
.icp-block p { color: var(--muted); margin-bottom: 0; }

/* ---------- About ---------- */

.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; margin-top: 2.5rem; max-width: 56rem; }
.person { border-top: 2px solid var(--teal); padding-top: 1rem; }
.person h3 { margin-bottom: 0.25rem; }
.person .role { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--teal); display: block; margin-bottom: 0.625rem; }
.person p { color: var(--muted); font-size: 0.9875rem; margin: 0; }

/* ---------- FAQ ---------- */

.faq-list { margin-top: 2.5rem; max-width: 52rem; }

.faq-list details {
  border-top: 1px solid var(--hairline);
  padding: 0;
}
.faq-list details:last-child { border-bottom: 1px solid var(--hairline); }

.faq-list summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.0625rem;
  padding: 1.25rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  content: "+" / ""; /* alt-text syntax: decorative, hidden from screen readers */
  font-family: var(--font-mono);
  color: var(--teal);
  flex-shrink: 0;
}
.faq-list details[open] summary::after { content: "–"; content: "–" / ""; }

.faq-list details p { color: var(--muted); padding: 0 0 1.5rem; max-width: var(--measure); }

/* ---------- Contact ---------- */

.contact { text-align: center; }
.contact h2 { margin-bottom: 1rem; }
.contact .sub { color: var(--muted); max-width: 36rem; margin: 0 auto 2rem; }
.contact-email {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
}

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

.footer { border-top: 1px solid var(--hairline); padding: 2.5rem 0; }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.875rem; }
.footer-links a:hover { color: var(--teal); }

.footer-meta { font-size: 0.875rem; color: var(--muted); }

/* ---------- Prose page (privacy) ---------- */

.prose { max-width: var(--measure); }
.prose h1 { font-size: clamp(1.875rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
.prose h2 { font-size: 1.375rem; margin-top: 2.5rem; }
.prose .updated { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); display: block; margin-bottom: 2rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.25rem; }

/* ---------- Motion ---------- */

/* JS-gated: without JS, content is fully visible */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

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

/* ---------- A11y ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.band-dark :focus-visible { outline-color: var(--mint); }
