/* ==========================================================================
   SEM — service + solution
   ========================================================================== */

:root {
  /* Official brand colours (client logo files) */
  --sem-lime: #D7DF23;
  --sem-leaf-green: #8DC63F;
  --sem-deep-green: #39B54A;
  --sem-gray: #808285;

  /* Supporting web colours (accessible text / surfaces) */
  --sem-green-dark: #237A33;
  --sem-forest: #14331C;
  --sem-text: #58595B;
  --sem-heading: #2B2C2E;
  --sem-off-white: #F6F8F1;
  --sem-white: #FFFFFF;
  --sem-border: #E3E7DC;

  --sem-gradient: linear-gradient(90deg, var(--sem-lime) 0%, var(--sem-leaf-green) 50%, var(--sem-deep-green) 100%);

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 51, 28, .06), 0 8px 24px rgba(20, 51, 28, .08);
  --container: 1160px;
  --header-h: 78px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--sem-text);
  background: var(--sem-white);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--sem-heading); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
a { color: var(--sem-green-dark); text-underline-offset: 3px; }
a:hover { color: var(--sem-forest); }
a[href^="tel:"] { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--sem-deep-green); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--sem-forest); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Eyebrow label + gradient rule (the three leaf colours) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sem-green-dark); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 36px; height: 4px; border-radius: 2px; background: var(--sem-gradient); }
.on-dark .eyebrow { color: var(--sem-leaf-green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sem-green-dark); color: #fff; }
.btn-primary:hover { background: var(--sem-forest); color: #fff; }
.btn-light { background: #fff; color: var(--sem-forest); }
.btn-light:hover { background: var(--sem-lime); color: var(--sem-forest); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--sem-border);
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--sem-gradient); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: block; flex-shrink: 0; }
.brand img { height: 48px; width: auto; }

.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 10px 16px; border-radius: 999px;
  color: var(--sem-heading); font-weight: 500; text-decoration: none; font-size: .98rem;
}
.nav-list a:hover { background: var(--sem-off-white); color: var(--sem-green-dark); }
.nav-list a[aria-current="page"] { color: var(--sem-green-dark); font-weight: 600; }
.nav-list .nav-cta a { background: var(--sem-green-dark); color: #fff; margin-left: 8px; padding-inline: 20px; }
.nav-list .nav-cta a:hover { background: var(--sem-forest); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--sem-forest);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .brand img { height: 40px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: calc(var(--header-h) + 2px); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--sem-border); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 2px; }
  .nav-list a { padding: 14px 16px; border-radius: 8px; }
  .nav-list .nav-cta a { margin: 8px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; isolation: isolate;
  min-height: min(88vh, 760px); display: flex; align-items: center;
  padding: 96px 0 120px;
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(20,51,28,.92) 0%, rgba(20,51,28,.78) 45%, rgba(20,51,28,.35) 100%);
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 .accent { color: var(--sem-lime); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 56ch; color: rgba(255,255,255,.92); margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding: 0; list-style: none; }
.hero-badges li {
  font-size: .85rem; font-weight: 600; letter-spacing: .02em;
  padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
}

/* Page header (inner pages) */
.page-hero {
  position: relative; color: #fff; isolation: isolate; padding: 88px 0 80px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(20,51,28,.93) 0%, rgba(20,51,28,.7) 60%, rgba(20,51,28,.45) 100%);
}
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero p:not(.eyebrow) { font-size: 1.15rem; max-width: 60ch; color: rgba(255,255,255,.9); margin: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--sem-off-white); }
.section-dark { background: var(--sem-forest); color: rgba(255,255,255,.88); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.lead { font-size: 1.15rem; }

/* Service cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--sem-border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--card-accent, var(--sem-deep-green)); }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20,51,28,.06), 0 16px 36px rgba(20,51,28,.12); }
.card h3 { margin-bottom: .5em; }
.card p { font-size: .98rem; margin: 0; }
.card .tag { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--sem-green-dark); background: var(--sem-off-white); border-radius: 999px; padding: 4px 10px; margin-top: 16px; }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sem-off-white); color: var(--sem-green-dark); margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; }
.accent-lime { --card-accent: var(--sem-lime); }
.accent-leaf { --card-accent: var(--sem-leaf-green); }
.accent-deep { --card-accent: var(--sem-deep-green); }
.accent-gray { --card-accent: var(--sem-gray); }

/* Split content (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media picture img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media::after {
  content: ""; position: absolute; width: 38%; aspect-ratio: 1; right: -18px; bottom: -18px; z-index: -1;
  border-radius: var(--radius); background: var(--sem-gradient); opacity: .9;
}
.split.reverse .split-media::after { right: auto; left: -18px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media::after { display: none; }
}

/* Check list */
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sem-deep-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Audience chips */
.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.audience-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 20px;
}
.audience-item svg { flex-shrink: 0; width: 26px; height: 26px; color: var(--sem-leaf-green); margin-top: 2px; }
.audience-item strong { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }
.audience-item span { font-size: .93rem; color: rgba(255,255,255,.75); }

/* Stats / facts strip */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border: 1px solid var(--sem-border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.fact { padding: 28px 26px; border-right: 1px solid var(--sem-border); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-size: 1.6rem; font-weight: 700; color: var(--sem-forest); line-height: 1.1; margin-bottom: 6px; }
.fact span { font-size: .93rem; }
@media (max-width: 860px) { .fact { border-right: 0; border-bottom: 1px solid var(--sem-border); } .fact:last-child { border-bottom: 0; } }
.facts-overlap { margin-top: -64px; position: relative; z-index: 2; }

/* Help / problem callout */
.callout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.callout {
  border-radius: var(--radius); padding: 30px; background: #fff; border: 1px solid var(--sem-border);
  border-left: 5px solid var(--sem-deep-green);
}
.callout h3 { font-size: 1.15rem; }
/* Question cards that link through to the contact page */
a.callout { display: block; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
a.callout h3 { color: var(--sem-heading); }
a.callout p { color: var(--sem-text); }
a.callout::after {
  content: "Get in touch →"; display: block; margin-top: 12px;
  font-size: .88rem; font-weight: 600; color: var(--sem-green-dark);
}
a.callout:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20,51,28,.06), 0 16px 36px rgba(20,51,28,.12); }
a.callout:hover::after { color: var(--sem-forest); }
@media (prefers-reduced-motion: reduce) { a.callout { transition: none; } a.callout:hover { transform: none; } }
.field .optional { font-weight: 400; color: var(--sem-text); font-size: .88rem; }
.callout p { margin: 0; }

/* Small, low-key aside (used for the separate auditing note) */
.section-compact { padding: clamp(40px, 5vw, 56px) 0; }
.aside-note {
  display: flex; gap: 18px; align-items: flex-start;
  max-width: 820px; margin-inline: auto; padding: 22px 26px;
  background: var(--sem-off-white); border: 1px solid var(--sem-border); border-radius: var(--radius);
}
.aside-note .card-icon { flex-shrink: 0; margin: 0; width: 44px; height: 44px; background: #fff; color: var(--sem-gray); }
.aside-note .card-icon svg { width: 24px; height: 24px; }
.aside-note h2 { font-size: 1.05rem; margin-bottom: .35em; }
.aside-note p { font-size: .95rem; margin: 0; }
@media (max-width: 600px) { .aside-note { flex-direction: column; gap: 12px; padding: 20px; } }

/* CTA band */
.cta-band { position: relative; isolation: isolate; color: #fff; padding: clamp(64px, 8vw, 96px) 0; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20,51,28,.84); }
.cta-band .bg, .cta-band .bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p:not(.eyebrow) { max-width: 58ch; margin: 0 auto 30px; color: rgba(255,255,255,.9); font-size: 1.1rem; }
.cta-band .hero-actions { justify-content: center; }

/* Services detail */
.service-detail { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 44px 0; border-top: 1px solid var(--sem-border); }
.service-detail:first-of-type { border-top: 0; padding-top: 0; }
.service-detail h3 { font-size: 1.35rem; }
.service-detail .std { font-size: .92rem; color: var(--sem-text); }
.service-label { display: flex; gap: 16px; align-items: flex-start; }
.service-label .card-icon { flex-shrink: 0; margin: 0; }
@media (max-width: 760px) { .service-detail { grid-template-columns: 1fr; gap: 12px; } }

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.pill-list li { font-size: .85rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--sem-off-white); border: 1px solid var(--sem-border); color: var(--sem-heading); }

/* About timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--sem-gradient); background: linear-gradient(180deg, var(--sem-lime), var(--sem-leaf-green), var(--sem-deep-green)); }
.timeline li { position: relative; padding: 0 0 28px 44px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 5px; width: 21px; height: 21px; border-radius: 50%; background: #fff; border: 4px solid var(--sem-deep-green); }
.timeline h3 { font-size: 1.08rem; margin-bottom: .3em; }
.timeline p { margin: 0; font-size: .98rem; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-card { background: var(--sem-forest); color: rgba(255,255,255,.88); border-radius: var(--radius); padding: 36px 32px; position: relative; overflow: hidden; }
.contact-card h2 { color: #fff; font-size: 1.5rem; }
.contact-card .contact-logo { width: 120px; opacity: .1; position: absolute; right: -10px; bottom: -10px; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--sem-leaf-green); margin-top: 3px; }
.contact-list small { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.contact-list a { color: #fff; text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--sem-lime); text-decoration: underline; }

.form-card { background: #fff; border: 1px solid var(--sem-border); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 600; color: var(--sem-heading); font-size: .95rem; margin-bottom: 6px; }
.field .req { color: #B3261E; }
.field input, .field textarea, .field select {
  width: 100%; font: 400 1rem/1.5 var(--font); color: var(--sem-heading);
  padding: 12px 14px; border: 1.5px solid #CBD2C4; border-radius: 8px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sem-deep-green); box-shadow: 0 0 0 4px rgba(57,181,74,.2); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B3261E; }
.field .error { display: none; color: #B3261E; font-size: .86rem; margin-top: 6px; }
.field.has-error .error { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .checkbox-grid { grid-template-columns: 1fr; } }
.field .check {
  display: flex; gap: 10px; align-items: center; padding: 11px 14px; border: 1.5px solid #CBD2C4; border-radius: 8px;
  cursor: pointer; font-size: .95rem; font-weight: 500; line-height: 1.35; margin: 0;
  color: var(--sem-heading); transition: border-color .2s, background .2s;
}
.field .check:hover { border-color: var(--sem-deep-green); }
.field .check input { width: 18px; height: 18px; accent-color: var(--sem-green-dark); flex-shrink: 0; margin: 0; }
.field .check:has(input:checked) { border-color: var(--sem-deep-green); background: #F1F8EC; }
.hp { position: absolute; left: -9999px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.form-note { font-size: .86rem; margin: 0; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 8px; display: none; }
.form-status.error { display: block; background: #FCEEEE; color: #8C1D18; border: 1px solid #F1C9C7; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.form-success { text-align: center; padding: 32px 12px; }
.form-success .success-icon {
  width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sem-off-white); border: 3px solid var(--sem-deep-green);
}
.form-success .success-icon img { width: 50px; }
.form-success h2 { font-size: 1.7rem; }
.form-success p { max-width: 46ch; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sem-forest); color: rgba(255,255,255,.75); padding: 64px 0 28px; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--sem-gradient); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand img { width: 220px; margin-bottom: 16px; }
.footer-brand p { font-size: .95rem; max-width: 36ch; }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sem-leaf-green); margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sem-lime); text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
