/* ============================================================
   CMS — Check Management Services
   Corporate website styles
   Brand colors: #1A6C22 primary · #DFE3D1 support light · #0D3B18 support dark
   Typography: Figtree (self-hosted)
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-VariableFont_wght.ttf") format("truetype-variations"),
       url("../fonts/Figtree-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-Italic-VariableFont_wght.ttf") format("truetype-variations"),
       url("../fonts/Figtree-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --cms-green:       #1A6C22;
  --cms-green-dark:  #0D3B18;
  --cms-cream:       #DFE3D1;
  --cms-cream-soft:  #EEF1E7;
  --cms-white:       #FFFFFF;
  --cms-black:       #0A0F0B;
  --cms-ink:         #14201A;
  --cms-muted:       #5B6B61;
  --cms-border:      #D7DED1;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(13, 59, 24, 0.06), 0 1px 3px rgba(13, 59, 24, 0.04);
  --shadow:    0 6px 16px rgba(13, 59, 24, 0.08), 0 2px 4px rgba(13, 59, 24, 0.04);
  --shadow-lg: 0 20px 40px rgba(13, 59, 24, 0.12), 0 8px 16px rgba(13, 59, 24, 0.06);

  --container: 1200px;
  --transition: 180ms cubic-bezier(.2,.8,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cms-ink);
  background: var(--cms-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--cms-green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cms-green-dark); }

h1, h2, h3, h4 {
  margin: 0 0 .4em;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--cms-ink);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .85em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--cms-green);
  color: var(--cms-white);
}
.btn-primary:hover {
  background: var(--cms-green-dark);
  color: var(--cms-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--cms-green);
  border-color: var(--cms-green);
}
.btn-outline:hover {
  background: var(--cms-green);
  color: var(--cms-white);
}
.btn-ghost-light {
  background: rgba(255,255,255,.12);
  color: var(--cms-white);
  border-color: rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
}
.btn-ghost-light:hover {
  background: var(--cms-white);
  color: var(--cms-green-dark);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--cms-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
}
.brand img {
  height: 38px;
  width: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--cms-ink);
  font-weight: 500;
  font-size: .96rem;
  transition: background var(--transition), color var(--transition);
}
.site-nav a:hover { background: var(--cms-cream-soft); color: var(--cms-green-dark); }
.site-nav a.active { color: var(--cms-green); }
.site-nav a.active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--cms-green);
  margin-top: 4px;
  border-radius: 2px;
}
.header-cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  color: var(--cms-ink);
}
.nav-toggle svg { margin: auto; }

@media (max-width: 900px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  body.nav-open .site-nav {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--cms-white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--cms-border);
  }
  body.nav-open .header-cta { display: inline-flex; }
  body.nav-open .site-nav a { padding: 12px 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 10vw, 120px) 0 clamp(60px, 8vw, 100px);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(26,108,34,.08), transparent 70%),
    radial-gradient(900px 500px at -10% 30%, rgba(223,227,209,.5), transparent 65%),
    var(--cms-white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--cms-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--cms-border) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  opacity: .18;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cms-cream);
  color: var(--cms-green-dark);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-eyebrow::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cms-green);
}
.hero h1 { margin-top: 20px; }
.hero h1 em {
  font-style: normal;
  color: var(--cms-green);
  white-space: nowrap;
}
.hero-lede {
  font-size: 1.15rem;
  color: var(--cms-muted);
  max-width: 55ch;
  margin: 18px 0 28px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-attributes {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--cms-border);
  flex-wrap: wrap;
}
.hero-attributes li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--cms-green-dark);
}
.hero-attributes li::before {
  content: "";
  width: 18px; height: 18px;
  background: var(--cms-green);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9.55 17.05 4.5 12l1.41-1.41 3.64 3.63 8.54-8.54L19.5 7.1Z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9.55 17.05 4.5 12l1.41-1.41 3.64 3.63 8.54-8.54L19.5 7.1Z'/></svg>") center/contain no-repeat;
}

.hero-figure {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin-left: auto;
  background: linear-gradient(135deg, var(--cms-green) 0%, var(--cms-green-dark) 100%);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,.06), transparent 50%);
}
.hero-figure img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.2));
}
.hero-figure-tagline {
  position: absolute;
  left: 24px; right: 24px; bottom: 24px;
  color: var(--cms-cream);
  font-size: .9rem;
  font-style: italic;
  opacity: .9;
}
.hero-figure-tagline strong { font-weight: 700; font-style: italic; }

/* image variant — show photograph instead of logo on coloured square */
.hero-figure--image { background: var(--cms-green-dark); }
.hero-figure--image::after {
  /* re-enable but as a readable bottom-gradient over the photo */
  background:
    linear-gradient(180deg, rgba(13,59,24,.0) 45%, rgba(13,59,24,.6) 80%, rgba(13,59,24,.85) 100%),
    linear-gradient(135deg, rgba(26,108,34,.18), transparent 55%);
}
.hero-figure--image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  filter: none;
  z-index: 0;
}
.hero-figure--image .hero-figure-tagline {
  z-index: 2;
  color: var(--cms-white);
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
  opacity: 1;
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-figure { max-width: 340px; margin: 0 auto; }
}

/* ---------- Sections ---------- */
section { padding: clamp(60px, 8vw, 100px) 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--cms-green);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head p {
  color: var(--cms-muted);
  max-width: 62ch;
  margin: 0 auto;
  font-size: 1.05rem;
}

.alt-bg { background: var(--cms-cream-soft); }
.dark-bg {
  background: var(--cms-green-dark);
  color: var(--cms-cream);
}
.dark-bg h2, .dark-bg h3 { color: var(--cms-white); }
.dark-bg .section-head p { color: rgba(223,227,209,.85); }
.dark-bg .section-head .eyebrow { color: var(--cms-cream); }

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--cms-white);
  border: 1px solid var(--cms-border);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--cms-green);
}
.service-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--cms-cream);
  color: var(--cms-green-dark);
  display: grid; place-items: center;
  margin-bottom: 8px;
}
.service-card .icon svg { width: 26px; height: 26px; }
.service-card h3 { margin: 0; }
.service-card p { color: var(--cms-muted); margin: 0; flex: 1; }
.service-card .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.service-card .order-now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--cms-green);
  color: var(--cms-white);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .03em;
}
.service-card .order-now:hover { background: var(--cms-green-dark); color: var(--cms-white); }
.service-card .more {
  font-weight: 600;
  font-size: .9rem;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat .num {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cms-white);
  line-height: 1;
}
.stat .label {
  display: block;
  margin-top: 8px;
  color: var(--cms-cream);
  font-size: .95rem;
}

/* ---------- Global presence ---------- */
.locations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.location {
  padding: 20px 22px;
  background: var(--cms-white);
  border: 1px solid var(--cms-border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.location:hover { border-color: var(--cms-green); }
.location .city { font-weight: 700; color: var(--cms-ink); }
.location .region { color: var(--cms-muted); font-size: .9rem; margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--cms-green) 0%, var(--cms-green-dark) 100%);
  color: var(--cms-white);
  padding: clamp(48px, 6vw, 72px) 0;
  text-align: center;
}
.cta-band h2 { color: var(--cms-white); }
.cta-band p { color: rgba(255,255,255,.85); max-width: 56ch; margin: 0 auto 24px; }

/* ---------- Services detailed (page) ---------- */
.service-detail {
  padding: clamp(40px, 5vw, 72px) 0;
  border-bottom: 1px solid var(--cms-border);
}
.service-detail:last-of-type { border-bottom: 0; }
.service-detail .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}
.service-detail .sd-head { position: sticky; top: 100px; }
.service-detail .sd-head .num {
  display: inline-block;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .15em;
  color: var(--cms-green);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.service-detail h2 { margin-bottom: 12px; }
.service-detail .sd-body p { color: var(--cms-muted); font-size: 1.05rem; }
.tier {
  background: var(--cms-white);
  border: 1px solid var(--cms-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.tier h3 {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 12px;
}
.tier .tier-tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--cms-cream);
  color: var(--cms-green-dark);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
}
.tier-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 20px;
}
.tier-list li {
  position: relative;
  padding-left: 26px;
  color: var(--cms-ink);
  font-size: .97rem;
}
.tier-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .35em;
  width: 18px; height: 18px;
  background: var(--cms-green);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9.55 17.05 4.5 12l1.41-1.41 3.64 3.63 8.54-8.54L19.5 7.1Z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9.55 17.05 4.5 12l1.41-1.41 3.64 3.63 8.54-8.54L19.5 7.1Z'/></svg>") center/contain no-repeat;
}

@media (max-width: 900px) {
  .service-detail .container { grid-template-columns: 1fr; }
  .service-detail .sd-head { position: static; }
}

/* ---------- About page ---------- */
.page-hero {
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(26,108,34,.08), transparent 60%),
    var(--cms-white);
  border-bottom: 1px solid var(--cms-border);
}
.page-hero .eyebrow {
  color: var(--cms-green);
  font-weight: 700;
  letter-spacing: .14em;
  font-size: .82rem;
  text-transform: uppercase;
}
.page-hero p.lede { color: var(--cms-muted); font-size: 1.15rem; max-width: 62ch; }

.split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.value-card {
  padding: 28px;
  background: var(--cms-white);
  border: 1px solid var(--cms-border);
  border-radius: var(--radius);
}
.value-card .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--cms-cream);
  color: var(--cms-green-dark);
  display: grid; place-items: center;
  margin-bottom: 12px;
}
.timeline {
  position: relative;
  margin: 0;
  padding-left: 28px;
  border-left: 2px solid var(--cms-cream);
  list-style: none;
}
.timeline li {
  padding: 0 0 28px 18px;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 4px;
  width: 16px; height: 16px;
  background: var(--cms-green);
  border: 3px solid var(--cms-white);
  box-shadow: 0 0 0 2px var(--cms-green);
  border-radius: 50%;
}
.timeline li h4 { margin: 0 0 4px; color: var(--cms-green-dark); }
.timeline li p { color: var(--cms-muted); margin: 0; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-card {
  background: var(--cms-white);
  border: 1px solid var(--cms-border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card h3 { color: var(--cms-green-dark); margin-bottom: 4px; }
.contact-card .addr { color: var(--cms-muted); margin-bottom: 12px; }
.contact-card .row {
  display: flex; align-items: center; gap: 10px;
  color: var(--cms-ink);
  padding: 6px 0;
}
.contact-card .row svg { color: var(--cms-green); }

.form {
  display: grid;
  gap: 14px;
  background: var(--cms-white);
  border: 1px solid var(--cms-border);
  border-radius: var(--radius);
  padding: 28px;
}
.form label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--cms-ink);
  margin-bottom: 4px;
  display: block;
}
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form .row2 { grid-template-columns: 1fr; } }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--cms-border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--cms-ink);
  background: var(--cms-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--cms-green);
  box-shadow: 0 0 0 3px rgba(26,108,34,.15);
}
.form textarea { min-height: 120px; resize: vertical; }
.form .submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.form .form-note {
  color: var(--cms-muted);
  font-size: .85rem;
}
.form .field { display: block; }

.contact-info {
  display: grid;
  gap: 20px;
  align-content: start;
}
.contact-card.accent {
  background: var(--cms-cream-soft);
  border-color: var(--cms-cream);
}
.contact-card p {
  color: var(--cms-muted);
  margin: 8px 0;
}
.contact-card p a { color: var(--cms-green); text-decoration: none; }
.contact-card p a:hover { text-decoration: underline; }
.office-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.office-list li {
  color: var(--cms-ink);
  padding: 6px 0;
  border-top: 1px solid var(--cms-border);
}
.office-list li:first-child { border-top: 0; }
.office-list strong { color: var(--cms-green-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cms-green-dark);
  color: var(--cms-cream);
  padding: 64px 0 28px;
}
.site-footer .grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.2fr repeat(3, 1fr);
}
@media (max-width: 900px) {
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .site-footer .grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: var(--cms-white);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a {
  color: rgba(223,227,209,.8);
  transition: color var(--transition);
}
.site-footer a:hover { color: var(--cms-white); }
.site-footer .brand img { height: 36px; }
.site-footer .brand-tag {
  color: rgba(223,227,209,.75);
  margin-top: 12px;
  font-style: italic;
  font-size: .95rem;
  max-width: 32ch;
}
.site-footer .legal {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(223,227,209,.15);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(223,227,209,.65);
}

/* ---------- Imagery ---------- */
.image-band {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 21 / 8;
  background: var(--cms-cream-soft);
}
.image-band img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.brand-strip {
  width: 100%;
  height: clamp(60px, 8vw, 110px);
  background: var(--cms-cream);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.brand-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* feature blocks with side-by-side image and copy */
.media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.media-grid.reverse > .media-copy { order: 2; }
.media-grid.reverse > .media-figure { order: 1; }
.media-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cms-cream-soft);
  box-shadow: var(--shadow);
  border: 1px solid var(--cms-border);
  aspect-ratio: 4 / 3;
}
.media-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.media-copy h2 { margin-top: 0; }
.media-copy p { color: var(--cms-muted); font-size: 1.05rem; }
@media (max-width: 900px) {
  .media-grid { grid-template-columns: 1fr; gap: 28px; }
  .media-grid.reverse > .media-copy { order: 0; }
  .media-grid.reverse > .media-figure { order: 0; }
}

/* page-hero with side image */
.page-hero.with-image .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 40px;
  align-items: center;
}
.page-hero.with-image .ph-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--cms-border);
  background: var(--cms-cream-soft);
}
.page-hero.with-image .ph-figure img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
  .page-hero.with-image .container { grid-template-columns: 1fr; }
}

/* photo grid (home page — six service tiles) */
.photo-grid-section { padding-bottom: clamp(48px, 6vw, 80px); }
.photo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.photo-grid > li { display: block; }
.photo-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--cms-green-dark);
  box-shadow: var(--shadow-sm);
  isolation: isolate;
  color: var(--cms-white);
  transition: transform var(--transition), box-shadow var(--transition);
}
.photo-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--cms-white); }
.photo-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transition: transform 480ms cubic-bezier(.2,.8,.2,1);
}
.photo-tile:hover img { transform: scale(1.04); }
.photo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(13,59,24,.05) 0%, rgba(13,59,24,.55) 55%, rgba(13,59,24,.92) 100%),
    linear-gradient(135deg, rgba(26,108,34,.18), transparent 50%);
  transition: background var(--transition);
}
.photo-tile:hover::after {
  background:
    linear-gradient(180deg, rgba(13,59,24,.1) 0%, rgba(13,59,24,.55) 55%, rgba(13,59,24,.95) 100%),
    linear-gradient(135deg, rgba(26,108,34,.35), transparent 60%);
}
.photo-tile-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  z-index: 2;
  display: grid;
  gap: 6px;
}
.photo-tile-eyebrow {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cms-cream);
}
.photo-tile-overlay h3 {
  color: var(--cms-white);
  font-size: 1.15rem;
  margin: 0;
  letter-spacing: -.01em;
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.photo-tile-link {
  margin-top: 6px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--cms-cream);
  letter-spacing: .02em;
}
.photo-tile:hover .photo-tile-link { color: var(--cms-white); }
@media (max-width: 900px) {
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-tile { aspect-ratio: 16 / 10; }
}

/* small inline service-detail figure */
.sd-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cms-border);
  margin-bottom: 16px;
}
.sd-figure img { display: block; width: 100%; height: auto; }

/* ---------- Small visuals ---------- */
.lucide { width: 20px; height: 20px; stroke-width: 2; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Why CMS list (About) ---------- */
.why-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
}
.why-list li {
  position: relative;
  padding-left: 32px;
  color: var(--cms-ink);
  font-size: 1.02rem;
  font-weight: 500;
}
.why-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .15em;
  width: 22px; height: 22px;
  background: var(--cms-green);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9.55 17.05 4.5 12l1.41-1.41 3.64 3.63 8.54-8.54L19.5 7.1Z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9.55 17.05 4.5 12l1.41-1.41 3.64 3.63 8.54-8.54L19.5 7.1Z'/></svg>") center/contain no-repeat;
}
@media (max-width: 640px) { .why-list { grid-template-columns: 1fr; } }

/* ---------- Partners logo grid (About) ---------- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.partner-logo {
  background: var(--cms-white);
  border: 1px solid var(--cms-border);
  border-radius: var(--radius);
  padding: 22px 18px;
  display: grid;
  place-items: center;
  min-height: 112px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.partner-logo:hover { border-color: var(--cms-green); box-shadow: var(--shadow-sm); }
.partner-logo img {
  max-width: 100%;
  max-height: 54px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .68;
  transition: filter var(--transition), opacity var(--transition);
}
.partner-logo:hover img { filter: grayscale(0); opacity: 1; }
@media (max-width: 900px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Numbered report sections (Services · Credit Report content) ---------- */
.report-sections {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  counter-reset: rep;
}
.report-sections li {
  position: relative;
  background: var(--cms-white);
  border: 1px solid var(--cms-border);
  border-radius: var(--radius);
  padding: 18px 18px 18px 60px;
  counter-increment: rep;
}
.report-sections li::before {
  content: counter(rep);
  position: absolute;
  left: 16px; top: 16px;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--cms-cream);
  color: var(--cms-green-dark);
  font-weight: 700;
  font-size: .9rem;
  display: grid;
  place-items: center;
}
.report-sections h4 { margin: 0 0 4px; font-size: 1rem; color: var(--cms-ink); }
.report-sections p { margin: 0; color: var(--cms-muted); font-size: .92rem; }
@media (max-width: 640px) { .report-sections { grid-template-columns: 1fr; } }

/* ---------- Case studies (Services · Business Intelligence) ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.case-card {
  background: var(--cms-white);
  border: 1px solid var(--cms-border);
  border-left: 3px solid var(--cms-green);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.case-card h4 { color: var(--cms-green-dark); margin: 0 0 8px; font-size: 1.05rem; }
.case-card p { margin: 0; color: var(--cms-muted); font-size: .95rem; }
@media (max-width: 640px) { .case-grid { grid-template-columns: 1fr; } }
