/* ============================================
   Client Engage — shared styles
   Palette derived from the logo: #006039
   ============================================ */

:root {
  --green:      #006039;
  --green-deep: #00432a;
  --green-ink:  #0d2b1e;
  --ivory:      #f6f4ee;
  --soft:       #e6e2d6;
  --copper:     #c56e33;
  --text:       #17251d;
  --text-muted: #4d5b53;
  --on-green:   #f3f1e9;
  --on-green-muted: rgba(243, 241, 233, 0.66);

  --display: "Cormorant Garamond", Georgia, serif;
  --body:    "Libre Baskerville", Baskerville, "Baskerville Old Face", Georgia, serif;

  --max: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

p, li, h1, h2, h3, a { overflow-wrap: break-word; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.narrow { max-width: 780px; }

/* ---------- The signature device: dial text ----------
   Tiny letterspaced caps, the way text is printed on a
   watch dial. Used for every section label on the site. */
.dial {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.dial::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}
.dial--center { justify-content: center; }
.dial--center::after { display: none; }
.dial--onGreen { color: rgba(197, 110, 51, 0.95); }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  color: var(--text-muted);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green);
  border-bottom: 1px solid rgba(243, 241, 233, 0.14);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
}
.brand {
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--on-green);
  text-decoration: none;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
}
.nav a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-green-muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav a:hover { color: var(--on-green); border-bottom-color: var(--copper); }
.nav a[aria-current="page"] { color: var(--on-green); border-bottom-color: var(--copper); }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 118px) 0; }
.section--tight { padding: clamp(48px, 6vw, 78px) 0; }
.section--green { background: var(--green); color: var(--on-green); }
.section--deep  { background: var(--green-deep); color: var(--on-green); }
.section--soft  { background: var(--soft); }
.section--green h2, .section--deep h2 { color: var(--on-green); }
.section--green p, .section--deep p { color: var(--on-green-muted); }

/* ---------- Hero ---------- */
.hero {
  background: var(--green);
  color: var(--on-green);
  padding: clamp(80px, 13vw, 168px) 0 clamp(64px, 10vw, 128px);
  position: relative;
  overflow: hidden;
}
/* faint concentric rings — a dial, way in the background */
.hero::after {
  content: "";
  position: absolute;
  right: -18%;
  top: 50%;
  transform: translateY(-50%);
  width: min(760px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 61%, rgba(243,241,233,0.05) 61.4%, transparent 62%),
    radial-gradient(circle, transparent 74%, rgba(243,241,233,0.05) 74.4%, transparent 75%),
    radial-gradient(circle, transparent 88%, rgba(197,110,51,0.14) 88.4%, transparent 89%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; text-align: center; }
.hero .dial { justify-content: center; }
.hero .dial::after { display: none; }
.hero h1 { max-width: 18ch; color: var(--on-green); margin-left: auto; margin-right: auto; }
.hero .actions { justify-content: center; }
.hero__sub {
  margin-top: 28px;
  margin-left: auto;
  margin-right: auto;
  max-width: 52ch;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  color: var(--on-green-muted);
  font-weight: 400;
  line-height: 1.6;
}

/* ---------- Buttons ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 32px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--copper);
  background: var(--copper);
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: #b0602b; border-color: #b0602b; }
.btn--ghost { background: transparent; color: var(--on-green); border-color: rgba(243,241,233,0.4); }
.btn--ghost:hover { background: rgba(243,241,233,0.1); border-color: var(--on-green); color: var(--on-green); }
.btn--dark { background: var(--green); border-color: var(--green); color: var(--on-green); }
.btn--dark:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn--outline { background: transparent; color: var(--green); border-color: rgba(0,96,57,0.4); }
.btn--outline:hover { background: var(--green); color: var(--on-green); border-color: var(--green); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(0,96,57,0.2);
}
.stat {
  padding: clamp(32px, 4vw, 48px) clamp(16px, 2.5vw, 34px);
  border-right: 1px solid rgba(0,96,57,0.2);
  border-bottom: 1px solid rgba(0,96,57,0.2);
}
.stat:last-child { border-right: none; }
.stat__num {
  font-family: var(--body);
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-size: clamp(2.7rem, 5.6vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--green);
  display: block;
}
.stat__label {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stats__note {
  margin-top: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Two column ---------- */
.cols {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

/* ---------- Service list ---------- */
.services {
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}
.services li {
  padding: 26px 0;
  border-top: 1px solid rgba(243,241,233,0.18);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(16px, 4vw, 48px);
  align-items: baseline;
}
.services li:last-child { border-bottom: 1px solid rgba(243,241,233,0.18); }
.services__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--on-green);
}
.services__desc { color: var(--on-green-muted); font-size: 1.02rem; }

/* ---------- Tags ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  padding: 0;
  list-style: none;
}
.tags li {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 1px solid rgba(0,96,57,0.28);
  color: var(--green);
}

/* ---------- Case study teaser ---------- */
.case {
  border-left: 2px solid var(--copper);
  padding-left: clamp(20px, 3vw, 38px);
}
.case__meta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 18px;
}

/* ---------- Article (case study page) ---------- */
.article h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 56px 0 18px;
}
.article h2:first-of-type { margin-top: 0; }
.article ul { padding-left: 20px; margin: 0 0 1.15em; }
.article li { margin-bottom: 10px; }
.pull {
  border-top: 1px solid rgba(0,96,57,0.25);
  border-bottom: 1px solid rgba(0,96,57,0.25);
  padding: 30px 0;
  margin: 44px 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  line-height: 1.28;
  color: var(--green);
}

/* ---------- Resources ---------- */
.resource-list { display: grid; gap: 0; }
.resource {
  display: grid;
  grid-template-columns: 175px 1fr auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding: 34px 0;
  border-top: 1px solid rgba(0,96,57,0.2);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}
.resource:last-child { border-bottom: 1px solid rgba(0,96,57,0.2); }
.resource:hover { background: rgba(0,96,57,0.04); }
.resource__kind {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
}
.resource__title { font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
.resource__desc { color: var(--text-muted); font-size: 1.02rem; margin-top: 10px; }
.resource__go { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); white-space: nowrap; }

.empty {
  border: 1px dashed rgba(0,96,57,0.35);
  padding: clamp(28px, 5vw, 48px);
  margin-top: 34px;
  color: var(--text-muted);
}

/* ---------- Contact ---------- */
.contact-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 44px;
}
.channel {
  display: block;
  padding: 30px;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  border: 1px solid rgba(243,241,233,0.28);
  text-decoration: none;
  color: var(--on-green);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.channel:hover { background: rgba(243,241,233,0.08); border-color: var(--copper); }
.channel__kind {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
}
.channel__name { font-family: var(--display); font-weight: 600; font-size: 2rem; margin-top: 14px; }
.channel__detail { font-size: 0.98rem; color: var(--on-green-muted); margin-top: 8px; overflow-wrap: anywhere; word-break: break-word; hyphens: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: var(--on-green-muted);
  padding: 56px 0 40px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.site-footer .brand { font-size: 1.6rem; }
.site-footer .tagline {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 10px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-green-muted);
}
.footer-nav a:hover { color: var(--on-green); }
.copyright {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(243,241,233,0.12);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; }
  .services li { grid-template-columns: 1fr; gap: 8px; }
  .resource { grid-template-columns: 1fr; gap: 8px; }
  .resource__go { display: none; }
}

@media (max-width: 620px) {
  .site-header__inner { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
  .nav { flex-wrap: wrap; gap: 18px; }
  .hero::after { opacity: 0.6; right: -40%; }
  .hero h1 { max-width: 100%; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
}
