/* ==========================================================================
   Circular Momentum — Design System (2026 rebuild)
   One stylesheet. No Bootstrap, no icon fonts, no jQuery.
   ========================================================================== */

:root {
  --green: #0B563F;
  --green-dark: #07392A;
  --green-soft: #EAF2EE;
  --gold: #C9A94E;
  --ink: #1B2420;
  --muted: #5C6A63;
  --bg: #FBFAF7;
  --alt: #F2F0E9;
  --card: #FFFFFF;
  --line: #E5E2D9;
  --radius: 16px;
  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(27, 36, 32, .05), 0 8px 24px rgba(27, 36, 32, .06);
}

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

html { scroll-behavior: auto !important; } /* natural scrolling; no forced smooth */

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5 { line-height: 1.15; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

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

::selection { background: var(--gold); color: var(--green-dark); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--green); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Layout ----------------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.sec { padding-block: clamp(56px, 9vw, 104px); }
.sec.alt { background: var(--alt); }
.sec.dark { background: linear-gradient(150deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; }
.sec.dark h2, .sec.dark h3 { color: #fff; }
.sec.tight { padding-block: clamp(40px, 6vw, 64px); }

.center { text-align: center; }
.narrow { max-width: 46rem; margin-inline: auto; }

.grid { display: grid; gap: clamp(18px, 2.5vw, 28px); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: 1.15fr .85fr; align-items: center; }
.split.rev { grid-template-columns: .85fr 1.15fr; }

@media (max-width: 900px) {
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .split, .split.rev { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
}

/* Text helpers ------------------------------------------------------------ */
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .9rem;
}
.sec.dark .eyebrow { color: var(--gold); }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); }
.sec.dark .lead, .sec.dark p { color: rgba(255, 255, 255, .85); }

.small { font-size: .92rem; }
.muted { color: var(--muted); }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--green);
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: var(--green-soft); color: var(--green-dark); }
.btn.light { background: #fff; border-color: #fff; color: var(--green-dark); }
.btn.light:hover { background: var(--gold); border-color: var(--gold); }
.btn.outline-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn.outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header ------------------------------------------------------------------ */
.cm-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 247, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.cm-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green); font-weight: 700; font-size: 1.15rem; }
.brand img { height: 36px; width: auto; }

.cm-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); list-style: none; margin: 0; padding: 0; }
.cm-nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.cm-nav a:hover { color: var(--green); }
.cm-nav a.active { color: var(--green); border-bottom-color: var(--gold); }
.cm-nav .nav-cta { border: 2px solid var(--green); border-radius: 999px; padding: .45rem 1.1rem; color: var(--green); font-weight: 600; }
.cm-nav .nav-cta:hover { background: var(--green); color: #fff; }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--green-dark); margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 880px) {
  .burger { display: block; }
  .cm-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .cm-nav a { padding: .9rem 24px; border-bottom: 1px solid var(--line); }
  .cm-nav .nav-cta { border: 0; border-radius: 0; }
  .cm-header.open .cm-nav { max-height: 480px; }
  .cm-header.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .cm-header.open .burger span:nth-child(2) { opacity: 0; }
  .cm-header.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero -------------------------------------------------------------------- */
.hero { background: linear-gradient(150deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; padding-block: clamp(72px, 11vw, 140px); }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lead { color: rgba(255, 255, 255, .85); max-width: 52ch; }
.hero .eyebrow { color: var(--gold); }

.page-hero { background: linear-gradient(150deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; padding-block: clamp(60px, 9vw, 110px); }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255, 255, 255, .85); max-width: 56ch; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.4rem 0 2rem; padding: 0; list-style: none; }
.chips li {
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px; padding: .4rem 1rem;
  font-size: .88rem; font-weight: 500; color: rgba(255, 255, 255, .92);
}

/* Cards ------------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow);
}
.card.link { position: relative; transition: transform .18s ease, box-shadow .18s ease; }
.card.link:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(27,36,32,.06), 0 16px 36px rgba(27,36,32,.10); }
.card.link a.cover::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card.link a.cover { text-decoration: none; color: inherit; }
.card h3 a { color: inherit; text-decoration: none; }

.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }

.sec.dark .card { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); box-shadow: none; color: #fff; }

/* Lists ------------------------------------------------------------------- */
.check-list, .dash-list, .x-list { list-style: none; margin: 0 0 1em; padding: 0; }
.check-list li, .dash-list li, .x-list li { position: relative; padding-left: 1.7em; margin-bottom: .65em; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--green); }
.sec.dark .check-list li::before { color: var(--gold); }
.dash-list li::before { content: "\2013"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--gold); }
.x-list li::before { content: "\2013"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--muted); }

/* Stats ------------------------------------------------------------------- */
.stat { text-align: center; }
.stat .num { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; color: var(--gold); line-height: 1.1; }
.stat .label { font-size: .95rem; color: rgba(255, 255, 255, .82); max-width: 30ch; margin-inline: auto; }
.sec:not(.dark) .stat .num { color: var(--green); }
.sec:not(.dark) .stat .label { color: var(--muted); }

/* Quote ------------------------------------------------------------------- */
.pullquote {
  border-left: 4px solid var(--gold);
  padding-left: 1.4rem;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-style: italic;
  color: var(--ink);
  max-width: 60ch;
}
.pullquote cite { display: block; margin-top: .8rem; font-style: normal; font-size: .95rem; color: var(--muted); }

.testimonial { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.testimonial blockquote { margin: 0; font-size: 1rem; color: var(--ink); }
.testimonial .who { margin-top: auto; font-size: .92rem; }
.testimonial .who strong { display: block; color: var(--ink); }
.testimonial .who span { color: var(--muted); }

/* Logos ------------------------------------------------------------------- */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: center; }
.logos img {
  margin-inline: auto; max-height: 52px; width: auto;
  filter: grayscale(1); opacity: .65; transition: filter .2s ease, opacity .2s ease;
}
.logos img:hover { filter: none; opacity: 1; }
@media (max-width: 760px) { .logos { grid-template-columns: repeat(2, 1fr); } }

/* Steps ------------------------------------------------------------------- */
.step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  font-weight: 800; font-size: 1.1rem; margin-bottom: .9rem;
}

/* Team -------------------------------------------------------------------- */
.person { text-align: center; }
.person img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; }
.person .role { color: var(--gold); font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }

/* Timeline ---------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.8rem 1.6rem; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: .35rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--bg);
}
.timeline .when { font-weight: 700; color: var(--green); font-size: .92rem; letter-spacing: .04em; }

/* Publications ------------------------------------------------------------ */
.pub { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.pub .meta { font-size: .85rem; color: var(--muted); white-space: nowrap; }

/* Forms (styles whatever the form plugin outputs) -------------------------- */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; padding: .8rem 1rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font: inherit; color: var(--ink);
  margin-bottom: 1rem;
}
input:focus, textarea:focus, select:focus { border-color: var(--green); outline: 2px solid var(--green-soft); }
form button, form input[type="submit"] {
  padding: .8rem 1.6rem; border-radius: 999px; border: 2px solid var(--green);
  background: var(--green); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
form button:hover, form input[type="submit"]:hover { background: var(--green-dark); }
label { font-weight: 600; font-size: .95rem; display: block; margin-bottom: .35rem; }

/* FAQ (native details/summary — no JS needed) ------------------------------ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.3rem; margin-bottom: .9rem; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 0; font-weight: 700; color: var(--gold); font-size: 1.2rem; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: .8rem 0 0; color: var(--muted); }

/* Contact info ------------------------------------------------------------- */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { margin-bottom: 1rem; }
.info-list .k { font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); display: block; }

/* Footer -------------------------------------------------------------------- */
.cm-footer { background: var(--green-dark); color: rgba(255, 255, 255, .8); padding-block: clamp(48px, 7vw, 72px) 28px; font-size: .95rem; }
.cm-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.cm-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.cm-footer a:hover { color: var(--gold); }
.cm-footer ul { list-style: none; margin: 0; padding: 0; }
.cm-footer li { margin-bottom: .55rem; }
.cm-footer .brandline { color: #fff; font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; margin-bottom: .8rem; }
.cm-footer .brandline img { height: 32px; }
.cm-footer .foot-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { .cm-footer .foot-grid { grid-template-columns: 1fr; } }
.cm-footer .legal { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 40px; padding-top: 20px; font-size: .85rem; color: rgba(255, 255, 255, .55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Scroll reveal (subtle, respects reduced motion) --------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
  .rv.in { opacity: 1; transform: none; }
}

/* ==========================================================================
   Contact Form Toggle Pro compatibility
   The form plugin outputs Bootstrap-style classes; these rules replace the
   Bootstrap behaviour it expects (grid, checkbox row, validation messages).
   ========================================================================== */
.contact-card .row { display: grid; gap: 0 1.25rem; grid-template-columns: 1fr 1fr; }
.contact-card .row > * { grid-column: 1 / -1; min-width: 0; }
.contact-card .col-md-6 { grid-column: auto; }
@media (max-width: 640px) { .contact-card .row { grid-template-columns: 1fr; } }

.form-label { font-weight: 600; font-size: .95rem; display: block; margin-bottom: .35rem; }

.form-check { display: flex; align-items: flex-start; gap: .6rem; margin: 1rem 0; }
.form-check-input { width: auto; margin: .3rem 0 0; }
.form-check-label { font-weight: 400; font-size: .95rem; color: var(--muted); }

/* Validation messages: hidden until the JS adds .was-validated */
.invalid-feedback { display: none; color: #B3261E; font-size: .85rem; margin: -.6rem 0 1rem; }
.was-validated input:invalid,
.was-validated textarea:invalid,
.was-validated select:invalid { border-color: #B3261E; }
.was-validated input:invalid ~ .invalid-feedback,
.was-validated textarea:invalid ~ .invalid-feedback,
.was-validated select:invalid ~ .invalid-feedback { display: block; }

.contact-form-disabled { padding: 1rem; background: var(--alt); border-radius: 10px; color: var(--muted); }
