/* ==========================================================================
   Klovent Technologies — Design System
   Style: Swiss Modernism 2.0 · Green & White
   Type:  Space Grotesk (logo + headings) + Open Sans (body)
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand — Green scale */
  --green-50:  #F0FDF4;
  --green-100: #DCFCE7;
  --green-200: #BBF7D0;
  --green-300: #86EFAC;
  --green-400: #4ADE80;
  --green-500: #22C55E;
  --green-600: #16A34A;   /* primary */
  --green-700: #15803D;   /* primary hover */
  --green-800: #166534;
  --green-900: #14532D;   /* deep */

  /* Neutrals */
  --white:     #FFFFFF;
  --slate-50:  #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  /* Semantic tokens */
  --color-primary:       var(--green-600);
  --color-primary-dark:  var(--green-700);
  --color-primary-deep:  var(--green-900);
  --color-on-primary:    #FFFFFF;
  --color-accent:        var(--green-500);
  --color-bg:            #FFFFFF;
  --color-bg-soft:       var(--slate-50);
  --color-bg-mint:       var(--green-50);
  --color-fg:            var(--slate-900);
  --color-fg-muted:      var(--slate-600);
  --color-fg-subtle:     var(--slate-500);
  --color-border:        var(--slate-200);
  --color-border-strong: var(--slate-300);
  --color-ring:          var(--green-600);

  /* Typography */
  --font-logo:    'Space Grotesk', system-ui, sans-serif;
  --font-heading: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.375rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing scale (density 4 — standard/roomy) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4rem;
  --space-9:  6rem;
  --space-10: 8rem;

  /* Radius */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-full: 999px;

  /* Shadows (soft, greenish ambient) */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow:    0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.12);
  --shadow-green: 0 14px 34px rgba(22, 163, 74, 0.22);

  /* Layout */
  --container: 1200px;
  --container-narrow: 860px;
  --header-h: 76px;

  /* On-deep (dark green surfaces) text tokens */
  --on-deep:        #E7F7ED;
  --on-deep-muted:  #C9EAD4;
  --on-deep-subtle: #A7D8B7;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 240ms;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-fg);
}

h1 { font-size: clamp(2.25rem, 5vw, var(--text-6xl)); }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--text-4xl)); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p { color: var(--color-fg-muted); }

a { color: var(--color-primary-dark); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--color-primary); }

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

ul { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3.5rem, 8vw, var(--space-9)); }
.section--soft { background: var(--color-bg-soft); }
.section--mint { background: var(--color-bg-mint); }
.section--deep {
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 100%);
  color: var(--on-deep);
}
.section--deep h1, .section--deep h2, .section--deep h3, .section--deep p { color: inherit; }

.section-head { max-width: 720px; margin-bottom: var(--space-7); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}
.section--deep .eyebrow { color: var(--green-300); }
.section--deep .eyebrow::before { background: var(--green-400); }

.lead { font-size: var(--text-lg); color: var(--color-fg-muted); }
.section--deep .lead { color: var(--on-deep-muted); }

.grid { display: grid; gap: var(--space-5); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--green-700);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-green);
}
.btn--primary:hover { background: var(--green-800); color: #fff; transform: translateY(-2px); }
.btn--outline {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-border-strong);
}
.btn--outline:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--green-50); }
.btn--ghost { background: var(--white); color: var(--color-fg); border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary-dark); transform: translateY(-2px); }
.btn--outline-inverse {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn--outline-inverse:hover { border-color: #fff; background: rgba(255,255,255,0.14); color: #fff; }
.btn--light { background: #fff; color: var(--color-primary-deep); }
.btn--light:hover { background: var(--green-50); transform: translateY(-2px); }
.btn--lg { padding: 1.05rem 2rem; font-size: var(--text-lg); }
.btn--block { display: flex; width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--space-5);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--color-fg);
}
.brand:hover { color: var(--color-fg); }
.brand__mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--green-500), var(--green-700));
  border-radius: var(--radius);
  box-shadow: var(--shadow-green);
}
.brand__mark svg { width: 22px; height: 22px; color: #fff; }
.brand__text { line-height: 1; display: inline-flex; align-items: baseline; gap: 0.28em; }
.brand strong { font-weight: 700; color: var(--color-fg); }
.brand__text > span { font-weight: 500; color: var(--color-primary-dark); letter-spacing: -0.01em; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}
.nav__link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--color-fg);
  position: relative;
  padding-block: 4px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width var(--dur) var(--ease);
}
.nav__link:hover { color: var(--color-primary-dark); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { width: 100%; }
.nav__link[aria-current="page"] { color: var(--color-primary-dark); font-weight: 600; }

.nav__cta { display: flex; align-items: center; gap: var(--space-3); }

.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__toggle:hover { border-color: var(--color-primary); background: var(--green-50); }
.nav__toggle svg { width: 24px; height: 24px; color: var(--color-fg); }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 90% at 85% -10%, rgba(34, 197, 94, 0.14), transparent 60%),
    radial-gradient(45% 70% at 0% 100%, rgba(21, 128, 61, 0.10), transparent 60%),
    var(--white);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-8);
  align-items: center;
  padding-block: clamp(3rem, 7vw, var(--space-9));
}
.hero h1 { margin-bottom: var(--space-5); }
.hero .lead { margin-bottom: var(--space-6); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-6); }
.hero__trust { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; color: var(--color-fg-subtle); font-size: var(--text-sm); }
.hero__trust strong { color: var(--color-fg); font-family: var(--font-heading); }


/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--green-200); }
.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--green-50);
  color: var(--color-primary-dark);
  border-radius: var(--radius);
  margin-bottom: var(--space-5);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.card__icon svg { width: 28px; height: 28px; }
.card:hover .card__icon { background: var(--color-primary); color: #fff; }
.card h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.card p { font-size: var(--text-base); margin-bottom: var(--space-4); }
.card__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-weight: 600; font-size: var(--text-sm);
  color: var(--color-primary-dark);
}
.card__link svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }

/* Feature list item (checkmarks) */
.checklist { display: grid; gap: var(--space-3); }
.checklist li {
  display: flex; align-items: flex-start; gap: var(--space-3);
  color: var(--color-fg-muted);
}
.checklist li svg {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px;
  color: var(--color-primary);
}
.section--deep .checklist li { color: #D9F0E1; }
.section--deep .checklist li svg { color: var(--green-300); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.stat { text-align: center; padding: var(--space-5); }
.stat__num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.25rem, 4vw, var(--text-5xl));
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}
.section--deep .stat__num { color: var(--green-300); }
.stat__label { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--color-fg-subtle); text-transform: uppercase; letter-spacing: 0.05em; }
.section--deep .stat__label { color: var(--on-deep-muted); }

/* ---------- Logo strip ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-6) var(--space-8); }
.logos span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--slate-500);
  letter-spacing: -0.02em;
}

/* ---------- Steps / Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); counter-reset: step; }
.step { position: relative; padding: var(--space-5) 0; }
.step__num {
  font-family: var(--font-heading); font-weight: 700; font-size: var(--text-2xl);
  width: 56px; height: 56px; border-radius: var(--radius-full);
  display: grid; place-items: center;
  background: var(--green-50); color: var(--color-primary-dark);
  border: 2px solid var(--green-200);
  margin-bottom: var(--space-4);
}
.step h3, .step h4 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.step p { font-size: var(--text-base); }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  height: 100%;
  display: flex; flex-direction: column;
}
.quote__stars { display: flex; gap: 3px; color: var(--green-500); margin-bottom: var(--space-4); }
.quote__stars svg { width: 20px; height: 20px; }
.quote p { font-size: var(--text-lg); color: var(--color-fg); font-style: italic; margin-bottom: var(--space-5); flex-grow: 1; }
.quote__author { display: flex; align-items: center; gap: var(--space-4); }
.quote__avatar {
  width: 48px; height: 48px; border-radius: var(--radius-full);
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--green-500), var(--green-700));
  color: #fff; font-family: var(--font-heading); font-weight: 700;
}
.quote__name { font-family: var(--font-heading); font-weight: 600; color: var(--color-fg); }
.quote__role { font-size: var(--text-sm); color: var(--color-fg-subtle); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--green-800), var(--green-900));
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, var(--space-8));
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(50% 120% at 50% -10%, rgba(255,255,255,0.16), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: var(--space-4); }
.cta-band p { color: var(--on-deep-muted); max-width: 560px; margin-inline: auto; margin-bottom: var(--space-6); }
.cta-band .btn-row { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(50% 80% at 90% 0%, rgba(34,197,94,0.12), transparent 60%),
    var(--color-bg-mint);
  border-bottom: 1px solid var(--color-border);
  padding-block: clamp(2.75rem, 6vw, var(--space-8));
}
.breadcrumb { display: flex; gap: var(--space-2); align-items: center; font-size: var(--text-sm); color: var(--color-fg-subtle); margin-bottom: var(--space-4); }
.breadcrumb a { color: var(--color-fg-subtle); }
.breadcrumb a:hover { color: var(--color-primary-dark); }
.page-hero h1 { margin-bottom: var(--space-4); }
.page-hero .lead { max-width: 620px; }

/* ---------- Split / media rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.media-panel {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--green-100), var(--green-50));
  border: 1px solid var(--green-200);
  padding: var(--space-7);
  min-height: 320px;
  display: grid;
  place-items: center;
}
.media-panel svg { width: 96px; height: 96px; color: var(--color-primary); }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-5); }
.field { display: grid; gap: var(--space-2); }
.field label { font-family: var(--font-heading); font-weight: 600; font-size: var(--text-sm); color: var(--color-fg); }
.field label .req { color: var(--color-primary); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-fg);
  background: #fff;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  min-height: 48px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
}
.field__hint { font-size: var(--text-xs); color: var(--color-fg-subtle); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.form-note { font-size: var(--text-sm); color: var(--color-fg-subtle); }
.form-success {
  display: none;
  align-items: center; gap: var(--space-3);
  background: var(--green-50); border: 1px solid var(--green-200);
  color: var(--green-800);
  padding: var(--space-4); border-radius: var(--radius);
  font-weight: 600;
}
.form-success.is-visible { display: flex; }
.form-success svg { width: 22px; height: 22px; color: var(--color-primary); flex-shrink: 0; }

/* Contact info list */
.contact-list { display: grid; gap: var(--space-5); }
.contact-item { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-item__icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--green-50); color: var(--color-primary-dark);
  display: grid; place-items: center;
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item h3, .contact-item h4 { font-size: var(--text-base); margin-bottom: 2px; }
.contact-item a, .contact-item p { color: var(--color-fg-muted); font-size: var(--text-base); }
.contact-item a:hover { color: var(--color-primary-dark); }

/* ---------- Accordion (FAQ) ---------- */
.accordion { display: grid; gap: var(--space-3); }
.acc-item { border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; overflow: hidden; transition: border-color var(--dur) var(--ease); }
.acc-item:hover { border-color: var(--green-300); }
.acc-trigger:hover { color: var(--color-primary-dark); }
.acc-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5);
  background: none; border: none; cursor: pointer;
  font-family: var(--font-heading); font-weight: 600; font-size: var(--text-lg);
  color: var(--color-fg); text-align: left;
}
.acc-trigger svg { width: 22px; height: 22px; color: var(--color-primary); transition: transform var(--dur) var(--ease); flex-shrink: 0; }
.acc-trigger[aria-expanded="true"] svg { transform: rotate(45deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
.acc-panel > div { padding: 0 var(--space-5) var(--space-5); color: var(--color-fg-muted); }

/* ---------- Badges / pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-weight: 600; font-size: var(--text-sm);
  color: var(--color-primary-dark);
  background: var(--green-50);
  border: 1px solid var(--green-200);
  padding: 6px 14px; border-radius: var(--radius-full);
}
.tag-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag { font-size: var(--text-sm); color: var(--slate-600); background: var(--slate-100); border-radius: var(--radius-full); padding: 4px 12px; }

/* ---------- Case study card ---------- */
.case {
  position: relative;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.case:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.case__media {
  background: linear-gradient(160deg, var(--green-700), var(--green-900));
  color: #fff; padding: var(--space-6);
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-6);
  min-height: 260px;
}
.case__media .pill { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.25); color: #fff; }
.case__metric { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-4xl); color: #fff; letter-spacing: -0.03em; }
.case__metric span { display: block; font-size: var(--text-sm); font-weight: 500; color: var(--on-deep-muted); letter-spacing: 0; }
.case__body { padding: var(--space-6); }
.case__body h3 { margin-bottom: var(--space-3); }

/* ---------- Pricing cards ---------- */
.card__price { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-3xl); color: var(--color-fg); letter-spacing: -0.02em; margin-bottom: var(--space-2); }
.card__price span { display: block; font-size: var(--text-sm); font-weight: 500; color: var(--color-fg-subtle); letter-spacing: 0; margin-top: 2px; }
.card--featured { border-color: var(--green-300); box-shadow: var(--shadow-green); position: relative; }
.card--featured .pill { position: absolute; top: calc(-1 * var(--space-4)); left: 50%; transform: translateX(-50%); background: var(--green-700); border-color: var(--green-700); color: #fff; }

/* Common spacing that was inline */
.split .lead { margin-bottom: var(--space-6); }
.card .tag-row { margin-bottom: var(--space-3); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: var(--on-deep-muted);
  padding-block: var(--space-8) var(--space-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand { color: #fff; margin-bottom: var(--space-4); }
.footer-brand .brand span { color: var(--green-300); }
.footer-brand p { color: var(--on-deep-subtle); font-size: var(--text-sm); max-width: 34ch; }
.footer-col h3, .footer-col h5 {
  font-family: var(--font-heading); font-weight: 600; font-size: var(--text-sm);
  text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin-bottom: var(--space-4);
}
.footer-col ul { display: grid; gap: var(--space-3); }
.footer-col a { color: var(--on-deep-subtle); font-size: var(--text-sm); }
.footer-col a:hover { color: #fff; }
.footer-contact { display: grid; gap: var(--space-4); }
.footer-contact .contact-row { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); color: var(--on-deep-subtle); }
.footer-contact .contact-row svg { width: 18px; height: 18px; color: var(--green-300); flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: var(--on-deep-subtle); }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4);
  padding-top: var(--space-5);
  font-size: var(--text-sm); color: var(--on-deep-subtle);
}
.footer-bottom a { color: var(--on-deep-subtle); }
.footer-bottom a:hover { color: #fff; }
.footer-social { display: flex; gap: var(--space-3); }
.footer-social a {
  width: 38px; height: 38px; border-radius: var(--radius-full);
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08); color: var(--on-deep-muted);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.footer-social a:hover { background: var(--green-600); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }

/* ---------- Scroll reveal (only active when JS is present) ---------- */
@keyframes revealFallback { to { opacity: 1; transform: none; } }
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); animation: revealFallback 0.6s var(--ease) 2.5s forwards; }
html.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mb-0 { margin-bottom: 0; }
.max-720 { max-width: 720px; }
.mx-auto { margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 1000;
  background: var(--green-700); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero .lead { max-width: none; }
  .split { grid-template-columns: 1fr; gap: var(--space-6); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .case { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
  .nav__links, .nav__cta .btn--outline { display: none; }
  .nav__toggle { display: flex; }
  .nav {
    position: relative;
  }
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    position: absolute;
    top: calc(var(--header-h) - 6px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-lg);
  }
  .nav__links.is-open .nav__link { width: 100%; padding: var(--space-3); border-radius: var(--radius); }
  .nav__links.is-open .nav__link:hover { background: var(--green-50); }
}

@media (max-width: 640px) {
  .grid-3, .stats, .steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; }
  .cta-band .btn-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  html.js .reveal, html.js .reveal.is-in { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Image components (added for stock imagery)
   ========================================================================== */
.img-cover { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Hero photo (home) */
.hero__photo {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 440px;
  aspect-ratio: 4 / 3.4;
}
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,83,45,0) 55%, rgba(20,83,45,0.35) 100%);
}
.hero__badge {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: var(--space-3);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-lg);
}
.hero__badge--tl { top: 18px; left: 18px; }
.hero__badge--br { bottom: 18px; right: 18px; }
.hero__badge .hero__badge-icon {
  width: 40px; height: 40px; border-radius: var(--radius); flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--green-50); color: var(--color-primary-dark);
}
.hero__badge .hero__badge-icon svg { width: 20px; height: 20px; }
.hero__badge-num { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-lg); color: var(--color-fg); line-height: 1.1; }
.hero__badge-label { font-size: var(--text-xs); color: var(--color-fg-subtle); }

/* Photo cards (service / industry) */
.card--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--media .card__media { position: relative; height: 190px; overflow: hidden; }
.card--media .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card--media:hover .card__media img { transform: scale(1.06); }
.card--media .card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0) 60%, rgba(15,23,42,0.28) 100%);
}
.card--media .card__body { padding: var(--space-6); padding-top: 2.6rem; position: relative; flex-grow: 1; display: flex; flex-direction: column; }
.card--media .card__icon {
  position: absolute; top: -28px; left: var(--space-6); margin: 0;
  background: #fff; box-shadow: var(--shadow); z-index: 2;
}
.card--media:hover .card__icon { background: var(--color-primary); color: #fff; }
.card--media .card__body p { flex-grow: 1; }

/* Photo media panel (split rows) */
.media-panel--photo { padding: 0; border: none; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.media-panel--photo img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.media-panel--photo .media-panel__tag {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(8px);
  border-radius: var(--radius-full); padding: 8px 16px;
  font-family: var(--font-heading); font-weight: 600; font-size: var(--text-sm);
  color: var(--color-primary-dark); box-shadow: var(--shadow);
  display: inline-flex; align-items: center; gap: 8px;
}
.media-panel--photo .media-panel__tag svg { width: 16px; height: 16px; }

/* Page hero with image */
.page-hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-8); align-items: center; }
.page-hero__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.page-hero__media img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; display: block; }

/* Case study media with photo background */
.case__media { position: relative; }
.case__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.case__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(155deg, rgba(20,83,45,0.92), rgba(22,101,52,0.86));
}
.case__media > *:not(.case__bg) { position: relative; z-index: 2; }

/* Case card: stretched link + arrow hover parity with .card */
.case .card__link::after { content: ""; position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.case:hover .card__link svg { transform: translateX(4px); }
.case .card__link svg { transition: transform var(--dur) var(--ease); }

/* Contact / location photo */
.location-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 260px; }
.location-photo img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.location-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(22,163,74,0.20), rgba(20,83,45,0.45)); }
.location-photo__pin {
  position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--space-2); color: #fff; text-align: center;
}
.location-photo__pin svg { width: 44px; height: 44px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4)); }
.location-photo__pin strong { font-family: var(--font-heading); font-size: var(--text-lg); }

/* Section band with subtle image is handled inline where needed */

@media (max-width: 980px) {
  .page-hero__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero__photo { min-height: 360px; aspect-ratio: 16 / 11; }
}
@media (max-width: 640px) {
  .hero__photo { min-height: 300px; }
  .hero__badge .hero__badge-label { display: none; }
  .hero__badge--tl { top: 12px; left: 12px; }
  .hero__badge--br { bottom: 12px; right: 12px; }
}

.hero__badge > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.hero__badge-num { display: block; }
.hero__badge-label { display: block; }

/* ---------- Deep-link & full-card click behavior ---------- */
/* Anchored sections land below the sticky header */
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Whole card is clickable: the card__link stretches over the card */
.card--media { position: relative; }
.card--media .card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}
/* Keep focus ring visible on the whole card when the link is focused */
.card--media .card__link:focus-visible::after {
  outline: 3px solid var(--color-ring);
  outline-offset: -3px;
  border-radius: var(--radius-lg);
}
